Skip to content

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 loop CLI + /loop works 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)

Packagepreview1preview2
@sleep2agi/agent-network (CLI)2.3.0-preview.02.3.0-preview.1
@sleep2agi/agent-node (runtime)2.5.0-preview.02.5.0-preview.1
@sleep2agi/commhub-server (hub)0.9.0-preview.00.9.0-preview.1

PINNED_SERVER_VERSION updated to 0.9.0-preview.1anet hub start lazy-fetches the matching hub binary automatically.

Install

Clean install (new user)

bash
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.1

Bootstrap:

bash
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 runtime

Upgrade (existing user tracking the preview channel)

bash
anet upgrade --channel preview

Restart any running nodes so they pick up the new runtime:

bash
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:

bash
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. Cancel

Channel-equivalent form (works inside the node's interactive prompt / Dashboard Chat / Feishu @bot etc. — same effect):

/loop 5m what time is it now

Notes:

  • Starting in preview2, all 4 runtimes (claude-agent-sdk / claude-code-cli / codex-sdk / grok-build-acp) can run /loop; previously only claude-code-cli did
  • Interval units: 60s / 5m / 30m / 2h / 1d, minimum 60s
  • Replace <alias> with your node alias (anet node ls); get <goal-id> from anet goal list <alias>
  • Full command reference + persistence + restart behavior: Agent Node — Loop scheduler

🌟 /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.

bash
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

Featurelatest (npm latest)preview (2.3.0-preview.1)
/loop schedulerclaude-code-cli onlyAll 4 runtimes
anet node loop CLI
Cross-tenant write防护带Partial (#275)✅ 4 tools + SQL guard
retention sweep / VACUUM
Password KDFBasic 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

Powered by Sleep2AGI