Skip to Content
Getting StartedFirst Task

Run Your First Task

The primary way to run agent tasks is through the command line. The TUI dashboard provides a visual interface for the same operations.

Quick Start with CLI

Start an agent directly from the command line:

ah agent start --agent claude --prompt "Add a README file to this project"

This launches Claude Code agent in your current directory with the specified prompt.

With a Specific Model

ah agent start --agent claude --claude-model sonnet --prompt "Refactor the main function"

Non-Interactive Mode

For scripting or CI/CD, use non-interactive mode:

ah agent start --agent claude --non-interactive --prompt "Generate unit tests"

The agent executes a single turn and exits.

Using the TUI Dashboard

For interactive task management, launch the TUI:

ah

Or explicitly:

ah tui

TUI dashboard overview

The TUI opens a dashboard where you can:

  1. Write a task description in the draft card
  2. Select an agent (Claude, Codex, etc.)
  3. Press Enter to launch the task

Agent Options

AgentFlagDescription
Claude Code--agent claudeAnthropic’s Claude Code agent
OpenAI Codex--agent codexOpenAI’s Codex CLI
GitHub Copilot--agent copilotRequires --experimental-features copilot
Google Gemini--agent geminiRequires --experimental-features gemini

Enable Experimental Agents

ah agent start --agent gemini --experimental-features gemini --prompt "Your task"

Output Formats

FlagDescription
--output-format textFull TUI with animated output (default)
--output-format basic-textSimple stdout, no animations
--output-format jsonJSON output at completion
--output-format stream-jsonStreaming JSON events
ah agent start --agent claude --output-format json --prompt "List all files"

Sandbox Mode

Run agents in a sandboxed environment for extra security:

ah agent start --agent claude --sandbox --prompt "Install dependencies and run tests"
FlagDescription
--sandboxEnable sandbox mode
--allow-network trueAllow network access
--allow-containers trueAllow container operations

Record the Session

Record the agent session for later replay:

ah agent record --out-file session.ahr -- ah agent start --agent claude --prompt "Fix the bug"

Replay the session:

ah agent replay session.ahr