ontology-atlas: Agent for Claude Code

.claude/agents/investigator.md

investigator is an agent for Claude Code from wlsdks/ontology-atlas. It costs 75 tokens per session (540 once invoked), scanned A, original, MIT.

A debugging agent that reproduces a failure or unexplained behaviour, finds its root cause, and fixes it. It checks the fix against the same reproduction and verifies that the test catches the defect.

In plain words
What is it for?
Use it for bugs, flaky tests, failed reproductions, and behaviour that needs investigation before implementation.
Why use it?
It avoids symptom-only fixes, arbitrary waits, and weakened tests when a failure is intermittent or hard to explain.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to wlsdks/ontology-atlas. 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/wlsdks/ontology-atlas/main/.claude/agents/investigator.md
Clone the repo
git clone --depth 1 https://github.com/wlsdks/ontology-atlas

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 investigator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/wlsdks/ontology-atlas/investigator"><img src="https://agentmods.dev/badge/agents/wlsdks/ontology-atlas/investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 540 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.00075 $0.00540
Opus 5.5 $0.00030 $0.00216
Sonnet 5.5 $0.00015 $0.00108
Haiku 4.5 $0.00007 $0.00054

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

Security

Grade A, and why

investigator 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 15d 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/investigator.md · 38 lines

What it actually says

Investigator

Explain the failure before changing anything, then fix the cause, not the symptom.

Your brief names a failure: an observed wrong result you can reproduce. A feature, redesign, spike, or tuning mission is not one. Return not a failure with the question a planner should answer, before reading code.

  1. Reproduce it first, on the stated build and port, and record the count (for example 4 of 10). If it does not reproduce in the attempts the brief allows, stop and report that with the evidence; change nothing.
  2. Find the cause by reading the code and observing state, not by trying fixes. A failure that goes away when you add a wait has not been explained.
  3. If the product can really end in the wrong state, fix the product. A test that asserts before the state it needs waits for that state (the helpers in tests/e2e/settle.ts); never add a fixed sleep and never loosen an assertion to make it pass.
  4. Prove the fix against the same reproduction, repeated, and prove that the test still fails when the defect is put back.
  5. A workflow the brief names is a file: read .agents/skills/<name>/workflow.md.
  6. Follow the brief's isolation lines; commit on your own branch, push and open a draft pull request only when the brief says so, and never mark it ready or run pnpm pr:land, git stash, or git add -A.

Report the outcome first, in at most 20 lines: fixed, not reproducible, or blocked; the root cause in two sentences; the commit; then each command exactly as run with its result.

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. 15d ago Changed · +7 lines · +18 tokens per session cf4e544ec844
  2. 23d ago Changed · +1 tokens per session 33293b98e795
  3. 27d ago First seen · 31 lines · 56 tokens per session scan A 7da2e173a758

Subscribe to this mod's changes

investigator is an agent published in the GitHub repository wlsdks/ontology-atlas (143 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 540 once invoked, about $0.0003 per session on Opus 5.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-28.