kitaru-investigation

kitaru-investigation is a skill for Claude Code, Codex from decodingai-magazine/building-a-coding-agent-from-scratch-course. It costs 147 tokens per session (4,653 once invoked), scanned A, original, Apache-2.0.

A guided investigation workflow for examining an agent's code or recorded runs in Kitaru. It leads from setup and importing or recording through human review, an accepted behavior, a versioned group of cases, and evaluator selection.

In plain words
What is it for?
Use it to connect an existing agent, inspect traces, organize cases into a cohort, choose evaluators, and prepare one controlled change for replay.
Why use it?
It keeps observed behavior separate from desired behavior and from the outcome of outside systems. It also preserves identifiers and requires human judgment instead of treating an agent's suggestion as a verdict.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to connect an existing agent, inspect traces, organize cases into a cohort, choose evaluators, and prepare one controlled change for replay.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation
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.

Any agent
npx skills add decodingai-magazine/building-a-coding-agent-from-scratch-course --skill kitaru-investigation
Clone the repo
git clone --depth 1 https://github.com/decodingai-magazine/building-a-coding-agent-from-scratch-course

Made for: Claude Code, Codex.

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 kitaru-investigation

README.md
[![agentmods](https://agentmods.dev/badge/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation/github.svg)](https://agentmods.dev/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation)
Your own site
<a href="https://agentmods.dev/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation"><img src="https://agentmods.dev/badge/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation/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 kitaru-investigation

Your own site · 80×15
<a href="https://agentmods.dev/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation"><img src="https://agentmods.dev/badge/skills/decodingai-magazine/building-a-coding-agent-from-scratch-course/kitaru-investigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,653 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.00147 $0.04653
Opus 5 $0.00073 $0.02327
Sonnet 5 $0.00029 $0.00931
Haiku 4.5 $0.00015 $0.00465

Measured yesterday against content hash aa0517629432, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

kitaru-investigation 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/kitaru-investigation/SKILL.md · 442 lines

How it starts

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

Kitaru investigation

Treat this skill as Kitaru's evidence-led front door for real agents and traces. Guide one continuous journey from the evidence the user has to a reviewed behavior and, when they want to test a change, the kitaru-replay-experiment skill.

Core contract

  • Treat the human as the judge. Select, summarize, organize, and compile evidence; never turn an agent suggestion into a human label.
  • Preserve durable Kitaru state. Re-read existing objects before creating replacements, and carry exact agent, session, investigation, investigation-session, annotation, cohort-version, evaluator, and evaluator-version identifiers forward.
  • Separate observed behavior from desired behavior. A trace records what happened, not what should have happened or whether the external outcome was correct.
  • Distinguish agent behavior, external dependency behavior, product purpose, and independent outcome evidence.
  • Use open observations before proposing a taxonomy. Deterministic signals may select sessions; they do not judge them.
  • Explain remote writes and paid or live execution before running them. Ask for one proportional confirmation at the point of action.
  • Prefer native Kitaru MCP operations when available. CLI-only operation is supported; use the structured CLI for local files, built-in wait behavior, or an operation MCP does not expose.
  • Run every Kitaru CLI command and SDK script with KITARU_ACTIVE_SKILL=kitaru-investigation set so the server attributes the resulting activity to this skill.
  • Start or restart a user-controlled worker with --concurrency 10. Use KITARU_WORKER_CONCURRENCY=10 only when the launch surface exposes worker settings through environment variables instead of CLI options.
  • Stop at a useful durable checkpoint when a required source, payload, permission, worker, product contract, or UI capability is unavailable.

Keep the experience light

  • Lead with the current state and one next useful action.
  • Use ordinary language for user decisions. Keep internal labels such as trace-first, cold-start, question keys, and selectors out of the lead.
  • Ask for one meaningful judgment at a time. Do not turn setup into a long questionnaire.
  • Prefer short prose during active review. Use a table only when the user must compare repeated fields or several candidates.
  • Summarize structured output instead of dumping JSON. Preserve exact IDs, versions, warnings, and missing evidence in a compact checkpoint.
  • Show which claims came from the repository, traces, user, or agent reasoning.

Read the full file on GitHub · 442 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 442 lines · 147 tokens per session scan A aa0517629432

Subscribe to this mod's changes

kitaru-investigation is a skill published in the GitHub repository decodingai-magazine/building-a-coding-agent-from-scratch-course (383 stars, last pushed yesterday), licensed Apache-2.0. It adds 147 tokens to every session and 4,653 once invoked, about $0.0007 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-09.