Skip to content

v0.3.0

Choose a tag to compare

@ashenfad ashenfad released this 05 Jun 20:11
· 38 commits to main since this release

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 no spawn of its own)
  • output enforce-and-retry, optional read-only view of 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.