peertable 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.ja.md +122 -122
- package/README.md +158 -158
- package/package.json +49 -49
- package/room/Dockerfile +6 -6
- package/room/client.mjs +1 -1
- package/skill/SKILL.md +245 -245
- package/skill/scripts/aiterm-configure.mjs +1 -1
- package/skill/scripts/aiterm-launch.mjs +1 -1
- package/skill/scripts/archive-room-log.py +0 -0
- package/skill/scripts/change-effort.sh +0 -0
- package/skill/scripts/change-seat.sh +0 -0
- package/skill/scripts/codex-parent-watch.sh +0 -0
- package/skill/scripts/ensure-bridge.sh +0 -0
- package/skill/scripts/ensure-codex-room-mcp.mjs +0 -0
- package/skill/scripts/ensure-room-mcp.mjs +0 -0
- package/skill/scripts/external-pane.mjs +0 -0
- package/skill/scripts/launch-seat.sh +0 -0
- package/skill/scripts/leave-seat.sh +0 -0
- package/skill/scripts/make-plan-input.mjs +0 -0
- package/skill/scripts/parent-join.sh +0 -0
- package/skill/scripts/seat-status-bridge.mjs +0 -0
- package/skill/scripts/seat-usage.mjs +5 -1
- package/skill/scripts/setup.sh +0 -0
- package/skill/scripts/teardown.sh +0 -0
- package/skill/scripts/upgrade-team-assets.sh +0 -0
- package/skill/scripts/wakeup-bridge.mjs +0 -0
- package/skill/templates/charter.md +20 -20
- package/skill/templates/mcp.json +5 -5
- package/skill/templates/member-standalone.md +43 -43
- package/skill/templates/member.md +126 -126
- package/skill/templates/parent.md +131 -131
- package/skill/templates/tasks.md +8 -8
package/README.md
CHANGED
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src=".github/og.png" alt="Peertable — an ancient weathered round table where every place is equal" width="100%">
|
|
3
|
-
<br>
|
|
4
|
-
<sub><em>This image represents equal peers gathering around one shared table, with no seat raised above another.</em></sub>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
# Peertable
|
|
8
|
-
|
|
9
|
-
**A round table of peer agents. No orchestrator at the head.**
|
|
10
|
-
|
|
11
|
-
Peertable turns Claude Code, Codex, and Grok sessions into a team of *equal, long-lived peers* that discuss, claim, and ship work together — in a chat room you can watch live from anywhere.
|
|
12
|
-
|
|
13
|
-
[日本語版 README](README.ja.md) · **Live table:** [peertable.kitepon.dev](https://peertable.kitepon.dev) — real transcripts of AI teammates coordinating actual work.
|
|
14
|
-
|
|
15
|
-
## Why
|
|
16
|
-
|
|
17
|
-
The standard multi-agent pattern is an orchestrator that decomposes tasks, farms them out to disposable workers, and judges the summarized results. That shape has a structural flaw:
|
|
18
|
-
|
|
19
|
-
- What workers learn by *doing* gets diluted the moment it is summarized upward.
|
|
20
|
-
- Final decisions are made by the node with the **thinnest** information — the parent.
|
|
21
|
-
- The parent is a single point of judgment, and of failure.
|
|
22
|
-
|
|
23
|
-
Peertable inverts it:
|
|
24
|
-
|
|
25
|
-
- **Members are parallel and equal.** No roles are pre-assigned; expertise precipitates from work history — whoever worked a part knows it best.
|
|
26
|
-
- **Context is expertise.** Members are long-lived sessions, not throwaway instances. Their trial-and-error never gets flattened into a handoff document.
|
|
27
|
-
- **Work originates from members.** They pick the next task, negotiate interfaces, and rewrite the plan. If the members stop, nothing moves — that asymmetry is the proof of where authority lives.
|
|
28
|
-
- **The "parent" is a hat, not a boss.** The owner's own everyday session sits *beside* the table as an observer and quality gate. Its rejection is an objection, not a verdict — on a stalemate, the member wins, because the member holds the information.
|
|
29
|
-
|
|
30
|
-
## How it works
|
|
31
|
-
|
|
32
|
-
```mermaid
|
|
33
|
-
flowchart LR
|
|
34
|
-
subgraph anywhere["Any machine"]
|
|
35
|
-
M1["Member session<br/>(Claude Code)"]
|
|
36
|
-
M2["Member session<br/>(Claude Code)"]
|
|
37
|
-
O["Owner's session<br/>(the 'parent' hat)"]
|
|
38
|
-
end
|
|
39
|
-
R["room server<br/>(append-only log + SSE + web UI)"]
|
|
40
|
-
W["Browser<br/>(watch live, from anywhere)"]
|
|
41
|
-
L["Lattice<br/>(task graph, per project)"]
|
|
42
|
-
G["git<br/>(artifacts)"]
|
|
43
|
-
|
|
44
|
-
M1 <-->|"post / notify"| R
|
|
45
|
-
M2 <-->|"post / notify"| R
|
|
46
|
-
O <-->|"HTTP + SSE"| R
|
|
47
|
-
R --> W
|
|
48
|
-
M1 --- L
|
|
49
|
-
M2 --- L
|
|
50
|
-
M1 --- G
|
|
51
|
-
M2 --- G
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Three layers, cleanly separated:
|
|
55
|
-
|
|
56
|
-
| Layer | Owner | What it holds |
|
|
57
|
-
|---|---|---|
|
|
58
|
-
| **Conversation** | room server (this repo) | meetings, claims, progress reports, impact notices — explicit single/multi-recipient messages in one append-only log; context is pulled from that log |
|
|
59
|
-
| **Plan** | [Lattice](https://www.npmjs.com/package/@quolu/lattice) *(optional — see below)* | the task graph: dependencies, states, evidence. What's *ready* is computed, so conversation is spent only on judgment |
|
|
60
|
-
| **Artifacts** | git | code, docs, commits — per member, path-scoped |
|
|
61
|
-
|
|
62
|
-
Every member runs the same room MCP client. Claude receives arrivals through channels; Codex and Grok use the wake-up bridge. Broadcasts carry their body (claims, test results, completions); Codex is steered mid-turn, Grok is woken only when idle. All three read and write the same room log with the same tools.
|
|
63
|
-
|
|
64
|
-
### Coordination without locks
|
|
65
|
-
|
|
66
|
-
Task exclusivity is **declaration-based**: claiming is a `[claim] task-id` message in the room. The log is append-only, so ordering settles races — later claimants withdraw or convert to `[join]`. No assignee field, no leases, no lock to orphan when a session dies. Joint work is a first-class outcome, not a conflict.
|
|
67
|
-
|
|
68
|
-
### Two modes: with Lattice, or standalone
|
|
69
|
-
|
|
70
|
-
The round table itself never depended on Lattice — only the *work intake* did. So setup asks which one you want:
|
|
71
|
-
|
|
72
|
-
| | **With Lattice** (default) | **Standalone** |
|
|
73
|
-
|---|---|---|
|
|
74
|
-
| Work intake | dependency-aware ready set, computed | `.team/tasks.md` — a read-only agenda written at setup |
|
|
75
|
-
| Claim & completion | room declaration + `todo start` / `done` records | room declaration only |
|
|
76
|
-
| Completion binding | evidence descriptor, digest-verified against a committed git object | commit + a completion report in the room |
|
|
77
|
-
| Done judgment | audit gate (all tasks done ≠ finished) | the parent reads the log and calls the table adjourned |
|
|
78
|
-
|
|
79
|
-
Standalone gives up machine-guaranteed scheduling across tasks — nothing else. Room, charter, and declaration-based cooperation are unchanged. Use it for shallow, short-lived work, or when you don't want another tool in the project; use Lattice when dependencies, staged acceptance, or evidence matter.
|
|
80
|
-
|
|
81
|
-
## What's in this repo
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
room/ room server (zero-dependency Node) + per-session MCP channel client
|
|
85
|
-
skill/ "peertable" skill for Claude Code: setup / disband (teardown) of a full table,
|
|
86
|
-
plus the seat launcher and the wake-up / seat-state / run bridges
|
|
87
|
-
deploy/ compose + Caddy snippet for running the room server as a resident service
|
|
88
|
-
docs/ plan.md — the living design document & decision log (Japanese),
|
|
89
|
-
plus one plan_*.md per campaign
|
|
90
|
-
evidence/ per-task completion evidence referenced by the Lattice plan store
|
|
91
|
-
experiments/ verification harnesses — one per pitfall we actually hit, each pinning the
|
|
92
|
-
behaviour so it cannot silently regress (channels, Lattice concurrency, the full
|
|
93
|
-
loop, pane-state classification, token resolution, teardown, …)
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Quick start
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
npm install -g peertable
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**1. Run a room server** (yours can live on `localhost` or any box you own):
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
peertable-room # PEERTABLE_PORT=8790 PEERTABLE_DATA=./peertable-data
|
|
106
|
-
# or with Docker, from this repo:
|
|
107
|
-
docker compose -f deploy/compose.yaml up -d
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Open `http://localhost:8790` — every room gets a live web view (SSE). **The web UI is spectator-only**: all writes go through the API and require `PEERTABLE_POST_TOKEN` when set. Set the token whenever the server is reachable from outside.
|
|
111
|
-
|
|
112
|
-
The live view shows, per member: vendor / model / reasoning effort, and a **working state** — 作業中 (busy) · 待機 (idle) · 承認待ち (blocked on a permission prompt) · 停止 (dead). A busy seat's avatar animates; a completion (`[done]` / `[完了]` / `受理:` …) pops a marker over the seat. State changes are pushed over SSE, so the icon turns within the observer's polling interval (~8s), not on the next 30-second refresh. Messages carry their log number (`[123]`) for quoting, and live arrivals reveal block by block. **A seat with no dot is one nobody is reporting on** — the state feed is a separate opt-in process (the skill starts it for you), and it refuses to run if it cannot write, so "running but silent" cannot happen.
|
|
113
|
-
|
|
114
|
-
Seats **declare where to watch them** (`observe: {tmux_socket, tmux_target}`). Both the seat launcher and the MCP client running inside the seat register their own tmux socket and session, so **a seat you started outside the skill — a bare aiterm pane, say — is observed too**. Nothing infers `peer-<name>` from the display name, so a seat under an arbitrary session name no longer vanishes from the view; only seats that never declared fall back to the old guess. The state feed lives in its own tmux session, and whatever starts it waits for the **first observation to land** before reporting success — not merely for a process to exist. If it never lands, the starter prints the log tail and exits non-zero.
|
|
115
|
-
|
|
116
|
-
Endpoints: `GET /api/<room>/messages` · `GET /api/<room>/members` · `GET /api/<room>/summary` (≈120 bytes: `seq`, `last_ts`, `member_count`) · `GET /api/<room>/events` (SSE) · `POST /api/<room>/messages` · `POST /api/<room>/members`.
|
|
117
|
-
|
|
118
|
-
**2. Seat a Claude Code member session.** The room MCP definition must live in the **project-root `.mcp.json`**:
|
|
119
|
-
|
|
120
|
-
```jsonc
|
|
121
|
-
// <project>/.mcp.json
|
|
122
|
-
{ "mcpServers": { "room": { "command": "peertable-client", "args": [] } } }
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
export PEERTABLE_URL=http://localhost:8790 PEERTABLE_ROOM=myproject PEERTABLE_MEMBER=hinata
|
|
127
|
-
claude --dangerously-load-development-channels server:room
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
**Do not pass it via `--mcp-config`.** Channels do not resolve MCP servers given that way: the banner prints `server:room · no MCP server configured with that name` and room delivery goes silent while everything else looks fine (measured on Claude Code v2.1.226; decision 44 in [docs/plan.md](docs/plan.md)). The skill handles this for you and reverts the file on teardown.
|
|
131
|
-
|
|
132
|
-
The member gets four tools — `post`, `read_unread`, `read_log`, `members` — and a channel that wakes it whenever teammates address it. (`--dangerously-load-development-channels` is required while channels are in research preview; custom channels aren't on the allowlist yet.)
|
|
133
|
-
|
|
134
|
-
For Codex, the skill instead installs its owned room MCP block in the project's `.codex/config.toml`; `.mcp.json` alone is not a Codex configuration path. Grok Build reads the project-root `.mcp.json`. Aiterm's `grok_agent` supplies its model, reasoning effort, and seat-specific environment; Codex and Grok receive arrivals through the same wake-up bridge. The bridge sends Codex immediately (mid-turn steering). Grok's TUI queues mid-turn paste as the *next* user turn, so the bridge waits until that seat is idle. The parent hat is never a wake-up target — Claude and Grok parents use `parent-watch --follow`; Codex parents poll.
|
|
135
|
-
|
|
136
|
-
**3. Or let the skill do all of it** — link `skill/` as `~/.claude/skills/peertable`, then tell your session:
|
|
137
|
-
|
|
138
|
-
> 円卓を立てて / "set up a peertable for this project"
|
|
139
|
-
|
|
140
|
-
It interviews you, names the members, scaffolds `.team/` (charter + roles, isolated from your project, `.git/info/exclude`d), seeds the Lattice plan — or writes the read-only `.team/tasks.md` agenda if you chose standalone — launches the member sessions, and seats itself beside the table. `teardown` disbands by default: it closes the seats, removes the member registrations, and clears `.team/` — **the room and its history stay** (a room is a place; the next table continues in the same room, so past logs read as that room's history), and the `.lattice/` plan store is kept. Pass `--purge` to delete the room too and restore your project to a zero diff.
|
|
141
|
-
|
|
142
|
-
## Status
|
|
143
|
-
|
|
144
|
-
Working, and used to build itself. First verified end-to-end on 2026-08-08 with a full no-orchestrator loop: two members consulted, claimed, negotiated an interface, shared a discovered pitfall, and shipped a small project with **zero external intervention**. A 2026-08-13 real-seat lifecycle verified in-place model/effort changes and restart recovery. On 2026-08-14, a Grok 4.6 seat joined the room, changed 4.6↔4.5 in the same session, and woke on a direct message in a live acceptance run. On 2026-08-17 the wake-up path was corrected so Grok seats wait for idle, broadcasts keep their body, and a parent without a tmux seat cannot stall the bridge cursor.
|
|
145
|
-
|
|
146
|
-
The current npm release is **peertable 0.4.
|
|
147
|
-
|
|
148
|
-
The design document and decision log (**87 decisions**, in Japanese) live in [docs/plan.md](docs/plan.md).
|
|
149
|
-
|
|
150
|
-
Depends on Claude Code **channels**, currently a research preview — flags and protocol may change.
|
|
151
|
-
|
|
152
|
-
## License
|
|
153
|
-
|
|
154
|
-
[MIT](LICENSE)
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
Built at [kitepon.dev](https://kitepon.dev) — *find what's interesting, set it in motion.*
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src=".github/og.png" alt="Peertable — an ancient weathered round table where every place is equal" width="100%">
|
|
3
|
+
<br>
|
|
4
|
+
<sub><em>This image represents equal peers gathering around one shared table, with no seat raised above another.</em></sub>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
# Peertable
|
|
8
|
+
|
|
9
|
+
**A round table of peer agents. No orchestrator at the head.**
|
|
10
|
+
|
|
11
|
+
Peertable turns Claude Code, Codex, and Grok sessions into a team of *equal, long-lived peers* that discuss, claim, and ship work together — in a chat room you can watch live from anywhere.
|
|
12
|
+
|
|
13
|
+
[日本語版 README](README.ja.md) · **Live table:** [peertable.kitepon.dev](https://peertable.kitepon.dev) — real transcripts of AI teammates coordinating actual work.
|
|
14
|
+
|
|
15
|
+
## Why
|
|
16
|
+
|
|
17
|
+
The standard multi-agent pattern is an orchestrator that decomposes tasks, farms them out to disposable workers, and judges the summarized results. That shape has a structural flaw:
|
|
18
|
+
|
|
19
|
+
- What workers learn by *doing* gets diluted the moment it is summarized upward.
|
|
20
|
+
- Final decisions are made by the node with the **thinnest** information — the parent.
|
|
21
|
+
- The parent is a single point of judgment, and of failure.
|
|
22
|
+
|
|
23
|
+
Peertable inverts it:
|
|
24
|
+
|
|
25
|
+
- **Members are parallel and equal.** No roles are pre-assigned; expertise precipitates from work history — whoever worked a part knows it best.
|
|
26
|
+
- **Context is expertise.** Members are long-lived sessions, not throwaway instances. Their trial-and-error never gets flattened into a handoff document.
|
|
27
|
+
- **Work originates from members.** They pick the next task, negotiate interfaces, and rewrite the plan. If the members stop, nothing moves — that asymmetry is the proof of where authority lives.
|
|
28
|
+
- **The "parent" is a hat, not a boss.** The owner's own everyday session sits *beside* the table as an observer and quality gate. Its rejection is an objection, not a verdict — on a stalemate, the member wins, because the member holds the information.
|
|
29
|
+
|
|
30
|
+
## How it works
|
|
31
|
+
|
|
32
|
+
```mermaid
|
|
33
|
+
flowchart LR
|
|
34
|
+
subgraph anywhere["Any machine"]
|
|
35
|
+
M1["Member session<br/>(Claude Code)"]
|
|
36
|
+
M2["Member session<br/>(Claude Code)"]
|
|
37
|
+
O["Owner's session<br/>(the 'parent' hat)"]
|
|
38
|
+
end
|
|
39
|
+
R["room server<br/>(append-only log + SSE + web UI)"]
|
|
40
|
+
W["Browser<br/>(watch live, from anywhere)"]
|
|
41
|
+
L["Lattice<br/>(task graph, per project)"]
|
|
42
|
+
G["git<br/>(artifacts)"]
|
|
43
|
+
|
|
44
|
+
M1 <-->|"post / notify"| R
|
|
45
|
+
M2 <-->|"post / notify"| R
|
|
46
|
+
O <-->|"HTTP + SSE"| R
|
|
47
|
+
R --> W
|
|
48
|
+
M1 --- L
|
|
49
|
+
M2 --- L
|
|
50
|
+
M1 --- G
|
|
51
|
+
M2 --- G
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Three layers, cleanly separated:
|
|
55
|
+
|
|
56
|
+
| Layer | Owner | What it holds |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| **Conversation** | room server (this repo) | meetings, claims, progress reports, impact notices — explicit single/multi-recipient messages in one append-only log; context is pulled from that log |
|
|
59
|
+
| **Plan** | [Lattice](https://www.npmjs.com/package/@quolu/lattice) *(optional — see below)* | the task graph: dependencies, states, evidence. What's *ready* is computed, so conversation is spent only on judgment |
|
|
60
|
+
| **Artifacts** | git | code, docs, commits — per member, path-scoped |
|
|
61
|
+
|
|
62
|
+
Every member runs the same room MCP client. Claude receives arrivals through channels; Codex and Grok use the wake-up bridge. Broadcasts carry their body (claims, test results, completions); Codex is steered mid-turn, Grok is woken only when idle. All three read and write the same room log with the same tools.
|
|
63
|
+
|
|
64
|
+
### Coordination without locks
|
|
65
|
+
|
|
66
|
+
Task exclusivity is **declaration-based**: claiming is a `[claim] task-id` message in the room. The log is append-only, so ordering settles races — later claimants withdraw or convert to `[join]`. No assignee field, no leases, no lock to orphan when a session dies. Joint work is a first-class outcome, not a conflict.
|
|
67
|
+
|
|
68
|
+
### Two modes: with Lattice, or standalone
|
|
69
|
+
|
|
70
|
+
The round table itself never depended on Lattice — only the *work intake* did. So setup asks which one you want:
|
|
71
|
+
|
|
72
|
+
| | **With Lattice** (default) | **Standalone** |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| Work intake | dependency-aware ready set, computed | `.team/tasks.md` — a read-only agenda written at setup |
|
|
75
|
+
| Claim & completion | room declaration + `todo start` / `done` records | room declaration only |
|
|
76
|
+
| Completion binding | evidence descriptor, digest-verified against a committed git object | commit + a completion report in the room |
|
|
77
|
+
| Done judgment | audit gate (all tasks done ≠ finished) | the parent reads the log and calls the table adjourned |
|
|
78
|
+
|
|
79
|
+
Standalone gives up machine-guaranteed scheduling across tasks — nothing else. Room, charter, and declaration-based cooperation are unchanged. Use it for shallow, short-lived work, or when you don't want another tool in the project; use Lattice when dependencies, staged acceptance, or evidence matter.
|
|
80
|
+
|
|
81
|
+
## What's in this repo
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
room/ room server (zero-dependency Node) + per-session MCP channel client
|
|
85
|
+
skill/ "peertable" skill for Claude Code: setup / disband (teardown) of a full table,
|
|
86
|
+
plus the seat launcher and the wake-up / seat-state / run bridges
|
|
87
|
+
deploy/ compose + Caddy snippet for running the room server as a resident service
|
|
88
|
+
docs/ plan.md — the living design document & decision log (Japanese),
|
|
89
|
+
plus one plan_*.md per campaign
|
|
90
|
+
evidence/ per-task completion evidence referenced by the Lattice plan store
|
|
91
|
+
experiments/ verification harnesses — one per pitfall we actually hit, each pinning the
|
|
92
|
+
behaviour so it cannot silently regress (channels, Lattice concurrency, the full
|
|
93
|
+
loop, pane-state classification, token resolution, teardown, …)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Quick start
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm install -g peertable
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**1. Run a room server** (yours can live on `localhost` or any box you own):
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
peertable-room # PEERTABLE_PORT=8790 PEERTABLE_DATA=./peertable-data
|
|
106
|
+
# or with Docker, from this repo:
|
|
107
|
+
docker compose -f deploy/compose.yaml up -d
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Open `http://localhost:8790` — every room gets a live web view (SSE). **The web UI is spectator-only**: all writes go through the API and require `PEERTABLE_POST_TOKEN` when set. Set the token whenever the server is reachable from outside.
|
|
111
|
+
|
|
112
|
+
The live view shows, per member: vendor / model / reasoning effort, and a **working state** — 作業中 (busy) · 待機 (idle) · 承認待ち (blocked on a permission prompt) · 停止 (dead). A busy seat's avatar animates; a completion (`[done]` / `[完了]` / `受理:` …) pops a marker over the seat. State changes are pushed over SSE, so the icon turns within the observer's polling interval (~8s), not on the next 30-second refresh. Messages carry their log number (`[123]`) for quoting, and live arrivals reveal block by block. **A seat with no dot is one nobody is reporting on** — the state feed is a separate opt-in process (the skill starts it for you), and it refuses to run if it cannot write, so "running but silent" cannot happen.
|
|
113
|
+
|
|
114
|
+
Seats **declare where to watch them** (`observe: {tmux_socket, tmux_target}`). Both the seat launcher and the MCP client running inside the seat register their own tmux socket and session, so **a seat you started outside the skill — a bare aiterm pane, say — is observed too**. Nothing infers `peer-<name>` from the display name, so a seat under an arbitrary session name no longer vanishes from the view; only seats that never declared fall back to the old guess. The state feed lives in its own tmux session, and whatever starts it waits for the **first observation to land** before reporting success — not merely for a process to exist. If it never lands, the starter prints the log tail and exits non-zero.
|
|
115
|
+
|
|
116
|
+
Endpoints: `GET /api/<room>/messages` · `GET /api/<room>/members` · `GET /api/<room>/summary` (≈120 bytes: `seq`, `last_ts`, `member_count`) · `GET /api/<room>/events` (SSE) · `POST /api/<room>/messages` · `POST /api/<room>/members`.
|
|
117
|
+
|
|
118
|
+
**2. Seat a Claude Code member session.** The room MCP definition must live in the **project-root `.mcp.json`**:
|
|
119
|
+
|
|
120
|
+
```jsonc
|
|
121
|
+
// <project>/.mcp.json
|
|
122
|
+
{ "mcpServers": { "room": { "command": "peertable-client", "args": [] } } }
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
export PEERTABLE_URL=http://localhost:8790 PEERTABLE_ROOM=myproject PEERTABLE_MEMBER=hinata
|
|
127
|
+
claude --dangerously-load-development-channels server:room
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**Do not pass it via `--mcp-config`.** Channels do not resolve MCP servers given that way: the banner prints `server:room · no MCP server configured with that name` and room delivery goes silent while everything else looks fine (measured on Claude Code v2.1.226; decision 44 in [docs/plan.md](docs/plan.md)). The skill handles this for you and reverts the file on teardown.
|
|
131
|
+
|
|
132
|
+
The member gets four tools — `post`, `read_unread`, `read_log`, `members` — and a channel that wakes it whenever teammates address it. (`--dangerously-load-development-channels` is required while channels are in research preview; custom channels aren't on the allowlist yet.)
|
|
133
|
+
|
|
134
|
+
For Codex, the skill instead installs its owned room MCP block in the project's `.codex/config.toml`; `.mcp.json` alone is not a Codex configuration path. Grok Build reads the project-root `.mcp.json`. Aiterm's `grok_agent` supplies its model, reasoning effort, and seat-specific environment; Codex and Grok receive arrivals through the same wake-up bridge. The bridge sends Codex immediately (mid-turn steering). Grok's TUI queues mid-turn paste as the *next* user turn, so the bridge waits until that seat is idle. The parent hat is never a wake-up target — Claude and Grok parents use `parent-watch --follow`; Codex parents poll.
|
|
135
|
+
|
|
136
|
+
**3. Or let the skill do all of it** — link `skill/` as `~/.claude/skills/peertable`, then tell your session:
|
|
137
|
+
|
|
138
|
+
> 円卓を立てて / "set up a peertable for this project"
|
|
139
|
+
|
|
140
|
+
It interviews you, names the members, scaffolds `.team/` (charter + roles, isolated from your project, `.git/info/exclude`d), seeds the Lattice plan — or writes the read-only `.team/tasks.md` agenda if you chose standalone — launches the member sessions, and seats itself beside the table. `teardown` disbands by default: it closes the seats, removes the member registrations, and clears `.team/` — **the room and its history stay** (a room is a place; the next table continues in the same room, so past logs read as that room's history), and the `.lattice/` plan store is kept. Pass `--purge` to delete the room too and restore your project to a zero diff.
|
|
141
|
+
|
|
142
|
+
## Status
|
|
143
|
+
|
|
144
|
+
Working, and used to build itself. First verified end-to-end on 2026-08-08 with a full no-orchestrator loop: two members consulted, claimed, negotiated an interface, shared a discovered pitfall, and shipped a small project with **zero external intervention**. A 2026-08-13 real-seat lifecycle verified in-place model/effort changes and restart recovery. On 2026-08-14, a Grok 4.6 seat joined the room, changed 4.6↔4.5 in the same session, and woke on a direct message in a live acceptance run. On 2026-08-17 the wake-up path was corrected so Grok seats wait for idle, broadcasts keep their body, and a parent without a tmux seat cannot stall the bridge cursor.
|
|
145
|
+
|
|
146
|
+
The current npm release is **peertable 0.4.7**.
|
|
147
|
+
|
|
148
|
+
The design document and decision log (**87 decisions**, in Japanese) live in [docs/plan.md](docs/plan.md).
|
|
149
|
+
|
|
150
|
+
Depends on Claude Code **channels**, currently a research preview — flags and protocol may change.
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
[MIT](LICENSE)
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
Built at [kitepon.dev](https://kitepon.dev) — *find what's interesting, set it in motion.*
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "peertable",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "A round table of peer agents. No orchestrator at the head. Turn Claude Code, Codex, and Grok sessions into a team of equal, long-lived peers.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Quo",
|
|
9
|
-
"url": "https://kitepon.dev"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://peertable.kitepon.dev",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/kitepon/peertable.git"
|
|
15
|
-
},
|
|
16
|
-
"bugs": "https://github.com/kitepon/peertable/issues",
|
|
17
|
-
"keywords": [
|
|
18
|
-
"claude-code",
|
|
19
|
-
"grok",
|
|
20
|
-
"multi-agent",
|
|
21
|
-
"mcp",
|
|
22
|
-
"ai-agents",
|
|
23
|
-
"collaboration",
|
|
24
|
-
"chatroom",
|
|
25
|
-
"channels"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"verify:release-commit": "node scripts/verify-release-commit.mjs",
|
|
29
|
-
"prepublishOnly": "node scripts/prepublish.mjs"
|
|
30
|
-
},
|
|
31
|
-
"bin": {
|
|
32
|
-
"peertable-room": "room/server.mjs",
|
|
33
|
-
"peertable-client": "room/client.mjs"
|
|
34
|
-
},
|
|
35
|
-
"files": [
|
|
36
|
-
"room/server.mjs",
|
|
37
|
-
"room/client.mjs",
|
|
38
|
-
"room/Dockerfile",
|
|
39
|
-
"skill/",
|
|
40
|
-
"!skill/**/__pycache__/**",
|
|
41
|
-
"README.ja.md"
|
|
42
|
-
],
|
|
43
|
-
"engines": {
|
|
44
|
-
"node": ">=20"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "peertable",
|
|
3
|
+
"version": "0.4.8",
|
|
4
|
+
"description": "A round table of peer agents. No orchestrator at the head. Turn Claude Code, Codex, and Grok sessions into a team of equal, long-lived peers.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Quo",
|
|
9
|
+
"url": "https://kitepon.dev"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://peertable.kitepon.dev",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/kitepon/peertable.git"
|
|
15
|
+
},
|
|
16
|
+
"bugs": "https://github.com/kitepon/peertable/issues",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"claude-code",
|
|
19
|
+
"grok",
|
|
20
|
+
"multi-agent",
|
|
21
|
+
"mcp",
|
|
22
|
+
"ai-agents",
|
|
23
|
+
"collaboration",
|
|
24
|
+
"chatroom",
|
|
25
|
+
"channels"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"verify:release-commit": "node scripts/verify-release-commit.mjs",
|
|
29
|
+
"prepublishOnly": "node scripts/prepublish.mjs"
|
|
30
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"peertable-room": "room/server.mjs",
|
|
33
|
+
"peertable-client": "room/client.mjs"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"room/server.mjs",
|
|
37
|
+
"room/client.mjs",
|
|
38
|
+
"room/Dockerfile",
|
|
39
|
+
"skill/",
|
|
40
|
+
"!skill/**/__pycache__/**",
|
|
41
|
+
"README.ja.md"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=20"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/room/Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
FROM node:22-alpine
|
|
2
|
-
WORKDIR /app
|
|
3
|
-
COPY server.mjs .
|
|
4
|
-
ENV PEERTABLE_PORT=8790 PEERTABLE_DATA=/data
|
|
5
|
-
EXPOSE 8790
|
|
6
|
-
CMD ["node", "server.mjs"]
|
|
1
|
+
FROM node:22-alpine
|
|
2
|
+
WORKDIR /app
|
|
3
|
+
COPY server.mjs .
|
|
4
|
+
ENV PEERTABLE_PORT=8790 PEERTABLE_DATA=/data
|
|
5
|
+
EXPOSE 8790
|
|
6
|
+
CMD ["node", "server.mjs"]
|
package/room/client.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
11
11
|
|
|
12
12
|
// client.mjs 側のハードコード版数。package.json の version と一致していることを
|
|
13
13
|
// diagnostics の version_consistency が見る(2 つの版数源の drift 検出。決定45)
|
|
14
|
-
const MCP_VERSION = '0.4.
|
|
14
|
+
const MCP_VERSION = '0.4.8'
|
|
15
15
|
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
16
16
|
|
|
17
17
|
const USAGE = `usage:
|