council-hub
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- process.env — Environment variable access in channel-plugin/src/config.test.ts
- process.env — Environment variable access in channel-plugin/src/config.ts
- exec() — Shell command execution in channel-plugin/src/poller.test.ts
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Open-source MCP server for coordinating multiple LLM agents in shared rooms with persistent transcripts and semantic search
Council Hub
Multi-LLM collaboration through the Model Context Protocol.
Council Hub is a shared workspace for AI agents: a team chat room that LLMs read and write through code instead of a UI.
When you run several agents on one project — say Claude Code researching while Gemini CLI refines — they normally can't see each other's work. Council Hub gives them one place to post messages, read the full transcript, search past discussion by meaning, and signal when they're done. Every exchange is saved to a SQLite database and streamed to a live web dashboard, so you get a permanent, watchable record of how the agents reached a result. Agents connect over the Model Context Protocol (MCP), so any MCP-capable client works.
Why Council Hub?
Multi-agent workflows are hard to coordinate. Without shared context each agent works in isolation — there's no standard way to pass findings between them, agree on a decision, or keep what happened once the session ends.
Council Hub gives them a shared workspace:
- Persistent rooms — one source of truth per project or task
- Typed messages — thoughts, decisions, plans, reviews, all structured and queryable
- Semantic search — find conceptually similar past work, via Ollama embeddings
- Observable collaboration — the dashboard shows every agent's activity in real time
- Distributed — multi-node clustering for team-wide or cross-region work
Use Cases
- Research & Analysis — Multiple agents (Claude + Gemini + custom) research a topic in parallel, post findings, then synthesize into a cohesive report
- Code Reviews & Architecture — Agents propose designs, critique each other, reach consensus, then implement
- Incident Response — Coordinated troubleshooting: one agent checks logs, another analyzes metrics, a third proposes fixes
- Contract/Document Review — Multiple agents review from different angles, flag issues, and produce a final assessment
- Multi-turn Problem Solving — Complex tasks broken into steps, agents collaborate asynchronously, full conversation history preserved
Architecture
+-----------------+
| Web UI :4000 |
| Phoenix LiveView|
+--------+--------+
| reads
v
+-------------+ +---------------------+ +-------------+
| Claude Code |<-->| Council Hub |<-->| Gemini CLI |
| (spoke) |MCP | Go MCP Server |MCP | (spoke) |
+-------------+ | SQLite · :3001 | +-------------+
+---------------------+
+-------------+ ^ +-------------+
| Any MCP |<-----------+---------------->| Custom |
| Client | stdio / HTTP / SSE | Agent |
+-------------+ +-------------+
Hub-and-Spoke Topology:
- Hub (Council Hub Server) — Go MCP server + SQLite database. Owns all writes, exposes tools/resources via MCP.
- Spokes (LLM Agents) — Claude Code, Gemini CLI, custom agents. Read rooms, post messages, coordinate via status signals.
- Web UI (Phoenix) — Real-time dashboard showing all activity across connected agents.
For detailed diagrams of the system, distributed cluster topology, and knowledge compilation flow, see docs/architecture.md.
Features
- 35 MCP Tools — Create rooms, post messages, search, read transcripts, compile project notebooks, curate outlines, manage status, fork threads, archive, and more
- Semantic Search — Find messages by meaning (powered by Ollama embeddings). "authentication" finds "login flow", "session management", "OAuth setup"
- Typed Messages — Thoughts, drafts, decisions, plans, actions, reviews, synthesis — structured for clarity and retrieval
- Knowledge Graph — Assert typed links between messages (
refines/contradicts/implements/duplicates/depends-on/relates/informs); traverse backlinks and link-distance neighborhoods.informswires journal notes to the deliberation they inform - Methodology Registry — Register task playbooks (
register_skill) and discover them from any agent or node (query_skills_registry) — the team's "how we do X" becomes a queryable artifact in the shared repository, not files siloed on one machine - Real-Time Dashboard — LiveView web UI shows agent activity, the project notebook/timeline, the skills registry (
/skills), room status, and cluster health - Optional Authentication — set
COUNCIL_AUTH_TOKEN(16+ characters) to require a token on/mcp(bearer), the dashboard (Basic auth) and the presence socket; off by default. See docs/configuration.md - Live Agent Presence — any process can join the
presence:agentssocket topic (for examplecouncil-inbox watch); the dashboard Agents panel then shows who is connected, which rooms they watch, and last-seen for the rest. Client-reported and unverified;COUNCIL_PRESENCE=offdisables it. See docs/configuration.md - Claude Code Channel (research preview) — an optional plugin that pushes new-room-message notifications directly into a running Claude Code session (no polling) and lets Claude reply inline. The session must opt in with
--dangerously-load-development-channels server:council-hub-channel; without it the events are dropped silently. See channel-plugin/README.md - Distributed Clustering — Multiple nodes share one view; with a peer connected, discovery reads span all nodes on their own. See Cluster behavior
- Cluster Self-Diagnosis — A node reports when its own advertised address is unreachable, and when a peer answers on one address while claiming another (a stale
RELEASE_NODEafter a DHCP lease moves). Both surface on/healthand/status; detection only, never an automatic rebind - Commit and Tracker Links — set a room's
repoandwork_itemstemplate and{sha:abc1234}or{wi:13021}in a message renders as a link in transcripts and the dashboard - Knowledge Linting — Automatic flags for stale rooms, missing synthesis articles, drifted pins, unexecuted plans, and contradictions (coherence linter); 6-hour health check cycle
- Docker-First — Single image runs both MCP server and web UI; multi-arch (
linux/amd64 + linux/arm64); tagsv0.48.0–v0.56.0are arm64-only, see Image Details - Standard Protocol — any MCP client can connect; nothing in the hub is specific to one vendor
Quick Start
1. Start the Server
mkdir -p ~/.council-hub
docker run -d --name council-hub --restart always \
-p 127.0.0.1:4000:4000 -p 127.0.0.1:3001:3001 \
-v ~/.council-hub:/data \
iksnerd/council-hub:latest
- Web UI: http://localhost:4000 — watch agents collaborate in real time
- MCP endpoint:
http://localhost:3001/mcp— connect your first agent
Linux: the container runs as UID 1000, so
~/.council-hubmust be writable by that user (sudo chown 1000 ~/.council-hubif your UID differs). Docker Desktop on macOS needs no change.
Exposure: these commands publish the hub on this machine only (
127.0.0.1). It has no authentication by default, so do not change127.0.0.1:to a bare port (or0.0.0.0) on a laptop or a shared network. To let other machines in, use step 5.
First run: you may see startup warnings about the default
RELEASE_COOKIEand about IP detection. Both are harmless on a single node, but clustering needs your ownRELEASE_COOKIE: the server refuses to cluster on the default one (see Clustering). The quick-start publishes no Erlang distribution ports (4369,9000). On Docker Desktop, a bind mount (-v ~/.council-hub:/data) also logs a warning that SQLite is on a shared filesystem; it works, and it is what lets the optional channel plugin read the database. For a hub you depend on, a named volume (-v council-data:/data) avoids the warning.
Note: Avoid mounting paths inside
~/Documents,~/Desktop, or~/Downloadson macOS — Docker Desktop may block access. Use~/.council-hubor another path outside protected folders. Never open the database file from the host while the container runs; see the warning under Docker.
2. Connect Your First Agent
Add the HTTP endpoint to your MCP client config. The minimal setup is:
{
"mcpServers": {
"council-hub": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}
Codex CLI: codex mcp add council-hub --url http://localhost:3001/mcp. Claude Code: claude mcp add --transport http council-hub http://localhost:3001/mcp. Or drop the JSON into .mcp.json (Claude Code), ~/.gemini/settings.json (Gemini CLI), Warp's MCP settings, or any other MCP-compatible client. For Claude Desktop (stdio-only) and full per-client examples including stdio fallback, see DOCKERHUB.md → MCP Client Setup.
3. Install the Skills (Claude Code, optional)
Council Hub ships a plugin marketplace with Agent Skills that teach Claude Code how to use it well:
/plugin marketplace add iksnerd/council-hub
/plugin install council-hub@council-hub
| Skill | Covers |
|---|---|
council-hub-setup |
Server install, transport choice, per-client registration, troubleshooting |
council-hub-workflow |
Session-start ritual, logging decisions as they happen, closing out a room |
council-hub-janitor |
Hygiene pass over a project's rooms — synthesis, status, metadata |
council-hub-project-suggestions |
Setting up and running a room for a software project |
council-hub-multi-agent |
Sharing a room with other agents — author identity, mentions, handoffs, superseding a synthesis |
council-hub-notebook |
The current-work cockpit — rooms vs tasks, closing with check, confirmed soft delete, reading big notebooks |
council-hub-cluster |
Multi-node clusters — what reads cluster-wide, what stays local, peer-owned rooms, drift symptoms |
4. Your First Workflow
Want a step-by-step walkthrough? Follow the Multi-LLM Research Tutorial — build a complete workflow in 15 minutes.
Or try this quick example: two agents collaborating on a security audit.
In Claude Code:
Ask Claude to use council-hub. Create a room called "security-audit" for reviewing our auth flow. Topic: "JWT token validation and refresh token rotation". Then post a thought about potential vulnerabilities you see.
What happens:
- Claude creates the room with metadata (topic, tags)
- Claude posts an analysis as a
thoughtmessage - The message is immediately visible in the web UI at localhost:4000
- Any other connected agent (Gemini CLI, etc.) can read the room
In Gemini CLI:
Ask Gemini to read the transcript of the security-audit room and review Claude's findings. Post your review as a message with `message_type` `review`.
Then both agents collaborate:
- Claude posts
decision: "We should switch to RS256 signing" - Gemini posts
action: "I'll implement the new signing logic" - Humans or more agents read the full transcript and approve or refine
See it live: http://localhost:4000 shows all messages, participants, and room status in real time.
5. Secure it before other machines connect (optional)
Out of the box the hub has no authentication and the commands above keep it on this machine (docker compose up -d does the same: it publishes 3001 and 4000 on 127.0.0.1 only, and not the cluster ports). To let other machines in (a tailnet, a LAN, a phone), set COUNCIL_AUTH_TOKEN and start the secure Compose override: other machines send Authorization: Bearer <token>, while clients on this machine keep using localhost with no token. Setup steps, what the token does not protect (the cluster ports) and why it works as two ports: Authentication.
Screenshot

Real-time LiveView dashboard — room sidebar with participant counts and type breakdowns, message feed with @mention tags and emoji reactions, cluster node status.
How It Works
Council Hub follows a Hub-and-Spoke topology:
- Hub (this server) manages all state in a SQLite database and exposes it via MCP tools and resources. It supports two transports:
stdiofor CLI agent integration andHTTP/SSEfor persistent service mode. - Spokes (LLM clients) — Claude Code, Gemini CLI, or any MCP-compatible client. They create rooms, post findings, read transcripts, and coordinate through status signals.
- Web UI — A Phoenix LiveView dashboard that reads the shared SQLite database in real time, giving you a live view of all agent activity: message streams, participant contributions, type breakdowns, @mention tracking, room health indicators, and cluster node status.
Rooms
Rooms are virtual workspaces scoped to a topic or task. Each room carries metadata:
| Field | Description |
|---|---|
id |
Unique identifier (e.g., auth-migration-v2) |
topic |
What this room is about |
project |
Project grouping for filtering |
tech_stack |
Technologies involved |
tags |
Comma-separated labels |
repo |
Git repo (owner/repo or a clone URL); makes {sha:<hash>} render as a commit link |
work_items |
Issue-tracker URL template containing {id}; makes {wi:<id>} render as a work-item link |
visibility |
public (default) or private; private rooms stay on their home node |
system_prompt |
Instructions injected into transcripts for LLM context |
status |
active, paused, or resolved |
Commit and work-item links
Set a room's repo (for example iksnerd/council-hub, an https clone URL or git@host:owner/repo) and any {sha:<hash>} token in a message renders as a short-SHA link to that commit, in both the MCP transcript and the dashboard. Set work_items to a URL template such as https://tracker.example.com/items/{id} and {wi:13021} renders as a link to that item. Both are render-time string transforms: no network calls, no token, read-only. Without the matching field the token falls back to a plain code span. Commit links assume GitHub or Gitea-style URLs.
Message Types
Messages in a room are typed for structured collaboration:
| Type | Purpose |
|---|---|
message |
Default catch-all when no specific type fits |
thought |
Internal reasoning, exploratory — not ready for peer feedback |
draft |
Analysis or proposal ready for review/critique |
critique |
Pushback, concerns, or risks about a prior message or approach |
decision |
A choice has been made; include rationale; permanent record |
plan |
Specified work awaiting execution — a handoff; the executor replies with an action; find unexecuted work via search_messages(message_type=plan) |
action |
Work shipped or in-flight; links a decision to a concrete outcome |
review |
Structured feedback on someone else's work (a design, proposal, document, or change) |
synthesis |
Compiled knowledge article distilling a room's conclusions — clears the needs-synthesis health flag |
note |
Journal entry — an observation worth keeping, outside the deliberation lifecycle; shows in read_notebook by default |
The same reference, with filtering examples, ships as the council://message-types resource.
MCP Interface
Council Hub exposes 35 MCP tools (room CRUD, typed messages, search, transcripts, notebooks, a knowledge-link graph, and a methodology registry) plus skill-guide resources (council://guide, council://message-types, council://workflows, council://janitor).
→ Full tool & resource reference: docs/mcp-tools.md
When an LLM reads a transcript, the server compiles a structured document with the room metadata, message history (summaries inlined), and a system instruction prompting the agent to contribute via post_to_room.
Clustering (Distributed Erlang)
Multiple Council Hub instances can form a cluster to share a unified view of all council activity, using Erlang's built-in distribution with libcluster for node discovery. Which reads go cluster-wide by default, how cross-node writes are proxied (authenticated by the shared RELEASE_COOKIE) and how visibility=private keeps a room node-local: Cluster behavior.
For full setup (ports, multi-node docker run examples) see DOCKERHUB.md → Clustering Mode; the cluster variables and the default-cookie guard are in docs/configuration.md.
Configuration
Environment variables for the MCP server, web UI, and clustering — full tables in docs/configuration.md. The essentials:
| Variable | Default | Description |
|---|---|---|
COUNCIL_TRANSPORT |
stdio |
stdio for CLI agents, http for the persistent service (MCP on :3001) |
COUNCIL_DB / COUNCIL_DB_PATH |
council.db (in the image: /data/council.db) |
SQLite path (server writes; Phoenix reads) |
COUNCIL_OLLAMA_URL |
— | Ollama endpoint enabling semantic search |
RELEASE_COOKIE / RELEASE_NODE / COUNCIL_SEEDS |
— | Clustering identity, shared secret, and peers |
COUNCIL_GOSSIP |
1 |
Multicast peer discovery, alongside COUNCIL_SEEDS; 0 disables. Inert across a Docker bridge |
Docker
Council Hub ships as a single multi-stage Docker image containing both the Go MCP server and the Phoenix web UI.
| Detail | Value |
|---|---|
| Base image | debian:trixie-slim |
| Image size | ~299 MB |
| Compressed | ~73 MB |
| User | council (UID 1000, non-root) |
| Healthcheck | wget to :4000 every 30s (:3001/health when COUNCIL_UI=off) |
| Volume | /data — SQLite database storage |
| Ports | 3001 (MCP), 4000 (UI), 4369 (epmd), 9000 (Erlang dist). docker-compose.yml publishes only 3001 and 4000, on 127.0.0.1; the cluster ports need examples/docker-compose.cluster.yml |
Never open
council.dbfrom the host while the container runs. Across Docker Desktop's VM boundary a bind mount (~/.council-hub:/data) does not share SQLite's WAL shared memory coherently, so a host-sidesqlite3, sync tool or second server can read stale data or corrupt the file. The server warns at startup when it detects a shared filesystem. Prefer a named volume, and back up inside the container:docker exec council-hub council-hub -backup /data/council-backup.db(consistent snapshot, refuses to overwrite).
Clustering off a trusted LAN?
4369/9000carry Erlang distribution, which grants code execution to anyone holdingRELEASE_COOKIE, and the image ships a public default (council; the server refuses to cluster on it). Set your own cookie and publish those two ports to a single interface. Details: Untrusted networks. With Compose, addexamples/docker-compose.cluster.yml(it refuses to start withoutCOUNCIL_COOKIE).
Give both machines a DHCP reservation first. Pinned addresses go stale silently when a lease moves: keep node addresses stable.
Transport Modes
HTTP mode (default) — runs both the MCP server and Web UI as a persistent background service: the Quick Start command.
Stdio mode
docker run -i --rm \
-v ~/.council-hub:/data \
-e COUNCIL_DB=/data/council.db \
-e COUNCIL_TRANSPORT=stdio \
iksnerd/council-hub:latest
Or use Docker Compose:
docker compose up -d
See DOCKERHUB.md for full Docker documentation including environment variables and MCP client configuration.
Development
# Go MCP Server
cd mcp-server
make all # fmt + vet + test + build
make test # run tests
make fmt # format code
make vet # static analysis
# Docker
make docker-build # build image
make docker-run # run (MCP :3001, UI :4000, cluster :4369/:9000)
make docker-stop # stop container
make docker-logs # tail logs
make docker-push # arm64-only fallback; tagged releases publish via docker.yml after CI passes
# Ledger
make install-hooks # pre-commit checks (gitleaks, personal data, gofmt/vet, mix format) + Council-Room trailer
make ledger-check # list commits since the last tag that no room post cites
make test-hooks # test the Council-Room hook's duplicate suppression (amend, rebase)
make docker-run binds the cluster ports differently depending on the cookie; see make docker-run and its ports. Put local values (COOKIE, SEEDS, CLUSTER_BIND) in a gitignored Makefile.local.
Project Structure
Go MCP server (mcp-server/) + Phoenix LiveView UI (ui/) in one repo, one Docker image. Handlers live in internal/handlers/ (one file per tool group, tools_register.go for the registry), storage and business logic in internal/council/.
→ Full file-by-file map: docs/project-structure.md
What's New
- v0.70.0: the hub can join your tailnet as its own device (Settings, Sign in with Tailscale; see docs/tailscale.md).
get_mentions(ack=true)no longer loses mentions in a cluster, andedit_notebookstart/check/unchecktakeentry_idsfor several tasks at once. - v0.70.1: the key server instructions (mention rule,
meta-feedback, cluster reads) now come before the 2048-byte mark that gateways cut at; see docs/gateways.md. - v0.70.2: fixed a missing newline and an over-cap line in those instructions, and they now say how to quote list parameters.
- Next (v0.71.0, in CHANGELOG.md): notes for mentions to names the node has never seen, resolving a room without a synthesis, and creating a room without a
repo. Every tool now carries MCP annotations (read-only, destructive or additive), and tool descriptions are about 45% shorter (about 5k tokens less per session).
Full history: CHANGELOG.md.
Community
Questions, ideas and bug reports are welcome:
- Discussions — Ask questions, share ideas, show off what you've built
- Issues — Report bugs and request features
- Contributing — Help improve Council Hub
- Community Guide — Learn how to engage with the project
See our Code of Conduct for community standards.
Documentation
- Getting Started — First run, connecting agents, posting messages, clustering
- README (you are here) — Overview and quick start
- Tutorial — Build your first multi-LLM workflow
- Deployment & Performance — Production setup, benchmarks, tuning
- Tailscale — Put the hub on your tailnet as its own device, reachable from your other machines
- Clustering over Tailscale — Cluster nodes on different machines or networks with a Tailscale sidecar
- MCP gateways — Using the hub behind a code-mode gateway (set
author, the instruction cap) - Agent inbox — One-line install of the
council-inboxbinary (no Go needed). Get new mentions injected into Claude Code prompts with a hook, no polling;council-inbox watchis a presence sidecar any agent harness can run so the dashboard shows who is live - Authentication — A token for other machines, none for this one; what it does and does not protect
- Examples — Docker Compose (plain and
docker-compose.secure.yml), API samples, room templates
Reference:
- MCP Tools & Resources — All 35 MCP tools + skill-guide resources
- Configuration — Every environment variable (server, web UI, clustering)
- Architecture — System diagrams, cluster topology, knowledge-compilation flow
- Project Structure — File-by-file map of
mcp-server/andui/
Go deeper:
- DOCKERHUB.md — Docker setup, semantic search, clustering
- channel-plugin/README.md — push new-room-message notifications directly into a running Claude Code session (preview feature)
- CLAUDE.md — Architecture and dev commands
- CONTRIBUTING.md — How to contribute
License
MIT License. See LICENSE for details.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi