Any agent writes the code.
ANVIL verifies it before merge.
Claude Code, Codex, Cursor, Antigravity, or OpenCode write the changes. ANVIL checks blast radius, policy-as-code, secret scans, and test impact locally on your machine — before code reaches a pull request. Deterministic, local-first, zero code sent to LLMs.
Your repo. Verified on every pull request.
Inspect change risk, blast radius, security findings, and downstream test targets before committing. No guessing, no regressions.
gate --diff upon task completion.- Recovered crypto token verification logic without source
- Zero closed-source proprietary blobs copied to project
- Authoring pure TypeScript replacement with constant-time verify
- Strict adherence to memory safety and zero eval() operations
- Will run
anvil gate --diffagainst unstaged changes - GitHub Action PR comment bot prepared to post SARIF findings
- Downstream modules impacted: src/mcp/index.ts, src/gate/index.ts
- Suggested test verification target: tests/ast-parser.test.ts
- Zero breaking changes to public CLI exports
- Documentation-only change; zero downstream blast radius
- Target verified: AGENTS.md
anvil undo.anvil binary & anvil_binary_intelligenceANVIL scans workspaces deterministically for compiled binaries, web bundles, source maps, mobile archives, databases, and captures — classifying magic-byte headers locally without executing binaries.
anvil binary, dashboard cockpit tabs, and read-only MCP tool summaries.
sourcesContent blocks for Bearer tokens or credentials before release bundles ship.- Bounded O_RDONLY | O_NOFOLLOW file reads with symlink escape prevention
- Direct CLI (
anvil binary --json) and MCP (anvil_binary_intelligence) integration
- Loopback API served safely on
/api/binary/assets - Aggregated into unified cockpit telemetry
49 Specialist Roles. 76 Catalog Skills. 34 Commands.
ANVIL ships a compact, high-signal harness toolkit (plus 26 language rule sets and 51 workspace skills) with deterministic guardrails and zero bloated packs.
Specialist Agent Roles
From System Architects and Rust Concurrency Auditors to Next.js App Router Specialists and Build Error Fixers. Each agent possesses bounded roles and concise verified prompts.
Behavioral Guardrails & Sandboxing
Strict development lifecycle enforcement: Plan ➔ Test ➔ Code ➔ Gate. Stop hooks armed locally in Claude Code, Cursor, and Antigravity prevent rogue modifications before review.
Persistent Instincts & Memory
Captures learned repository quirks, false positive exceptions, and architectural decisions in .anvil/memory/ so agents never repeat past mistakes across sessions.
Magic-Byte Classification. Source Map & Capture Audits.
ANVIL inspects workspaces purely in TypeScript for compiled binaries, WASM, mobile packages, databases, source maps, and HTTP captures without shipping external disassemblers.
Native Magic-Byte Classification
Inspects headers across PE/COFF, ELF, Mach-O (32/64/Universal), WebAssembly, ZIP/APK/JAR archives, and SQLite 3 databases safely with symlink guards.
CLI & Read-Only MCP Integration
Run anvil binary . locally or invoke anvil_binary_intelligence from any coding agent to inspect binary footprint and artifact boundaries.
Provenance Rules (ANVIL-BIN-001..003)
Flags native binaries tracked directly inside source trees, credentials exposed in source map sourcesContent, and unredacted tokens in HAR/PCAP captures.
Verified Loop. Anti-Fake Success. 95/100 Grade A Scorecard.
AI coding agents shouldn't be trusted just because they claim their work is complete. ANVIL evaluates what an agent actually did — detecting deleted tests, intercepting dangerous operations, and verifying true code correctness.
- You ask the agent to fix an authentication bug.
- The agent changes login code, but
tests/auth.test.tsfails. - The agent deletes the failing test or adds
it.skip(...). - The agent runs remaining tests: 100% Pass (Green)!
- The agent reports: "Fixed! All tests passed." ➔ Silent bug in production!
- ANVIL takes an initial baseline checksum of all test suites.
- Integrity gate inspects git diff for deleted tests or skip markers.
- Instantly flags: Integrity Issue: deleted-test
- Halts execution with status: NEEDS-REVIEW.
- Signs unforgeable SHA-256 receipt: Zero fake passes ever merge!
1. Verified Loop
Forces your coding agent to iterate until actual checks pass. Contains anti-tamper guards that catch deleted test files, skip markers (it.skip), and relaxed linters.
2. ANVIL Guard
Runtime interceptor in Claude Code, Cursor, Codex, and Gemini. Blocks dangerous operations like recursive deletions (rm -rf /), token theft, and unpinned package installations.
3. Shield v3 (60 Rules)
Static harness security audit scanning instructions, permissions, MCP configs, hooks, and prompt injections. Exports standard SARIF reports for GitHub Code Scanning.
4. Agent Race
Races multiple coding agents (Claude 3.7 vs GPT-4.5 vs Gemini) on the exact same task in isolated Git worktrees. Ranks candidates deterministically based on test passes and speed.
5. Cross-Harness MCP Sync
Synchronizes pinned MCP tools and context configurations across 10+ AI tools (Claude, Cursor, Codex, Windsurf, Copilot, Gemini) while keeping credentials strictly masked.
6. 95/100 Scorecard
Evaluates your repository's AI harness readiness across Installation, Guardrails, Deterministic Gates, Memory, and CI/CD Automation with zero guesswork.
GitHub App. Automated PR Bot. SARIF Security Export.
Connect ANVIL directly to your GitHub repositories. anvil-workbench[bot] comments on pull requests with passing gate scores, security audit summaries, and diff optimizations.
1-Click GitHub App Install
Install across entire GitHub organizations or individual repositories in seconds. Zero cloud servers needed; works directly with GitHub Actions runners.
Automated PR Review Bot
Posts rich status reports directly on pull requests. Highlights downstream blast radius files, suggests safer AST replacements, and blocks regressions before merge.
Native SARIF Security Reports
Exports standard OASIS SARIF v2.1.0 output compatible with GitHub Code Scanning alerts, GitLab SAST, and SonarQube dashboards with zero third-party telemetry.
Agent writes. ANVIL verifies. PR gates.
Any AI coding assistant writes the code. ANVIL evaluates deterministic AST proof, blast radius, secrets, and tests locally on your machine before code ever hits a pull request.
1. Any Agent Writes Code
Claude Code, Codex, Cursor, Antigravity, or OpenCode implement features, refactor code, or fix bugs. Agents use ANVIL's read-only MCP tools (like anvil_map_architecture) to understand imports and dependencies in <1.4k compact tokens instead of flooding context with raw files.
2. ANVIL Verifies Locally
Before changes are committed, ANVIL evaluates blast radius (anvil_change_risk), secret scanner (anvil_security_audit), and quality hygiene deterministically in milliseconds. Zero source code or tokens are ever sent to external LLMs.
3. PR Gate Enforces Rules
anvil gate verifies baseline content hashes, runs test targets, exports standard SARIF reports, and posts automated PR review comments in GitHub Actions. Unapproved architectural drift or secret leaks are blocked before merging.
Detailed verification pipeline from diff to merge
anvil init in one command. ANVIL prepares local baseline storage in .anvil/ with zero telemetry.package.json, tsconfig, requirements.txt, or Cargo.toml to resolve languages and test runners.anvil clean --undo.Why pay $150+/mo when ANVIL is local & $0?
Cloud AI review tools burn thousands of tokens per file read, leak your proprietary code, and invent hallucinated issues. ANVIL evaluates deterministic AST proof directly on your machine.
| Capability / Dimension | ANVIL Engineering Workbench | Cloud LLM Code Review SaaS |
|---|---|---|
| Monthly Cost | $0 forever (Open source) | $150 to $500 / month per seat |
| Token Usage per Review | < 1,400 tokens (Compact AST summary) | 150,000+ tokens (re-reads every file) |
| Code & Secret Privacy | 100% on your machine (0 KB uploaded) | Transmitted to 3rd party AI APIs |
| Review Determinism | AST syntax trees & policy hashes (0 hallucinations) | Probabilistic LLM (hallucinates fake bugs) |
| Downstream Blast Radius | Exact import graph edge calculation | Heuristic guess or unsupported |
| Rollback & Clean Protection | Transactional snapshot undo (0 data loss) | None (edits applied without rollback) |
| Multi-Language Support | TypeScript, Python, Go, Rust, Java, C++, Docker | Limited language parsers |
| Execution Latency | < 500 ms local AST analysis | 30 to 60 seconds cloud roundtrip |
Bring the stack you love.
ANVIL parses native syntax trees and package manifests across languages and AI harnesses out of the box.
The good parts, already switched on.
Every tool in ANVIL was engineered to solve real friction in AI coding workflows without adding bloat or cloud dependencies.
Architecture Mapping
Discover entry points, module graphs, and circular dependency rings in <1.5k compact tokens instead of flooding your context with 150k lines of raw code.
Pre-Commit Quality Gate
Lock baseline content hashes and enforce test, secret, and formatting rules. Stop regressions before code ever hits main branch.
Blast Radius Calculation
Trace uncommitted git diffs through AST import trees to surface affected downstream files and recommended test execution targets.
Transactional Cleaner
Prune caches, logs, and orphans safely with explicit snapshot backups and instant rollback. 100% data loss prevention guaranteed.
Model Context Protocol
Local stdio MCP server exposing 16+ deterministic tools directly to Claude Code, Cursor, and Antigravity with zero cloud configuration.
Self-Healing Doctor
Diagnostic suite verifying Node runtime, Git, Docker, and workspace permissions, with automatic environment scaffolding.
Never leave the terminal.
The ANVIL CLI does everything the dashboard does — inspect, map, clean, evaluate risk, gate PRs — from the directory you're already in. Published on npm, free, and open to everyone.
Zero setup friction. Run in 60 seconds.
Test your repo right now with npx, install globally, configure your agent MCP server, or drop the verification gate directly into your GitHub Actions workflow.
Run the policy and security gate on any repo instantly:
Install the CLI and verify before every git commit:
Register ANVIL's local MCP tools with your agent:
Drop into .github/workflows/verify.yml:
Start free. Stay in control.
ANVIL is 100% open source under permissive MIT/Apache licenses. Run it locally or self-host without subscription lock-in.
- 100% local execution on your hardware
- Complete CLI & MCP tool suite (16+ tools)
- Multi-language AST architecture mapping
- Pre-commit quality gate & baseline hashes
- Zero cloud token leaks or data telemetry
- Self-hosted dashboard & SSE server
- Air-gapped CI/CD pipeline integration
- Custom org-wide policy enforcement rules
- Multi-repo baseline synchronization
- Full source code auditability
- End-to-end encrypted baseline vault
- Cross-agent review historical analytics
- GitHub App automated PR commenting
- Priority support & agent templates
Questions before you begin.
Everything you need to know about ANVIL's local-first architecture and agent integration.
anvil mcp setup to automatically configure Claude Code, Cursor, or Windsurf. Agents can then call anvil_map_architecture, anvil_change_risk, and anvil_security_audit directly before making edits.
anvil clean --fix creates an atomic snapshot backup in .anvil/backups/ with explicit backup IDs and manifest checksums. If you ever want to revert an operation, run anvil clean --undo <backupId> to instantly restore all files with zero data loss.
Deterministic AST verification completed in 310ms for commit
2ffa207. Zero secret leaks or unapproved structural drift detected.src/core/auth.ts➔src/mcp/server.ts