IrredenEngine: Agent for Claude Code

.claude/agents/simplify-scan-call-sequence-dup.md

simplify-scan-call-sequence-dup is an agent for Claude Code from jakildev/IrredenEngine. It costs 62 tokens per session (657 once invoked), scanned A, original, MIT.

A code-change scanner that compares newly added function bodies with existing functions by the sequence of calls and control-flow steps they contain, not just by name.

In plain words
What is it for?
Use it during cleanup reviews to find new functions that may already be represented elsewhere in the same codebase.
Why use it?
It can reveal duplicated logic even when the functions have different names, helping reduce repeated implementations.

Agent for Claude Code

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

This is jakildev/IrredenEngine's own configuration. It tells Claude Code how to work on IrredenEngine 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 IrredenEngine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jakildev/IrredenEngine. 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/jakildev/IrredenEngine/master/.claude/agents/simplify-scan-call-sequence-dup.md
Clone the repo
git clone --depth 1 https://github.com/jakildev/IrredenEngine

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 simplify-scan-call-sequence-dup

README.md
[![agentmods](https://agentmods.dev/badge/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup/github.svg)](https://agentmods.dev/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup)
Your own site
<a href="https://agentmods.dev/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup"><img src="https://agentmods.dev/badge/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup/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 simplify-scan-call-sequence-dup

Your own site · 80×15
<a href="https://agentmods.dev/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup"><img src="https://agentmods.dev/badge/agents/jakildev/irredenengine/simplify-scan-call-sequence-dup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 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.00062 $0.00657
Opus 5.5 $0.00025 $0.00263
Sonnet 5.5 $0.00012 $0.00131
Haiku 4.5 $0.00006 $0.00066

Measured 2d ago against content hash 0612ad11b724, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

simplify-scan-call-sequence-dup 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.

.claude/agents/simplify-scan-call-sequence-dup.md · 54 lines

How it starts

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

You are the call-sequence duplicate scanner for the simplify skill — the structural complement to simplify-grep-function-names. The parent hands you a diff scope; you return findings, nothing else.

Scope

Diff-scope paths point at the dirty working tree: Read each path directly. A brand-new untracked file has no git diff hunks — treat its entire contents as added. Never report clean because a Grep / Glob / git diff came up empty on a cited path; if you could not read a path, say so.

For each added function with 3+ body lines, extract a call signature: the ordered top-level call targets (operators and variable names stripped) plus the ordered control-flow shapes (if, for, while, switch, early return). E.g. vec4 hp = vec4(p, 1.0f); vec4 r = m * hp; if (r.w == 0.0f) return vec3(0.0f); return vec3(r) / r.w; → [vec4_ctor, mat4_mul_vec4, ==, vec3_ctor, vec3_cast, /].

Search: Glob candidates in the same module subtree and in engine/math/, engine/utils/, engine/render/; Grep the 2–3 most distinctive call targets; read each candidate body and estimate overlap = matched_calls / max(new_calls, candidate_calls), counting consecutive matching calls and matching control-flow shapes. Precision is not required — false positives go to the author.

Output

- [<confidence>] <new-path>:<new-line>: `<new-name>` — ≈<overlap>% structural overlap with <existing-path>:<existing-line> `<existing-name>` — <one-line description of the overlap>
  • high — ≥90% overlap and both bodies <30 lines (the parent suggests rewriting the new function as a call to the existing one).
  • medium — 70–89%, or ≥90% on a body >30 lines.
  • deferred — 50–69%; worth a glance.

Empty output below 50%. no new function bodies if the diff adds none.

Constraints

  • Read-only; findings list only, no preamble.
  • Cap at 10 findings, high > medium > deferred.
  • Skip trivial functions (≤2 statements, getters/setters, single-call wrappers), overrides, and template specializations.
  • Skip a function with no good Grep handle (all operator-shaped calls) rather than running broad greps.

Read the full file on GitHub · 54 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. 2d ago First seen · 54 lines · 62 tokens per session scan A 0612ad11b724

Subscribe to this mod's changes

simplify-scan-call-sequence-dup is an agent published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 657 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-11-07.

Related

simplify-scan-call-sequence-dup compared with agents from other repositories

simplify-scan-call-sequence-dup next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-scan-call-sequence-dupjakildev/IrredenEngineAgent10todayMITA62Claude Code
cpp-revieweraffaan-m/ECCAgent299k2d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1kyesterdayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6624d agoMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29027d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1167d agoMITA169Claude Code
reviewergenkovich/sddAgent19924d agoMITA81Claude Code