Graph shape
- agent node - a model (
provider/model), a system prompt, and the tool ids it may call. - tool node - executes the referenced tools and returns results to the agent.
- router node - optional branching.
- edges - connect nodes;
__end__terminates the run.
agent → tools → agent, with agent → __end__ when the
model has its answer.
Versions
Each agent has numbered versions. Publishing a version points the agent at it.cruqai push compiles an authoring file and publishes a new version.
Running
cruqai runs / cruqai trace. See
Observability.
An agent can also run without you: on a recurring
schedule, or in response to an inbound
channel message.
A run does not have to finish in one pass either. It can pause for a person, wait
until a later time, keep a plan across a long task, and check its own work before
finishing: see Long-running agents.

