hubd
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Shared sync point for all project folders and agents. New here? Call hub_onboarding first. In a project folder? Call hub_context({cwd:""}) to auto-resolve which project this is and its digest, instead of hub_get. Returning after time away? Call hub_whatsnew instead of re-reading hub_status from scratch. Resuming after a context compaction? hub_context({cwd}) first — it answers from state (digest age, who else is here, journal tail) — then hub_whatsnew({since:"session"}); the default checkpoint is empty for your own session. hub_brief gives a morning overview. Create work with hub_task_add.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| hub_syncA | Sync a project folder into the hub. Collects git facts automatically; pass digest (your own summary of state/next steps) and the card is rewritten. |
| hub_card_setA | Create or update a project card from just a name and a digest — no folder needed (unlike hub_sync). Use it to capture a project that is not a local git checkout, e.g. when harvesting a dialog. Preserves any hand-written frontmatter and Facts. To fix ONE stale line without touching the owner's framing, patch instead of replacing: |
| hub_section_addA | Append ONE line to ONE section of a project card, leaving everything around it untouched. This is how Gates / Metrics / Market and any hand-written section get written by a tool at all — hub_card_set only writes the digest, and the report router only reaches Decisions / Facts / Communication / Next step and your own Handoff section. For those, a normal hub_report with DECIDE:/FACT:/COMM:/NEXT:/HANDOFF: is still the right call; use this for the rest. A line set into a "Handoff " section is journaled as a handoff, as HANDOFF: is. The section is created if missing (you get created:true back — check it, a typo is how a card grows two nearly identical headings). |
| hub_reportA | Append a session report to the shared journal: what was done / broken / blocked. Lines are routed by prefix: DECIDE: (what | why), FACT:, HYPO:, COMM:, NEXT:, DONE: , TASK:, NOTE:, TO:, HANDOFF:. HANDOFF: lines replace your own "## Handoff " section of the card with where your work stands and the next step, dated, and file a |
| hub_statusA | Snapshot of every project at once: the latest digest of each, when it was last synced, and its open-task count, plus the most recent shared-journal entries. A project whose card has fallen behind its OWN journal carries digestStale {daysBehind, lastJournal} — the card still reads fresh while the work moved on. Best for orienting at the start of a session. For a deadline-sorted to-do list use hub_brief; for one project in depth use hub_get. |
| hub_getA | ONE project in depth: its card, its recent journal entries and any active soft-locks. Compact by default — the card's first 4000 chars (frontmatter, digest, facts, next step), the newest 5 journal entries with text cut to 240 chars; full:true gives the whole card and 15 entries. Use after hub_status or hub_search points you at a project. |
| hub_contextA | Where am I — the first call of a session and the first call after a context compaction. Resolves which hub project YOUR working directory belongs to, most to least certain: a .hubd marker file (repo root, first line = project slug) · a project card's recorded sync path · the repo folder name as a last-resort guess (guessed:true, with the one-line fix in |
| hub_searchA | Full-text search across every project card and the entire journal, archived months included. Returns each matching line with its location. START HERE whenever you know a keyword, a task id or a name but not which project owns it — searching once beats guessing project × status against hub_task_list, which is how sessions have actually wasted calls. Also the way to find where something was discussed or decided. |
| hub_task_addA | Add a task to the shared cross-project backlog. A wait goes in depends_on, not in the text: |
| hub_task_getA | ONE task by id, plus what it is blocked by and what it blocks, |
| hub_attemptA | Record what you tried on a task, whatever came of it, so the next agent on it does not walk into the same wall. A dead end with the reason is as useful as a result. outcome: dead (the lens is closed: say why, from the real output) | lead (promising, out of budget: say the next step) | partial / claim (a result: give it as the program printed it, and artifacts to check it by) | review (your check of someone else's partial or claim: of, check, verdict). A claim stands verified once three different reviewers, none of them its author, passed it on reproduce, novelty and criterion; one fail disputes it. Append-only: an attempt is never edited or deleted, so record the true result, never a hope. Read hub_task_get first. |
| hub_task_listA | List backlog tasks. Filter by project and/or status; page with limit/offset. |
| hub_task_updateB | Update a task: close it (status=done), reassign, reprioritise, edit text/deadline/cat. |
| hub_auditA | Compare what the hub DECLARES with what actually happened, and turn each disagreement into an incident somebody owns. Checks: a money bet whose gate date passed with no decision since · a project whose share of the journal contradicts the MODE its card declares · owner buttons nobody pressed · a card that stopped following its own journal · tasks with no project. Read-only by default; |
| hub_lintB | Every rule that CAN be checked, checked — the difference between a rule the hub enforces and one that is only written down somewhere. Reports a money bet whose gate has no date, and a human-owned communicative task with no prep it depends on (the owner would have to both prepare and decide). Each finding says whether the instance actually enforces it (HUB/rules.json -> strict, opt-in and empty by default) and quotes the local rule if one is declared. Read-only, never files anything. |
| hub_nextB | The ONE task to do now, and why it won — not a list. Picking from a list is work, and a session that has to pick tends to pick the easy one. A task whose dependencies are still open is never eligible, however loud it is. Says explicitly when the chosen one is the owner's to press rather than an agent's. |
| hub_agendaA | The day split by WHO CAN ACT: agent work ready now, the owner's buttons (owner_kind human, or assigned to a role declared in HUB/owner-roles.json), what is blocked and on what, overdue and due-soon, and the work nobody holds: unowned (an open high task with no assignee for over an hour) and deadlocks (a task waiting on a chain that ends on a task nobody holds, or loops). Different question from hub_brief (everything that is going on) and hub_inbox (what needs a decision): this one answers "what can I actually start", which a mixed list hides. |
| hub_recallA | What do we know about X — ranked across project cards, their sections, decisions, the journal and tasks, instead of hub_search's flat exact-substring list or hub_get's everything-about-one-project. Scoring is deterministic and readable: term coverage first, then where the line lives (a decision outranks a passing note), then recency. EVERY hit carries the date it was true as of and a stale flag — recall's real failure mode is handing over a two-month-old fact with this morning's confidence. |
| hub_reflectA | The reflection digest of one project, what a head reads instead of its workers' reports in full: per role, how turns ended (result) and what got in the way (obstacle class), and how many found no work (idle: result no with obstacle none, never an obstacle); per class, the count and the latest 3 facts; the rules proposed more than once; how many rules held the fragment's example (exampleRule, never counted as a rule); the verdicts heads and the orchestrator gave. A rule's other wordings count with it ( |
| hub_lawA | A head's verdict on a candidate for its project's laws (hub_reflect with promote lists them, each with an id), or on a law the head dictates: give |
| hub_usage_addA | Record what only YOU can see about a piece of work: seconds, tokens, cost, model. The hub cannot observe any of these, so they arrive here explicitly and are reported back as SUPPLIED, never mixed with what the hub measured itself. At least one number is required — an empty entry would record a $0 session. |
| hub_usageB | What the work cost, over a window, per project and per agent — with a hard line between SUPPLIED (seconds/tokens/money, reported by clients through hub_usage_add: what the hub can neither measure nor read; a session's tokens are READ by hub_stats) and MEASURED (closed-task spans and journal events, the hub's own arithmetic). The split is the point: a cost number that mixes an observed span with a guessed rate gets quoted later as if someone had counted. |
| hub_statsA | What the sessions cost and what came of it, per task, model, role or day. Tokens are READ from the clients' own databases (hub sessions ingest), bound to the task each role was ordered to work on (the queue header's "task #"); attempts and accept/reject are MEASURED from the journal (VERDICT: lines); |
| hub_rulesA | The team constitution (AGENTS.md) over MCP: read it, or append an amendment. hubd mechanics live in the generated HUBD.md — this is the file where the rules YOU set live. An amendment is APPENDED under one dated, attributed heading and never edits a line already there: rewriting a rule destroys the record of what it used to say, which is exactly what hub_audit needs to quote. |
| hub_operatorA | The operator card: facts and preferences about the HUMAN — rhythm, what framing works, and the Boundaries section listing what is never collected. Belongs to no project and changes slower than any of them. Agents READ Boundaries and never edit it. Returns a scaffold and how to create it if there is no card yet. |
| hub_briefA | Morning brief across all projects: open tasks (deadlines first), unowned (open high tasks with no assignee for over an hour) and deadlocks (tasks waiting on nobody, or in a loop), journal since N hours, stale cards, cards whose digest trails their own journal (staleDigests — the misleading kind of stale), active claims, per-role queue depth with last-seen agent (broadcast roles are flagged fanout instead of a depth — their cursors are per-reader), and a buttons rollup ("N buttons waiting, oldest X days" — pending items in a human-owner queue, see HUB/owner-roles.json). Two things wait on the owner and they are NOT the same: buttonItems = each unanswered package in an owner queue (age, sender, subject); ownerWaiting = open tasks only the owner can move, with age and how far past deadline — invisible in every "what can I start" list because the answer there is "not this". |
| hub_kanbanA | The board as data: open tasks split into queued (unassigned) and in-progress (assigned), plus done-in-the-last-day, recent journal (inbox) and the newest 20 artifact deliveries apart from it (mail: kind delivery, read into from, to, name, bytes, sha256) — the same view the read-only web kanban renders. Each task carries blocked and overdue flags. |
| hub_claimA | Soft-lock a work area so other agents see it. Not enforced — informational. Write |
| hub_claim_checkA | Before editing a file: is it inside somebody's live claim? Returns {free, holders:[{agent, area, since, note}], mine, unmatchable} — |
| hub_releaseA | Release a soft-lock. Pass id, or project+area+agent, or task+agent (give a started task back to the work queue). |
| hub_heartbeatA | Record that an agent is alive — call it each work cycle (right after hub_report, before the next hub_queue_wait) so MCP/headless agents show up in hub_presence the same way screen-scraped ones do, no human bridge needed. Overwrites this agent's one presence record; freshness is judged at read time from ttlMin (default 15min), the same pattern hub_claim uses. Also refreshes this node's published snapshot (presence..json) at most once every 5 minutes, so agents on OTHER nodes can see you at all — the directory itself is node-local and never syncs. |
| hub_presenceA | The fleet roster as far as it can honestly be seen from here: this node's live registry plus every other node's published snapshot (presence..json, one small file per node, refreshed on heartbeat and on any tool call there, at most every 5 minutes). Each row carries |
| hub_resource_setA | Create or update a resource — an infrastructure/topology entity: host, vm, service, endpoint, or provider. Structured attributes (type, address, os, provider, status) and typed relationships go in fields, NOT prose. Use this instead of describing infra inside a card digest. |
| hub_resource_listB | List resource cards (hosts, vms, services, endpoints, providers). Optionally filter by type. |
| hub_resource_getC | One resource card plus its inbound and outbound typed relationships. |
| hub_graphB | The typed relationship graph across projects AND resources: who runs where, what depends on / deploys to / exposes what. Edges are frontmatter [[links]] keyed by relation (runs_on, depends_on, deploys_to, exposes, part_of, ...). Returns nodes, edges, and dangling links. Filter by project or type. |
| hub_onboardingA | Orientation for an agent that has never worked with this hub before: which channel to use for what (claim vs task vs report vs queue — the #1 mistake), the author rule, the session ritual, how to recover after a compaction. Call this FIRST the first time you connect. Default mode "short" is under 600 words and lists the sections of the full manual; mode "full" is the whole manual (~4000 words) — the same text as HUBD.md in the hub. |
| hub_whatsnewA | Personalized "what did I miss" — journal activity since YOUR OWN last hub_whatsnew call (tracked per agent name), not a fixed time window like hub_brief. Call this at the start of a session/sweep instead of re-reading hub_status/hub_brief from scratch; a never-seen agent gets a 24h window on its first call. Compact by default: the newest 20 entries, each text cut to 240 chars; full:true for all of them whole. Also carries |
| hub_inboxA | What needs a DECISION right now, distilled from hubd data (not a time window like hub_brief): blocked reports, overdue open tasks, unassigned open tasks, and claim locks whose TTL expired but were never released. Returns {empty:true} when nothing needs attention — poll this instead of re-reading hub_status/hub_brief every cycle. |
| hub_trajectoryA | Deterministic dependency-graph plan over tasks' depends_on — the probable trajectory as a critical PATH, not an ML forecast. Returns: ready (doable now, no open deps), blocked (with waitingOn ids), layers (Kahn topo-order — what unlocks when), criticalPath (longest dependency chain = ordering bound), cycles (dependency loops to fix). A task only the owner may move (owner_kind "human", or assigned to a declared owner role) is not agent work: it is counted as ownerOnly and leaves the graph, so a task behind it is unblocked, not cyclic. Use to see "given deps, what is the actual order / what is the critical path to a milestone". Weight is task-count now; weighted by real durations once logd records them. |
| hub_queue_sendA | Append a message to a role's queue (queues/..queue.md) for cross-agent/cross-node handoffs. Delivered to whoever calls hub_queue_wait (or |
| hub_queue_waitA | Block until new content lands in 's queue (this node's file plus any mesh-synced peer files for that role), then return it — a real long-poll, not a snapshot you have to re-poll. Returns {changed:false} if nothing arrives within timeout. If a delivered block names a task (see hub_queue_send), the ids come back as |
| hub_queue_wait_allA | Subscribe to EVERY role's queue at once and block until new content lands in ANY of them — for an orchestrator reacting to whichever agent reports first, instead of calling hub_queue_wait per role or ssh-ing into each host to poll. Returns {changed:true, events:[{role,node,text}, ...]} tagging which role/node each event came from, or {changed:false} on timeout. Uses its own offset bookkeeping — does NOT consume/steal messages from a role's own hub_queue_wait consumer, it only taps. Local/stdio only. |
| hub_queue_ackA | Confirm that a delivered queue block was processed, not just read. Without this, a zombie session that reads a block and dies looks exactly like a processed one — the sender sees pending=0 but gets no reply. Ack moves the block from "delivered" to "acked" so the sender can distinguish the two. Call this after you have acted on the block — the ack is your proof of work, and the sender can poll for unacked blocks. |
| hub_queue_forwardA | Pass a queue block on to the role it is really for, WHOLE: its body byte for byte, under one line that says who forwarded it, from which queue, its first sender and id; the task it named goes with it. A message for another role retold in your own words loses what the retelling leaves out — forward it instead. The target is checked like any send (a queue with no reader is refused unless new_reader). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| harvest | Harvest this dialog into the hub — projects, tasks, decisions, links, open questions (the Harvest Protocol). No need to fetch HARVEST.md. |
| head | The rules a role runs by, rendered from this hubd's prompts/meta/head.md — a project's head: dispatches to workers, accepts by artifact, keeps the track card. |
| orchestrator | The rules a role runs by, rendered from this hubd's prompts/meta/orchestrator.md — the orchestrator over the heads: places work, reviews, reflects over the fleet. |
| worker | The rules a role runs by, rendered from this hubd's prompts/meta/worker.md — a worker: takes one dispatch per turn, reports, never hands out work. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 45 tools
The descriptions work hard to separate tools and often say outright which sibling they are not (hub_status vs hub_brief vs hub_agenda vs hub_inbox vs hub_whatsnew vs hub_next), but that many 'what is going on right now' entry points still invite misselection, and hub_lint vs hub_audit plus hub_card_set vs hub_section_add vs hub_sync vs hub_resource_set form write-path clusters a caller must reason through. Boundaries exist, but they are documented rather than obvious from the names.
Every tool carries the hub_ prefix and most follow hub_<noun>_<verb> (task_list, task_get, resource_set, queue_send, queue_wait) or hub_<noun>_<verb>_qualifier (claim_check, queue_wait_all, usage_add). Deviations are minor: several bare nouns/verbs with no object (hub_get, hub_status, hub_sync, hub_search, hub_report) and hub_claim vs hub_claim_check invert the verb/noun order.
45 tools is well past the point where a model can hold the surface in mind, and several clusters (nine orientation/status tools, five queue tools, four card-writing tools) suggest the set grew by accretion rather than scoping. The domain is genuinely broad, but this count forces the caller to triage before it can act.
Coverage of the coordination domain is unusually thorough: tasks (add/get/list/update), attempts and reviews, claims with check/release/heartbeat, queues with send/ack/wait/forward, projects, resources, graph, stats, rules, audit and lint, plus onboarding for new agents. Gaps are minor — no delete/archive for tasks or resources, and no non-blocking peek at a queue without blocking on it.