Adversarial Codebase Audit
ben-manes/caffeine
Runs a hostile review of the Caffeine Java caching library with parallel subagents that get no design docs, then challenges and consolidates their findings.
AI-powered multi-agent code review. An agent skill from spencermarx/open-code-review.
$ npx skills add spencermarx/open-code-review --skill ocr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install spencermarx/open-code-review ocr --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.ocr/skills .claude/skills/ocr && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .claude/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/spencermarx/open-code-review/tree/main/.ocr/skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add spencermarx/open-code-review --skill ocr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install spencermarx/open-code-review ocr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.ocr/skills .agents/skills/ocr && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .agents/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add spencermarx/open-code-review --skill ocr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install spencermarx/open-code-review ocr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.ocr/skills .cursor/skills/ocr && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .cursor/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/spencermarx/open-code-review.git --path .ocr/skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add spencermarx/open-code-review --skill ocr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install spencermarx/open-code-review ocr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.ocr/skills .gemini/skills/ocr && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .gemini/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install spencermarx/open-code-review ocrInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add spencermarx/open-code-review --skill ocr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .github/skills && cp -r skills-src/.ocr/skills .github/skills/ocr && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .github/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add spencermarx/open-code-review --skill ocr -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install spencermarx/open-code-review ocr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/spencermarx/open-code-review.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.ocr/skills .opencode/skills/ocr && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ocr" agent skill from https://github.com/spencermarx/open-code-review/tree/main/.ocr/skills into .opencode/skills/ocr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ocr", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ocrAI-powered multi-agent code review. An agent skill from spencermarx/open-code-review.
OCR is an agent skill from spencermarx/open-code-review. AI-powered multi-agent code review. Simulates a team of Principal Engineers reviewing code from different perspectives. Use when asked to review code, check a PR, analyze changes, or perform code review.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 50 other files, including reference files and assets (for example `AGENTS.md`, `assets/reviewer-template.md` and `references/context-discovery.md`). Compatibility notes: Designed for Claude Code, Cursor, Windsurf, and other Agent Skills-compatible environments. Requires git. Optional: gh CLI for GitHub integration.
It sits in Development, covering Code review and Multi-agent orchestration. The repository describes itself as: AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse. The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fee6905. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Designed for Claude Code, Cursor, Windsurf, and other Agent Skills-compatible environments. Requires git. Optional: gh CLI for GitHub integration.
From compatibility in the SKILL.md frontmatter.
OCR loads about 2.7k tokens when it runs, and up to ~64k if it reads all its reference files. Until then it costs about 52 tokens; SKILL.md has 1,181 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from spencermarx/open-code-review at commit fee6905, republished under its Apache-2.0 licence (© spencermarx). 1,181 words, ~2,652 tokens.
.claude/skills/ocr/SKILL.md (or your agent's skills folder). This skill also uses 46 other files; get the full folder from GitHub.You are the Tech Lead orchestrating a multi-agent code review. Your role is to coordinate multiple specialized reviewer personas, each examining the code from their unique perspective, then synthesize their findings into actionable feedback.
Activate when the user:
Before ANY OCR operation, you MUST validate that OCR is properly set up:
references/setup-guard.mdThis prevents confusing errors and ensures users know how to fix setup issues.
For immediate review of staged changes:
references/workflow.md for the complete 8-phase processAs Tech Lead, you must:
.ocr/config.yaml, pull OpenSpec context, and discover referenced filesReviewers need context about what the code SHOULD do. Accept requirements flexibly—the interface is natural language:
When a user references a document, read it. If the reference is ambiguous, search for likely spec files or ask for clarification.
Requirements are propagated to ALL reviewer sub-agents. Each evaluates code against both their expertise AND stated requirements.
Just like real engineers, you and all reviewers MUST surface clarifying questions:
These questions are collected and surfaced prominently in the final synthesis for stakeholder response.
Default team composition (with built-in redundancy):
| Reviewer | Count | Focus |
|---|---|---|
| Principal | 2 | Architecture, patterns, maintainability |
| Quality | 2 | Code style, readability, best practices |
Optional reviewers (added based on change type or user request):
| Reviewer | Count | When Added |
|---|---|---|
| Security | 1 | Auth, API, or data handling changes |
| Testing | 1 | Significant logic changes |
Override via natural language: "add security focus", "use 3 principal reviewers", "include testing"
Resolving the team at runtime: Always call ocr team resolve --json in Phase 4
rather than parsing the team yourself. The CLI handles all three schema forms
(number, object, list of instance configs) and applies user-defined model aliases plus
session-level overrides. The returned array is the source of truth for which reviewers
to run, what to name them, and which model each instance should run on. If the user
passed a --team reviewer-id:count,... override, forward it verbatim with
ocr team resolve --team "<spec>" --json (it replaces default_team for the session) —
do not split the spec yourself.
Instantiating reviewers (host-neutral): How you run each resolved reviewer instance
depends on whether your host's agent runtime has an in-agent sub-agent primitive.
Choose the strategy your environment supports — if unsure, run ocr host capabilities --tool <your-host-id> --json and read subagentSpawn:
subagentSpawn: true (e.g. Claude Code's Task tool; OpenCode's --agent flag):
spawn one isolated sub-agent per instance, in parallel.subagentSpawn: false (e.g. Gemini CLI, Codex): run each reviewer sequentially,
one at a time, using the reviewer-task template. See references/workflow.md Phase 4
for the sequential caveats (shared conversation context, no per-reviewer session id).Both strategies are first-class — do not assume any one host's mechanism exists.
Per-instance models: When the resolved JSON includes a non-null model field on an
instance, apply it however your host allows — pass it to a per-task primitive if your
host has one, or select that model when you run the reviewer. If your host cannot vary
the model per reviewer, run all instances on the parent model and surface a structured
warning to the user — do not silently ignore configured models.
Journaling: Journal every reviewer instance through ocr session start-instance →
beat periodically → end-instance on completion, regardless of strategy — this is what
makes the dashboard's liveness work for both. Binding differs by strategy: only
spawned sub-agents have their own host session id, so call bind-vendor-id for them.
Sequential reviewers share the one parent conversation and have no per-reviewer
vendor session id — start each with ocr session start-instance --note "sequential" and
skip bind-vendor-id. Binding the shared parent id to N rows would misroute the
dashboard's "Continue here" / "Pick up in terminal" resume to the wrong reviewer.
Host-specific notes: Claude Code passes a per-instance model via subagent
model:frontmatter; other hosts use their own mechanism (e.g. a--modelflag per spawned reviewer). The skill stays mechanism-agnostic — consult your host's docs.
Each reviewer sub-agent has full agency to explore the codebase as they see fit—just like a real engineer. They:
Their persona guides their focus area but does NOT limit their exploration. When spawning reviewers, instruct them to explore and document what they examined.
Review .ocr/config.yaml for:
context: Direct project context injected into all reviewscontext_discovery: OpenSpec integration and reference files to discoverrules: Per-severity review rules (critical, important, consider)default_team: Reviewer team compositionPhase 1: Context Discovery → Load config, pull OpenSpec context, discover references
Phase 2: Gather Change Context → git diff, understand intent
Phase 3: Tech Lead Analysis → Summarize, identify risks, select reviewers
Phase 4: Spawn Reviewers → Run each reviewer (with redundancy)
Phase 5: Aggregate Findings → Merge redundant reviewer runs
Phase 6: Discourse → Reviewers debate findings (skip with --quick)
Phase 7: Synthesis → Produce final prioritized review
Phase 8: Present → Display results (optionally post to GitHub)For complete workflow details, see references/workflow.md.
See
references/session-files.mdfor the authoritative file manifest.
All review artifacts are stored in .ocr/sessions/{YYYY-MM-DD}-{branch}/:
| File | Description |
|---|---|
discovered-standards.md | Merged project context (shared) |
requirements.md | User-provided requirements (shared, if any) |
context.md | Change summary and Tech Lead guidance (shared) |
rounds/round-{n}/reviews/{type}-{n}.md | Individual reviewer outputs (per-round) |
rounds/round-{n}/discourse.md | Cross-reviewer discussion (per-round) |
rounds/round-{n}/final.md | Synthesized final review (per-round) |
Available slash commands (format varies by tool):
| Action | Windsurf | Claude Code / Others |
|---|---|---|
| Run code review | /ocr-review | /ocr:review |
| Generate review map | /ocr-map | /ocr:map |
| Check installation | /ocr-doctor | /ocr:doctor |
| List reviewers | /ocr-reviewers | /ocr:reviewers |
| List sessions | /ocr-history | /ocr:history |
| Show past review | /ocr-show | /ocr:show |
| Post to GitHub | /ocr-post | /ocr:post |
Why two formats?
/ocr-command/ocr:commandBoth invoke the same underlying functionality.
The /ocr:map command generates a Code Review Map for large, complex changesets:
When to use: Extremely large changesets (multi-hour human review). For most cases, /ocr:review is sufficient.
See references/map-workflow.md for complete workflow.
© spencermarx, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 46 other files (references, assets) in .ocr/skills of spencermarx/open-code-review.
Open the folder on GitHubat commit fee6905
OCR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| OCR this skillspencermarx/open-code-review | 371 | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Adversarial Codebase Auditben-manes/caffeine | 18k | — | ~1.9k | Automated safety check: Notes | Apache-2.0 | |
| Tbdjlevy/strif | 131 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Multi-Model Adversarial Reviewcursor/plugins | 10k | 8 repos | ~1.3k | Automated safety check: Pass | None | |
| Code Reviewsortie-ai/sortie | 196 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Multi-Persona Code Revieweric-tramel/moraine | 117 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 |
ben-manes/caffeine
Runs a hostile review of the Caffeine Java caching library with parallel subagents that get no design docs, then challenges and consolidates their findings.
jlevy/strif
Git-native issue tracking (beads), coding guidelines, knowledge injection, and spec-driven planning for AI agents.
cursor/plugins
Runs one read-only reviewer subagent per configured model against a diff to challenge a change, then synthesizes a single verdict without applying any fixes.
sortie-ai/sortie
Reviews pull requests in this repository for the defect classes a mechanical checklist misses: documentation that outlived the code it describes, reaction and retry state that leaks or clobbers a…
eric-tramel/moraine
Coordinates a delegated review of a Moraine PR or local change by seven focused reviewer subagents, merges their findings and follows up on the fixes.
ruvnet/agentic-flow
Reviews GitHub pull requests with a swarm of specialized agents covering security, performance, architecture, style and accessibility, driven by the gh CLI and ruv-swarm.
Categories
AI-powered multi-agent code review. An agent skill from spencermarx/open-code-review. OCR is an agent skill from spencermarx/open-code-review. AI-powered multi-agent code review.
OCR fits situations like: asked to review code; analyze changes; perform code review.
Run `npx skills add spencermarx/open-code-review --skill ocr -a claude-code`. Or copy the skill folder (.ocr/skills in spencermarx/open-code-review) into .claude/skills/ocr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add spencermarx/open-code-review --skill ocr -a codex`. Or copy the skill folder (.ocr/skills in spencermarx/open-code-review) into .agents/skills/ocr in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add spencermarx/open-code-review --skill ocr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ocr, .gemini/skills/ocr, .github/skills/ocr and .opencode/skills/ocr in your project.
SKILL.md names no scripts, command-line tools or credentials: OCR is instructions for the agent only. Compatibility (from SKILL.md): Designed for Claude Code, Cursor, Windsurf, and other Agent Skills-compatible environments. Requires git. Optional: gh CLI for GitHub integration. .
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
OCR is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 62k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with OCR: Adversarial Codebase Audit (ben-manes/caffeine, 18k stars), Tbd (jlevy/strif, 131 stars), Multi-Model Adversarial Review (cursor/plugins, 10k stars) and Code Review (sortie-ai/sortie, 196 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
spencermarx (a GitHub user) maintains it in spencermarx/open-code-review, which has 371 GitHub stars. The repository was last updated on July 28, 2026.
Source: spencermarx/open-code-review on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.