code-filter

code-filter is an agent for Claude Code from Jose-Ribeir/claude-code-review-gate. It costs 54 tokens per session (526 once invoked), scanned A, original, Apache-2.0.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the review-gate plugin — 1 skill, 1 command, 3 agents, 3 hooks shipped together

Good fit Checking review findings against a code change and returning the IDs of findings that should be dropped.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jose-ribeir/claude-code-review-gate/code-filter
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.

Clone the repo
git clone --depth 1 https://github.com/Jose-Ribeir/claude-code-review-gate

Made for: Claude Code.

Or install review-gate, the plugin that ships this one along with the rest of its 1 skill, 1 command, 3 agents, 3 hooks.

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 code-filter

README.md
[![agentmods](https://agentmods.dev/badge/agents/jose-ribeir/claude-code-review-gate/code-filter/github.svg)](https://agentmods.dev/agents/jose-ribeir/claude-code-review-gate/code-filter)
Your own site
<a href="https://agentmods.dev/agents/jose-ribeir/claude-code-review-gate/code-filter"><img src="https://agentmods.dev/badge/agents/jose-ribeir/claude-code-review-gate/code-filter/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 code-filter

Your own site · 80×15
<a href="https://agentmods.dev/agents/jose-ribeir/claude-code-review-gate/code-filter"><img src="https://agentmods.dev/badge/agents/jose-ribeir/claude-code-review-gate/code-filter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00054 $0.00526
Opus 5.5 $0.00022 $0.00210
Sonnet 5.5 $0.00011 $0.00105
Haiku 4.5 $0.00005 $0.00053

Measured 1mo ago against content hash f02697954b80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 2d ago), licensed Apache-2.0. It adds 54 tokens to every session and 526 once invoked, about $0.0002 per session on Opus 5.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

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

composio-community/awesome-claude-plugins · 55 tokens

dead-code-analyzer

Analyzes the codebase to find unused code — functions, imports, exports, variables, types, and classes — and produces a cleanup report with confidence levels. Never auto-deletes; reports findings for user review. Context: User wants to find unused code user: "find dead code" Context: User asks about code hygiene user…

lukaskellerstein/claude-my-marketplace · 160 tokens

code-reviewer

Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues that truly matter.

RoniLeor/specWeaver · 39 tokens

code-explorer

Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development.

RoniLeor/specWeaver · 33 tokens

code-reviewer

Review code changes against a base branch with structured feedback. Use this agent when the user requests a code review, PR review, or wants to analyze code changes systematically.

NikiforovAll/claude-code-rules · 37 tokens

symfony-security-auditor

Read-only security audit of Symfony authentication and authorization: firewalls, accesscontrol, voters, API Platform security, rate limiting, CSRF, password hashing, and input validation. Use proactively after changes to security.yaml, voters, controllers, forms, or API resources.

dev-toolings/superpowers-symfony · 60 tokens