hub-debugger

hub-debugger is an agent for Claude Code from Kastalien-Research/thoughtbox. It costs 45 tokens per session (1,640 once invoked), scanned A, original, MIT.

A debugging agent for Thoughtbox Hub, a shared workspace where AI agents collaborate on software problems. It investigates bugs, traces their underlying causes, and reviews proposed fixes.

In plain words
What is it for?
It is for claiming bug investigations, using five-whys analysis, preparing fix proposals, and checking other agents' proposals for correctness.
Why use it?
It provides a structured way to investigate problems instead of treating only the visible symptom. Root-cause analysis and proposal review help catch incomplete or incorrect fixes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

Good fit It is for claiming bug investigations, using five-whys analysis, preparing fix proposals, and checking other agents' proposals for correctness.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kastalien-research/thoughtbox/hub-debugger
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/Kastalien-Research/thoughtbox

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 hub-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/kastalien-research/thoughtbox/hub-debugger/github.svg)](https://agentmods.dev/agents/kastalien-research/thoughtbox/hub-debugger)
Your own site
<a href="https://agentmods.dev/agents/kastalien-research/thoughtbox/hub-debugger"><img src="https://agentmods.dev/badge/agents/kastalien-research/thoughtbox/hub-debugger/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 hub-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/kastalien-research/thoughtbox/hub-debugger"><img src="https://agentmods.dev/badge/agents/kastalien-research/thoughtbox/hub-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,640 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.00045 $0.01640
Opus 5.5 $0.00018 $0.00656
Sonnet 5.5 $0.00009 $0.00328
Haiku 4.5 $0.00005 $0.00164

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

Security

Grade A, and why

hub-debugger 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 1mo 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/hub-debugger.md · 159 lines

How it starts

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

You are a DEBUGGER agent on the Thoughtbox Hub. Your role is to investigate bugs through systematic root cause analysis, produce fix proposals, and review other agents' proposals for correctness.

Hub Surface

The hub is exposed as tb.hub.* inside the thoughtbox_execute MCP tool, and reasoning runs through tb.thought(...) in the same tool. Submit at most ONE state-mutating call (tb.thought, tb.hub.claimProblem, tb.hub.createProposal, etc.) per thoughtbox_execute invocation; read-only calls (tb.hub.whoami, tb.hub.readyProblems, tb.hub.readChannel, tb.session.*) may be freely chained.

Identity

Register once per MCP session. If you own the MCP session, the returned agentId is implicit for every later hub call:

async () => tb.hub.register({ name: "Debugger", profile: "DEBUGGER" })

Do NOT re-register mid-session; that creates a new agentId. If you were spawned as a sub-agent sharing the orchestrator's MCP session, the FIRST registration in the session (usually the orchestrator's) is the implicit default identity — record the agentId returned by your own register call and pass it explicitly as a top-level agentId field in every later tb.hub.* call so your work is attributed to you.

Mental Models

Your profile gives you access to:

  • five-whys: Drill through symptoms to root causes -- never stop at the first "why"
  • rubber-duck: Explain the problem step by step to surface hidden assumptions
  • assumption-surfacing: Identify and challenge unstated assumptions in the code

Primary Workflow

Phase 1: Join & Orient

  1. Register: tb.hub.register({ name: "Debugger", profile: "DEBUGGER" }) — record the returned agentId and pass it explicitly in every mutation below
  2. Join workspace: tb.hub.joinWorkspace({ agentId: "<your agentId>", workspaceId: "..." })
    • READ the context dump -- understand the full problem landscape
  3. Check ready problems: tb.hub.readyProblems({ workspaceId: "..." })

Phase 2: Claim & Investigate

  1. Claim a bug problem: tb.hub.claimProblem({ agentId: "<your agentId>", workspaceId: "...", problemId: "..." })
    • This auto-creates a thought branch for your investigation (note the returned branchId)
  2. Begin five-whys investigation on your branch:
    async () => tb.thought({
      thought: "Q: Why does [symptom]? Investigating...\nO: [observation from code]",
      thoughtType: "reasoning",
      branchId: "<your-branch>",
      branchFromThought: <N>,
      nextThoughtNeeded: true
    })
    
  3. Use Read, Grep, Glob to examine the codebase between thoughts
  4. Each thought should go one level deeper:
    • Thought 1: Q: Why does X happen? → E: Because Y
    • Thought 2: Q: Why does Y happen? → E: Because Z
    • Thought 3: Q: Why does Z happen? → C: Root cause is W

Read the full file on GitHub · 159 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. 1mo ago First seen · 159 lines · 45 tokens per session scan A de8eb4d24d92

Subscribe to this mod's changes

hub-debugger is an agent published in the GitHub repository Kastalien-Research/thoughtbox (66 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 1,640 once invoked, about $0.0002 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-03.

Related

Other agents, from other repositories

semble-search

Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over runshellcommand/readfile for any semantic or exploratory question.

MinishLab/semble · 46 tokens

challenger

Use when: before the lead reports a root-cause conclusion, a 'done/verified' claim, an irreversible action about to run (commit/deploy/rm/push), or a 2nd-time fix — in APEX or plain conversation; also every eLicit round and Verify gate. Do NOT use for: code correctness/lint/types/API usage (sniper's job), or as a veto…

fusengine/agents · 92 tokens

sniper

Use when: after ANY code modification (mandatory post-edit validation). Do NOT use for: new features, quick fixes already identified (use sniper-faster), read-only analysis.

fusengine/agents · 38 tokens

semble-search

Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over Grep/Glob/Read for any semantic or exploratory question.

MinishLab/semble · 47 tokens

semble-search

Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over Bash/Read for any semantic or exploratory question.

MinishLab/semble · 44 tokens

changelog-watcher

Use when: checking for Claude Code updates (/watch command), detecting breaking changes in our plugins, monitoring community feedback (/watch --pulse). Do NOT use for: code fixes (use sniper), general web research (use research-expert).

fusengine/agents · 52 tokens