Agent Spill — Git skill for Claude Code
Find the secrets your coding agent already spilled.
How to install Agent Spill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open maxya/agent-spill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Spill does
Find the secrets your coding agent already spilled. Local-first scanner for credentials saved in agent settings files, shell history, and transcripts — git history included. Never uploads or prints a secret.
Alternatives in Git
- Destructive Command Guard — The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by ag 869 ★
- MiniCode Roadmap — MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t 388 ★
- Cchistory — by eckardt - Like the shell history command but for your Claude Code sessions 103 ★
README
Find what your coding agent already spilled.
When you click 'Yes, and don't ask again' in Claude Code (or another coding agent), the full approved command — secrets included — gets saved into a settings file. agent-spill scans your own repos for those saved credentials: settings files, shell history, transcripts, and git history, across every agent folder. It runs entirely on your machine, never uploads anything, and never prints a secret — findings show a masked prefix and a length only.
Install and run
Requires Node.js 22.13 or newer. There are no runtime dependencies.
npx agent-spill # scan the current directory tree + this machine's agent stores
npx agent-spill --root ~/code # scan a tree of repos (repeatable)
npx agent-spill --json > report.json
Useful flags:
--root search under this directory (repeatable; default: cwd)
--no-home skip home-directory agent stores and shell history
--no-history working tree only (no git history)
--ci preset: --no-home --fail-on committed; warns on shallow clones
--fail-on local | at-risk | committed | pushed (default: at-risk)
--min-confidence high | medium | low (default: medium)
--json machine-readable report on stdout (schema 1)
--verbose expand LOCAL findings and list every location
--max-depth directory walk depth under each root (default: 8)
Exit codes: `0` nothing at or above `--fail-on`, `1` usage or runtime error, `2` findings at or above `--fail-on`.
What it scans
**In-repo targets** (found under `--root`, in the work tree and in git history):
| Agent | Paths | Format |
|---|---|---|
| Claude Code | .claude/settings.json, .claude/settings.local.json |
json |
| Claude Code | .mcp.json |
json |
| Cursor | .cursor/mcp.json, .cursor/*.json |
json |
| VS Code / Copilot | .vscode/mcp.json |
json |
| Gemini CLI | .gemini/settings.json, `.gemini/poli |
Related Skills
Agentspill
Find secrets coding agents leave on disk: Claude Code 'don't ask again' rules, MCP configs, memory files, tran
Secrets
Find leaked credentials in code, config, and git history — and tell you which ones must be rotated, not just d
Overnight Receipts
For developers who let Claude Code run unattended, it reads the session logs already on disk plus git branches
Find Unfinished
Find work left half-done by interrupted agent sessions — reconstruct intent from recent session transcripts an
Secret Crusade
Unleash parallel Secret Purist agents to scan the codebase and git history for leaked credentials, API keys, a
Check Secrets
Scan the working tree and recent git history for accidentally-committed BFL API keys, webhook secrets, or othe
Related Agents
Appsec Secrets Scanner
Use proactively to hunt for hardcoded secrets, credentials, tokens, and high-entropy strings across the entire
Secret Scanner
PYA specialist spawned by the /pya orchestrator. Finds hardcoded and leaked credentials in an untrusted reposi
Secrets Auditor
Credential scanner — scans staged diff and working tree for secrets, tokens, and credentials. Groups findings