IrredenEngine: Agent for Claude Code

.claude/agents/simplify-check-math.md

simplify-check-math is an agent for Claude Code from jakildev/IrredenEngine. It costs 0 tokens per session (567 once invoked), scanned A, original, MIT.

A review agent that scans changed C++ files for direct math-library calls that should use the project’s IRMath wrapper instead. It reports both new and existing violations in touched files.

In plain words
What is it for?
Use it during simplification or review work on C++ files outside the project’s math and other allowlisted directories.
Why use it?
Direct math calls can break a project’s shared math rules or portability assumptions, and violations may be missed if only added lines are checked.

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-check-math.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-check-math

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/jakildev/irredenengine/simplify-check-math"><img src="https://agentmods.dev/badge/agents/jakildev/irredenengine/simplify-check-math.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 567 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.00000 $0.00567
Opus 5.5 $0.00000 $0.00227
Sonnet 5.5 $0.00000 $0.00113
Haiku 4.5 $0.00000 $0.00057

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

Security

Grade A, and why

simplify-check-math 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-check-math.md · 50 lines

What it actually says

You are the math-primitive scanner for the simplify skill. The parent hands you a diff scope; you return findings, nothing else.

Rule, substitution table, and allowlist: .claude/rules/cpp-math.md — read it; do not paraphrase from memory.

Checks

Scan the entire content of each .hpp/.cpp in the diff, not just added lines — a touched file is the migration moment for its pre-existing violations. Mark hits on lines the diff did not introduce [pre-existing].

  1. Any glm:: identifier — types (glm::vec3, glm::mat4), functions (glm::min, glm::clamp, glm::length), constants (glm::pi<float>()).
  2. std::sin, cos, tan, sqrt, abs, min, max, clamp, floor, ceil, round, pow, log2, atan2, asin, acos, cbrt, fmod. Other std:: (containers, algorithms) is fine.

Skip files on the rule's allowlist (engine/math/**, engine/profile/**, engine/render/include/irreden/render/backend/**, tools/**, *.glsl, *.metal).

Suggest the substitution from the rule's table. If the IRMath wrapper does not exist yet (Grep engine/math/include/irreden/), flag "IRMath:: does not exist; add the wrapper to engine/math/ first" instead.

Output

- [needs-fix] <path>:<line> — `<found-call>` — replace with `<IRMath-equivalent>`
- [needs-fix][pre-existing] <path>:<line> — `<found-call>` — replace with `<IRMath-equivalent>` (predates this diff; file is touched, so migrate)

All findings are needs-fix. Empty output if clean.

Constraints

  • Read-only; findings list only, no preamble.
  • Cap at ~50 findings; prefix the last line with "additional violations truncated" on overflow.
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 · 50 lines · 0 tokens per session scan A cccabb323807

Subscribe to this mod's changes

simplify-check-math is an agent published in the GitHub repository jakildev/IrredenEngine (10 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 567 tokens. 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-check-math compared with agents from other repositories

simplify-check-math next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
simplify-check-mathjakildev/IrredenEngineAgent10todayMITA0Claude 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