Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Esonhughv0.4.0In 1 marketplace
Works through a bug or unknown failure as a tracked case, with hypotheses, evidence and proof gates kept in local JSON under .detective/. Its Stop hook blocks stopping only when a case is marked active, and it needs DETECTIVE_WORKSPACE set.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Detective is a Claude Code plugin for structured investigations. v0.4 is a breaking release: the public surface is one MCP API, one project-local JSON case model, and one OODA-native lifecycle. Legacy v1 scripts, migration APIs, scheduler-next-action APIs, and separate convergence/deadlock APIs are not part of this release.
A case is stored at .detective/cases/<case-id>/case.json and is mutated only through MCP tools. The case contains:
nodes: observations, clues, evidence, hypotheses, constraints, conclusions, questions, and tasks.edges: directed reasoning links: supports, contradicts, derives, requires, eliminates, related_to.ooda: current phase plus investigation intents.blackboard: scratch notes that can be promoted to graph nodes.actions: planned/active/done investigation work.coverage: investigation areas and completion status.proofs, checkpoints, events, and closure: audit trail and completion gate state.The lifecycle is OODA: Observe → Orient → Decide → Act → Review. Record phase changes with detective_transition_phase, track goals with intents, execute work as actions, and close only after detective_completion_gate allows it or the user explicitly forces closure. Investigation skills are designed to self-drive OODA loops until the completion gate passes or an explicit stop condition applies.
When a SetGoal or equivalent goal tool is available in the harness, Detective skills may use it for session orchestration: after case creation, the goal should mention the case id, intent, completion criteria, and autonomous OODA advancement. This never replaces detective_open_case or MCP case state; .detective/cases/<case-id>/case.json remains canonical and is mutated only through MCP tools.
SetGoal or an equivalent goal-driven continuation mechanism is preferred for keeping active investigations moving. The plugin also ships a prompt-based Stop hook as a safety fallback, but the static registration is inert by default: the hook immediately approves stopping unless the transcript contains an explicit activation marker.
Dynamic activation is transcript-driven, not filesystem-driven. Skills must not edit .detective/ files or hook files to control the fallback. When no SetGoal-equivalent tool is available, /detective:open-case or /detective:investigate may emit a concise visible marker after a durable MCP case exists:
<DETECTIVE-STOP-FALLBACK status="active" case-id="<case_id>">
The matching deactivation marker is emitted on user pause/stop, blocked state, budget/timebox/step exhaustion, completion, or close:
<DETECTIVE-STOP-FALLBACK status="inactive" case-id="<case_id>" reason="<pause|blocked|budget-exhausted|complete|closed>">
For each case id, the latest marker wins. A case is fallback-active only when its latest marker is status="active"; a later status="inactive" for that case disengages it. The hook must not infer activation merely from an open or active Detective case. Brainstorming never emits activation before user approval and durable MCP case creation. Review and discussion preserve current status except when they identify a stop/deactivation condition.
When marker-active, the Stop hook still approves stopping when the case is closed or completion gate passed, the user asks to stop or pause, the assistant is waiting for a user-only decision, the case is blocked or no legal action remains, budget or max_actions is exhausted, a goal mechanism is active/available, non-Detective tasks/tests are complete, or repeated StopHook blocking/cycling is visible. It blocks only when the marked case is unfinished, no goal mechanism is available, and a concrete legal useful next OODA action remains.
Claude Code loads plugin hooks when a session starts. This marker protocol does not truly hot-add or hot-remove hooks; it only makes the already registered Stop hook fail open or engage based on transcript context. True hook loading changes require restarting Claude Code and are not attempted by Detective.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub esonhugh/marketplace --plugin detectivePlugins from other owners that cover similar ground