Zenno
Security guards, disciplined multi-agent orchestration, and persistent memory — for Claude Code and opencode.
Zenno watches what agents do and keeps them honest: four Shield guards block secret leaks, confidential-file reads, risky installs, and self-modification of Zenno itself; hard caps stop runaway subagent fan-out; a memory layer carries project knowledge across sessions; and a doctor, cost tracker, and trace exporter keep the whole thing observable. One core/ powers both hosts — pick your editor.
- 432 tests, all passing (
npm test — pure Node.js, zero dependencies)
- MIT licensed, by Keylhan Paumard--André
What it does
Shield guards (PreToolUse hooks)
| Guard | Blocks |
|---|
| Secret Scanner | Commits/pushes containing high-confidence secrets (AWS keys, GitHub PATs, private key blocks, Slack/Stripe tokens) plus high-entropy strings |
| Confidential File Guard | Reads of sensitive files (.env, *.pem, … — configurable deny/allow patterns) |
| Provenance Guard | Global installs, typosquat packages, and very-recently-published packages |
| Haruspex Guard | Any write to Zenno's own files (guard logic, hooks.json, config.json) unless explicitly overridden |
Guards fail safe (deny on uncertainty where it matters), never auto-fix, and every override is a deliberate human action — never something negotiated mid-conversation.
Agent Team caps
Hard caps on subagent spawning (default: depth 3, concurrent 8, 10 per task) plus two fixed-size team templates (plan-stress-test, bounded-research) as a disciplined alternative to open-ended fan-out.
Memory, telemetry, and the rest
- Memory layer — episodic/semantic/working memory with git-versioned snapshots and rollback
- Repo graph — ctags-based symbol index with staleness nudges
- Telemetry & trace export — OTLP-style spans, raw session export with mandatory secret redaction
- Config export/import — schema-validated, diffed, security-relevant changes need
--confirm
zenno doctor — 30+ health checks including live sanity runs of every guard
- Cost tracker / failure journal — token attribution per session, cap near-miss warnings, one unified append-only audit journal
Requirements
- Node.js 20+ (hooks are plain Node scripts, tests use the built-in
node:test runner; developed and tested with Node v24)
- ripgrep (
rg) — secret scanning
- universal-ctags (
ctags) — repo graph
- git — memory snapshots, journal checkpointing
# Arch
sudo pacman -S ripgrep universal-ctags git
# Debian/Ubuntu
sudo apt install ripgrep universal-ctags git
Installation
Claude Code
Add the marketplace, then install the plugin (user scope by default):
/plugin marketplace add keypaa/zenno
/plugin install zenno@zenno-marketplace
If it reports Run /reload-plugins to activate, run /reload-plugins. Verify under /plugin — zenno should be listed with no errors.
On the next session start in any repo, bootstrap runs automatically (creates zenno/.initialized + zenno/config.json plus memory scaffolding). To contain the blast radius while evaluating, install with project scope instead of user scope.
opencode
Same repo, different host — the opencode/ overlay reuses core/ so the same guards fire. Works with opencode v2 (native Plugin.define entrypoint; on 1.18.29+ the guards and lifecycle hooks still load, tools need v2).
Add zenno to your opencode.json (global ~/.config/opencode/opencode.json or project-local):
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["zenno@git+https://github.com/keypaa/zenno.git"]
}
Local development (clone + directory path — v2 requires a directory, not a file):
{ "plugins": ["./opencode"] }
Install the opencode binary via mise (recommended — pins per-project):
mise install opencode
mise which opencode # → ~/.local/share/mise/installs/opencode/latest/opencode
mise where opencode # → ~/.local/share/mise/installs/opencode/1.18.30 (actual version dir)
Or the standalone installer. Requires opencode ≥ 2.0 (guards also load on 1.18.29+, minus the tools).
Zenno exposes the same 8 tools on opencode (doctor, cost-report, memory, graph, trace-export, config export/import, bounded-research, plan-stress-test) — same core/ implementations, same zenno/ repo artifacts (config, journal, doctor-nudge on session start).
Troubleshooting