Skip to content

Why patronum

AI coding agents read everything in your project by default — .env files, SSH keys, AWS credentials, API tokens. Not maliciously, just helpfully. If you haven't explicitly restricted what your agent can access, your credentials are in scope.

agento-patronum exists to give you explicit, observable control over what's off-limits.

The numbers

The risk isn't theoretical. Research data shows AI-assisted development amplifies secret exposure:

  • 3.2% of AI-assisted commits contain leaked secrets — double the 1.6% human baseline (GitGuardian State of Secrets Sprawl 2026)
  • 6.4% in GitHub Copilot-active repos — four times the human rate (GitGuardian)
  • AI-service credential leaks surged 81% year-over-year, with 1.27 million detected in 2025 alone (TechRadar)
  • 24,008 unique secrets found in MCP config files on public GitHub — 2,117 still valid at time of discovery (GitGuardian)
  • Malicious repos can execute with the user's shell permissions, putting credentials in dotfiles directly in scope (PromptArmor)

The trend is clear: as AI writes more code, more secrets end up where they shouldn't.

Why explicit control matters

Most tools — including Claude Code — offer built-in access controls like permissions.deny in settings.json. These may well work correctly. But there's a fundamental difference between a rule you configure and hope is interpreted the way you expect, and code you own and can observe executing.

With settings.json deny rules, you write a pattern and trust the runtime to enforce it. You can't see how it's interpreted. You can't verify it ran. If something slips through, there's no log to tell you what happened. Community reports have raised questions about edge cases — across file reads, writes, Bash commands, sub-agents, and symlink traversal. But even without those reports, the core argument stands:

Hooks give you code you control. Every interception is explicit. Every blocked call is logged. You can read the source, verify the behavior, and know exactly what happened. That's a different kind of confidence than trusting a black-box rule engine.

What makes patronum different

agento-patronum is deliberately minimal. That simplicity is the point.

  • No build step — Node.js scripts and AI agent skills. Nothing to compile, no toolchain to install.
  • No daemon — runs only when Claude Code runs. Nothing in your background processes.
  • No account — no signup, no API key, no telemetry, no data collection.
  • No data leaves your machine — everything is local pattern matching against a JSON file.
  • Two commands to install — marketplace add + plugin install. Done.

It should work the same way in a personal side project and in a 500-engineer monorepo — without any extra setup or configuration overhead. Config is a single JSON file. Code you can audit in a few minutes.

Further reading