Skip to content
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f04a4b7
chore: add semantic-release configuration
nadavis Mar 10, 2026
4526c7b
style: fix formatting in package.json
nadavis Mar 10, 2026
aad75a4
fix: expand codeKeys and increase fallback truncation in native popup
nadavis Mar 11, 2026
00e540a
feat: add local audit log and hook debug log to core
nadavis Mar 11, 2026
9915135
refactor: replace appendAuditModeEntry with appendLocalAudit
nadavis Mar 11, 2026
081a3a7
update readme
nadavis Mar 12, 2026
25955bf
feat: improve native popup with specific rule names and keyboard shor…
nadavis Mar 12, 2026
99520ae
docs: remove static image and expand video to full width in README
nadavis Mar 12, 2026
ced874c
docs: update demo video source in README
nadavis Mar 12, 2026
5e7b47a
docs: add .mp4 extension to demo video src
nadavis Mar 12, 2026
1359115
docs: replace video with gif for autoplay/loop support on GitHub
nadavis Mar 12, 2026
12a7372
docs: update demo gif asset URL
nadavis Mar 12, 2026
aaa8bab
docs: update demo gif asset URL
nadavis Mar 12, 2026
2b392c9
docs: update demo gif asset URL
nadavis Mar 12, 2026
30fb2eb
docs: update demo gif asset URL
nadavis Mar 12, 2026
5f2625b
Merge branch 'main' into dev
nadav-node9 Mar 12, 2026
a9e2069
ci: trigger fresh CI run to clear stale typecheck annotations
nadavis Mar 12, 2026
3f5f5b1
fix: restore missing return statement in buildPangoMessage lost durin…
nadavis Mar 12, 2026
eb4e63d
docs: update demo.ts with correct import and usage explanation
nadavis Mar 12, 2026
627c3db
fix: correct node9.config.json.example
nadavis Mar 12, 2026
a34ac4a
feat: add environment setting to config for explicit env selection
nadavis Mar 12, 2026
7a59bc7
style: fix prettier formatting in node9.config.json.example
nadavis Mar 12, 2026
2adcf0c
refactor: remove slackChannel from proxy config — managed via SaaS da…
nadavis Mar 12, 2026
38d2f6c
fix: remove unused envConfig variable left after slackChannel removal
nadavis Mar 12, 2026
7744f47
fix: add a new gif to readme
nadavis Mar 13, 2026
807aae7
Merge branch 'main' into dev
nadav-node9 Mar 13, 2026
0f1b6f4
feat: add node9 setup, doctor, explain, smart SQL check, and negotiat…
nadavis Mar 13, 2026
e73b56c
ci: build before running tests so integration tests find dist/cli.js
nadavis Mar 13, 2026
e2e49ac
fix: downgrade node9 PATH check to warning in doctor command
nadavis Mar 13, 2026
a99b460
Merge branch 'main' into dev
nadav-node9 Mar 13, 2026
addbed5
docs: add CLI reference section with doctor and explain commands
nadavis Mar 13, 2026
45ec2bb
fix: resolve merge conflict in README gif URL (keep main version)
nadavis Mar 13, 2026
91e96d0
style: run prettier on README
nadavis Mar 13, 2026
98225a2
Merge branch 'main' into dev
nadav-node9 Mar 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 67 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ While others try to _guess_ if a prompt is malicious (Semantic Security), Node9
**AIs are literal.** When you ask an agent to "Fix my disk space," it might decide to run `docker system prune -af`.

<p align="center">
<<<<<<< dev
<img src="https://github.com/user-attachments/assets/afae9caa-0605-4cac-929a-c14198383169" width="100%">
=======
<img src="https://github.com/user-attachments/assets/0e45e843-4cf7-408e-95ce-23fb09525ee4" width="100%">
>>>>>>> main
</p>

**With Node9, the interaction looks like this:**
Expand Down Expand Up @@ -79,6 +75,8 @@ Revert to this snapshot? [y/N]

Node9 keeps the last 10 snapshots. Snapshots are only taken for file-writing tools (`write_file`, `edit_file`, `str_replace_based_edit_tool`, `create_file`) — not for read-only or shell commands.

Node9 keeps the last 10 snapshots. Snapshots are only taken for file-writing tools (`write_file`, `edit_file`, `str_replace_based_edit_tool`, `create_file`) — not for read-only or shell commands.

### 🌊 The Resolution Waterfall

Security posture is resolved using a strict 5-tier waterfall:
Expand All @@ -97,13 +95,17 @@ Security posture is resolved using a strict 5-tier waterfall:
npm install -g @node9/proxy

# 1. Setup protection for your favorite agent
node9 addto claude
node9 setup # interactive menu — picks the right agent for you
node9 addto claude # or wire directly
node9 addto gemini

# 2. Initialize your local safety net
node9 init

# 3. Check your status
# 3. Verify everything is wired correctly
node9 doctor

# 4. Check your status
node9 status
```

Expand Down Expand Up @@ -151,6 +153,65 @@ Rules are **merged additive**—you cannot "un-danger" a word locally if it was

---

## 🖥️ CLI Reference

| Command | Description |
| :---------------------------- | :------------------------------------------------------------------------------------ |
| `node9 setup` | Interactive menu — detects installed agents and wires hooks for you |
| `node9 addto <agent>` | Wire hooks for a specific agent (`claude`, `gemini`, `cursor`) |
| `node9 init` | Create default `~/.node9/config.json` |
| `node9 status` | Show current protection status and active rules |
| `node9 doctor` | Health check — verifies binaries, config, credentials, and all agent hooks |
| `node9 explain <tool> [args]` | Trace the policy waterfall for a given tool call (dry-run, no approval prompt) |
| `node9 undo [--steps N]` | Revert the last N AI file edits using shadow Git snapshots |
| `node9 check` | Called by agent hooks; evaluates a pending tool call and exits 0 (allow) or 1 (block) |

### `node9 doctor`

Runs a full self-test and exits 1 if any required check fails:

```
Node9 Doctor v1.2.0
────────────────────────────────────────
Binaries
✅ Node.js v20.11.0
✅ git version 2.43.0

Configuration
✅ ~/.node9/config.json found and valid
✅ ~/.node9/credentials.json — cloud credentials found

Agent Hooks
✅ Claude Code — PreToolUse hook active
⚠️ Gemini CLI — not configured (optional)
⚠️ Cursor — not configured (optional)

────────────────────────────────────────
All checks passed ✅
```

### `node9 explain`

Dry-runs the policy engine and prints exactly which rule (or waterfall tier) would block or allow a given tool call — useful for debugging your config:

```bash
node9 explain bash '{"command":"rm -rf /tmp/build"}'
```

```
Policy Waterfall for: bash
──────────────────────────────────────────────
Tier 1 · Cloud Org Policy SKIP (no org policy loaded)
Tier 2 · Dangerous Words BLOCK ← matched "rm -rf"
Tier 3 · Path Block –
Tier 4 · Inline Exec –
Tier 5 · Rule Match –
──────────────────────────────────────────────
Verdict: BLOCK (dangerous word: rm -rf)
```

---

## 🔧 Troubleshooting

**`node9 check` exits immediately / Claude is never blocked**
Expand Down
Loading