hacker-bob
CLAUDE.md99 starsChanged 3 months agoApache-2.0View on GitHub
This repository is the install source for the Hacker Bob /bob-evaluate Claude Code framework. If a user asks you to install this framework into a project: Do not assume this cloned repo is the user's active workspace unless they explicitly want that. Each installed workspace gets its OWN session root — ~/hacker-bob-sessions-<workspace>-<hash>, derived from the workspace path (stable across re-installs) and written as BOB_SESSIONS_ROOT into that workspace's .mcp.json server env and .claude/settings.json env. Bob elects one engine per session root,…
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- benchmark/AGENTS.mdAGENTS.md
- bob-debugSkill
- bob-diff-reviewSkill
- bob-evaluate-runnerSkill
- bob-statusSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
If a user asks you to install this framework into a project:
- Very specific: line 8
Run ./install.sh /absolute/path/to/target/project from the cloned repo.
- Very specific: line 10
After install, run Claude Code from the target project and use /bob-evaluate <target> (slash command) or the bob-evaluate skill.
- Distinctive: line 12
Do not assume this cloned repo is the user's active workspace unless they explicitly want that.
- Distinctive: line 16
If the user is developing this framework itself and wants to test changes in a local Claude Code workspace:
- Very specific: line 19
Use ./dev-sync.sh /absolute/path/to/test-workspace from this repo.
- Very specific: line 26
After dev-sync.sh, fully restart Claude Code in the test workspace, run /mcp, and smoke test bob_http_scan with target_domain: …
- Very specific: line 32
Run npm test before handing off changes.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hacker Bob Repo Instructions
This repository is the install source for the Hacker Bob /bob-evaluate Claude Code framework.
If a user asks you to install this framework into a project:
- Clone this repo locally.
- Run
./install.sh /absolute/path/to/target/projectfrom the cloned repo. - The installer copies the skills, update command shim, agents, rules, hooks, knowledge, bypass tables, MCP runtime, and generated settings. It merges
.mcp.jsonand.claude/settings.jsoninstead of overwriting unrelated config. - After install, run Claude Code from the target project and use
/bob-evaluate <target>(slash command) or thebob-evaluateskill.
Do not assume this cloned repo is the user's active workspace unless they explicitly want that.
Each installed workspace gets its OWN session root — ~/hacker-bob-sessions-<workspace>-<hash>, derived from the workspace path (stable across re-installs) and written as BOB_SESSIONS_ROOT into that workspace's .mcp.json server env and .claude/settings.json env. Bob elects one engine per session root, so concurrent engines in two workspaces require DISJOINT roots; the root is operator configuration read once at engine boot and frozen there, and no agent or MCP tool can change it. A workspace that was already installed and still has sessions in the shared ~/hacker-bob-sessions/ keeps using it rather than orphaning them — migrate with mv ~/hacker-bob-sessions/<target-domain> ~/hacker-bob-sessions-<workspace>-<hash>/ (the installer prints the exact path) and re-run the installer. Operator caution: disjoint roots make concurrent ENGINES safe, not concurrent evaluations of the SAME target — rate limits, circuit breakers, and request budgets are per-engine, so two engines on one target double the request volume it sees and neither one knows it.
If the user is developing this framework itself and wants to test changes in a local Claude Code workspace:
- Use
./dev-sync.sh /absolute/path/to/test-workspacefrom this repo. - This script backs up the target
.mcp.jsonand.claude/settings.json, runs the installer, recopies repo-backed MCP files includingmcp/tools/*.js, re-merges the dev config, and runsclaude mcp listunless--no-health-checkis supplied. - It is intended for a dedicated local test workspace because it overwrites Bob-owned runtime files after backing up the target MCP/settings files.
- After
dev-sync.sh, fully restart Claude Code in the test workspace, run/mcp, and smoke testbob_http_scanwithtarget_domain: "example.com"againsthttps://example.com.
Maintainer workflow:
- Run
npm testbefore handing off changes. Useful focused commands arenpm run test:mcp,npm run test:prompts,npm run test:install, andnpm run check:syntax. - Generated prompt/config surfaces must stay current. Run
node scripts/generate-agent-tools.jsafter role-bundle metadata changes andnode scripts/generate-hacker-bob-skill.jsafter orchestrator/auth bundle changes. TOOLS, MCP dispatch, role-bundle permissions, agent tool frontmatter, skill allowed-tools, Claude settings, and scope-hook registration must remain registry-driven.- Correctness-vocabulary tags (S*, I*, C*, X., Y-P, Y-D*, Y-R*) are
registry-driven via
mcp/core/invariant-registry.js. Every tag in the tree must resolve to a REGISTRY entry (or the frozen, only-shrinkingALLOWLIST_UNDOCUMENTEDbacklog), and every entry'senforced_byfile:symbol must exist. The collision-prone S/C/I families are matched only in anchored comment form (// I6), so a tag's enforcing anchor MUST be a comment.npm run check:invariant-registry(intest:prompts) is the orphan-check. Adding a tag means adding its entry AND anchoring the tag at the enforcing site. - Lifecycle hooks enforce contracts only. Evaluator
SubagentStopvalidates the final marker and structured handoff but must not advancepending_wave,evaluation_wave,explored, findings summaries, or phase state. - Markdown mirrors are human/debug artifacts. Chain evidence is MCP-owned in
chain-attempts.jsonl;report.mdremains the final human-facing agent-composed (via bob_compose_report) report. - Audit-graded session paths are MCP-rendered (Y-P13).
mcp/core/io/paths.jsexportsAUDIT_GRADED_PATHS(positive list —report.md,chains.md,evidence-packs.md,grade.md, verification-round mirrors, wave-handoff mirrors, claim-freeze snapshots, and the hash-bound JSONL ledgers) and theisAuditGradedPath(absolutePath, target_domain)predicate. Agents never call the Write tool on these paths; structured composition flows throughbob_compose_report(Y-D15b),bob_write_chain_rollup(Y-D15c),bob_amend_report(Y-P13a operator-amendment path),bob_write_evidence_packs,bob_write_grade_verdict,bob_write_verification_round, andbob_write_wave_handoff. Scratch artifacts (subdomains.txt,attack_surface.json,family_seeds.txt,surface-discovery-tools.txt) are explicitly NOT inAUDIT_GRADED_PATHSand remain agent-writable. - Evaluator briefs must stay bounded: array counts are capped, scalar strings are
capped or omitted, and agents should use auth through
bob_list_auth_profilesrather than reading secret files directly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

