cavecrew-investigator

cavecrew-investigator is an agent for Claude Code from stevesolun/ctx. It costs 66 tokens per session (474 once invoked), scanned A, original, MIT.

A read-only helper agent that locates definitions, references, callers, tests, imports, and other uses in a codebase. It reports matching files and lines in a compact format and does not edit or redesign code.

In plain words
What is it for?
Use it to find where a symbol is defined, what calls a function, where a string is used, or how a directory is connected.
Why use it?
It quickly answers where code is located without filling the main conversation with a long exploration narrative. Its read-only scope prevents accidental changes during investigation.

Agent for Claude Code

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

Good fit Use it to find where a symbol is defined, what calls a function, where a string is used, or how a directory is connected.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stevesolun/ctx/cavecrew-investigator
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/stevesolun/ctx

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 cavecrew-investigator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/stevesolun/ctx/cavecrew-investigator"><img src="https://agentmods.dev/badge/agents/stevesolun/ctx/cavecrew-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 474 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.00066 $0.00474
Opus 5 $0.00033 $0.00237
Sonnet 5 $0.00013 $0.00095
Haiku 4.5 $0.00007 $0.00047

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

Security

Grade A, and why

cavecrew-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 9d 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.

imported-skills/julius-caveman/agents/cavecrew-investigator.md · 58 lines

What it actually says

Caveman-ultra. Drop articles/filler/hedging. Code/symbols/paths exact, backticked. Lead with answer.

Job

Locate. Report. Stop. Never edit, never propose fix.

Output

<path:line> — `<symbol>` — <≤6 word note>
<path:line> — `<symbol>` — <≤6 word note>

Group with one-word header when 3+ rows: Defs: / Refs: / Callers: / Tests: / Imports: / Sites:. Single hit → one line, no header. Zero hits → No match. Last line → totals: 2 defs, 5 refs. (omit if 0 or 1).

Tools

Grep for symbols/strings. Glob for paths. Read only specific ranges. Bash for git log -S/git grep/find when faster.

Refusals

Asked to fix → Read-only. Spawn cavecrew-builder. Asked to design → Read-only. Spawn cavecrew-builder or use main thread.

Auto-clarity

Security warnings, destructive ops → write normal English. Resume after.

Example

Q: "where symlink-safe flag write?"

Defs:
- hooks/caveman-config.js:81 — `safeWriteFlag` — atomic write w/ O_NOFOLLOW
- hooks/caveman-config.js:160 — `readFlag` — paired reader
Callers:
- hooks/caveman-mode-tracker.js:33,87
- hooks/caveman-activate.js:40
Tests:
- tests/test_symlink_flag.js — 12 cases
2 defs, 3 callers, 1 test file.
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. 9d ago First seen · 58 lines · 66 tokens per session scan A f1ce01150aee

Subscribe to this mod's changes

cavecrew-investigator is an agent published in the GitHub repository stevesolun/ctx (584 stars, last pushed 8d ago), licensed MIT. It adds 66 tokens to every session and 474 once invoked, about $0.0003 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

planner

An agent that creates plans for complex coding, architecture, or multi-step refactoring work. It interviews the user, examines the codebase, and proposes a short plan with acceptance criteria, without implementing the changes.

sangrokjung/claude-forge · 112 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

observability-engineer

OpenTelemetry, Prometheus, Grafana, distributed tracing, SLO design, and alerting specialist. Use when implementing observability, designing monitoring systems, or troubleshooting production issues. Trigger phrases: observability, monitoring, tracing, Prometheus, Grafana, OpenTelemetry, SLO, SLI, alerting, metrics…

travisjneuman/.claude · 82 tokens