Agents
An agent is a persistent AI configuration within a project. It defines who the AI is and how it behaves — the prompt, model, repo, workflow, and environment. Sessions are started from agents.
What an agent contains
Section titled “What an agent contains”| Field | Purpose |
|---|---|
name | Unique identifier within the project |
prompt | System prompt defining the agent’s role and behavior |
repo_url | Git repository the agent works on |
llm_model | Model to use (e.g. claude-sonnet-4-20250514) |
workflow_id | Optional workflow to follow |
environment_variables | Extra env vars injected into sessions |
resource_overrides | CPU/memory limits for the runner pod |
bot_account_name | Git identity for commits |
Agent lifecycle
Section titled “Agent lifecycle”Create agent → Configure prompt/repo/model → Start agent → Session runs → Agent idle ↓ Start again → New sessionAgents belong to a project. Starting an agent creates a session that inherits the agent’s configuration.
GET /api/ambient/v1/projects/{id}/agentsPOST /api/ambient/v1/projects/{id}/agentsGET /api/ambient/v1/projects/{id}/agents/{agent_id}PATCH /api/ambient/v1/projects/{id}/agents/{agent_id}DELETE /api/ambient/v1/projects/{id}/agents/{agent_id}POST /api/ambient/v1/projects/{id}/agents/{agent_id}/startGET /api/ambient/v1/projects/{id}/agents/{agent_id}/sessionsacpctl agent list --project my-projectacpctl agent create --project my-project --name reviewer --prompt "Review PRs for security issues"acpctl agent start --project my-project reviewer