What did your AI agent actually do? Find out.
Node9 sits between your AI agent and the tools it can use — discover what it's already been doing, protect against risky actions in real time, and review what happened over any time window.
Works with Claude Code · Codex CLI · Antigravity (agy) · GitHub Copilot CLI · Gemini CLI · Cursor · Windsurf · VSCode · Claude Desktop · Opencode · Pi · Hermes Agent · any MCP server.
- 🔍 Discover — scan every past AI session for credential leaks, agent loops, blocked operations, and every secret on disk an agent could reach right now
- 🛡 Protect — review or block risky commands before they run —
rm -rf,git push --force,DROP TABLE, credential reads,curl | bash, AWS/GitHub/Stripe key leaks - 📊 Review — period-windowed report (today / week / month / 90 days) — cost per agent, top tools, shields fired, blast radius
This is my own machine — 90 days while building Node9. Score 25/100, 5 credential files an AI agent could reach right now.
npx node9-ai scan # before installation, runs in ~10s, nothing uploads
node9 scan # after installation, same outputnode9 monitor opens an interactive terminal dashboard with two views:
[1]Realtime — live activity, approvals, security alerts, current risk score[2]Report — period-windowed summary: cost, top tools, shields fired, blast radius
Press [2] in monitor for a period-windowed summary. Toggle the window with [T]oday · [W]eek · [M]onth · [N]inety — same panels as the scan above, driven by your post-install audit log.
node9 monitor # press [2] for Report view
node9 report --period 7d # CLI form, no TUI# macOS / Linux
brew tap node9-ai/node9 && brew install node9
# or via npm (any platform)
npm install -g node9-ainode9 init # auto-wires all detected agents + MCP servers
node9 doctor # verify everything is wired correctlyRequires Node.js 18+.
Each shield is a curated rule set for a service or domain. Enable only what you need.
| Shield | What it catches | Enable |
|---|---|---|
project-jail |
Blocks reads of ~/.ssh, ~/.aws, .env, credentials via Bash and Read tool |
node9 shield enable project-jail |
bash-safe |
curl | bash, rm -rf /, disk overwrite, eval of remote |
node9 shield enable bash-safe |
postgres |
DROP TABLE, TRUNCATE, DROP COLUMN, DELETE without WHERE |
node9 shield enable postgres |
mongodb |
dropDatabase, drop(), deleteMany({}), index drops |
node9 shield enable mongodb |
redis |
FLUSHALL, FLUSHDB, CONFIG SET on a live server |
node9 shield enable redis |
aws |
S3 delete, EC2 terminate, IAM changes, RDS destroy | node9 shield enable aws |
k8s |
namespace delete, helm uninstall, cluster role wipes |
node9 shield enable k8s |
docker |
system prune, volume prune, rm -f containers |
node9 shield enable docker |
github |
gh repo delete, remote branch deletion, settings changes |
node9 shield enable github |
filesystem |
chmod 777, writes under /etc/, /boot/, /usr/ |
node9 shield enable filesystem |
mcp-tool-gating |
unapproved MCP tools silently activating new capabilities | node9 shield enable mcp-tool-gating |
node9 shield list # show all shields + status- Git — catches
git push --force,git reset --hard,git clean -fd - SQL — catches
DELETE/UPDATEwithoutWHERE,DROP TABLE,TRUNCATE - Shell — catches
curl | bash, unauthorizedsudo - DLP — flags AWS keys, GitHub tokens, Stripe keys, PEM private keys in any tool argument, file contents, or shell config (
~/.zshrc,~/.bashrc) - Response DLP — background scanner reads Claude's conversation history and alerts you if Claude wrote a secret in its response text
- Auto-undo — git snapshot before every AI file edit →
node9 undoto revert - Skills pinning — SHA-256 verification of installed Claude skills / plugins between sessions
Wrap any MCP server transparently. The agent sees the same server — Node9 intercepts every tool call.
{
"mcpServers": {
"postgres": {
"command": "node9",
"args": ["mcp", "--upstream", "npx -y @modelcontextprotocol/server-postgres postgresql://..."]
}
}
}Or just run node9 init — it wraps your existing MCP servers automatically.
🔐 MCP tool pinning — rug-pull defense
MCP servers can change their tool definitions between sessions. A compromised or malicious server could silently add, remove, or modify tools after you first trusted it — a rug pull attack.
Node9 pins tool definitions on first use:
- First connection — gateway records a SHA-256 hash of every tool's name, description, and schema
- Subsequent connections — hash is compared; if tools changed, the session is quarantined and every tool call is blocked until a human reviews and approves the change
- Corrupt pin state — fails closed (blocks), never silently re-trusts
node9 mcp pin list # show all pinned servers and hashes
node9 mcp pin update <serverKey> # remove pin, re-pin on next connection
node9 mcp pin reset # clear all pinsBeyond the three flow commands above (scan / monitor / report):
| Command | What it shows | When to use |
|---|---|---|
node9 blast |
What an AI agent can reach right now — files, creds, env | First thing to run on any machine |
node9 tail |
Live stream of every tool call (text-only, no TUI) | Piping into other tools, CI, logs |
node9 sessions |
Session history with prompt, tool trace, cost, snapshot | Reviewing a handoff or past work |
node9 dlp |
Credential-leak findings in Claude response text | Any time a DLP desktop alert fires |
node9 mask |
Redact plaintext secrets from local session history files | After a DLP finding — cleans local disk |
Plus a live HUD in your Claude Code statusline:
🛡 node9 | standard | [bash-safe] | ✅ 12 allowed 🛑 2 blocked 🚨 0 dlp | ~$0.43
📊 claude-opus-4-7 | ctx [████████░░░] 54% | 5h [██░░░░░░░░] 12% | 7d [█░░░░░░░] 7%
🗂 2 CLAUDE.md | 8 rules | 3 MCPs | 4 hooks
Node9 surfaces the signal. Here are the patterns worth knowing:
| Signal | Likely meaning |
|---|---|
Would have blocked ≥ 5 in a week |
Agent is attempting high-impact ops; shields are worth reviewing |
Single review-git-push rule >50% of findings |
Your own rule is firing as intended — not a risk, just supervision |
DLP finding in user-prompt tool |
You pasted a secret into your own prompt — rotate the key |
| Agent Loop ×50+ on same file | Agent stuck in edit/test/fix cycle — check context or slow down |
| MCP tool pin mismatch | Server changed its tools — review before re-trusting |
| Large MCP response warning | That server is inflating your context window for every subsequent turn |
Response DLP alert |
Claude wrote a secret in its response text — not blocked, rotate immediately |
DLP finding in tool-result |
Claude read a file containing a secret (.env, credentials) — rotate the key and run node9 mask |
DLP finding in [Shell] |
Plaintext secret in ~/.zshrc or ~/.bashrc — every AI session can see it |
One-off signals are normal; persistent patterns are what you act on.
from node9 import configure, protect
configure(agent_name="my-agent", policy="require_approval")
@protect("bash")
def run_command(cmd: str) -> str:
...Python SDK → · CI code review agent example →
- Scan reads raw agent history from
~/.claude/projects/,~/.gemini/tmp/,~/.gemini/antigravity-*/brain/,~/.copilot/session-state/,~/.codex/sessions/— no API calls, fully offline - Runtime intercepts tool calls via pre-execution hooks (Claude Code, Codex, Antigravity, GitHub Copilot CLI, Gemini CLI, Opencode, Pi) or via the MCP gateway (Cursor, Windsurf, VSCode, Claude Desktop). All decisions land in
~/.node9/audit.logatomically. - MCP gateway is a stdio proxy; intercepts
tools/list+tools/callJSON-RPC, forwards the rest - Policy engine uses mvdan-sh for bash AST analysis — defeats obfuscation via backslash escaping, variable substitution, eval of remote download
- Shadow repo for auto-undo lives at
~/.node9/snapshots/<hash16>/— never touches your.git
Config reference, smart rules, stateful rules, trusted hosts, approval modes, CLI reference — at node9.ai/docs.
- node9-python — Python SDK
- node9-pr-agent — GitHub Action that reviews PRs through Node9
Node9 Pro adds governance locking, SAML/SSO, central audit export, and VPC deployment. See node9.ai.
Apache-2.0
Built with ☕ and healthy paranoia.


![Node9 monitor [2] Report](https://private-user-images.githubusercontent.com/259619752/591828757-66c02a72-e477-443d-807f-d65a21d096cd.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODE5MDQ0MTEsIm5iZiI6MTc4MTkwNDExMSwicGF0aCI6Ii8yNTk2MTk3NTIvNTkxODI4NzU3LTY2YzAyYTcyLWU0NzctNDQzZC04MDdmLWQ2NWEyMWQwOTZjZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYxOVQyMTIxNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjc0MjllNjU2NmQwOWM1ZDJkMWFkNWNmOWQ5MzA5NWM5N2QyOWJlNzk4YzQ2YTMwNmU3NzFlMzIxMjg3Y2JkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.P3v3vcSctlA7k8K7CbGGYmzrQVFoAQk-9bDAq2gmFCg)