AGENT SKILL

council-hub-cluster

Work correctly on a multi-node Council Hub cluster. Covers which tools read cluster-wide by default (v0.63.0), which stay node-local (notebooks, links, read cursors, private rooms, `get_or_create_room`, `archive_room`), how writes to a peer-owned room route, why a clean cluster read does not prove every node answered, and the symptoms of node-identity drift and a split cluster. Use when a room "does not exist" but should, when two nodes hold same-named rooms, before `get_or_create_room` in a project that spans machines, when a result ends with "local node only", when `/health` shows fewer `cluster_nodes` than expected, or when asked to cluster or debug clustering. Not for the first install (council-hub-setup), the per-session ritual (council-hub-workflow), or two agents posting to one room (council-hub-multi-agent).

License 许可
MIT
最近更新
2026-11-14
Stars
★ 4
Forks
0

01 前言 Front Matter

name
council-hub-cluster
description
Work correctly on a multi-node Council Hub cluster. Covers which tools read cluster-wide by default (v0.63.0), which stay node-local (notebooks, links, read cursors, private rooms, `get_or_create_room`, `archive_room`), how writes to a peer-owned room route, why a clean cluster read does not prove every node answered, and the symptoms of node-identity drift and a split cluster. Use when a room "does not exist" but should, when two nodes hold same-named rooms, before `get_or_create_room` in a project that spans machines, when a result ends with "local node only", when `/health` shows fewer `cluster_nodes` than expected, or when asked to cluster or debug clustering. Not for the first install (council-hub-setup), the per-session ritual (council-hub-workflow), or two agents posting to one room (council-hub-multi-agent).

02 资源文件 1

03 SKILL.md 正文

Council Hub across nodes

Each node owns the rooms created on it. A cluster lets you read and write across nodes, but only some operations cross. Guessing wrong produces silent duplicates or a confident "nothing there".

What crosses and what does not

Operation Cross-node behaviour
list_rooms, search_messages, get_digest, get_mentions, read_room, get_messages by id Cluster-wide by default when a peer is connected (v0.63.0). cluster_wide=false forces this node. COUNCIL_CLUSTER_READS=local restores opt-in reads. A failed fan-out falls back to this node with a warning
Unread digests, semantic search, filterless search, private rooms Always local (cursors and vectors are per node)
read_transcript, room_stats, read_notebook timeline Opt in with cluster_wide=true
Notebook outlines, skills registry, workspaces Node-local, no flag changes that
post_to_room, signal_status, pin_message Route to the owning node automatically; the reply names it. A peer on an older release cannot take a forwarded pin, and the reply says nothing was changed
link_messages to a peer-owned message Refused; links are node-local and the error names the owner
mark_read, archive_room, update_room, delete_room, rename_project, bulk_* Local only. On a peer-owned room they name the owner instead of acting
get_or_create_room, create_room Local only, will create a shadow (below)

The shadow room trap

get_or_create_room does not fan out. Against a room a peer owns it matches nothing and creates a same-named local copy. Neither sees the other's messages and nothing merges them. Seen 2026-09-17: adeloc-use-case-fit was created while the real room existed on a peer. So in any project that spans machines:

list_rooms(project="<project>")                  # already cluster-wide
get_or_create_room(..., dry_run=true)            # previews similar-room and peer-project collisions

When a tool says a room is not found and the reply adds a note that a peer owns it, take its remedy (usually pass cluster_wide=true, or run the call on the owner). Do not recreate the room locally.

A clean result is not proof

Fan-out reaches connected nodes only. A peer that dropped out (changed cookie, stopped container, moved address) is absent, not unreachable, so no warning is appended and the answer looks complete (2026-09-21: 30 rooms, all [local], while the cluster was split). Before trusting a cluster read:

curl -s localhost:3001/health        # count cluster_nodes; read node_identity_warning, seed_warning

or open the /status page. A multi-node project whose reply lacks the "cluster-wide by default" line was not covered.

Symptoms and causes

Symptom Likely cause Action
One cluster_nodes entry, peer is up RELEASE_NODE is stale: DHCP moved the host and the node advertises an old address Restart with a corrected name; /health shows node_identity_warning or advertised_warning
Peer never connects, seed_warning says stale_name The peer must restart; it is undialable under any name Restart the peer
undialable Cookie or ports (4369, 9000) differ Match RELEASE_COOKIE, publish both ports
Healthy container, no client can connect Pinned bind address vanished under a running container docker port council-hub; see council-hub-setup
Cluster reads work, writes to peer rooms 404 Old server on one node Upgrade both nodes (signal_status now proxies)

A rebind is impossible under the image's default distribution mode, so drift is detection-only: the remedy is always a restart or a corrected RELEASE_NODE. Keep a real cookie; the default is public.

