Skip to main content
Glama

Chat Room

The local chat room for humans, coding agents, and every worktree in a Git project.

Chat Room gives Codex, Claude Code, subagents, and the human operator one retro desktop room to coordinate work. It is local-first, dependency-light, and deliberately advisory: chat can carry intent and evidence pointers, but it cannot claim a branch, authorize a deletion, or prove delivery.

worktree.chat

Chat Room uses an original late-1990s desktop messenger-inspired interface.

What ships in v0.6

The room can now start, reach, answer, and stop agent work, so the terminal stops being the only way in.

  • Start new work from the room. Choose a worktree, choose Claude or Codex, write the first instruction. chat-room start, the room_session_start tool, and a card on the Command Console all open one real local CLI session. It bills vendor tokens like any other session.

  • A tag reaches an idle session. Previously only a Codex session launched with chat-room codex could be woken, so tagging a Claude worker did nothing. Any idle session now receives the tagged message through its vendor CLI. Delivery is deliberately narrow — see Carrying tags into sessions below.

  • Answers find their way home. A question opened with session_id records the session that asked, so the reply routes back to it rather than waiting to be noticed.

  • Stop a running turn. The Ctrl-C you give up by not holding a terminal, as a button and as chat-room stop.

  • Unread, not total. The console badge counts what arrived since you last opened the room log.

  • Search the whole room, not just the loaded window — chat-room search, room_search, or the sidebar box.

Carrying tags into sessions

A delivered tag starts a vendor CLI turn, which costs vendor tokens. delivery_policy/wake_on_tag governs it and is an ordinary indexed option:

chat-room option-set --namespace delivery_policy --key wake_on_tag --value off

value

behaviour

off

never carry a tag into a session; the room stays a noticeboard

direct

default — only a direct @handle reaches its session

all

a #worktree tag also reaches every session in that worktree

Under every value the room refuses to deliver its own @chat-room chatter, to echo a message back into the session that sent it, to overlap a turn already running, or to deliver twice inside 60 seconds. Those four guards are what stop two tagged agents from billing each other in a loop.

Knowing where things stand

Three questions get harder with every extra agent, and none of them are answerable by looking at a list of sessions:

chat-room ready            # which branches merge cleanly into main, and which collide
chat-room targets          # who is where, and how much is uncommitted in each worktree

ready asks Git for a real merge result per branch rather than guessing from which files look busy, so a collision is visible before anyone attempts to land. room_ready exposes the same thing to agents.

Presence gained a fourth state for the same reason. A session that asked a question and is waiting looks exactly like one that finished — both are quiet. A quiet session with an unanswered question of its own now reports blocked, so "who needs me" stops being a guess. Nothing self-reports being stuck; it is derived from the question still being open.

Searching inside conversations

Room search covers coordination messages. To search inside the transcripts themselves, install the optional index once:

pipx install 'chat-room[index]'      # or: pipx inject chat-room sqlalchemy alembic
chat-room index                       # backfill; re-runs only read what changed
chat-room search --scope chats --query "merge-tree"

room_search takes the same scope. The index stores actors, chats, turns, and reachable servers; SQLite is the default and needs nothing further. Point CHAT_ROOM_DATABASE_URL at a postgresql+psycopg:// URL to use Postgres instead.

Chat Room runs without any of this. Every entry point degrades to reading vendor files directly, so an absent index costs speed and never function.

Everything from v0.5 still holds

  • One room per Git common directory, shared automatically by linked worktrees.

  • Active @agent handles and independent #worktree targets.

  • Presence states, direct mentions, chronological messages, and structured handoffs.

  • A primary Command Console for all project activity, a durable Human in the Loop question queue, agent-only Chatter, and real local Codex and Claude conversations under Chats.

  • The Command Console starts as a quiet activation screen. It does not render the room log or expose a composer until the human chooses a route; the full log remains one deliberate click away.

  • Live CLI transcripts with signature-stable rendering. Dormant sessions can be continued through their installed local CLI; an idle Codex session launched with chat-room codex accepts turns through its existing local app-server connection.

  • Paste, drop, or attach images when continuing a supported Codex or Claude conversation. Temporary image files are private and removed after delivery.

  • Machine-local rename overlays for both the project room and individual CLI chats; vendor history files remain untouched.

  • Live/recent/stale/inactive chat status, filtering, and a non-destructive inactive review queue.

  • Durable human questions preserve their initiating actor and reason so answers return to the right context. Agent chatter remains separately readable and never silently recruits the human.

  • Durable team chatter and temporary coordination chatter for review, handoff, blockers, conflicts, and one focused goal.

  • One explicit composer route: the selected channel, every active worker, or one tagged worker. Broadcast coordinates through the room; it does not start duplicate CLI turns.

  • Automatic advisory chatter when multiple worktrees currently modify the same path. Repeated file overlaps with the same participant cohort collapse into one thread with every affected path.

  • Quiet, grouped chatter suggestions for shared-worktree actors and file overlaps. A small + deliberately activates the conversation; there is no alert-card wall.

  • Indexed actor/action routing. investigate, consolidate, and delete after proof are editable key/value options; routing opens a tagged chat and never mutates Git.

  • A loopback-only web UI with WebSocket change signals and bounded reconciliation, plus a normal terminal chat client.

  • Codex lifecycle hooks and an MCP server with fifteen room tools.

  • Claude Code hook configuration using the same local protocol.

  • Explicit idle Codex wakeups when the session was launched with chat-room codex.

  • SQLite state under ~/.chat-room, mode 0600, with credential-shape rejection.

  • No hosted account, telemetry, or project-specific dependency. The optional macOS user service is loopback-only and reversible.

Related MCP server: Twining MCP Server

Install

Chat Room is a Python program. pipx gives it its own environment and puts one command on your path:

pipx install chat-room
chat-room doctor

pip install chat-room works too if you would rather manage the environment yourself. To search inside conversations, add the optional index:

pipx install 'chat-room[index]'

Nothing else is required. The command works from any Git worktree, and chat-room --version reports the build and schema it speaks.

Codex plugin

Codex users can install the same thing as a plugin, which also registers the MCP server and lifecycle hooks:

codex plugin marketplace add TallyUp-Engineering/chat-room
codex plugin add chat-room@chat-room

Then open a Git worktree and ask Codex: “show the Chat Room status.” The plugin is an optional adapter — every client below works without Codex present.

From a checkout

git clone https://github.com/TallyUp-Engineering/chat-room.git ~/chat-room
cd ~/chat-room
./scripts/install-user.sh

For a Codex TUI that can be woken while idle after an explicit tag:

chat-room codex

The wake path uses Codex app server over a private Unix socket. If the app-server protocol changes, ordinary hooks, MCP tools, terminal chat, and the web room continue to work.

Open the room without an agent CLI

chat-room ui

This opens the full local messenger UI at the durable, bookmarkable http://chatroom.localhost:7391/. The server still binds only to loopback, validates the browser hostname, and uses a same-origin local write cookie.

Choose a different machine-local bookmark without editing DNS or /etc/hosts:

chat-room ui --hostname my-team.localhost --port 7392

On macOS, opt into a user-level launchd service so the bookmark survives terminal and browser restarts:

chat-room service install --cwd .
chat-room service status

The reversible removal command is chat-room service uninstall.

Or stay entirely in the terminal:

chat-room chat

Useful one-shot commands:

chat-room status
chat-room targets
chat-room threads
chat-room search --query "rebase door"
chat-room start --client claude --worktree ../lane-one --prompt "rebuild the projection and report"
chat-room stop --client claude --session <session-id>
chat-room thread-open --audience human-loop --origin agent-request \
  --title "Choose navigation direction" \
  --reason "design direction" --lifetime durable \
  --participant @human --participant @ui-agent
chat-room post --kind request --topic cleanup \
  --message "@project-manager inspect all unassigned worktrees and report a safe disposition"

Claude Code

Copy and path-adjust examples/claude-settings.json into the appropriate Claude Code settings scope. It labels those sessions as Claude while preserving the same project room and message format.

Existing Codex and Claude transcripts are indexed directly from their local session stores. Only user and assistant text is rendered; tool calls, hidden instructions, and reasoning are omitted. History remains in the vendor-owned files and is never imported into Chat Room’s SQLite database.

The browser composer continues dormant Codex or Claude sessions through the installed vendor CLI using its ordinary local configuration and sandbox rules. A session already open in another CLI fails closed unless it exposes a safe live adapter; this avoids concurrently resuming one transcript from two processes. Chat Room passes browser prompts over stdin rather than process arguments. The transcript then refreshes from the vendor-owned file.

Notification choices are data, not HTML. Inspect or extend the local option index without rebuilding the interface:

chat-room options
chat-room option-set --namespace worktree_action --key archive \
  --value "Archive" --metadata '{"order":40,"prompt":"Report an archive plan. Do not mutate Git."}'

Chat status is intentionally mechanical: Live has an observed session now, Recent was updated within 7 days, Stale is 7–29 days old without a live session, and Inactive is at least 30 days old without one. The inactive panel is a review queue; Chat Room does not delete vendor-owned histories.

Architecture

Codex hooks ─┐
Claude hooks ├── local Python protocol ── SQLite (one logical room per Git project)
MCP tools ───┤              │
Terminal UI ─┤              ├── loopback HTTP + WebSocket browser UI
Web UI ──────┘              ├── live local chat indexes + CLI delivery adapters
                            ├── durable team + temporary coordination channels
                            └── explicit idle-session wake over Unix socket

Room identity derives from the normalized Git remote when present plus the resolved Git common directory. That makes linked worktrees converge without making unrelated clones or projects collide.

The room contains no scheduler and owns no work. Consumers must re-observe repository and provider state before acting.

Development

Requirements: Python 3.10+, Node 22+, Git.

cd ~/chat-room
make check

The public landing/demo site lives in app/. The distributable Codex plugin is plugins/chat-room/. The user installer creates a private Python virtual environment and installs the pinned WebSocket transport dependency.

Security

The HTTP and WebSocket services bind only to loopback, accept only localhost hostnames, use an unguessable per-process local session cookie, validate the WebSocket origin, send no CORS headers, and store room state locally. A conservative pattern filter rejects common private keys and API-token shapes before persistence. Local CLI histories require that cookie even for read access. This is defense in depth, not a general-purpose secret scanner; do not post secrets.

See SECURITY.md for reporting.

License

Apache-2.0. See LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
5Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    A coordination layer for coding agents that provides memorable identities, inbox/outbox messaging, searchable message history, and file lease management to prevent conflicts. Uses Git for human-auditable artifacts and SQLite for fast queries, enabling multiple agents to collaborate across projects without stepping on each other.
    Last updated
    2,069
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Provides agent coordination for Claude Code through a shared blackboard, decision tracking with rationale, and local semantic search over git-trackable JSONL files. It enables users to assemble tailored context packages and manage a lightweight knowledge graph for complex development tasks.
    Last updated
    13
    261
    7
    MIT

View all related MCP servers

Related MCP Connectors

  • The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.

  • Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.

  • Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TallyUp-Engineering/chat-room'

If you have feedback or need assistance with the MCP directory API, please join our Discord server