maxya

Agent Spill — Git skill for Claude Code

Git community

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