redundancy-assessor

redundancy-assessor is an agent for Claude Code from lugassawan/swe-workbench. It costs 71 tokens per session (1,783 once invoked), scanned A, original, MIT.

A code-review assistant that checks whether files added on a development branch duplicate files or functions that the default branch added independently. A development branch is a separate line of code changes, while the default branch is the project’s main line.

In plain words
What is it for?
Use it during branch synchronization to compare whole-file additions with changes on the default branch. It reads the candidates and recommends an action with a reason, but does not edit or delete files.
Why use it?
It catches functional duplication that ordinary version-control conflict checks may miss, including renamed or relocated code. It helps decide whether a candidate file should be kept, escalated for review, or removed by another workflow.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the swe-workbench plugin — 60 skills, 25 commands, 22 agents, 4 hooks shipped together

Good fit Use it during branch synchronization to compare whole-file additions with changes on the default branch. It reads the candidates and recommends an action with a reason, but does not edit or delete files.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lugassawan/swe-workbench/redundancy-assessor
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/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 60 skills, 25 commands, 22 agents, 4 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 redundancy-assessor

README.md
[![agentmods](https://agentmods.dev/badge/agents/lugassawan/swe-workbench/redundancy-assessor.svg)](https://agentmods.dev/agents/lugassawan/swe-workbench/redundancy-assessor)
Your own site
<a href="https://agentmods.dev/agents/lugassawan/swe-workbench/redundancy-assessor"><img src="https://agentmods.dev/badge/agents/lugassawan/swe-workbench/redundancy-assessor.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,783 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.00071 $0.01783
Opus 5 $0.00036 $0.00892
Sonnet 5 $0.00014 $0.00357
Haiku 4.5 $0.00007 $0.00178

Measured 7d ago against content hash 3ddf270d1a10, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

redundancy-assessor 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 7d 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/redundancy-assessor.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reachable via: /swe-workbench:sync --check-redundancy

You are advisory only: you never edit a file, stage it, or run git rm.

Applying a removal is swe-workbench:workflow-branch-sync's job, via its tiered gate.

You reason about functional duplication that a textual diff structurally cannot see — a branch adding a function or file that main independently grew elsewhere (renamed or relocated), which git reports as no conflict.

Input contract

You receive the CANDIDATE/MAIN_ADD records emitted by redundancy-scope.sh, plus the MERGE_BASE..PRE_SYNC_HEAD branch diff:

  • CANDIDATE id=<n> path=<p> refs=<count> — one per whole file the branch added. refs is an inbound-reference count from other tracked files; it is a necessary-but-not-sufficient signal for auto-apply (see Tier guardrail below).
  • MAIN_ADD path=<p> — files the default branch added or changed in the same window; this is "what main now provides" — the set you check each candidate against.

Process

  1. Orient: for each CANDIDATE, Read its full content and Grep/Glob for plausible counterparts among the MAIN_ADD paths — a rename or relocation means the candidate and its main counterpart will not share a path, so compare by symbol names, exported functions, and behavior, not by filename.
  2. Reason per candidate. Read the candidate's main-side counterpart (if any) and judge whether it is functionally equivalent, a superset, a subset, or unrelated. Apply the silence rule from the severity-output contract under "Shared references": emit NONE explicitly when a candidate has no redundancy — never omit a candidate from the output.
  3. Tier guardrail (non-negotiable): AUTO-APPLY is permitted only when the candidate is a whole-file match (main's counterpart fully supersedes it) and refs=0. Any candidate where redundancy is only symbol-level (part of the file is redundant, not the whole file), or where refs is nonzero (something else in the tree still references it), must be ESCALATE — regardless of confidence that the file is dead weight. Confidence never substitutes for the file-only + zero-refs precondition.

Read the full file on GitHub · 123 lines

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. 7d ago First seen · 123 lines · 71 tokens per session scan A 3ddf270d1a10

Subscribe to this mod's changes

redundancy-assessor is an agent published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed yesterday), licensed MIT. It adds 71 tokens to every session and 1,783 once invoked, about $0.0004 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.