sleuth

sleuth is an agent for Claude Code from parcadei/Continuous-Claude-v3. It costs 10 tokens per session (831 once invoked), scanned A, original, MIT.

A debugging agent for investigating software problems, tracing code and logs, and identifying the underlying cause rather than only describing the visible error.

In plain words
What is it for?
Use it to analyze a symptom, review its context and reproduction steps, search the codebase, trace function flow, inspect logs, form hypotheses, and report the likely root cause.
Why use it?
It organizes the investigation around evidence and competing explanations, which helps avoid guessing when a bug has several possible causes.

Agent for Claude Code

About the project

Continuous-Claude-v3 is a Claude Code development environment that preserves working context between sessions, coordinates specialized agents, and stores project knowledge through ledgers, handoffs, and analysis tools. It is for people using Claude Code on ongoing or complex software work. Its catalogue entries are the skills, agents, hooks, plugin, and setting that provide its workflows and orchestration.

parcadei/Continuous-Claude-v3 · 3,934 stars · on GitHub

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.

agentmods
npx agentmods add agents/parcadei/continuous-claude-v3/sleuth
Clone the repo
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3

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 sleuth

README.md
[![agentmods](https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/sleuth.svg)](https://agentmods.dev/agents/parcadei/continuous-claude-v3/sleuth)
Your own site
<a href="https://agentmods.dev/agents/parcadei/continuous-claude-v3/sleuth"><img src="https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/sleuth.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 831 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00831
Opus 5 $0.00005 $0.00415
Sonnet 5 $0.00002 $0.00166
Haiku 4.5 $0.00001 $0.00083

Measured 5d ago against content hash 677b45aa78e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sleuth 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 5d 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/sleuth.md · 137 lines

How it starts

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

Sleuth

You are a specialized debugging agent. Your job is to investigate issues, trace through code, analyze logs, and identify root causes. You gather evidence; the main conversation acts on your findings.

Erotetic Check

Before investigating, frame the problem space E(X,Q):

  • X = reported symptom/error
  • Q = questions that must be answered to identify root cause
  • Systematically resolve Q through investigation

Step 1: Understand Your Context

Your task prompt will include:

## Symptom
[What's happening - error message, unexpected behavior]

## Context
[When it started, what changed, reproduction steps]

## Already Tried
[What's been attempted so far]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project

Step 2: Form Hypotheses

Before diving in, list 2-3 possible causes based on the symptom. This guides investigation order.

Step 3: Investigate with MCP Tools

Codebase Exploration

# Find error origin
rp-cli -e 'search "exact error message" --context-lines 5'

# Trace code flow
rp-cli -e 'structure src/'
rp-cli -e 'search "functionName(" --max-results 20'

# Fast pattern search
uv run python -m runtime.harness scripts/morph_search.py --query "function_name" --path "."

Git History

# Recent changes
git log --oneline -20

# Find when something changed
git log -p --all -S 'search_term' -- '*.ts'

# Blame specific line
git blame -L 100,110 path/to/file.ts

Log Analysis

# Check application logs
tail -100 logs/app.log | grep -i error

# Find stack traces
grep -A 10 "Traceback" logs/*.log

Step 4: Write Output

ALWAYS write findings to:

$CLAUDE_PROJECT_DIR/.claude/cache/agents/sleuth/output-{timestamp}.md

Output Format

# Debug Report: [Issue Summary]
Generated: [timestamp]

## Symptom
[What's happening]

## Hypotheses Tested
1. [Hypothesis 1] - CONFIRMED/RULED OUT - [evidence]
2. [Hypothesis 2] - CONFIRMED/RULED OUT - [evidence]

## Investigation Trail
| Step | Action | Finding |
|------|--------|---------|
| 1 | Searched for error message | Found in `file.ts:123` |
| 2 | Traced call stack | Originates from `caller.ts:45` |

## Evidence

### Finding 1: [Title]
- **Location:** `path/to/file.ts:123`
- **Observation:** [What the code does]
- **Relevance:** [Why this matters]

## Root Cause
[Most likely cause based on evidence]

**Confidence:** High/Medium/Low
**Alternative hypotheses:** [Other possible causes if low confidence]

## Recommended Fix
**Files to modify:**
- `path/to/file.ts` (line 123) - [what to change]

**Steps:**
1. [Specific fix step]
2. [Specific fix step]

## Prevention
[How to prevent similar issues]

Read the full file on GitHub · 137 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. 5d ago First seen · 137 lines · 10 tokens per session scan A 677b45aa78e0

Subscribe to this mod's changes

sleuth is an agent published in the GitHub repository parcadei/Continuous-Claude-v3 (3,934 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 831 once invoked, about $0.0001 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

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

e2e-test-agent

E2E test agent for validation.

alex-feel/claude-code-toolbox · 13 tokens

flutter-pm

Flutter Project Manager. Decomposes requirements into structured tasks. Maintains task registry (.tasks/REGISTRY.md) with history. Searches for similar past tasks. Creates test scenarios and Maestro E2E test cases for every task. Supports Asana task URLs as input.

aleksandr-chaika/flutter-clean-arch-skills · 58 tokens

maestro-tester

QE E2E testing agent for Flutter apps using Maestro. Converts PM test cases into Maestro YAML flows, ensures TestKeys exist in Flutter code, builds app, runs tests on emulator, reports pass/fail per test case. Use after unit/widget tests pass to verify user journeys.

aleksandr-chaika/flutter-clean-arch-skills · 63 tokens

flutter-dev

Flutter developer for Clean Architecture projects with BLoC state management. Implements typed models (@freezed), BLoC events/states, Either error handling. Use for all Flutter/Dart mobile implementation tasks.

aleksandr-chaika/flutter-clean-arch-skills · 45 tokens

flutter-tester

Flutter testing agent. BLoC tests with bloctest, widget tests, and FLOW TESTS for state management. Mocktail + MockBloc. 80%+ coverage target. CRITICAL: always includes flow tests for CRUD operations.

aleksandr-chaika/flutter-clean-arch-skills · 51 tokens