kaji: Agent for Claude Code

.claude/agents/kaji-code-reviewer.md

kaji-code-reviewer is an agent for Claude Code from apokamo/kaji. It costs 88 tokens per session (2,596 once invoked), scanned A, original, Apache-2.0.

An independent reviewer for the final stage of an issue implementation workflow. It checks the design, code changes, test evidence, scope, and rules for closing the issue.

In plain words
What is it for?
Use it to assess whether an implementation matches its design, has the required test and quality checks, stays within scope, and follows issue-closing rules.
Why use it?
It helps catch problems before completed work is handed to the next review stage.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is apokamo/kaji's own configuration. It tells Claude Code how to work on kaji 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 kaji configures →

Reuse

Borrowing it

Nothing to install: this file belongs to apokamo/kaji. 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/apokamo/kaji/main/.claude/agents/kaji-code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/apokamo/kaji

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 kaji-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/apokamo/kaji/kaji-code-reviewer.svg)](https://agentmods.dev/agents/apokamo/kaji/kaji-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/apokamo/kaji/kaji-code-reviewer"><img src="https://agentmods.dev/badge/agents/apokamo/kaji/kaji-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,596 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.00088 $0.02596
Opus 5 $0.00044 $0.01298
Sonnet 5 $0.00018 $0.00519
Haiku 4.5 $0.00009 $0.00260

Measured 7d ago against content hash d2e83a73bc2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

kaji-code-reviewer 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 7d 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/kaji-code-reviewer.md · 144 lines

How it starts

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

kaji-code-reviewer

あなたは kaji workflow の pre-handoff code reviewer です。

/issue-implement の最終段で main session から起動され、handoff(/issue-review-code への進行)の前に「設計書整合・テスト証跡・Scope 混在・auto-close 規約」を第三者視点で検査します。

立場

  • あなたは critic です。修正・コミット・push・コメント投稿は行いません。
  • あなたの verdict (Yes / No / With fixes) は pre-handoff 自己評価 であり、kaji workflow の正式 verdict (PASS / RETRY / BACK / ABORT) ではありません。
  • 正式 verdict は /issue-review-code が後段の別セッションで発行します。
  • 自己評価結果は main session が Issue コメントに転記します。あなた自身は Issue 投稿経路を持ちません。

入力(prompt 経由で受領) — 単一情報源 (SoT)

本セクションは prompt 入力契約の単一情報源.claude/skills/issue-implement/references/pre-handoff-review.md Step 8.5.2 経路 A の prompt template は本契約のミラーです。契約変更時はまず本ファイルを更新し、reference の template を追従させてください。逆順は禁止。

main session が以下を prompt 内のセクションとして渡します:

  • 設計書のパス: <worktree_dir>/draft/design/issue-<id>-*.md
    • Read ツールで参照してください
  • ## Diff: git diff main...HEAD の全文(main session が事前取得して貼付)
  • ## Test Output: 直近 pytest の出力。Step 7 を make check で実行した場合はその出力の pytest 部分、baseline failure により 7a / 7b へ分離実行した場合は Step 7b の出力をそのまま貼付
  • ## Quality Check: 直近 ruff check / ruff format --check / mypy の出力。Step 7 を make check で実行した場合はその出力の該当部分、7a / 7b へ分離実行した場合は Step 7a の出力をそのまま貼付
  • ## Baseline Failures: baseline.json は常に必須。status: known_failures の場合は Step 7b の --compare JSON も必須。status: clean の場合は --compare を再実行せず、 make check の pytest 出力を最終結果として扱う
  • 対象 commit hash: prompt 冒頭または header で指定

利用可能ツール

  • Read: 設計書および worktree 内の任意ファイル参照
  • Grep: コード内パターン検索(regression / 同根欠陥の探索)
  • Glob: ファイル列挙

Read the full file on GitHub · 144 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. 7d ago First seen · 144 lines · 88 tokens per session scan A d2e83a73bc2e

Subscribe to this mod's changes

kaji-code-reviewer is an agent published in the GitHub repository apokamo/kaji (12 stars, last pushed 6d ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,596 once invoked, about $0.0004 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-30.

Related

Other agents, from other repositories

code-reviewer

Review TypeScript code changes for consistency, type safety, and monorepo patterns across babysitter packages.

a5c-ai/babysitter · 24 tokens

reviewer

A code-review agent that examines changes for correctness, readability, testing, security, consistency, and traceability.

Insajin/autopus-adk · 42 tokens

architect-reviewer

Use this agent for read-only architectural audits between waves. Reviews changed files for module depth, seams, dependency layering, ADR compliance per LANGUAGE.md vocabulary. Context: After Impl-Core wave shipped 8 files. user: "Audit the W2 architecture before proceeding." assistant: "I'll dispatch…

Kanevry/session-orchestrator · 117 tokens

rn-code-reviewer

Reviews React Native implementation for bugs, logic errors, RN-specific convention violations, and testability issues. Uses confidence-based filtering to report only high-priority issues that truly matter. Triggers: "review this code", "check for bugs", "review the implementation", "are there any issues", "check…

Lykhoyda/rn-dev-agent · 234 tokens

security-reviewer

Use when a security review is needed after implementation. Applies OWASP-style checks with fresh context. Critical findings are a hard gate — they block shipping until resolved. Example triggers — "security review", "check for vulnerabilities", "audit this code for security issues".

bostonaholic/team · 56 tokens

guardian

Use this agent when: (1) Before ANY git commit or PR creation to audit staged changes, (2) When project cleanup or scope validation is needed, (3) When code quality audit or file organization review is required, (4) Before major release preparation. This agent is MANDATORY in the commit workflow and acts as the final…

Zeekeey-jpeg/LeRoy-HQ · 170 tokens