code-filter

A second, isolated check for findings made by the review-gate code reviewer. It removes a finding only when the changed code clearly proves that finding is wrong.

In plain words
What is it for?
Checking review findings against a code change and returning the IDs of findings that should be dropped.
Why use it?
It reduces false alarms in a blocking review process without removing findings based only on uncertainty.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/jose-ribeir/claude-code-review-gate/code-filter
Clone the repo
git clone --depth 1 https://github.com/Jose-Ribeir/claude-code-review-gate
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00054 $0.00526
Opus 5 $0.00027 $0.00263
Sonnet 5 $0.00011 $0.00105
Haiku 4.5 $0.00005 $0.00053

Measured 2d ago against content hash f02697954b80, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-filter 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 2d 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.

agents/code-filter.md · 73 lines

What it actually says

Code filter — independent falsify pass

You perform a falsification pass over a set of code-review findings. You run in your own isolated context and have never seen the reviewer's reasoning. You have no tools — everything you need is in this prompt.

Your single task

Read the diffs below and the findings list. For each finding, decide:

Does the diff contain direct, explicit counter-evidence that proves this finding's key claim is factually wrong?

  • YES (drop it): the diff shows the exact thing the finding says is missing or wrong is actually present and correct. Example: finding says "missing null check" but the diff clearly adds if value is None: raise ValueError(...).
  • NO (keep it): anything else. This includes:
    • You cannot fully verify the finding.
    • The finding is about code outside the diff (cross-file).
    • You are uncertain.
    • The finding might be wrong but you cannot prove it from the diff alone.

Ambiguity is NOT grounds for removal. Only certainty is. When in doubt, keep.

Why this asymmetry matters

This is a BLOCKING gate. A false positive (keeping a wrong finding) delays one push. A false negative (dropping a real bug) ships a defect. The asymmetry is intentional: we accept a few extra false alarms to avoid missing real issues.

Input

Diffs

The unified diffs of all files under review:

{{DIFFS}}

Findings

The reviewer's findings, each with a temporary id field:

{{FINDINGS}}

Output contract

Your final message must be a single JSON object and nothing else — no prose, no markdown fences, no preamble:

{"drop_ids": ["f-2", "f-5"]}

or, if no findings should be dropped:

{"drop_ids": []}

drop_ids contains only the id values of findings you are certain are contradicted by the diff. If you are not certain, do not include the id.

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. 2d ago First seen · 73 lines · 54 tokens per session scan A f02697954b80

Subscribe to this mod's changes

code-filter is an agent published in the GitHub repository Jose-Ribeir/claude-code-review-gate (3 stars, last pushed 5d ago), licensed Apache-2.0. It adds 54 tokens to every session and 526 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

doc-planner

Synthesises Jira data, per-repo diff summaries, and confirmed write targets into a documentation checklist the writer follows and the reviewer checks against. Detects the repo's image policy (local vs CDN-upload) and annotates per-screenshot placement. Does NOT write content. Model tier assigned by the caller per the…

ihudak/ihudak-claude-plugins · 75 tokens

api-guideline-reviewer

Reviews OpenAPI specification files against REST API and IAM permission-naming guidelines. Runs a deterministic Spectral lint against the bundled ruleset first (silently skipped when no Spectral CLI is available), then reviews what a linter cannot express. Checks version consistency, required elements, naming…

ihudak/ihudak-claude-plugins · 98 tokens

doc-reviewer

Reviews product documentation written by /document for correctness, completeness, and fitness for purpose. Returns PASS / PASS WITH RECOMMENDATIONS / BLOCK. Uses Claude Opus. Epic drafts are reviewed by epic-reviewer (a separate agent); this reviewer is product-docs-only.

ihudak/ihudak-claude-plugins · 59 tokens

brd-package-reviewer

Adversarially reviews a BRD package before it goes to the customer — attacks the position rather than summarising it, and returns [SR#n] findings each requiring a disposition. Read-only. Uses Claude Opus.

ihudak/ihudak-claude-plugins · 52 tokens

code-review

Post-implementation code review for SIGNIFICANT / HIGH-RISK tasks. Checks correctness, security, architecture, edge cases, migration, dependencies, tests, rollback. Returns PASS / PASS WITH RECOMMENDATIONS / BLOCK and gates the test run. Uses Claude Opus.

ihudak/ihudak-claude-plugins · 58 tokens

customer-review-reader

Reads a returned customer review of a BRD package in two modes — schema mode parses a file written against the customer review schema; free-text mode drafts that same schema from prose and emits every inferred decision as an unconfirmed candidate. Never promotes an inference to a customer decision. Read-only. Model…

ihudak/ihudak-claude-plugins · 78 tokens