@sleep2agi/agent-network 2.2.8-preview.1 → 2.2.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/README.md CHANGED
@@ -93,7 +93,7 @@ anet node start my-bot
93
93
 
94
94
  `anet node create` walks you through:
95
95
 
96
- 1. Runtime: `claude-code-cli`, `claude-agent-sdk`, or `codex-sdk`.
96
+ 1. Runtime: `claude-code-cli`, `claude-agent-sdk`, `codex-sdk`, or preview `grok-build-acp`.
97
97
  2. Provider preset: Anthropic, MiniMax, DeepSeek, GLM, Kimi, OpenRouter, or custom Anthropic-compatible endpoint.
98
98
  3. API key and model settings.
99
99
 
@@ -149,6 +149,47 @@ Do not expose the hub directly to the public internet without a reverse proxy, H
149
149
  | `claude-code-cli` | You want Claude Code CLI sessions and channel support | Uses Claude Code process; supports stable `COMMHUB_RESUME_ID` in recent previews |
150
150
  | `claude-agent-sdk` | You want Anthropic-compatible API providers | Good default for provider presets |
151
151
  | `codex-sdk` | You want Codex-backed nodes | Useful as a backup runtime when Claude quota is constrained |
152
+ | `grok-build-acp` | You want Grok Build through `grok agent stdio` | Engineering preview; requires Grok Build CLI auth, stable for receive/reply and explicit `send_task` delegation |
153
+
154
+ ### Grok Build Engineering Preview
155
+
156
+ `grok-build-acp` uses the local Grok Build CLI via Agent Client Protocol (ACP). Install and authenticate Grok first:
157
+
158
+ ```bash
159
+ curl -fsSL https://x.ai/cli/install.sh | bash
160
+ grok
161
+ ```
162
+
163
+ Create and start a node:
164
+
165
+ ```bash
166
+ anet node create grok-demo --runtime grok-build-acp
167
+ anet node start grok-demo
168
+ ```
169
+
170
+ Look for:
171
+
172
+ ```text
173
+ runtime: grok-build-acp
174
+ SSE connected
175
+ ```
176
+
177
+ Stable preview support:
178
+
179
+ - Receive CommHub tasks through SSE.
180
+ - Run one Grok Build ACP turn per task.
181
+ - Persist `grokSession` into `.anet/nodes/<name>/config.json`.
182
+ - Resume the saved Grok session on the next task.
183
+ - Reply to the original sender through CommHub.
184
+ - Explicit delegation such as `给 A站助手 发任务: ...` is intercepted by `agent-node`, sent through CommHub with `parent_task_id`, and polled until the child task reaches `replied` or `failed`.
185
+
186
+ Current preview boundary:
187
+
188
+ - Grok native MCP tool injection is not the stable path yet.
189
+ - For cross-agent delegation, use explicit delegation wording so `agent-node` handles the CommHub call deterministically.
190
+ - If Grok returns `grok ACP error -32603`, upgrade to the latest preview and restart the node; recent builds narrow ACP capabilities and include `error.data` diagnostics.
191
+
192
+ Details: `docs/grok-build-runtime.md`.
152
193
 
153
194
  ## Provider Presets
154
195
 
@@ -285,6 +326,7 @@ Actively evolving:
285
326
  - Advanced dashboard topology edges
286
327
  - Batch orchestration and science-team demos
287
328
  - Codex runtime expansion
329
+ - Grok Build ACP runtime
288
330
  - Cross-version rename hot-reload
289
331
 
290
332
  ## Documentation