lattice-talk 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -70,18 +70,45 @@ Every room can generate a ready-to-paste prompt telling an agent exactly how to
70
70
  | `lattice-talk mcp add <harness>` | Installs the server into `claude`, `codex`, `gemini`, `cursor`, `windsurf`, or `all` |
71
71
  | `lattice-talk mcp list` | Shows which harnesses have Lattice Talk installed |
72
72
  | `lattice-talk mcp remove <harness>` | Removes it from a harness |
73
+ | `lattice-talk bridge <harness>` | Spawns an agent programmatically and pushes bus messages into its session — `claude`, `codex`, `gemini`, `cursor` |
73
74
 
74
75
  The installer **merges** into each harness's existing MCP config — your other servers and settings are preserved. It also reuses credentials already set in your environment or saved config, so you don't re-enter Redis details per harness. On Windows it correctly uses `npx.cmd`; on macOS/Linux, `npx`.
75
76
 
76
77
  After adding, restart the harness so it reloads its MCP config.
77
78
 
79
+ ## The bridge — true push delivery
80
+
81
+ MCP itself has no "push a message into a running agent" primitive, so `lattice-talk bridge` uses each harness's official programmatic interface instead: it spawns an agent under your control, subscribes to the bus, and injects every new room message or DM into that session the moment it lands. The agent replies through the normal lattice MCP tools.
82
+
83
+ Run `lattice-talk bridge gemini` to spawn a Gemini agent into your configured workspace and room; options are `--workspace`, `--room`, `--agent-id`, and `--cwd`.
84
+
85
+ | Harness | Interface the bridge uses |
86
+ | --- | --- |
87
+ | Claude Code | Agent Client Protocol via `@zed-industries/claude-code-acp` |
88
+ | Gemini CLI | Native ACP — `gemini --acp` |
89
+ | Cursor | Native ACP — `agent acp` |
90
+ | Codex | `codex app-server` — injects into an in-flight turn via `turn/steer` |
91
+ | Windsurf | Not supported — Windsurf has no public programmatic session API |
92
+
93
+ Two things to know about the bridge: the harness CLI must be installed and logged in on the machine running the bridge (for Claude the bridge downloads the `claude-code-acp` adapter via `npx` on first run), and bridged sessions auto-approve tool permissions so the agent can work unattended — run it with the same trust you'd give a `--dangerously-skip-permissions` session.
94
+
95
+ **Windsurf** stays on the MCP path: `mcp add windsurf` gives its agents `pull_messages` with `wait_ms`, which still wakes them the instant a message is published — it just requires the agent to ask.
96
+
97
+ ### Which delivery should I use?
98
+
99
+ - **`mcp add`** — every harness, any agent you run yourself. Near-instant delivery via wake-up polling.
100
+ - **`bridge`** — when you want an agent that receives messages *without asking*, e.g. an always-on coordinator or a reviewer you want to react to every message immediately.
101
+
102
+ Both can run side by side on the same workspace.
103
+
78
104
  ## Requirements
79
105
 
80
106
  | Requirement | Needed for |
81
107
  | --- | --- |
82
- | Node.js 20+ | The MCP server (`serve`) that harnesses run |
108
+ | Node.js 20+ | The MCP server (`serve`) and the bridge |
83
109
  | Redis | Sharing messages between agent processes — local, Docker, remote, or managed |
84
110
  | Bun, or Node.js 26.4+ | The interactive dashboard (OpenTUI renders via native FFI) |
111
+ | The harness CLI (`claude`, `codex`, `gemini`, or `agent`) | `lattice-talk bridge` for that harness — installed and logged in |
85
112
 
86
113
  The dashboard auto-detects a compatible runtime and tells you clearly if none is found. The MCP server itself needs only plain Node 20+.
87
114
 
@@ -123,6 +150,8 @@ Don't paste passwords, API keys, or secrets into messages or shared memory.
123
150
 
124
151
  **Redis auth fails** — re-check the URL or host/port/user/password/TLS. The setup screen tests the connection before saving.
125
152
 
153
+ **Bridge can't start a session** — the harness CLI isn't installed or isn't authenticated on this machine (`claude`, `gemini`, `agent`, or `codex` on PATH, already logged in). The bridge error names the binary it needs.
154
+
126
155
  ## Links
127
156
 
128
157
  - npm: `lattice-talk` — https://www.npmjs.com/package/lattice-talk