Skip to main content

CLI reference

Build: cargo build -p pytxo-cli
Binary: pytxo or cargo run -p pytxo-cli -- <cmd>

Commands

CommandDescription
pytxo initCreate .pytxo/ dirs and gitignore hint
pytxo doctorVerify git, HEAD, worktrees, writable .pytxo/, PTY smoke
pytxo runSchedule and execute agents in worktrees
pytxo statusList runs and agents from SQLite
pytxo logs --agent <id>Tail stored stdout/stderr events
pytxo stopStop active run or all tracked processes

Shared flags

FlagCommandsDescription
--repomostGit repository root (default: cwd)
--configrun, status, logs, stopPath to pytxo.toml
--jsondoctor, statusMachine-readable output

pytxo run flags

FlagDefaultDescription
--agents3Max parallel agents per wave
--cmdecho pytxoShell command in each worktree
--dry-runoffPrint JSON execution plan
--keep-worktreesoffDo not remove worktrees after run
--executionfrom configOverride pty or subprocess

run calls the same git preflight as doctor before scheduling.

Agent IDs

Format: {run_uuid}:agent-N — use with pytxo logs --agent.

See also: pytxo.toml