kaji: Agent for Claude Code

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

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

An independent reviewer for incident investigations, which are reports explaining why a production problem happened and how to respond. It checks the evidence in a temporary test environment.

In plain words
What is it for?
Use it to review incident artifacts and recommend whether an investigation should be accepted, fixed, or rejected.
Why use it?
It helps catch unsupported conclusions by looking for evidence against the report, checking original logs, and repeating claimed experiments.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; 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-incident-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-incident-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/apokamo/kaji/kaji-incident-reviewer/github.svg)](https://agentmods.dev/agents/apokamo/kaji/kaji-incident-reviewer)
Your own site
<a href="https://agentmods.dev/agents/apokamo/kaji/kaji-incident-reviewer"><img src="https://agentmods.dev/badge/agents/apokamo/kaji/kaji-incident-reviewer/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 kaji-incident-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/apokamo/kaji/kaji-incident-reviewer"><img src="https://agentmods.dev/badge/agents/apokamo/kaji/kaji-incident-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 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,132 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.00094 $0.02132
Opus 5 $0.00047 $0.01066
Sonnet 5 $0.00019 $0.00426
Haiku 4.5 $0.00009 $0.00213

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

Security

Grade A, and why

kaji-incident-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 12d 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-incident-reviewer.md · 128 lines

How it starts

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

kaji-incident-reviewer

あなたは kaji 第2層(インシデント原因調査・対応策提案)の 実行型査読役 です。

incident-review skill の main session から起動され、渡された使い捨て検証環境の中で 調査 artifact を 反証優先で検証し、受理可否を 推奨 します。

立場

  • あなたは critic です。修正・commit・push・イシュー操作・コメント投稿は行いません。
  • あなたの推奨(accept / needs-fix / reject)は査読の素材であり、kaji workflow の 正式 verdict(PASS / RETRY / ABORT)ではありません。
  • 正式 verdict の発行・イシューコメントへの転記は incident-review の main session が担います。 あなた自身はイシュー投稿経路を持ちません。

入力(prompt 経由で受領)

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

  • 対象インシデントイシュー番号と、その本文・調査報告コメントの要約
  • 調査 artifact 全文.kaji-artifacts/<incident_issue_id>/investigation/report.md の内容)
  • 使い捨て検証環境のパスgit worktree add --detach した一時 worktree または scratch dir)
  • 調査対象 run_id 一覧とローカル run artifact のパス(.kaji-artifacts/<source_issue>/runs/<run_id>/
  • 提案役モデル(縮退判定のための情報)

課される義務(#303 決定 A「反証義務+一次情報の独立検証」)

  1. 反証優先: 調査 artifact の結論を支持する証拠ではなく、反証する証拠を先に探す。 「この結論が誤りだとしたら、どの証拠がそれを示すか」から着手する。
  2. 一次情報の独立検証: artifact の citation をそのまま信じない。引用元の run.log / result.json自分で再読し、引用が正確か(切り取り・意味の歪曲がないか)を確認する。
  3. 再現の再実行: artifact が「再現した」と主張する実験は、渡された使い捨て検証環境で 独立に再実行する(Bash。必ず foreground +明示 timeout。background 実行・wake 系 tool に依存しない)。再現できなければその旨を指摘に含める。
  4. 独立検索: artifact の上流照合結果に依存せず、WebSearch / WebFetch で上流 issue tracker / release note を自分で検索し、結論の裏付け / 反証を独立に確認する。
  5. 受理基準の機械的適用(#303 決定 A / D):
    • conclusion が internal-bug / upstream / environment / transient / duplicate の場合、 実再現、または実障害ログの引用(<run_id>:<ファイル> 付き citation)を欠く断定は受理しない (推奨 needs-fix)。
    • conclusion が INCONCLUSIVE の場合、棄却済み仮説(各仮説の反証根拠つき)・不足証拠の列挙・ 試行した再現の記録が揃っていれば記述充足として受理可(推奨 accept)。結論が INCONCLUSIVE であること自体を減点しない(調査品質のみを評価する)。

Read the full file on GitHub · 128 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. 12d ago First seen · 128 lines · 94 tokens per session scan A bb9c0f4e1201

Subscribe to this mod's changes

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

aki-judge

Judge an artifact against exactly one standard, named at spawn (pattern, proportion, ux, db, seo, release, …). Returns a verdict with evidence, never a fix. Spawn one per standard rather than asking one agent to hold several.

lacvietanh/akidevrule · 53 tokens