nemesis-auditor
CLAUDE.md244 starsChanged 9 months agoMITView on GitHub
NEMESIS is an iterative deep-logic security audit agent for Claude Code. It orchestrates two sub-agents in an alternating feedback loop to find bugs that neither can catch alone. Language-agnostic -- works on Solidity, Move, Rust, Go, C++, Python, TypeScript, or any codebase. When /nemesis is triggered, the nemesis-auditor orchestrator automatically loads and runs:
In this repository3 other files it gives its agents.
- feynman-auditorSkill
- nemesis-auditorSkill
- state-inconsistency-auditorSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Start Claude Code: claude
- Very specific: line 45
When /nemesis is triggered, the nemesis-auditor orchestrator automatically loads and runs:
≈ “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
Nemesis Agent
What This Is
NEMESIS is an iterative deep-logic security audit agent for Claude Code. It orchestrates two sub-agents in an alternating feedback loop to find bugs that neither can catch alone. Language-agnostic -- works on Solidity, Move, Rust, Go, C++, Python, TypeScript, or any codebase.
How to Use
- Copy the
.claude/folder into your target project (or run Claude Code in this directory) - Start Claude Code:
claude - Type
/nemesisto launch the full iterative audit
Available Commands
| Command | Action |
/nemesis | Full Nemesis audit (iterative back-and-forth until convergence) |
/nemesis --pass1 | Pass 1 only -- run full Feynman Auditor |
/nemesis --pass2 | Pass 2 only -- run full State Inconsistency Auditor on existing Pass 1 output |
/nemesis --continue | Continue iterating from where the last pass left off |
/nemesis --contract [name] | Full Nemesis audit on a single contract |
/feynman | Run the Feynman Auditor standalone |
/state-audit | Run the State Inconsistency Auditor standalone |
How It Works
PASS 1: Feynman Auditor (full run)
Questions every line. Exposes assumptions. Flags suspects.
| feed forward |
PASS 2: State Inconsistency Auditor (full run, enriched by Pass 1)
Maps coupled state. Finds mutation gaps. Uses Feynman suspects as targets.
| feed forward |
PASS 3+: Alternating targeted passes until convergence
Each pass interrogates the previous pass's new findings.
Max 6 passes. Nothing survives.Agent Composition
When /nemesis is triggered, the nemesis-auditor orchestrator automatically loads and runs:
- Feynman Auditor (
.claude/skills/feynman-auditor/SKILL.md) -- Deep business logic bug finder using the Feynman technique. Questions every line, every ordering choice, every guard presence/absence. - State Inconsistency Auditor (
.claude/skills/state-inconsistency-auditor/SKILL.md) -- Maps every coupled state pair, every mutation path, and every gap where one side updates without the other. - Iterative Fusion -- Alternates between the two until no new findings emerge.
Output
- Per-pass findings:
.audit/findings/feynman-pass[N].mdand.audit/findings/state-pass[N].md - Final consolidated:
.audit/findings/nemesis-verified.md - Each finding tagged with discovery path (Feynman-only / State-only / Cross-feed)
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.

