v0.3.0
agex-ts 0.3.0
Host-facing Agent.spawn(spec, opts?)
Adds a host-callable entry point to run an ephemeral clone of an agent on a typed sub-task — the symmetric counterpart of the agent-authored spawn builtin, now reachable directly from host code (e.g. a UI event or job) rather than only from inside an agent emission.
Same SpawnSpec and semantics as the in-agent capability:
- shared policy +
/skills, depth-1 (the clone gets nospawnof its own) - output enforce-and-retry, optional read-only
viewof parent files - failure rejects the returned promise; cancellation flows via
signal - runs cold — no live parent task required
- each call gets its own concurrency semaphore bounded by
maxSpawns
See docs/api/agent.md § Spawn for the full surface.
Internal-dep fan-out: provider packages (@agex-ts/anthropic, @agex-ts/openai, …) ship patch releases pointing at the new agex-ts.