Skip to content
Lovelace

ada agents

Start agents on tasks and manage the agents that are running

Agents are long-running task executors. ada agents starts an agent on a task description, lists running agents, shows daemon or agent status, and stops agents. Agents run on the local Lattice daemon or in the cloud, depending on the backend the CLI is connected to.

Usage#

bash
ada agents [COMMAND] [OPTIONS]

Running ada agents with no subcommand opens an interactive dashboard.

Subcommands#

SubcommandDescription
ada agents startStart a new agent with a task
ada agents listList running agents
ada agents statusShow daemon status, or one agent's status
ada agents stopStop a running agent

All subcommands accept the global options listed in the command reference.

ada agents start#

Creates an agent and gives it a task.

bash
ada agents start "Write unit tests for the user service"
ada agents start "Summarize open TODOs in src/" --wait
ada agents start "Update the changelog" --workspace <WORKSPACE_ID> --format json
Argument / optionDescription
<TASK>Task description for the agent
--waitWait for the agent to start before returning
--workspace <WORKSPACE>Workspace ID for the agent (defaults to the active workspace)
--format <FORMAT>table (default) or json

ada agents list#

bash
ada agents list
ada agents list --format json
ada agents list --workspace <WORKSPACE_ID> --verbose
OptionDescription
--format <FORMAT>table (default), json, csv, or list
--workspace <WORKSPACE>Filter by workspace ID
--verboseShow detailed information

ada agents status#

Without an agent ID, shows daemon status. With an agent ID, shows that agent's status.

bash
ada agents status
ada agents status <AGENT_ID>
ada agents status <AGENT_ID> --format json
Argument / optionDescription
[AGENT_ID]Agent to show status for
--format <FORMAT>table (default) or json

ada agents stop#

Stops a running agent. Without --yes, the command asks for confirmation.

bash
ada agents stop <AGENT_ID>
ada agents stop <AGENT_ID> --yes
ada agents stop <AGENT_ID> --force --yes
Argument / optionDescription
<AGENT_ID>Agent to stop
--forceForce kill the agent
-y, --yesSkip the confirmation

Tasks#

An agent works through tasks. Use ada tasks to queue work and follow it:

bash
# Queue a task on the local daemon
ada tasks submit "Refactor the logging module"

# List tasks and follow one until it finishes
ada tasks list
ada tasks monitor <TASK_ID> --follow

# Cancel, pause, or resume a task
ada tasks cancel <TASK_ID>
ada tasks pause <TASK_ID>
ada tasks resume <TASK_ID>

Run ada tasks --help for every ada tasks subcommand and flag.

Health#

ada status reports daemon, agent, recovery, tool, and reachability health in one view:

bash
ada status
ada status --wide
ada status --json

See the Command Reference for all available commands.