Manage agents, releases, and deployments
AgentWorks separates an editable agent definition from the exact release that executes. This prevents a model, instruction, tool, or dependency change from silently altering work already in progress.
Lifecycle objects
| Object | Meaning |
|---|---|
| Agent | The stable identity and editable home of an agent |
| Version | A validated, read-only agent specification |
| Release | The exact agent version, models, capabilities, tools, and accepted evidence promoted together |
| Environment | A logical stage such as development or production |
| Deployment | A stable name that routes new work to a selected release in an environment |
| Run | One durable piece of work, permanently linked to the release that admitted it |
Agent -> version -> release -> environment deployment -> new runs
|
+-> promote another release later
Define and publish an agent
An AgentSpec describes the executor, instructions, model roles, capabilities, tools, and limits. Publishing validates the specification and creates a read-only version. To change behavior, publish another version; do not mutate the version used by an accepted run.
Use the CLI or API in a headless installation:
agentworks agent create
agentworks agent publish
agentworks agent versions
Run each command with --help for its required identifiers and file inputs. Automation can call the corresponding
/api/v1 operations directly.
Build a release
A release resolves what the agent will execute with. Review the published agent version, every model role and gateway, pinned capabilities and tools, credential references, runtime compatibility, and signed evidence where your release policy requires it.
Use agentworks release build, then inspect the release manifest and verification result before promotion.
Promote a deployment
Create an environment and promote the tested release to a stable deployment name. A promotion can carry credential references and a runtime target. The deployment determines which release accepts new root runs.
Promoting release R2 while R1 has active work does not move R1's runs to R2. Existing runs stay pinned to R1. The old cohort drains while the new cohort receives new work.
Start and follow runs
Use agentworks run start to submit work and agentworks stream <run-id> to follow its ordered event stream.
The API exposes the same run resource and Server-Sent Events stream. Reconnect with the last event ID after a network
interruption.
Runs can wait for human input, callbacks, child work, or a scheduled wake-up. A continuation keeps the original release and security context rather than selecting the currently deployed release again.
Roll back agent behavior
Rollback is a deployment decision: route new work to the last accepted release. It does not rewrite a published release or change an existing run. Keep compatible runtimes available while older releases still have active or recoverable work.