Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/circui-try/circuit/review-and-fixgit clone --depth 1 https://github.com/CIrcui-try/CircuitWrote 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/commands/circui-try/circuit/review-and-fix)<a href="https://agentmods.dev/commands/circui-try/circuit/review-and-fix"><img src="https://agentmods.dev/badge/commands/circui-try/circuit/review-and-fix.svg" alt="Measured on agentmods" 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.00018 | $0.01497 |
| Opus 5 | $0.00009 | $0.00749 |
| Sonnet 5 | $0.00004 | $0.00299 |
| Haiku 4.5 | $0.00002 | $0.00150 |
Grade A, and why
review-and-fix 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
현재 브랜치의 로컬 변경사항을 직접 읽고 코드 리뷰를 수행한 뒤, 발견된 문제를 수정·커밋·푸시하는 커맨드.
$ARGUMENTS로 처리할 최소 심각도를 받는다. 예: /review-and-fix minor
critical→ 🔴 Critical만 처리major(기본값, 미지정 포함) → 🔴 Critical + 🟠 Major 처리minor→ 🔴 Critical + 🟠 Major + 🟡 Minor 전체 처리
절차
1단계: 로컬 변경 범위 확인
- 현재 브랜치 확인:
git branch --show-current로 브랜치 이름을 가져온다. develop/main경고: 현재 브랜치가develop또는main이면 경고하고 중단한다.- 작업트리 상태 확인:
git status --short로 staged/unstaged/untracked 변경을 확인한다. - 비교 기준 확인:
origin/develop이 있으면 기본 기준으로 사용하고, 없으면develop을 사용한다. - 공통 조상 확인:
git merge-base HEAD <기준브랜치>로 현재 브랜치의 로컬 변경 기준점을 찾는다.
2단계: diff 수집
- 브랜치 diff 수집:
git diff <merge-base>...HEAD로 기준 브랜치 이후의 커밋 변경사항을 수집한다. - 작업트리 diff 수집: staged 변경은
git diff --cached, unstaged 변경은git diff로 수집한다. - 변경 파일 목록 파악:
git diff --name-only <merge-base>...HEAD,git diff --cached --name-only,git diff --name-only,git status --short의??파일을 합쳐 중복 없이 확인한다. - untracked 파일 확인:
??파일은 diff가 없더라도 파일 전체를 Read로 읽어 리뷰 대상에 포함한다. - 변경 없음 처리: 수집된 diff와 변경 파일이 모두 없으면 사용자에게 알리고 종료한다.
3단계: 코드 리뷰
변경된 각 파일을 Read로 읽어 diff뿐 아니라 파일 전체 컨텍스트를 파악한 뒤 문제점을 찾는다.
리뷰 관점
- 보안: 인젝션, XSS, 인증/인가 누락, 민감 정보 노출
- 정합성: 로직 오류, 엣지 케이스 미처리, 누락된 에러 처리
- 성능: 불필요한 쿼리, N+1, 무한 루프 가능성
- 아키텍처: CLAUDE.md에 명시된 레이어드 아키텍처 원칙 위반 여부
- 백엔드: Router → Service → Repository 분리
- 프런트엔드: Presentation → Domain → Data 분리
- 코드 품질: 네이밍, 중복 코드, 불필요한 복잡도, console.log 잔존
심각도 분류
- 🔴 Critical: 보안 취약점, 데이터 손실/훼손, 크래시/무한 루프 유발
- 🟠 Major: 로직 오류, 누락된 에러 처리, 성능 문제, 아키텍처 원칙 위반
- 🟡 Minor: 코드 스타일, 네이밍 개선, 불필요한 코드, 타입 미비
4단계: 리뷰 결과 정리 & 사용자 확인
$ARGUMENTS (미지정 시 major) 기준으로 필터링한 뒤 아래 형식으로 출력한다:
[1] 🔴 Critical — API/app/services/auth.py:194
JWT 시크릿이 하드코딩되어 있음...
[2] 🟠 Major — Web/src/pages/login.tsx:28
returnTo를 검증 없이 리디렉션에 사용...
- 발견된 항목이 없으면 사용자에게 알리고 종료한다.
- 출력 후 사용자에게 수정 진행 여부를 확인받는다.
5단계: 코드 수정
각 항목을 순서대로 처리한다:
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.
- 5d ago First seen · 102 lines · 0 tokens per session scan A b2b1a5facc05
review-and-fix is a command published in the GitHub repository CIrcui-try/Circuit (5 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 1,497 once invoked, about $0.0001 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-08-31.
Other commands, from other repositories
planwt
You are the orchestrator for a bounded worktree task.
statuswt
You are checking the status of all active worktree task files in the project.
finishwt
You are finishing a worktree task.
harness-parallel
Run the parallel Auto-Harness orchestration flow with worktree workers. /auto-harness:harness-parallel.
harness
Run the full Auto-Harness orchestration flow. /auto-harness:harness.
qa-parallel
Advance parallel Evaluator-side actions only. Auto-selects review, QA, retest, or final report from status.md. /auto-harness:qa-parallel [sprint].