spawn/packages
Ahmed Abushagur 3e6c8768d1
Some checks are pending
CLI Release / Build and release CLI (push) Waiting to run
Lint / macOS Compatibility (push) Waiting to run
Lint / ShellCheck (push) Waiting to run
Lint / Biome Lint (push) Waiting to run
feat(cli): --repo flag clones a template repo and applies spawn.md (#3360)
spawn <agent> <cloud> --repo user/template

Clones https://github.com/user/template.git to ~/project on the VM,
parses spawn.md (YAML frontmatter), and applies its custom-setup
contract:

- `setup`: oauth (open URL + wait for Enter), cli_auth (run on VM),
  api_key (no-echo prompt → /etc/spawn/secrets, sourced from .bashrc),
  command (run on VM)
- `mcp_servers`: env values stay as ${NAME} placeholders so secrets
  never end up in the template repo. Replay routes through the
  existing skills.ts helpers (Claude settings.json, Cursor mcp.json,
  Codex config.toml) — no `node -e` injection.
- `setup_commands`: run inside ~/project

When the clone succeeds, the agent launches with `cd ~/project && ...`
so the user lands in their template's working directory. Reconnect via
`spawn last` replays the same launchCmd.

Built-in steps (github auth, auto-update, etc.) stay in the CLI
--steps flag — spawn.md only handles custom setup that Spawn doesn't
know about natively.

Bumps CLI to 1.0.22.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:42:23 -07:00
..
cli feat(cli): --repo flag clones a template repo and applies spawn.md (#3360) 2026-04-24 23:42:23 -07:00
shared fix: rethrow normalized Error in tryCatchIf/asyncTryCatchIf (#2930) 2026-03-23 19:33:05 -07:00