~ / rigs / tianhaogutum / agentwrench

tianhaogutum/agentwrench

Find the tokens and breakages your Claude Code, Codex and MCP setup silently costs you, then fix them. Offline CLI.

↗ GitHub ★ 1 Apache-2.0 updated 6d ago project Claude CodeCodex
field: AI / ML
share on X
ARCHETYPE
MCP Hoarder
Six or more MCP servers wired in. Every tool, always in context.
CONTEXT TAX · EVERY TURN
up to ~38.0k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add github -e GITHUB_<redacted> -- npx -y @modelcontextprotocol/server-github
$ claude mcp add --transport http remote.tools https://mcp.example.test/mcp -H 'X-Region: YOUR_VALUE'
$ claude mcp add --transport http linear https://mcp.linear.app/mcp -H 'Authorization: YOUR_VALUE'
$ npx degit tianhaogutum/agentwrench/examples/scan/demo-home/.claude ./rig-agentwrench  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add github -e GITHUB_<redacted> -- npx -y @modelcontextprotocol/server-github
$ claude mcp add --transport http remote.tools https://mcp.example.test/mcp -H 'X-Region: YOUR_VALUE'
$ claude mcp add --transport http linear https://mcp.linear.app/mcp -H 'Authorization: YOUR_VALUE'

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 17.0k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf *)",
      "Bash(rm -rf:*)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Read(./secrets/**)",
      "Bash(git reset --hard*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(npm publish:*)",
      "Bash(git reset --hard:*)",
      "Bash(git clean *)",
      "Bash(git rebase *)"
    ]
  }
}

MCP servers (7)

serversourceest. tokens
GitHub MCP · "github"
env: GITHUB_TOKEN
npm 18.0k
mcp.example.test · "remote.tools" remote · remote 2.5k
Linear remote · remote 5.5k
Sentry
env: SENTRY_AUTH_TOKEN
local / custom 4.5k
playwright local / custom 2.5k
issue-tracker local / custom 2.5k
postgres
env: DATABASE_URL
local / custom 2.5k

Similar rigs

copied ✓