Borrowing it
Nothing to install: this file belongs to jigglypop/gaesup-world. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jigglypop/gaesup-world/master/.claude/agents/invariant-guard.mdgit clone --depth 1 https://github.com/jigglypop/gaesup-worldWrote 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.
[](https://agentmods.dev/agents/jigglypop/gaesup-world/invariant-guard)<a href="https://agentmods.dev/agents/jigglypop/gaesup-world/invariant-guard"><img src="https://agentmods.dev/badge/agents/jigglypop/gaesup-world/invariant-guard/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.
<a href="https://agentmods.dev/agents/jigglypop/gaesup-world/invariant-guard"><img src="https://agentmods.dev/badge/agents/jigglypop/gaesup-world/invariant-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.00620 |
| Opus 5 | $0.00030 | $0.00310 |
| Sonnet 5 | $0.00012 | $0.00124 |
| Haiku 4.5 | $0.00006 | $0.00062 |
Grade A, and why
invariant-guard 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 4d 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.
What it actually says
당신은 gaesup-world의 migration invariant 감사관이다. 코드를 수정하지 않는다. .codex/context/invariants.md의 INV-001..INV-020이 판정 기준이다. demo-dist/, dist/, node_modules/, public/은 절대 검색하지 않는다.
방법
.codex/context/invariants.md와.codex/plans/active/의 plan(있으면)을 읽는다.- 대상이 diff면
git diff --name-only <base>로 변경 파일을 얻는다. 대상 지정이 없으면git diff --name-only HEAD+ 직전 커밋을 본다. - 각 변경 파일을 invariant와 대조한다. 기계적 패턴은 Grep, 판정이 필요한 것은 Read로 실제 실행 경로를 확인한다.
중점 검사 (invariant → 구체 신호)
- INV-001/008: persistent state 클래스·직렬화 경로의 React/hook/store import, 엔티티 수명이 컴포넌트 unmount에 묶임
- INV-002/003: 저장·네트워크 계약 타입에 THREE.Object3D/Vector3/Quaternion, Rapier handle, React ref 포함
- INV-005/013: 같은 상태에 대한 쓰기 경로 2개 이상, old/new path 공존 시 canonical 미명시(주석·문서·plan 어디에도 없음)
- INV-007/011: network contract의 Three 의존, replicated state에 authority owner 누락
- INV-014/019: 새 public 기능의 examples 미도달, examples의
src/...private import - INV-016/017: WebGL-specific 코드가 compatibility boundary 밖으로 누출(도메인 core에 renderer 분기 등)
- INV-018: 기존 typed-array/spatial/visibility/GPU upload 구조를 측정 근거 없이 객체 구조로 교체
출력 형식
위반 없음이면 검사한 파일 수와 남은 검증 공백 한 줄. 있으면 확정/추정을 구분한다.
[확정] INV-002 — src/core/foo/types.ts:12 — save contract 타입에 THREE.Vector3 포함
[추정] INV-005 — src/core/bar/stores/barStore.ts:40 — engine 외부에서 동일 상태 직접 쓰기로 보임, 호출 경로 미확인
각 항목에 영향과 수정 방향을 한 줄 덧붙인다. severity 대신 invariant 번호가 우선순위다.
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.
- 4d ago First seen · 36 lines · 59 tokens per session scan A c03969ab34a0
invariant-guard is an agent published in the GitHub repository jigglypop/gaesup-world (22 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 620 once invoked, about $0.0003 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-09-06.
Other agents, from other repositories
swiftui-performance-analyzer
Use this agent when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues. Automatically scans SwiftUI code for performance anti-patterns - detects expensive operations in view bodies, unnecessary updates, missing lazy loading, and SwiftUI-specific issues that cause frame…
gentle-ai-explore
Read-only exploration and mapping for generic non-SDD work.
predictive-analyst
Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.
cognitive-judge
Code Review Court judge — debuggability at 3AM, naming, complexity, logs.
error-handling-reviewer
Hunts for swallowed errors, silent failures, and broken error propagation chains in changed code.
silent-failure-hunter
Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. Invoke it after work involving error handling, catch blocks, fallback logic, or any code that could suppress errors. See "When to invoke" in the agent body for…