Back to Documentation
AMADEV Docs
Features

CLI

Amadev CLI reference: manage agents, daemons, permissions, and worktrees from your terminal.

CLI

Code
# Agent A spawns Agent B and waits for it
amadev run --detach "implement the API" --name api-agent
amadev wait api-agent
amadev logs api-agent --tail 5

Simple implement + verify loop:

Code
# Requires jq
while true; do
  amadev run --provider codex "make the tests pass" >/dev/null
  verdict=$(amadev run --provider claude --output-schema '{"type":"object","properties":{"criteria_met":{"type":"boolean"}},"required":["criteria_met"],"additionalProperties":false}' "ensure tests all pass")
  if echo "$verdict" | jq -e '.criteria_met == true' >/dev/null; then
    echo "criteria met"
    break
  fi
done

This pattern enables hierarchical task decomposition, a lead agent can break down work, delegate to specialists, and synthesize results.

Output formats

Most commands support multiple output formats for scripting:

Code
amadev ls --json # JSON output
amadev ls --format yaml # YAML output
amadev ls -q # IDs only (quiet)

Global options

Connecting to a remote daemon

View this page on GitHub