agentleFS
0xiehnnkta0xiehnnkta/nemesis-auditor/CLAUDE.md

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:

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
  1. Very specific:

    Start Claude Code: claude

    line 10
  2. Very specific:

    When /nemesis is triggered, the nemesis-auditor orchestrator automatically loads and runs:

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

  1. Copy the .claude/ folder into your target project (or run Claude Code in this directory)
  2. Start Claude Code: claude
  3. Type /nemesis to launch the full iterative audit

Available Commands

CommandAction
/nemesisFull Nemesis audit (iterative back-and-forth until convergence)
/nemesis --pass1Pass 1 only -- run full Feynman Auditor
/nemesis --pass2Pass 2 only -- run full State Inconsistency Auditor on existing Pass 1 output
/nemesis --continueContinue iterating from where the last pass left off
/nemesis --contract [name]Full Nemesis audit on a single contract
/feynmanRun the Feynman Auditor standalone
/state-auditRun 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:

  1. 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.
  2. 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.
  3. Iterative Fusion -- Alternates between the two until no new findings emerge.

Output

  • Per-pass findings: .audit/findings/feynman-pass[N].md and .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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.