feat(cli): claudemesh launch command with transparency banner (v0.1.2)
Adds `claudemesh launch [args]` that spawns Claude Code with --dangerously-load-development-channels server:claudemesh so peer messages arrive as <channel> system reminders mid-turn instead of pull-only via check_messages. Windows uses shell:true to resolve claude.cmd from PATHEXT. Prints an info banner before spawning that explains the channel's scope (peer text injection only), the trust model (treat as untrusted input), and that existing tool-approval prompts remain the safety net. --quiet skips the banner. Install output now mentions `claudemesh launch` as the recommended launch path; plain `claude` still works for pull-only mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,28 @@ Run the printed command, then restart Claude Code.
|
||||
claudemesh join https://claudemesh.com/join/<token>
|
||||
```
|
||||
|
||||
## Launch Claude Code
|
||||
|
||||
For real-time **push messages** from peers (messages injected mid-turn
|
||||
as `<channel source="claudemesh">` system reminders), launch with:
|
||||
|
||||
```sh
|
||||
claudemesh launch
|
||||
# or pass through any claude flags:
|
||||
claudemesh launch --model opus
|
||||
claudemesh launch --resume
|
||||
```
|
||||
|
||||
Under the hood this runs:
|
||||
|
||||
```sh
|
||||
claude --dangerously-load-development-channels server:claudemesh
|
||||
```
|
||||
|
||||
Plain `claude` still works — the MCP tools are available — but incoming
|
||||
messages are **pull-only** via the `check_messages` tool instead of
|
||||
being pushed to Claude immediately.
|
||||
|
||||
The invite link is generated by whoever runs the mesh. It bundles the
|
||||
mesh id, expiry, signing key, and role. Your CLI verifies it,
|
||||
generates a fresh keypair, enrolls you with the broker, and persists
|
||||
@@ -36,7 +58,9 @@ the result to `~/.claudemesh/config.json`.
|
||||
## Commands
|
||||
|
||||
```sh
|
||||
claudemesh install # print MCP registration command
|
||||
claudemesh install # register MCP + status hooks
|
||||
claudemesh uninstall # remove MCP + status hooks
|
||||
claudemesh launch [args] # launch Claude Code with push messages enabled
|
||||
claudemesh join <url> # join a mesh via invite URL
|
||||
claudemesh list # show joined meshes + identities
|
||||
claudemesh leave <slug> # leave a mesh
|
||||
|
||||
Reference in New Issue
Block a user