Preview docs — v0.11-preview2
⚠️ You are reading the preview documentation
The current preview channel = v0.11-preview2 (npm @preview tag). This release has not been promoted to @latest — for stable production use, go back to the latest documentation.
Features available in preview that aren't in latest yet:
anet node loopCLI +/loopworks across all runtimes (claude-agent-sdk / codex-sdk / grok-build-acp)- Security batch: cross-tenant write防护带 + retention sweep + password KDF strengthening
- RFC-024 hub config-apply foundation (4 new MCP tools)
Three-package versions (preview2, 2026-06-28)
| Package | preview1 | preview2 |
|---|---|---|
@sleep2agi/agent-network (CLI) | 2.3.0-preview.0 | 2.3.0-preview.1 |
@sleep2agi/agent-node (runtime) | 2.5.0-preview.0 | 2.5.0-preview.1 |
@sleep2agi/commhub-server (hub) | 0.9.0-preview.0 | 0.9.0-preview.1 |
PINNED_SERVER_VERSION updated to 0.9.0-preview.1 — anet hub start lazy-fetches the matching hub binary automatically.
Install
Clean install (new user)
npm install -g @sleep2agi/agent-network@2.3.0-preview.1
npm install -g @sleep2agi/agent-node@2.5.0-preview.1
npm install -g @sleep2agi/commhub-server@0.9.0-preview.1Bootstrap:
anet --version # → 2.3.0-preview.1
anet hub start # spawns the pinned hub on :9200
anet init # configures the hub URL globally
anet init project # writes .anet/ in the current project (auto-adds .anet/ to .gitignore — v0.11 security)
anet node create # interactive wizard
anet node start <alias> # launches the agent-node runtimeUpgrade (existing user tracking the preview channel)
anet upgrade --channel previewRestart any running nodes so they pick up the new runtime:
anet node stop <alias>
anet node start <alias>Full upgrade workflow + cross-version migration: Upgrade Guide.
Quickstart — try /loop in 60 seconds
Want to try the headline preview2 feature (/loop works for every runtime) right after upgrading? Follow these 6 steps:
anet upgrade --channel preview # 1. Upgrade to the preview channel
anet --version # 2. Confirm 2.3.0-preview.1
anet node start <alias> # 3. Make sure the node is online
anet node loop <alias> "what time is it now" --every 5m # 4. Schedule a recurring task (every 5 min)
# Manage loops ↓
anet goal list <alias> # 5a. List loops (task/interval/next_wake/status)
anet goal edit <alias> <goal-id> --interval 10min # 5b. Change the interval
anet goal edit <alias> <goal-id> --status paused # 5c. Pause (status: active/paused/completed/cancelled)
anet goal cancel <alias> <goal-id> # 5d. CancelChannel-equivalent form (works inside the node's interactive prompt / Dashboard Chat / Feishu @bot etc. — same effect):
/loop 5m what time is it nowNotes:
- Starting in preview2, all 4 runtimes (
claude-agent-sdk/claude-code-cli/codex-sdk/grok-build-acp) can run/loop; previously onlyclaude-code-clidid - Interval units:
60s/5m/30m/2h/1d, minimum 60s - Replace
<alias>with your node alias (anet node ls); get<goal-id>fromanet goal list <alias> - Full command reference + persistence + restart behavior: Agent Node — Loop scheduler
preview2 highlights (with deep links)
🌟 /loop works for every runtime + anet node loop CLI
Before preview2, the /loop self-scheduler only ran for the claude-code-cli runtime; agent-node-driven runtimes (claude-agent-sdk / codex-sdk / grok-build-acp) silently skipped goal ticks. preview2 removes that runtime-bucket skip — every runtime can now drive a /loop goal end-to-end.
Plus: new anet node loop CLI to manage goals from outside the agent — set / list / cancel a node's running /loop jobs.
anet node loop my-codex "monitor PR #271" --every 5m
anet node loop researcher "scan twitter for grok updates" --every 30m
anet node loop daily-bot "post the morning summary" --every 2h📖 Full usage + trigger mechanics → Agent Node — Loop scheduler
🔒 Security batch (4 items)
Four cross-tenant / data-integrity gaps closed for public-hub multi-user / multi-network deployments:
- Cross-tenant write防护带 (#287, RFC-024 PR A)
- retention sweep + incremental VACUUM (#282)
- read-path stale-marker fix (#283)
- Password KDF strengthening (#285)
📖 Full description → Changelog — v0.11-preview2 Security batch
🛠 Engineering hardening
superviseChild()shared helper (feishu/SSE supervisor extraction)- RFC-024 hub config-apply foundation (4 MCP tools + schema)
Not in preview2 yet
- RFC-024 PR B (agent-node config-apply runtime) — separate PR #290, queued for preview2.x / preview3
- Dashboard end-to-end config-apply — PR C, lands after PR B
latest vs preview comparison
| Feature | latest (npm latest) | preview (2.3.0-preview.1) |
|---|---|---|
/loop scheduler | claude-code-cli only | All 4 runtimes |
anet node loop CLI | ❌ | ✅ |
| Cross-tenant write防护带 | Partial (#275) | ✅ 4 tools + SQL guard |
| retention sweep / VACUUM | ❌ | ✅ |
| Password KDF | Basic scrypt | ✅ verified-modern parameters |
| RFC-024 hub config-apply | ❌ | ✅ foundation (PR A) |
Docker one-command (docker/feishu/) | ✅ (since preview1) | ✅ |
| Feishu channel | ✅ (since preview1) | ✅ |
Full release notes
→ Changelog v0.11-preview2 full entry
References
- Versioning — npm-package versions vs
v0.11.xbundle releases - Upgrade Guide — preview ↔ latest switch + cross-version migration
- GitHub release v0.11-preview2 — GH-side release tag
- Switch back to latest documentation — if you want the stable release