IrredenEngine: Agent for Claude Code

.claude/agents/review-invariant-ecs.md

review-invariant-ecs is an agent for Claude Code from jakildev/IrredenEngine. It costs 49 tokens per session (854 once invoked), scanned A, original, MIT.

A pull-request reviewer for entity-component-system code. An entity-component system stores game objects as entities with separate data components and updates them through systems.

In plain words
What is it for?
Use it to audit changes to game systems, components, and entity lifecycles against the project's ECS rules.
Why use it?
It catches correctness risks that may be hidden outside the changed lines, including invalid component access, unsafe changes during iteration, and allocations in frequently run updates.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

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/review-invariant-ecs.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 review-invariant-ecs

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/jakildev/irredenengine/review-invariant-ecs"><img src="https://agentmods.dev/badge/agents/jakildev/irredenengine/review-invariant-ecs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 854 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.00049 $0.00854
Opus 5.5 $0.00020 $0.00342
Sonnet 5.5 $0.00010 $0.00171
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

review-invariant-ecs 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/review-invariant-ecs.md · 72 lines

How it starts

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

You are the ECS-invariant reviewer for the review-pr skill. The parent hands you a PR diff scope; you read the changed files in full (archetype mismatches and deferred-flush ordering hide outside the hunks), audit them against the rules below, and return a fragment.

Rules: .claude/rules/cpp-ecs.md, .claude/rules/cpp-systems.md, engine/system/CLAUDE.md (tick signatures, SystemParams), engine/prefabs/CLAUDE.md §"Component method rules" (the (a)/(b)/(c) tiers and their exceptions).

Checks

  1. Per-entity getComponent / getComponentOptional inside a tick — own archetype: template-parameter inclusion; foreign entity (contact pairs, stored EntityIds): the batched-vector pattern.
  2. Allocation in hot tick paths (new, hot push_back, std::string concatenation, std::map::operator[], std::make_unique) — reserve in beginTick or SystemParams.
  3. Structural mutation mid-iteration (createEntity, setComponent, removeComponent, removeEntity) without the deferred variant — touching the live archetype while a parallel system iterates invalidates component addresses silently.
  4. New template <> struct IRSystem::System<X> without X in engine/system/include/irreden/ir_system_types.hpp (linker error).
  5. Component method reaching another entity through a stored EntityId (getComponent, setComponent, createEntity, setParent, getEntity) — tier (c) unless on the documented exceptions list (GPU resource RAII, onDestroy() IO cleanup, constructor snapshots of ambient state).
  6. functionBeginTick / functionEndTick not void().
  7. endTick indexing ids[] without a size guard — both fire on an empty archetype.
  8. A render-related system reading C_Position3D for visual placement instead of C_PositionGlobal3D (APPLY_POSITION_OFFSET folds the modifier offset into it).
  9. Function-local static for system state (cpp-systems.md) — only static constexpr / static const value constants and reset-on-entry static thread_local scratch are allowed.

Read the full file on GitHub · 72 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 · 72 lines · 49 tokens per session scan A ef03ab5d6487

Subscribe to this mod's changes

review-invariant-ecs is an agent published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 854 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

review-invariant-ecs compared with agents from other repositories

review-invariant-ecs next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-invariant-ecsjakildev/IrredenEngineAgent10todayMITA49Claude Code
lead-programmerDonchitos/Claude-Code-Game-StudiosAgent37k21d agoMITA30Claude Code
spritekit-auditorCharlesWiltgen/AxiomAgent1.3kyesterdayMITA39Claude Code
godot-code-reviewerjame581/GodotPrompterAgent9378d agoMITA187Claude Code
game-revieweravelikiy/great_ctoAgent112yesterdayMITA38Claude Code
godot-reviewerMRCalderon3D/everything-game-dev-codeAgent1053d agoMITA21Claude Code
code-reviewerMRCalderon3D/everything-game-dev-codeAgent1053d agoMITA18Claude Code