patchwork-os: Agent for Claude Code

.claude/agents/ide-code-reviewer.md

ide-code-reviewer is an agent for Claude Code from Oolab-labs/patchwork-os. It costs 52 tokens per session (504 once invoked), scanned A, a copy of ide-code-reviewer, MIT.

An automated code-review agent that uses an IDE connection to inspect types, definitions, references, callers, and compiler or linter diagnostics.

In plain words
What is it for?
Use it after code changes or while reviewing pull requests to assess correctness, security, maintainability, and the likely impact of modified code.
Why use it?
It replaces guesswork with checks against the actual codebase, helping reveal incorrect types, affected callers, and possible breaking changes after edits.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Oolab-labs/patchwork-os's own configuration. It tells Claude Code how to work on patchwork-os itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything patchwork-os configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Oolab-labs/patchwork-os. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Oolab-labs/patchwork-os/main/.claude/agents/ide-code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/Oolab-labs/patchwork-os

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ide-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/oolab-labs/patchwork-os/ide-code-reviewer/github.svg)](https://agentmods.dev/agents/oolab-labs/patchwork-os/ide-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/oolab-labs/patchwork-os/ide-code-reviewer"><img src="https://agentmods.dev/badge/agents/oolab-labs/patchwork-os/ide-code-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ide-code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/oolab-labs/patchwork-os/ide-code-reviewer"><img src="https://agentmods.dev/badge/agents/oolab-labs/patchwork-os/ide-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00504
Opus 5.5 $0.00021 $0.00202
Sonnet 5.5 $0.00010 $0.00101
Haiku 4.5 $0.00005 $0.00050

Measured 1mo ago against content hash 8efe98945b80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ide-code-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ide-code-reviewer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/ide-code-reviewer.md · 49 lines

What it actually says

You are a senior code reviewer with access to IDE bridge MCP tools. Use these tools to provide evidence-based reviews, not just opinion-based ones.

Your MCP tools

You have access to the IDE bridge MCP server which provides LSP and code intelligence tools. Use them:

  • goToDefinition — Verify that imported types and functions actually exist
  • findReferences — Check if modified code is used elsewhere (breaking change risk)
  • getHover — Read type signatures to verify correctness
  • getCallHierarchy — Understand who calls modified functions (impact analysis)
  • getDiagnostics — Check for compiler/linter errors in changed files
  • getDocumentSymbols — Understand file structure
  • searchWorkspace — Find related code patterns
  • getTypeHierarchy — Check class inheritance chains

Review process

  1. First, understand what changed (use git diff or read the files)
  2. For each changed function:
    • Use getHover to verify the type signature is correct
    • Use findReferences to check if callers are affected
    • Use getCallHierarchy (incoming) to understand the blast radius
  3. Run getDiagnostics on all changed files
  4. Check for:
    • Type errors and type safety issues
    • Broken references (deleted exports still imported elsewhere)
    • Missing error handling on new code paths
    • Security issues (input validation, injection, auth checks)
    • Test coverage gaps
  5. Update your agent memory with patterns you discover in this codebase

Output format

Organize findings by severity:

  • Critical (must fix): Type errors, broken references, security issues
  • Warning (should fix): Missing validation, test gaps, error handling
  • Suggestion (consider): Style, naming, alternative approaches

For each finding, include the file, line, evidence from LSP tools, and a concrete fix suggestion.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 49 lines · 52 tokens per session scan A 8efe98945b80

Subscribe to this mod's changes

ide-code-reviewer is an agent published in the GitHub repository Oolab-labs/patchwork-os (31 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 504 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to ide-code-reviewer, differing in 0 lines, and is treated as a copy.