You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: scope local warning to openclaw-only + improve spawn skill docs (#3074)
- Revert local security warning to openclaw-only (was blocking all agents)
- Update spawn skill to document how to run prompts on child VMs:
- Always use `bash -lc` (binaries in ~/.local/bin/ need login shell)
- Claude uses `-p` not `--print` or `--headless`
- Add `--dangerously-skip-permissions` for unattended child VMs
- Don't waste tokens with `which`/`find` or creating non-root users
- Sync all on-disk skill files with embedded version
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
### Known gotchas — do NOT waste time rediscovering these:
54
-
- Agent binaries are at \`~/.local/bin/\`, NOT on the default PATH. Always use the full path: \`~/.local/bin/claude\`, \`~/.local/bin/codex\`, etc.
55
-
- Claude Code blocks \`--dangerously-skip-permissions\` as root. Use \`--print\` for one-shot prompts instead — it works as root and returns the response directly.
56
-
- Do NOT try to create a non-root user to work around root restrictions — it requires copying config files (\`.claude.json\`, \`.claude/settings.json\`, env vars) and is fragile. Just use \`--print\`.
57
-
- For long-running tasks, use \`spawn delete --name <name> --yes\` to clean up when done.
50
+
### IMPORTANT — do NOT waste tokens rediscovering these:
51
+
- **Always use \`bash -lc\`** — agent binaries are in \`~/.local/bin/\` which is only on PATH in login shells
52
+
- **Claude uses \`-p\`** for non-interactive output (NOT \`--print\`, NOT \`--headless\`)
53
+
- **Add \`--dangerously-skip-permissions\`** to skip approval prompts on child VMs
54
+
- **Never try \`which claude\` or \`find\`** to locate binaries — they are always at \`~/.local/bin/<agent>\`
55
+
- **Never create non-root users** to work around permission issues — just use \`-p\`
58
56
59
57
## Managing Children
60
58
@@ -78,7 +76,7 @@ You have the \`spawn\` CLI for creating child cloud VMs with AI agents.
78
76
Use \`spawn <agent> <cloud> --headless --output json --prompt "task"\` to delegate work.
79
77
Available agents: claude, codex, openclaw, zeroclaw, opencode, kilocode, hermes, junie.
80
78
Cloud credentials are pre-configured. Run \`spawn list --json\` to see children.
81
-
Note: --headless only provisions the VM. To run a prompt, SSH in: \`ssh root@<ip> '~/.local/bin/<agent> --print "prompt"'\`.
79
+
\`--headless\` only provisions. To run a prompt on the child: \`ssh root@<ip> "bash -lc 'claude -p --dangerously-skip-permissions \\"prompt\\"'"\`. Always use \`bash -lc\` (binaries are in ~/.local/bin/).
Copy file name to clipboardExpand all lines: skills/hermes/SOUL.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,3 +6,4 @@ You have the `spawn` CLI for creating child cloud VMs with AI agents.
6
6
Use `spawn <agent> <cloud> --headless --output json --prompt "task"` to delegate work.
7
7
Available agents: claude, codex, openclaw, zeroclaw, opencode, kilocode, hermes, junie.
8
8
Cloud credentials are pre-configured. Run `spawn list --json` to see children.
9
+
`--headless` only provisions. To run a prompt on the child: `ssh root@<ip> "bash -lc 'claude -p --dangerously-skip-permissions \"prompt\"'"`. Always use `bash -lc` (binaries are in ~/.local/bin/).
0 commit comments