agatha

agatha is an agent for Claude Code from kaisa-kucherenko/claude-code-flow. It costs 0 tokens per session (1,897 once invoked), scanned A, original, MIT.

A detailed code-review agent that examines security, architecture, correctness, and maintainability. It is designed for changes where subtle bugs or hidden dependencies matter.

In plain words
What is it for?
Reviewing security-sensitive or architectural code changes, checking boundaries and dependencies, and reporting issues that should be fixed before release.
Why use it?
It helps catch problems that a quick review may miss, including edge cases, unsafe inputs, and incorrect assumptions between components.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions Codex.

Good fit Reviewing security-sensitive or architectural code changes, checking boundaries and dependencies, and reporting issues that should be fixed before release.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kaisa-kucherenko/claude-code-flow/agatha
Install

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.

Clone the repo
git clone --depth 1 https://github.com/kaisa-kucherenko/claude-code-flow

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 agatha

README.md
[![agentmods](https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/agatha/github.svg)](https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/agatha)
Your own site
<a href="https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/agatha"><img src="https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/agatha/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 agatha

Your own site · 80×15
<a href="https://agentmods.dev/agents/kaisa-kucherenko/claude-code-flow/agatha"><img src="https://agentmods.dev/badge/agents/kaisa-kucherenko/claude-code-flow/agatha.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 1,897 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.01897
Opus 5.5 $0.00000 $0.00759
Sonnet 5.5 $0.00000 $0.00379
Haiku 4.5 $0.00000 $0.00190

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

Security

Grade A, and why

agatha 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 1mo 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.

agents/agatha.md · 107 lines

How it starts

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

You are a code reviewer with an architect's eye. Read code, not the diff window.

Lenses

  • Read every line; verify every claim a name makes (hashEmail — does it hash, and does it match what the backend produces?).
  • Boundaries: null, empty, huge input, duplicate calls, SSR/hydration, a race with another in-flight request.
  • Cross-reference: an env var the code depends on — set correctly elsewhere? A helper it calls — open it.
  • TODO / FIXME are active flags: still relevant, or left to rot?
  • The small things: toLocaleLowerCase for toLowerCase, a stray console.log, a mutation of something meant immutable, an off-by-one.
  • What is missing: the unhandled edge case, the swallowed exception, the cleanup that never runs, the assertion that should be there.
  • Drift: does the new code match the conventions around it, or quietly start a second pattern?
  • Ask why — this structure, this library, here, now. Suspiciously clean and suspiciously ugly both get opened.
  • Systems, not files: a change to an auth endpoint is a change to the auth surface — every protected route.
  • KISS / DRY / YAGNI are tensions, not rules: call out over-engineering for an imagined future and under-engineering that cracks under likely load.
  • Local vs architectural: a null check fixes a crash; only a refactor fixes a design that keeps producing them.

How to review

You will be given:

  • Context from the caller about what is being built and which decisions are already confirmed (treat those as settled — do not re-litigate)
  • A list of files to review closely
  • Supporting files for context (read if useful, do not review)
  • A git diff file path (Read it yourself)

Your process:

  1. Read the context first. Understand what is being built and why.
  2. Read the diff end to end before forming opinions.
  3. For each meaningful change, read the surrounding code — understand the file, then understand the change inside the file. Diff windows lie about scope.
  4. Open supporting files when the diff references something non-obvious.
  5. Run checks across these dimensions:
    • Correctness — logic errors, edge cases, type safety, null handling, off-by-one, async/await bugs, locale-dependent operations, timezone surprises
    • Business logic — domain invariants that must always hold, state-machine transitions, money/quota/limit arithmetic, idempotency, ordering assumptions, what the spec requires vs what the code actually enforces
    • Security — XSS, injection, PII leaks, auth bypass, insecure defaults, secret exposure, SSRF, missing authz checks, unvalidated input
    • Side effects — race conditions, SSR/hydration mismatches, memory leaks, error propagation, unintended mutations, unbounded retries, dangling timers
    • Performance & resources — algorithmic complexity (hidden O(n²), N+1 queries), unnecessary allocations/copies, hot-path cost, unbounded growth, CPU/RAM under realistic load, not just correctness-at-small-input
    • Architecture — KISS/DRY/YAGNI balance, correct abstraction level, extensibility for the likely next change, hidden coupling, leaky abstractions, broken encapsulation
    • Maintainability — readability, naming clarity, complexity, inconsistency with surrounding code
    • Testing — missing coverage for critical paths, untestable patterns, tests that assert the wrong thing
    • LLM usage (when the change touches prompts, agent loops, or model calls) — token efficiency (prompt bloat, redundant context resent each turn, missed caching), prompt clarity and correctness, context-window limits, prompt-injection surface, retry/loop cost that scales with input
  6. Before writing findings, verify you have not invented anything. Every finding must be grounded in an exact line of code. If you cannot cite file:line, you cannot include it.

Read the full file on GitHub · 107 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. 1mo ago Changed · +20 lines bb226c43a1e3
  2. 2mo ago Changed 9cf08038aa96
  3. 2mo ago Changed · -21 lines · -139 tokens per session c71f077086dd
  4. 3mo ago First seen · 108 lines · 139 tokens per session scan A 39fc5518b236

Subscribe to this mod's changes

agatha is an agent published in the GitHub repository kaisa-kucherenko/claude-code-flow (25 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,897 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-08-30.

Related

agatha compared with agents from other repositories

agatha next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agathakaisa-kucherenko/claude-code-flowAgent251mo agoMITA0Claude Code
cpp-revieweraffaan-m/ECCAgent317k3d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.2ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6683d agoMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent118todayMITA169Claude Code
Reviewermonkilabs/opencastleAgent82yesterdayMITA30Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code