claudemesh-cli 1.17.0 → 1.18.0

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.
@@ -88,7 +88,7 @@ __export(exports_urls, {
88
88
  VERSION: () => VERSION,
89
89
  URLS: () => URLS
90
90
  });
91
- var URLS, VERSION = "1.17.0", env;
91
+ var URLS, VERSION = "1.18.0", env;
92
92
  var init_urls = __esm(() => {
93
93
  URLS = {
94
94
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -11124,6 +11124,611 @@ var init_platform_actions = __esm(() => {
11124
11124
  init_exit_codes();
11125
11125
  });
11126
11126
 
11127
+ // skills/claudemesh/SKILL.md
11128
+ var SKILL_default = `---
11129
+ name: claudemesh
11130
+ description: Use when the user asks to send a message to a peer Claude session, list mesh peers, share state across meshes, schedule cross-session reminders, or otherwise interact with claudemesh — a peer mesh runtime for Claude Code sessions. Provides the canonical reference for every \`claudemesh\` CLI verb, its flags, JSON output shape, and common patterns.
11131
+ ---
11132
+
11133
+ # claudemesh skill
11134
+
11135
+ \`claudemesh\` is the peer mesh runtime for Claude Code sessions. Each session in a mesh has a name, identity (ed25519 keypair), and shared resources: peers, messages, state, memory, files, vectors, scheduled jobs, skills.
11136
+
11137
+ **You invoke claudemesh exclusively through the \`claudemesh\` CLI via Bash.** There are no MCP tools to call — \`tools/list\` returns empty for the claudemesh MCP server. The MCP server exists only to deliver inbound peer messages as \`<channel source="claudemesh">\` interrupts mid-turn. Everything else is CLI.
11138
+
11139
+ ## When you receive a \`<channel source="claudemesh">\` message
11140
+
11141
+ Respond IMMEDIATELY. Pause your current task, reply via \`claudemesh send\`, then resume. Read \`from_name\`, \`mesh_slug\`, and \`priority\` from the channel attributes. Reply by setting \`<to>\` to the sender's \`from_name\`. Do not ignore low-priority messages — acknowledge them briefly even if you defer action. If the channel meta contains \`subtype: reminder\`, this is a scheduled reminder you set yourself — act on it.
11142
+
11143
+ ### Channel attributes (everything you need to reply is in the push)
11144
+
11145
+ The \`<channel>\` interrupt carries these attributes — no lookup needed:
11146
+
11147
+ | Attribute | What it is |
11148
+ |---|---|
11149
+ | \`from_name\` | Sender's display name. **Use as \`to\` in your reply** for DMs. |
11150
+ | \`from_pubkey\` | Sender's session pubkey (hex). Stable per-session. |
11151
+ | \`from_member_id\` | Sender's stable mesh.member id. Survives display-name changes — the canonical id. |
11152
+ | \`mesh_slug\` | Mesh the message arrived on. Pass via \`--mesh <slug>\` if the parent isn't on the same mesh. |
11153
+ | \`priority\` | \`now\` / \`next\` / \`low\`. |
11154
+ | \`message_id\` | Server-side id of THIS message. **Pass to \`--reply-to <id>\` to thread your reply** in topic posts. |
11155
+ | \`topic\` | Set when the source is a topic post. Reply via \`topic post <topic> --reply-to <message_id>\`. |
11156
+ | \`reply_to_id\` | Set when the message itself is a reply to a previous one — render thread context. |
11157
+
11158
+ **Reply patterns:**
11159
+
11160
+ \`\`\`bash
11161
+ # DM → use from_name as the target
11162
+ claudemesh send "<from_name>" "ack — looking now"
11163
+
11164
+ # Topic reply → thread it onto the message you got
11165
+ claudemesh topic post "<topic>" "yep, looks good" --reply-to <message_id>
11166
+
11167
+ # When the sender is on a different mesh you've joined
11168
+ claudemesh send "<from_name>" "..." --mesh "<mesh_slug>"
11169
+ \`\`\`
11170
+
11171
+ ## Performance model (warm vs cold path)
11172
+
11173
+ If the parent Claude session was launched via \`claudemesh launch\`, an MCP push-pipe is running and holds the per-mesh WS connection. CLI invocations dial \`~/.claudemesh/sockets/<mesh-slug>.sock\` and reuse that warm connection (~200ms total round-trip including Node.js startup). If no push-pipe is running (cron, scripts, hooks fired outside a session), the CLI opens its own WS, which takes ~500-700ms cold. **You don't manage this** — every verb auto-detects and falls through.
11174
+
11175
+ ## Spawning new sessions (no wizard)
11176
+
11177
+ \`claudemesh launch\` is the canonical way to start a new Claude Code session connected to claudemesh. Pass every required flag up front so no interactive prompt fires — that's what makes the verb scriptable from tmux send-keys, AppleScript/iTerm spawn helpers, hooks, cron, and the \`claudemesh launch\` you call from inside another session. **Always use this verb, never \`claude\` directly with hand-rolled flags** — it sets up the per-session ed25519 keypair, exports \`CLAUDEMESH_DISPLAY_NAME\`, isolates the mesh config in a tmpdir, and passes the \`--dangerously-load-development-channels server:claudemesh\` plumbing that the MCP push-pipe needs.
11178
+
11179
+ ### Full flag surface
11180
+
11181
+ | Flag | What it skips | Notes |
11182
+ |---|---|---|
11183
+ | \`--name <display-name>\` | the "What's your name?" prompt | required when spawning unattended; persists as the session's display name and \`from_name\` in inbound channels |
11184
+ | \`--mesh <slug>\` | the multi-mesh picker | required when the user has joined >1 mesh; otherwise the single mesh is auto-selected |
11185
+ | \`--join <invite-url>\` | the "join a mesh first" branch | run join + launch in one step; pair with \`-y\` for fully non-interactive |
11186
+ | \`--groups "name:role,name2:role2,all"\` | the group selection prompt | comma-separated \`<groupname>:<role>\` entries; the literal \`all\` joins \`@all\` |
11187
+ | \`--role <lead\\|member\\|observer>\` | the role prompt | applied to all groups in \`--groups\` that didn't specify their own |
11188
+ | \`--message-mode <push\\|inbox>\` | the message-mode prompt | \`push\` (default) emits \`<channel>\` notifications mid-turn; \`inbox\` only buffers — quieter for headless agents |
11189
+ | \`--system-prompt <path>\` | nothing — pure pass-through | forwarded to \`claude --append-system-prompt\` |
11190
+ | \`--resume <session-id>\` | nothing — pure pass-through | forwarded to \`claude --resume\` to continue a prior Claude Code session |
11191
+ | \`--continue\` | nothing — pure pass-through | forwarded to \`claude --continue\` |
11192
+ | \`-y\` / \`--yes\` | every confirmation prompt | including the "you'll skip ALL permission prompts" gate. **Use for autonomous agents; omit for shared/multi-person meshes.** |
11193
+ | \`-q\` / \`--quiet\` | the welcome banner | useful when the spawning script wants clean stdout |
11194
+ | \`--\` | (separator) | everything after \`--\` is forwarded verbatim to \`claude\`. Example: \`claudemesh launch --name X -y -- --resume abc123 --model opus\` |
11195
+
11196
+ ### Wizard-free spawn templates
11197
+
11198
+ \`\`\`bash
11199
+ # Minimal — single joined mesh, fresh agent, autonomous:
11200
+ claudemesh launch --name "Lug Nut" -y
11201
+
11202
+ # Multi-mesh user — pick mesh explicitly:
11203
+ claudemesh launch --name "Mou" --mesh openclaw -y
11204
+
11205
+ # Cold-start a peer who hasn't joined the mesh yet:
11206
+ claudemesh launch \\
11207
+ --name "Lug Nut" \\
11208
+ --join "https://claudemesh.com/i/abc123" \\
11209
+ --groups "frontend:member,reviewers:observer,all" \\
11210
+ --message-mode push \\
11211
+ -y
11212
+
11213
+ # Resume a specific Claude session inside claudemesh:
11214
+ claudemesh launch --name "Mou" --mesh openclaw -y -- --resume abc123-...
11215
+
11216
+ # Quiet, headless, system-prompt loaded — for cron / hooks:
11217
+ claudemesh launch --name "ci-bot" --mesh openclaw \\
11218
+ --system-prompt /path/to/ci-bot.md \\
11219
+ --message-mode inbox \\
11220
+ -q -y
11221
+ \`\`\`
11222
+
11223
+ If any required flag is missing AND stdin is a TTY, \`launch\` falls back to its prompt for that single field. **In a non-TTY context (Bash tool, cron, AppleScript pipe), missing flags cause the verb to fail-closed — never silently use a default that affects identity.**
11224
+
11225
+ ### Spawning into new terminal panes/windows
11226
+
11227
+ The launch verb itself is just a shell command — wrap it in whatever pane-creation primitive the host platform uses. The patterns that work today:
11228
+
11229
+ \`\`\`bash
11230
+ # tmux — send into a pane you control. NEVER send-keys into a pane
11231
+ # you didn't create; you risk typing into another live TUI.
11232
+ tmux new-window -t "$SESSION" -n claudemesh-lugnut
11233
+ tmux send-keys -t "$SESSION:claudemesh-lugnut" \\
11234
+ 'claudemesh launch --name "Lug Nut" --mesh openclaw -y' Enter
11235
+
11236
+ # macOS iTerm2 (split current window into a vertical pane):
11237
+ osascript <<'OSA'
11238
+ tell application "iTerm2"
11239
+ tell current window
11240
+ create tab with default profile
11241
+ tell current session of current tab
11242
+ write text "claudemesh launch --name \\"Lug Nut\\" --mesh openclaw -y"
11243
+ end tell
11244
+ end tell
11245
+ end tell
11246
+ OSA
11247
+
11248
+ # macOS Terminal.app (new window):
11249
+ osascript -e 'tell application "Terminal" to do script "claudemesh launch --name \\"Lug Nut\\" --mesh openclaw -y"'
11250
+
11251
+ # GNOME Terminal / generic Linux:
11252
+ gnome-terminal -- bash -lc 'claudemesh launch --name "Lug Nut" --mesh openclaw -y'
11253
+
11254
+ # screen detached:
11255
+ screen -dmS lugnut bash -lc 'claudemesh launch --name "Lug Nut" --mesh openclaw -y'
11256
+
11257
+ # Windows Terminal (wt.exe) — open a new tab:
11258
+ wt.exe new-tab --title claudemesh-lugnut powershell -NoExit -Command "claudemesh launch --name 'Lug Nut' --mesh openclaw -y"
11259
+
11260
+ # Windows Terminal — split the current pane vertically instead:
11261
+ wt.exe split-pane -V powershell -NoExit -Command "claudemesh launch --name 'Lug Nut' --mesh openclaw -y"
11262
+
11263
+ # PowerShell — spawn a detached window of the user's default shell:
11264
+ Start-Process powershell -ArgumentList '-NoExit','-Command','claudemesh launch --name "Lug Nut" --mesh openclaw -y'
11265
+
11266
+ # cmd.exe — start a new console window:
11267
+ start "claudemesh-lugnut" cmd /k "claudemesh launch --name ""Lug Nut"" --mesh openclaw -y"
11268
+
11269
+ # WSL from a Windows host — same launch verb, just route through wsl.exe:
11270
+ wsl.exe -- bash -lc 'claudemesh launch --name "Lug Nut" --mesh openclaw -y'
11271
+ \`\`\`
11272
+
11273
+ Windows-specific gotchas:
11274
+ - **Single quotes don't nest in cmd.exe.** Use \`""\` to escape inner double quotes (see the \`cmd /k\` example) or move to PowerShell where single quotes work normally.
11275
+ - **\`-NoExit\`** is the PowerShell equivalent of bash's \`exec\` + interactive shell — keeps the window open after \`claudemesh launch\` returns control to its child \`claude\` process. Without it, the window closes when the launch script exits.
11276
+ - **WSL paths.** If you spawn from a Windows-side script into WSL, the \`claudemesh\` CLI in WSL writes to \`~/.claudemesh/\` on the Linux side, *not* \`%USERPROFILE%\\.claudemesh\\\`. The two installs are independent — match the spawn host to the install host.
11277
+ - **Windows Terminal profile names.** Replace \`powershell\` with \`pwsh\` for PowerShell 7+, or use \`--profile "<name>"\` to target a configured profile (e.g. one preconfigured with WSL Ubuntu + a starting directory).
11278
+
11279
+ The user's environment may also have these pre-built helpers (CLAUDE.md will tell you):
11280
+
11281
+ - \`~/tools/scripts/spawn-iterm-panes.sh\` and \`spawn-iterm-window.sh\` — safer iTerm spawners that only write into sessions they themselves created.
11282
+ - \`~/tools/scripts/claude-peers.sh\` — tmux wrapper that opens a split running \`claudemesh launch\` with sensible defaults.
11283
+
11284
+ Prefer those when available — they handle pane ownership / cleanup correctly.
11285
+
11286
+ ### Sanity rules for unattended spawns
11287
+
11288
+ 1. **Always pass \`--name\`.** A nameless session falls back to \`<hostname>-<pid>\`, which makes peer attribution opaque in \`peer list\` and inbound channels.
11289
+ 2. **Always pass \`--mesh\` when the user has multiple meshes joined.** Otherwise the picker fires and the spawn hangs waiting for stdin.
11290
+ 3. **Pass \`-y\` only when you understand the consent it grants.** It skips every permission gate — fine for an autonomous agent on a private mesh, dangerous on a shared mesh where peers can drive your file system.
11291
+ 4. **For long-running daemonised peers, use \`--message-mode inbox\`** so they don't fire \`<channel>\` interrupts on every received DM. They poll \`claudemesh inbox\` on their own cadence.
11292
+ 5. **Confirm the spawn worked** by waiting a few seconds and running \`claudemesh peer list\` — the new peer's \`displayName\` should appear with \`status: "idle"\`.
11293
+
11294
+ ## Universal flags
11295
+
11296
+ | Flag | Behavior |
11297
+ |---|---|
11298
+ | \`--mesh <slug>\` | Target a specific mesh. Required when the user has multiple meshes joined. Default: first/only joined mesh, or interactive picker. |
11299
+ | \`--json\` | Emit JSON instead of human-readable text. Use this when you need to parse the output. |
11300
+ | \`--json field1,field2\` | Project specific fields (modeled on \`gh --json\`). Friendly aliases like \`name\` → \`displayName\` are resolved automatically. |
11301
+ | \`--approval-mode <mode>\` | \`plan\` / \`read-only\` deny all writes; \`write\` (default) prompts on destructive verbs from the policy file; \`yolo\` bypasses every prompt. |
11302
+ | \`--policy <path>\` | Override the policy file (default \`~/.claudemesh/policy.yaml\`, auto-created on first run). |
11303
+ | \`-y\` / \`--yes\` | Auto-approve any policy prompt. Equivalent to \`--approval-mode yolo\` for the current invocation. |
11304
+
11305
+ ## Policy & confirmation
11306
+
11307
+ Every broker-touching verb runs through a policy gate before dispatch. The default policy allows reads and prompts on destructive writes (\`peer kick/ban/disconnect\`, \`file delete\`, \`vector/vault delete\`, \`memory forget\`, \`skill remove\`, \`webhook delete\`, \`watch remove\`, \`sql/graph execute\`, \`mesh delete\`). When you call \`claudemesh\` from a non-interactive context (cron, scripts, Claude's Bash tool), prompts auto-deny — pass \`-y\` or \`--approval-mode yolo\` for verbs you've vetted, or edit \`~/.claudemesh/policy.yaml\` to mark them \`decision: allow\`. Every gate decision is appended to \`~/.claudemesh/audit.log\` (newline-JSON).
11308
+
11309
+ ## Resources and verbs
11310
+
11311
+ **Convention:** every operation is \`claudemesh <resource> <verb>\`. Legacy short forms (\`send\`, \`peers\`, \`kick\`, \`remember\`, ...) are aliases that keep working forever; prefer the resource form for new code.
11312
+
11313
+ ### \`topic\` — conversation scope within a mesh (v0.2.0)
11314
+
11315
+ A topic is a named conversation inside a mesh. Mesh = trust boundary. Group = identity tag. **Topic = what you're talking about.** Subscribers receive topic-tagged messages; non-subscribers don't. Topics also persist message history so humans (and opting-in agents) can fetch back-scroll on reconnect.
11316
+
11317
+ \`\`\`bash
11318
+ claudemesh topic create deploys --description "deploy + on-call"
11319
+ claudemesh topic create incident-2026-05-02 --visibility private
11320
+ claudemesh topic list # all topics in mesh
11321
+ claudemesh topic join deploys # subscribe (by name or id)
11322
+ claudemesh topic join deploys --role lead # join as lead
11323
+ claudemesh topic leave deploys
11324
+ claudemesh topic members deploys # list subscribers
11325
+ claudemesh topic history deploys --limit 50 # fetch back-scroll
11326
+ claudemesh topic history deploys --before <msg-id> # paginate older
11327
+ claudemesh topic read deploys # mark all as read
11328
+
11329
+ # Send to a topic — same \`send\` verb, target starts with # (WS, v1 plaintext)
11330
+ claudemesh send "#deploys" "rolling out 1.5.1 to staging"
11331
+
11332
+ # v1.7.0+: live tail in the terminal — backfill last N + then SSE forward.
11333
+ # Decrypts v2 messages on render. Runs a 30s re-seal loop while held.
11334
+ claudemesh topic tail deploys --limit 50
11335
+
11336
+ # v1.8.0+: encrypted REST send (body_version 2). Falls back to v1
11337
+ # automatically for legacy unencrypted topics. --plaintext forces v1.
11338
+ claudemesh topic post deploys "rolling out, cc @Alexis stay around"
11339
+
11340
+ # v1.9.0+: thread a reply onto a previous topic message. Accepts the
11341
+ # full id or an 8+ char prefix; resolved against recent history.
11342
+ claudemesh topic post deploys "yes — same here" --reply-to 7XtIeF7o
11343
+ \`\`\`
11344
+
11345
+ In \`topic tail\` output, replies render with a \`↳ in reply to <name>: "<snippet>"\` line above the message and every row shows a short id tag (\`#xxxxxxxx\`) so you can copy-paste into \`--reply-to\`.
11346
+
11347
+ When to use topics vs groups vs DM:
11348
+ - **DM** (\`send <peer>\`) — 1:1, ephemeral.
11349
+ - **Group** (\`send "@frontend"\`) — addresses everyone in a group; ephemeral; for coordinating teams.
11350
+ - **Topic** (\`send "#deploys"\`) — durable conversation room; for ongoing work threads, incident channels, build-status feeds.
11351
+
11352
+ ### \`member\` — mesh roster + online state (v1.7.0)
11353
+
11354
+ Distinct from \`peer list\`: members shows the static roster (every joined member of a mesh, online or not), peers shows the live WS-connected sessions plus REST-active humans.
11355
+
11356
+ \`\`\`bash
11357
+ claudemesh member list # everyone, with status dots
11358
+ claudemesh member list --online # only online
11359
+ claudemesh member list --mesh deploys --json
11360
+ \`\`\`
11361
+
11362
+ Status glyphs: \`●\` emerald = idle, \`●\` clay = working, \`●\` red = dnd, \`○\` dim = offline. \`bot\` tag appears on non-human members.
11363
+
11364
+ ### \`notification\` — recent @-mentions (v1.7.0)
11365
+
11366
+ Server-side write-time fan-out from \`mesh.notification\` — one row per recipient per matching \`@-mention\`. Works for both v1 plaintext and v2 ciphertext (clients send the mention list explicitly on v2).
11367
+
11368
+ \`\`\`bash
11369
+ claudemesh notification list # last 24h, all mentions of you
11370
+ claudemesh notification list --since 2026-05-01T00:00Z # incremental for polling
11371
+ claudemesh notification list --json # parseable
11372
+ \`\`\`
11373
+
11374
+ ### Per-topic encryption (v0.3.0 / CLI 1.8.0)
11375
+
11376
+ Topics created on or after CLI 1.8.0 generate a 32-byte XSalsa20-Poly1305 symmetric key sealed for each member via \`crypto_box\`. The broker holds ciphertext only. \`topic post\` encrypts; \`topic tail\` decrypts. The \`🔒 v2\` glyph in tail output marks ciphertext rounds. v1 plaintext topics keep working unchanged.
11377
+
11378
+ When a new member joins an encrypted topic, they get a 404 from \`GET /v1/topics/:name/key\` until any holder re-seals for them. \`topic tail\` runs a 30s background loop that does the re-seal automatically while the tail is open. Otherwise the joiner waits for someone with the key to log in.
11379
+
11380
+ ### \`peer\` — read connected peers + admin (kick / ban / verify)
11381
+
11382
+ \`\`\`bash
11383
+ claudemesh peer list # human-readable (alias: peers)
11384
+ claudemesh peer list --json # full record
11385
+ claudemesh peer list --json name,status # field projection
11386
+ claudemesh peer list --mesh openclaw --json # specific mesh
11387
+
11388
+ claudemesh peer kick <peer> # end session, manual rejoin
11389
+ claudemesh peer disconnect <peer> # soft, peer auto-reconnects
11390
+ claudemesh peer ban <peer> # kick + revoke membership
11391
+ claudemesh peer unban <peer>
11392
+ claudemesh peer bans # list banned members
11393
+ claudemesh peer verify [peer] # 6×5-digit safety numbers
11394
+ \`\`\`
11395
+
11396
+ JSON shape (per peer):
11397
+ \`\`\`json
11398
+ {
11399
+ "displayName": "Mou",
11400
+ "pubkey": "abc123...",
11401
+ "status": "idle | working | dnd",
11402
+ "summary": "string or null",
11403
+ "groups": [{ "name": "reviewers", "role": "lead" }],
11404
+ "peerType": "claude | telegram | ...",
11405
+ "channel": "claude-code | api | ...",
11406
+ "model": "claude-opus-4-7 | ...",
11407
+ "cwd": "/path/to/working/dir or null",
11408
+ "stats": { "messagesIn": 0, "messagesOut": 0, "toolCalls": 0, "errors": 0, "uptime": 1200 }
11409
+ }
11410
+ \`\`\`
11411
+
11412
+ ### \`message\` — send and inspect messages
11413
+
11414
+ \`\`\`bash
11415
+ # send (alias: claudemesh send <to> <msg>)
11416
+ claudemesh message send <peer-name|@group|*|pubkey> "message text"
11417
+ claudemesh message send Mou "hi" # by display name
11418
+ claudemesh message send "@reviewers" "ready for review"
11419
+ claudemesh message send "*" "broadcast"
11420
+ claudemesh message send <p> "..." --priority now # bypass busy gates
11421
+ claudemesh message send <p> "..." --priority next # default
11422
+ claudemesh message send <p> "..." --priority low # pull-only
11423
+
11424
+ # inbox (alias: claudemesh inbox)
11425
+ claudemesh message inbox
11426
+ claudemesh message inbox --json
11427
+
11428
+ # delivery status (alias: claudemesh msg-status <id>)
11429
+ claudemesh message status <message-id>
11430
+ claudemesh message status <message-id> --json
11431
+ \`\`\`
11432
+
11433
+ \`send\` JSON output: \`{"ok": true, "messageId": "...", "target": "..."}\`. Errors: \`{"ok": false, "error": "..."}\`.
11434
+
11435
+ ### \`state\` — shared per-mesh key-value store
11436
+
11437
+ \`\`\`bash
11438
+ claudemesh state set <key> <value> # value can be JSON or string
11439
+ claudemesh state get <key>
11440
+ claudemesh state get <key> --json # includes updatedBy, updatedAt
11441
+ claudemesh state list
11442
+ claudemesh state list --json
11443
+ \`\`\`
11444
+
11445
+ State is broadcast to all peers when changed. Use it for shared scratch space: status flags, current focus, agreed-on values.
11446
+
11447
+ ### \`memory\` — recall-able knowledge per mesh
11448
+
11449
+ \`\`\`bash
11450
+ claudemesh memory remember "fact text" --tags tag1,tag2 # alias: remember
11451
+ claudemesh memory recall "search query" # alias: recall
11452
+ claudemesh memory recall "search query" --json
11453
+ claudemesh memory forget <memory-id> # alias: forget
11454
+ \`\`\`
11455
+
11456
+ Memories are searchable across the mesh. Use for shared documentation, decisions, lessons learned.
11457
+
11458
+ ### \`task\` — typed work-units claim/complete
11459
+
11460
+ \`\`\`bash
11461
+ claudemesh task create "<title>" --assignee <peer> --priority <p> --tags a,b
11462
+ claudemesh task list [--status open|claimed|done] [--assignee <peer>] [--json]
11463
+ claudemesh task claim <task-id>
11464
+ claudemesh task complete <task-id> [result text]
11465
+ \`\`\`
11466
+
11467
+ Tasks are exact-once: claiming is atomic at broker. Use for work coordination across peers.
11468
+
11469
+ ### \`schedule\` — time-based delivery
11470
+
11471
+ \`\`\`bash
11472
+ # one-shot or recurring (alias: claudemesh remind ...)
11473
+ claudemesh schedule msg "ping" --in 30m # fires in 30 min
11474
+ claudemesh schedule msg "ping" --at 15:00 # next 15:00
11475
+ claudemesh schedule msg "ping" --cron "0 9 * * *" # 9am daily
11476
+ claudemesh schedule msg "to peer" --to <peer-name>
11477
+ claudemesh schedule list --json
11478
+ claudemesh schedule cancel <reminder-id>
11479
+
11480
+ # webhook + tool schedules arrive in a later release (broker work pending).
11481
+ \`\`\`
11482
+
11483
+ ### \`profile / group\` — peer presence
11484
+
11485
+ \`\`\`bash
11486
+ claudemesh profile # view/edit your profile
11487
+ claudemesh profile summary "what you're working on" # broadcast (alias: summary)
11488
+ claudemesh profile status set idle|working|dnd # alias: status set
11489
+ claudemesh profile visible true|false # alias: visible
11490
+ claudemesh group join @reviewers --role lead
11491
+ claudemesh group leave @reviewers
11492
+ \`\`\`
11493
+
11494
+ ### \`vector\` — embedding store + similarity search
11495
+
11496
+ \`\`\`bash
11497
+ claudemesh vector store <collection> "<text>" [--metadata '<json>']
11498
+ claudemesh vector search <collection> "<query>" [--limit N] [--json]
11499
+ claudemesh vector delete <collection> <id>
11500
+ claudemesh vector collections # list collection names
11501
+ \`\`\`
11502
+
11503
+ Search returns \`[{id, text, score, metadata}]\` ranked by cosine similarity.
11504
+
11505
+ ### \`graph\` — Cypher queries against per-mesh graph
11506
+
11507
+ \`\`\`bash
11508
+ claudemesh graph query "MATCH (n) RETURN n LIMIT 10" # read
11509
+ claudemesh graph execute "CREATE (n:Foo {x: 1})" # write
11510
+ \`\`\`
11511
+
11512
+ Returns rows as \`[{...}, ...]\`. Queries that return no rows render "(no rows)".
11513
+
11514
+ ### \`context\` — share work-context summaries between peers
11515
+
11516
+ \`\`\`bash
11517
+ claudemesh context share "summary text" --files a.ts,b.ts --findings "x,y" --tags spec,review
11518
+ claudemesh context get "search query"
11519
+ claudemesh context list
11520
+ \`\`\`
11521
+
11522
+ Use to broadcast "what I just did and what I learned" so peers don't duplicate effort.
11523
+
11524
+ ### \`stream\` — pub/sub event bus
11525
+
11526
+ \`\`\`bash
11527
+ claudemesh stream create <name>
11528
+ claudemesh stream publish <name> '<json-or-text>'
11529
+ claudemesh stream list
11530
+ \`\`\`
11531
+
11532
+ For event broadcasting (build-events, deploy-notifications, sensor data). Subscribers receive via push.
11533
+
11534
+ ### \`sql\` — typed SQL against per-mesh tables
11535
+
11536
+ \`\`\`bash
11537
+ claudemesh sql query "SELECT * FROM <table>" # SELECT only
11538
+ claudemesh sql execute "INSERT INTO ..." # writes
11539
+ claudemesh sql schema # list tables + columns
11540
+ \`\`\`
11541
+
11542
+ Returns \`{columns, rows, rowCount}\` for queries. Each mesh has its own SQL namespace.
11543
+
11544
+ ### \`skill\` — discover + manage mesh-published Claude skills
11545
+
11546
+ \`\`\`bash
11547
+ claudemesh skill list [search-query]
11548
+ claudemesh skill get <skill-name>
11549
+ claudemesh skill remove <skill-name>
11550
+ \`\`\`
11551
+
11552
+ Published skills appear as \`/claudemesh:<name>\` slash commands across all connected sessions.
11553
+
11554
+ ### \`vault\` — encrypted per-mesh secrets
11555
+
11556
+ \`\`\`bash
11557
+ claudemesh vault list # list keys (values stay encrypted on disk)
11558
+ claudemesh vault delete <key>
11559
+ # claudemesh vault set/get currently goes through MCP — needs E2E crypto round-trip
11560
+ \`\`\`
11561
+
11562
+ ### \`watch\` — URL change watchers
11563
+
11564
+ \`\`\`bash
11565
+ claudemesh watch list # list active watches
11566
+ claudemesh watch remove <watch-id>
11567
+ # Watch creation currently via MCP \`mesh_watch\` — config-heavy
11568
+ \`\`\`
11569
+
11570
+ ### \`webhook\` — outbound HTTP triggers
11571
+
11572
+ \`\`\`bash
11573
+ claudemesh webhook list # list configured webhooks
11574
+ claudemesh webhook delete <name>
11575
+ # Webhook creation currently via MCP \`create_webhook\`
11576
+ \`\`\`
11577
+
11578
+ ### \`file\` — shared mesh files
11579
+
11580
+ \`\`\`bash
11581
+ claudemesh file list [search-query] # list files
11582
+ claudemesh file status <file-id> # who has accessed
11583
+ claudemesh file delete <file-id>
11584
+ # Upload + retrieval currently via MCP \`share_file\` / \`get_file\` (binary streams)
11585
+ \`\`\`
11586
+
11587
+ ### \`mesh-mcp\` — call MCP servers other peers deployed to the mesh
11588
+
11589
+ \`\`\`bash
11590
+ claudemesh mesh-mcp list # which servers are deployed
11591
+ claudemesh mesh-mcp call <server> <tool> '<json-args>'
11592
+ claudemesh mesh-mcp catalog # full catalog with schemas
11593
+ \`\`\`
11594
+
11595
+ Mesh-deployed MCPs let peer X call a tool that peer Y maintains, without local install.
11596
+
11597
+ ### \`clock\` — mesh logical clock
11598
+
11599
+ \`\`\`bash
11600
+ claudemesh clock # current state
11601
+ claudemesh clock set <speed> # speed: 0=paused, 1=realtime, 60=60× faster
11602
+ claudemesh clock pause
11603
+ claudemesh clock resume
11604
+ \`\`\`
11605
+
11606
+ Used for simulations / tests that need a controlled time axis shared across peers.
11607
+
11608
+ ### \`mesh\` — mesh-level introspection
11609
+
11610
+ \`\`\`bash
11611
+ claudemesh info --json # mesh overview: peers, groups, state keys, ...
11612
+ claudemesh stats --json # per-peer activity counters
11613
+ claudemesh clock --json # mesh logical clock (speed/tick/sim_time)
11614
+ claudemesh ping --json # diagnostic — ws status, peer count, push buffer
11615
+ claudemesh peers --mesh X # peers on a specific mesh
11616
+ \`\`\`
11617
+
11618
+ ### \`mesh management\` — admin ops
11619
+
11620
+ \`\`\`bash
11621
+ claudemesh list # all your meshes
11622
+ claudemesh create <name> # create a new mesh
11623
+ claudemesh share [email] # generate invite link
11624
+ claudemesh disconnect <peer> # soft disconnect (auto-reconnects)
11625
+ claudemesh kick <peer> # kick (must rejoin manually)
11626
+ claudemesh ban <peer> # ban (revoked, can't rejoin)
11627
+ claudemesh unban <peer>
11628
+ claudemesh bans # list banned members
11629
+ claudemesh delete <slug> # delete a mesh
11630
+ claudemesh rename <slug> <name>
11631
+ \`\`\`
11632
+
11633
+ ### \`verify\` — safety numbers (Signal-style MITM detection)
11634
+
11635
+ \`\`\`bash
11636
+ claudemesh verify <peer> # show 6×5-digit fingerprint
11637
+ claudemesh verify <peer> --json
11638
+ \`\`\`
11639
+
11640
+ Compare digits with the peer out-of-band (call, in person — not chat). If they match, the channel is not being intercepted.
11641
+
11642
+ ### \`auth\` — sign-in
11643
+
11644
+ \`\`\`bash
11645
+ claudemesh login # browser or paste-token
11646
+ claudemesh whoami # current identity
11647
+ claudemesh logout
11648
+ \`\`\`
11649
+
11650
+ ## Common workflows
11651
+
11652
+ ### "Send a message to peer X with a confirmation"
11653
+ \`\`\`bash
11654
+ result=$(claudemesh send "X" "ping" --json)
11655
+ echo "$result" | jq -r '.messageId'
11656
+ \`\`\`
11657
+
11658
+ ### "List peers who are currently working"
11659
+ \`\`\`bash
11660
+ claudemesh peers --json name,status | jq '[.[] | select(.status == "working")]'
11661
+ \`\`\`
11662
+
11663
+ ### "Send to all reviewers"
11664
+ \`\`\`bash
11665
+ claudemesh send "@reviewers" "PR ready: <url>"
11666
+ \`\`\`
11667
+
11668
+ ### "Set my summary so peers know what I'm doing"
11669
+ \`\`\`bash
11670
+ claudemesh summary "drafting the auth migration spec"
11671
+ \`\`\`
11672
+
11673
+ ### "Schedule a daily ping at 9am"
11674
+ \`\`\`bash
11675
+ claudemesh remind "morning standup time" --cron "0 9 * * *"
11676
+ \`\`\`
11677
+
11678
+ ### "Check who I'm verified with"
11679
+ \`\`\`bash
11680
+ claudemesh verify <peer-name>
11681
+ # Compare the 6×5-digit number with peer over voice or in person.
11682
+ \`\`\`
11683
+
11684
+ ## Gotchas
11685
+
11686
+ - **\`<peer-name>\` resolution is case-insensitive but exact-match only.** Don't fuzzy-match. If a peer is named "Mou-2", use that exact string. Use \`claudemesh peers --json name\` to confirm.
11687
+ - **\`@group\` requires the leading \`@\`.** Without it, claudemesh treats the string as a peer name lookup.
11688
+ - **\`*\` means broadcast.** Use carefully — it goes to every peer on the mesh.
11689
+ - **\`--priority now\` bypasses busy gates** (peers in DND still receive). Use only for genuine interruptions.
11690
+ - **\`claudemesh launch\` writes a per-session config to a tmpdir.** Don't edit \`~/.claudemesh/config.json\` while a session is running — changes won't take effect until the next launch.
11691
+ - **The \`claudemesh mcp\` server registers ZERO tools.** Never search ToolSearch for \`mcp__claudemesh__*\` — there are none. All operations go through Bash + CLI.
11692
+ - **Soft-deprecated MCP tools (1.1.x).** If you previously called \`mcp__claudemesh__send_message\`, use \`claudemesh send\` via Bash instead. The deprecated tools still work in 1.x but print a stderr warning. They're removed in 2.0.
11693
+ - **Field aliases in \`--json\`.** \`name\` resolves to \`displayName\`. Other aliases may be added in future versions; check \`--json\` output to confirm field names.
11694
+ - **\`claudemesh send\` to a name that's not online** errors with the list of online peers. Use \`claudemesh peers --json\` first if uncertain.
11695
+ - **The \`--mesh <slug>\` flag is required when the user has multiple meshes joined.** Without it, the CLI either picks the first mesh deterministically or shows an interactive picker (depending on context).
11696
+
11697
+ ## Behavioral conventions
11698
+
11699
+ - **Confirm before destructive ops** (\`kick\`, \`ban\`, \`delete\`, \`forget\`). Show the user what you're about to do.
11700
+ - **Preview peer-name matches before sending** when the name is ambiguous. \`claudemesh peers --json name,pubkey | jq\` is the right tool for disambiguation.
11701
+ - **Don't broadcast (\`*\`) for trivial messages.** It pings every peer mid-task. Prefer DM or \`@group\`.
11702
+ - **Don't poll \`inbox\`.** Messages are pushed via \`<channel source="claudemesh">\` automatically. Only call \`inbox --json\` if you suspect a buffered message is stuck.
11703
+ - **Echo the messageId in JSON contexts** so the caller can \`msg-status\` it later.
11704
+
11705
+ ## Related
11706
+
11707
+ - Spec: \`.artifacts/specs/2026-05-02-architecture-north-star.md\` (architecture rationale)
11708
+ - Source: \`~/Desktop/claudemesh/apps/cli/\`
11709
+ - Broker: \`wss://ic.claudemesh.com/ws\`
11710
+ - Dashboard: \`https://claudemesh.com/dashboard\`
11711
+ `;
11712
+ var init_SKILL = () => {};
11713
+
11714
+ // src/commands/skill.ts
11715
+ var exports_skill = {};
11716
+ __export(exports_skill, {
11717
+ runSkill: () => runSkill
11718
+ });
11719
+ async function runSkill() {
11720
+ process.stdout.write(SKILL_default);
11721
+ if (!SKILL_default.endsWith(`
11722
+ `))
11723
+ process.stdout.write(`
11724
+ `);
11725
+ return EXIT.SUCCESS;
11726
+ }
11727
+ var init_skill = __esm(() => {
11728
+ init_SKILL();
11729
+ init_exit_codes();
11730
+ });
11731
+
11127
11732
  // ../../packages/sdk/dist/crypto.js
11128
11733
  var require_crypto = __commonJS((exports) => {
11129
11734
  var __importDefault = exports && exports.__importDefault || function(mod) {
@@ -14320,6 +14925,7 @@ Topic (conversation scope, v0.2.0)
14320
14925
  claudemesh topic tail <topic> live SSE tail [--limit --forward-only]
14321
14926
  claudemesh topic post <t> <msg> encrypted REST post (v0.3.0 v2) [--reply-to <id>]
14322
14927
  claudemesh send "#topic" "msg" send to a topic (WS path, v1 plaintext)
14928
+ claudemesh skill print the bundled SKILL.md to stdout
14323
14929
  claudemesh me cross-mesh workspace overview (v0.4.0)
14324
14930
  claudemesh me topics cross-mesh topic list [--unread]
14325
14931
  claudemesh me notifications cross-mesh @-mentions [--all] [--since=ISO]
@@ -14960,7 +15566,10 @@ async function main() {
14960
15566
  case "skill": {
14961
15567
  const sub = positionals[0];
14962
15568
  const f = { mesh: flags.mesh, json: !!flags.json };
14963
- if (sub === "list") {
15569
+ if (!sub) {
15570
+ const { runSkill: runSkill2 } = await Promise.resolve().then(() => (init_skill(), exports_skill));
15571
+ process.exit(await runSkill2());
15572
+ } else if (sub === "list") {
14964
15573
  const { runSkillList: runSkillList2 } = await Promise.resolve().then(() => (init_platform_actions(), exports_platform_actions));
14965
15574
  process.exit(await runSkillList2({ ...f, query: positionals[1] }));
14966
15575
  } else if (sub === "get") {
@@ -14970,7 +15579,8 @@ async function main() {
14970
15579
  const { runSkillRemove: runSkillRemove2 } = await Promise.resolve().then(() => (init_platform_actions(), exports_platform_actions));
14971
15580
  process.exit(await runSkillRemove2(positionals[1] ?? "", f));
14972
15581
  } else {
14973
- console.error("Usage: claudemesh skill <list|get|remove>");
15582
+ console.error(`Usage: claudemesh skill (print bundled SKILL.md)
15583
+ claudemesh skill <list|get|remove>`);
14974
15584
  process.exit(EXIT.INVALID_ARGS);
14975
15585
  }
14976
15586
  break;
@@ -15315,4 +15925,4 @@ main().catch((err) => {
15315
15925
  process.exit(EXIT.INTERNAL_ERROR);
15316
15926
  });
15317
15927
 
15318
- //# debugId=E54B2ED5C4F2639E64756E2164756E21
15928
+ //# debugId=4F6FEF2D8F81D25B64756E2164756E21