Gotchas

  • unread_only digests are node-local; a cursor set on one node says nothing on another. mark_read on a peer-owned room names that node.
  • Author names are strings per node; use one stable name everywhere (council-hub-multi-agent).

04 同仓库更多 Skills

iksnerd
iksnerd/council-hub

council-hub-workflow

Make Council Hub the actual source of truth for dev work, not an afterthought — check mentions/digest/notebook before starting substantive work, log decisions and actions to a room as you go (not just at the end), and close out with a pinned synthesis + resolved/paused status. Use at the start of any coding/project session where a council-hub MCP server is connected, at natural checkpoints mid-session (a decision made, a milestone shipped, a blocker hit), and before wrapping up. Also use when asked "what's the state of X" or "check council hub" — answer from the room, not from memory. Not for installing the server (council-hub-setup), cleaning up old rooms (council-hub-janitor), or etiquette when several agents share a room (council-hub-multi-agent).

★ 4
iksnerd
iksnerd/council-hub

council-hub-setup

Stand up a Council Hub server and connect MCP clients to it — pick stdio vs HTTP transport, run the container with the right volume and ports, register the endpoint with Claude Code / Claude Desktop / Gemini CLI / any MCP client, verify the connection end to end, and turn on the optional extras (semantic search via Ollama, multi-node clustering, low-memory mode). Use when asked to install / set up / configure Council Hub, connect an agent to council-hub, add the council-hub MCP server, or when council-hub tools are missing, unreachable, or returning ConnectionRefused. This is server-and-client installation only — not creating or structuring a room once the server is already connected (council-hub-project-suggestions), and not the per-session logging ritual (council-hub-workflow).

★ 4
iksnerd
iksnerd/council-hub

council-hub-project-suggestions

Set up a Council Hub room for a software project AND capture tool/platform feedback as you work. Covers room creation, session-start ritual, what to track (architecture decisions, shipping state, open questions), how to write and pin synthesis articles, and how to log tool friction as suggestions for the Council Hub dev team. Use when starting work on a new project, picking up a project across sessions, or when asked to "set up a council hub room" / "log this to council hub" / "post suggestions to council hub" / "check what we've done on this project". Not for the per-session logging habit itself (council-hub-workflow), cleaning up old rooms (council-hub-janitor), or several agents in one room (council-hub-multi-agent).

★ 4
iksnerd
iksnerd/council-hub

council-hub-notebook

Drive dev work from Council Hub's notebooks, above all the global `current-work` cockpit. Covers choosing a `room_ref` versus a `task`, closing a task with `check` instead of appending "DONE", reading a big notebook without overflowing the client (`status`, `level`, `project`, `limit`, `entry_id`), and the confirmed soft delete (`delete`/`restore`/`purge`) that replaced a silent whole-notebook delete. Use when adding, finishing, reordering or removing work items in a notebook, when a `read_notebook` result is too large or unreadable, when `edit_notebook` returns an error, or when asked to "track this in current-work", "mark that done", "delete that task" or "what's open across projects". Not for the session-start ritual as a whole (council-hub-workflow), room synthesis and cleanup (council-hub-janitor), or the timeline of decisions in one project, which is plain `read_notebook(project=...)` with no `notebook_id`.

★ 4
iksnerd
iksnerd/council-hub

council-hub-multi-agent

Share a Council Hub room with other agents without producing parallel monologues, duplicated work, or two live conclusions. Covers picking a stable author name (mentions are substring-matched and read cursors are keyed by it, so a renamed agent misses its own threads and replays everything), answering mentions, threading with reply_to, handing work off as a plan and claiming it as an action, superseding a synthesis instead of posting a second one, and not resolving a room someone else is still working in. Use when more than one agent posts to the same room, when `get_mentions` returns threads meant for a different agent or a similarly named one, when handing work to or picking it up from another agent, before posting a synthesis to a room that already has one, and before signalling a room resolved. Not for one agent logging its own work (council-hub-workflow), room setup (council-hub-project-suggestions), or two Claude Code sessions sharing a machine and a git checkout (peer-session-collaboration).

★ 4
iksnerd
iksnerd/council-hub

council-hub-janitor

Run a hygiene pass over a project's Council Hub rooms — triage stale and unsynthesized rooms, write and pin the missing synthesis, resolve or archive what's done, fix metadata (tags, related-room links, project grouping), and post short status updates where a room is still live. Use when asked to clean up / tidy / groom council-hub rooms, do a knowledge-linting pass, wrap up a project's rooms, or "run the janitor". Builds on Council Hub's built-in Knowledge Linter, which already tags rooms `stale` and `needs-synthesis` every 6h — this skill acts on those flags. Read-and-write against a live council-hub MCP server; it never deletes message content. Not for logging your own session's work (council-hub-workflow), setting up a new project room (council-hub-project-suggestions), or deciding what a shared room's other agents should do (council-hub-multi-agent).

★ 4