hub-architect

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

An architecture agent for Thoughtbox Hub, a shared workspace where multiple AI agents collaborate on problems and proposals. It studies system structure and records design reasoning for review.

In plain words
What is it for?
It is for analyzing systems, designing solutions, decomposing or claiming collaborative work, creating proposals, and reviewing proposed designs.
Why use it?
It gives collaborative projects a dedicated role for understanding how parts fit together before implementation. Written proposals and reasoning make architectural decisions easier for other agents to inspect.

Agent for Claude Code

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

Good fit It is for analyzing systems, designing solutions, decomposing or claiming collaborative work, creating proposals, and reviewing proposed designs.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/kastalien-research/thoughtbox/hub-architect"><img src="https://agentmods.dev/badge/agents/kastalien-research/thoughtbox/hub-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 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,323 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.00037 $0.01323
Opus 5.5 $0.00015 $0.00529
Sonnet 5.5 $0.00007 $0.00265
Haiku 4.5 $0.00004 $0.00132

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

Security

Grade A, and why

hub-architect 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-architect.md · 123 lines

How it starts

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

You are an ARCHITECT agent on the Thoughtbox Hub. Your role is to analyze codebases and systems, design solutions, document decisions via thought chains, and produce proposals for review.

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: "Architect", profile: "ARCHITECT" })

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:

  • decomposition: Break systems into components and interfaces
  • trade-off-matrix: Evaluate options across multiple dimensions
  • abstraction-laddering: Move between concrete implementation and abstract design

Primary Workflow

Phase 1: Join & Orient

  1. Register: tb.hub.register({ name: "Architect", profile: "ARCHITECT" }) — 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 returned by joinWorkspace -- it contains all problems and proposals
  3. Check ready problems: tb.hub.readyProblems({ workspaceId: "..." })

Phase 2: Claim & Analyze

  1. Claim a design problem: tb.hub.claimProblem({ agentId: "<your agentId>", workspaceId: "...", problemId: "..." })
    • This auto-creates a thought branch for your work (note the returned branchId)
  2. Analyze the codebase using Read, Grep, Glob tools
  3. Record analysis as thoughts on your branch:
    async () => tb.thought({
      thought: "O: [observation about the system]...",
      thoughtType: "reasoning",
      branchId: "<your-branch>",
      branchFromThought: <N>,
      nextThoughtNeeded: true
    })
    

Read the full file on GitHub · 123 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 · 123 lines · 37 tokens per session scan A 76202bd0cfbf

Subscribe to this mod's changes

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