IrredenEngine: Agent for Claude Code

.claude/agents/simplify-scan-loop-patterns.md

simplify-scan-loop-patterns is an agent for Claude Code from jakildev/IrredenEngine. It costs 78 tokens per session (815 once invoked), scanned A, original, MIT.

A code-review agent that looks for recurring inefficient loop patterns in changed Irreden Engine code, such as repeated lookups, allocations, nested grid loops, and linear searches.

In plain words
What is it for?
Use it from the simplify process to inspect added diff lines and report matching loop patterns with suggested extraction or helper functions.
Why use it?
It points out code shapes that can make voxel, texture, asset-loading, or per-entity work unnecessarily slow or hard to maintain.

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-loop-patterns.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-loop-patterns

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/jakildev/irredenengine/simplify-scan-loop-patterns"><img src="https://agentmods.dev/badge/agents/jakildev/irredenengine/simplify-scan-loop-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 815 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.00078 $0.00815
Opus 5.5 $0.00031 $0.00326
Sonnet 5.5 $0.00016 $0.00163
Haiku 4.5 $0.00008 $0.00081

Measured 2d ago against content hash 20181cf17cd8, 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-loop-patterns 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-loop-patterns.md · 42 lines

How it starts

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

You are the loop-pattern scanner for the simplify skill. 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 and flag throughout. 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. Otherwise flag only lines in + hunks.

# Pattern Where flagged Fix
1 Triple-nested for over a 3D extent (size.x/y/z, dims, gridSize) indexing a flat buffer or calling per-cell logic creations/**, engine/prefabs/irreden/editor/** — not engine/math/** (the iterator lives there) or engine/world/** chunk traversal IRMath::forEachCell3D or whichever grid helper engine/math/ has (Glob first); else "extract grid-iteration helper to IRMath"
2 Quadruple-nested pixel-pack loop followed by subImage2D / glTextureSubImage2D / MTLTexture / vertexAttribPointer or another backend primitive creations/** extract the pack-and-upload into a renderer helper under engine/render/include/irreden/render/ (mask_grid_painter.hpp style)
3 IREntity::getComponent<...> inside an inner for within a per-entity tick everywhere hoist and cache the reference, or a system shape that includes the second archetype
4 new / hot push_back / std::string construction / std::make_unique / std::map::operator[] per iteration of a for inside a tick engine/prefabs/irreden/**, creations/**/system_*.{hpp,cpp} pre-size in beginTick or SystemParams; reuse
5 Linear search of a vector by key inside a function named load* / parse* / read* / decode* or under engine/asset/ engine/asset/** build an unordered_map<Key, ValueRef> once at parse time
6 Triple-nested grid loop calling evaluate* / sdf* / distance* / signedDistance* per cell creations/**, engine/prefabs/irreden/editor/** IRMath::SDF::evaluateGrid in engine/math/include/irreden/math/sdf.hpp (Glob; suggest extracting one if absent)

Read the full file on GitHub · 42 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 · 42 lines · 78 tokens per session scan A 20181cf17cd8

Subscribe to this mod's changes

simplify-scan-loop-patterns is an agent published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 815 once invoked, about $0.0003 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-loop-patterns compared with agents from other repositories

simplify-scan-loop-patterns next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-scan-loop-patternsjakildev/IrredenEngineAgent10todayMITA78Claude Code
build-failure-analystdotnet/skillsAgent5.9kyesterdayMITA108Claude Code
swiftui-performance-analyzerCharlesWiltgen/AxiomAgent1.3kyesterdayMITA45Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6624d agoMITA63Claude Code
predictive-analystsoftspark/ai-toolkitAgent1793d agoApache-2.0A35Claude Code
fec-ui-checkerbovinphang/frontend-craftAgent23yesterdayMITA89Claude Code
detectivenxtg-ai/forge-pluginAgent72d agoMITA473Claude Code