Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/s0ld13rr/pentestcode/claude-mdgit clone --depth 1 https://github.com/s0ld13rr/pentestcodeWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.08313 | $0.08313 |
| Opus 5 | $0.04156 | $0.04156 |
| Sonnet 5 | $0.01663 | $0.01663 |
| Haiku 4.5 | $0.00831 | $0.00831 |
Grade A, and why
pentestcode CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
What This Is
PentestCode — AI pentesting agent, hard fork of OpenCode (dev branch, MIT). OpenCode — coding agent (183k stars). We stripped code-editing focus and rebuilt it for penetration testing.
Stack: TypeScript, Bun, Effect library, Turbo monorepo. TUI: React/Ink (via @opentui). LLM: ai-sdk (20+ providers). DB: SQLite (drizzle-orm).
Project Structure
opencode-fork/ # Will be renamed to pentestcode
├── packages/
│ ├── core/src/ # Domain logic, tools, sessions
│ │ ├── engagement/ # NEW: pentest state (schema, store, context)
│ │ ├── session/ # Session management (runner, compaction)
│ │ ├── tool/ # Tool registry + built-in tools
│ │ ├── system-context/ # Context sources injected into prompts
│ │ ├── skill/ # Skill discovery + loading
│ │ └── agent.ts # Agent schema, default ID = "pentest"
│ ├── opencode/src/ # Main application package
│ │ ├── agent/agent.ts # Agent definitions (pentest/recon/scanner/...)
│ │ ├── session/prompt/*.txt # System prompts per agent
│ │ ├── session/system.ts # Prompt assembly (uses pentest.txt)
│ │ ├── session/prompt.ts # Session runner loop
│ │ ├── tool/ # Tool implementations (registry.ts is master)
│ │ ├── skill/ # Skill discovery paths
│ │ └── cli/ # CLI commands (yargs)
│ ├── llm/ # LLM client abstraction (ai-sdk)
│ ├── tui/ # Terminal UI (React/Ink)
│ ├── server/ # HTTP server + SSE events
│ ├── schema/ # Shared type definitions
│ ├── protocol/ # HTTP API contracts
│ ├── plugin/ # Plugin system
│ └── client/ # Generated SDK client
├── skills/
│ ├── phases/ # Phase checklists (6 files)
│ ├── services/ # Service knowledge packs (9 files)
│ └── playbooks/ # Methodology playbooks (4 files)
└── ...
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 464 lines · 8,313 tokens per session scan A 6868cfa0bd5b
pentestcode CLAUDE.md is an instructions file published in the GitHub repository s0ld13rr/pentestcode (594 stars, last pushed 11d ago), licensed MIT. It adds 8,313 tokens to every session, about $0.0416 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
openagent CLAUDE.md
Claude Code instructions for the-open-agent/openagent, covering claude.md, commands, architecture, backend (go / beego) and frontend (react).
E2B CLAUDE.md
Claude Code instructions for e2b-dev/E2B: Use pnpm for node and uv for python to install and update dependencies. Run pnpm run format, pnpm run lint and pnpm run typecheck before committing changes. When modifying the SDK packages, ensure equivalent changes are applied to both JS as well as sync and async Python…
AstrBot AGENTS.md
AGENTS.md instructions for AstrBotDevs/AstrBot, covering setup commands, core, dashboard(webui), pre-commit setup and dev environment tips.
AstrBot copilot-instructions.md
Copilot instructions for AstrBotDevs/AstrBot, covering astrbot development instructions, working effectively, bootstrap and install dependencies, running the application and dashboard build (vue.js/node.js).
lobehub AGENTS.md
AGENTS.md instructions for lobehub/lobehub, covering lobehub development guidelines, tech stack, agent skills, project structure and spa routes and features.
dify AGENTS.md
AGENTS.md instructions for langgenius/dify, covering agents.md, repository gotchas and frontend workflow.