Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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: replace: [{from, to}] and/or appendLine — a from that is not in the digest is an error, not a silent no-op.

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 handoff journal entry; hub_context hands it to the next session.

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 hint). Returns {project, via, root, guessed, digest, digestSetAt, digestSetBy, laws, digestAgeDays, digestStale?, openTasks, activeClaims, journalTail, handoffs, presenceHere, claimsTouched}, the fields that change least first. digestStale is the same verdict hub_status gives — a digest can be four months behind its own journal and still read as current; presenceHere lists live heartbeats whose cwd is under this root — who else is editing this checkout right now; journalTail is the last few entries of the project, so resuming reads state, not a summary; handoffs are the project's "## Handoff " sections as {agent, at, ageHours, text}, yours first and whole (own:true), then the newest 6 of the others cut to 600 chars (cut: the whole length). project is null with a hint if nothing matched.

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: warnings says so when the text names an open task and depends_on is empty, and when a part depends on its epic (tag epic) instead of the epic on it.

hub_task_getA

ONE task by id, plus what it is blocked by and what it blocks, holding (each open task it waits on, who has it or null, and when it last moved: why an epic is not done), and, once the hub holds sessions (hub sessions ingest), cost: the tokens its attempts spent, at list price, and the verdict on them. When anyone has recorded an attempt on it (hub_attempt), also the thread: standing first (lenses already dead and why, spaces covered, leads waiting for someone, claims and where their review stands), then the attempts themselves, newest last. Read the standing before you start on a task: repeating a dead lens without a new argument wastes the run. Use this when you know the id — do NOT go guessing project × status combinations with hub_task_list. Know a keyword but not the id? hub_search first.

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. total is always the full matching count, so a page never reads as the whole backlog. Compact by default: at most 50 tasks, each text cut to 160 chars (full:true for whole texts, or hub_task_get for one). Looking for ONE task you can name? hub_task_get by id, or hub_search by keyword — both beat listing and scanning.

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; apply files one incident task per finding and writes ONE report. Every finding quotes the rule it enforces with the date that rule was written (HUB/rules.json -> laws), because an engine's opinion carries no weight and your own past decision does. Findings are keyed, so a weekly run never files the same incident twice. NOT a dashboard: the numbers it prints (attention share, close rates) are a thermometer and are never filed as violations.

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 (variants): two wordings sharing 40% of their words are one rule. Reads the report's reflect field and a REFLECT block in its text alike. Every key, and every value of each list, is present with zeros, so the shape never depends on the data. With promote, the candidates for the project's laws instead: a rule said by 2 roles in the window, not a law yet, each with the id hub_law rules on; and the laws the project has. Read-only.

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 rule (the text itself) instead of id, and nothing has to have grown it first. accept: the rule becomes a law, a line in the card's Laws section that hub_context returns to every role of the project. reject: it leaves the list until it is said often enough again after the rejection. A project with a head on record is that head's to rule on, or a fleet role's. Every verdict is a journal line; a law said again is refused with the one the card already holds. retire takes a law out of the card into the project's history, with its reason.

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); notional is the tokens at the OpenRouter list price of their day (hub price pull), the one way to compare a free tier with a paid key. The same files give the same numbers, byte for byte. A task's attempts: task:.

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". review carries the top few hub_lint + hub_audit findings, one per kind, each quoting the rule it enforces with the date that rule was written: the audit rides on this call instead of waiting to be remembered. It reports only — nothing is filed without an explicit hub_audit({apply:true}) carrying somebody's name.

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 area as a path glob relative to the project root ("src/**/*.ts", "docs/{a,b}.md", "public/index.html", a bare directory) and hub_claim_check / hub_context can tell another agent that the file it opened is yours; prose is accepted but comes back matchable:false.

hub_claim_checkA

Before editing a file: is it inside somebody's live claim? Returns {free, holders:[{agent, area, since, note}], mine, unmatchable} — mine are your own claims covering it (pass agent), unmatchable the prose claims on the project that no path can be tested against. Pure read. The lock is soft by constitution: this informs, it does not forbid — coordinate with the holder.

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 observedOn — WHICH node saw that heartbeat — and alsoOn when one agent name turns up on several. Read coverage before believing any absence: it lists every current mesh member with the age of its snapshot, or null when it has published none, and blindTo/note say so outright. That distinction is the reason this tool exists in this shape — one role read as 383 minutes since heartbeat on one node and 5.9 days on another, nothing was stale and nothing had diverged, the registries were simply of different machines, and an orchestrator escalated "worker is dead" four times over 92 hours while the worker worked. A role nobody reports is invisible, which is NOT the same as dead.

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 review: the top few hub_lint + hub_audit findings, one per kind, each quoting the rule it enforces and the date that rule was written — read-only, files nothing. The entry of a card write carries card: the sections, the card file's size after the write in bytes, and the change, so a card that reads older than a write you made is checked here, not in git.

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 wait) for that role, here or on a mesh-synced peer node. Prose, not cargo: over 16 KB, or carrying a base64/hex run over 2 KB, a git diff, a git bundle or a PEM block, it is refused — put the artifact in a file and send its path, size and sha256. Refused too while the role already holds 50 unread messages or 256 KB: its reader is behind, check it before sending more. And refused when the queue has no reader at all (never read anywhere, nobody of the role present, no role on record), unless new_reader; the owner and broadcast queues never are.

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 tasks — report the outcome onto those tasks, or the message is the only place the blocker ever existed. Local/stdio only (not available on the shared HTTP server). Use this instead of a sleep-and-recheck loop when waiting on an agent to report back via hub_queue_send.

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

NameDescription
harvestHarvest this dialog into the hub — projects, tasks, decisions, links, open questions (the Harvest Protocol). No need to fetch HARVEST.md.
headThe 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.
orchestratorThe 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.
workerThe 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

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 45 tools

Disambiguation3/5

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.

Naming Consistency4/5

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.

Tool Count2/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessNo recent community issues