diff --git a/src/cli/index.ts b/src/cli/index.ts index 7c4b1f30c..5a516fc59 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -66,7 +66,7 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi): program .command("run ") .description("Run opencode with todo/background task completion enforcement") - .option("-a, --agent ", "Agent to use (default: Sisyphus)") + .option("-a, --agent ", "Agent to use (default: from CLI/env/config, fallback: Sisyphus)") .option("-d, --directory ", "Working directory") .option("-t, --timeout ", "Timeout in milliseconds (default: 30 minutes)", parseInt) .addHelpText("after", ` @@ -75,6 +75,15 @@ Examples: $ bunx oh-my-opencode run --agent Sisyphus "Implement feature X" $ bunx oh-my-opencode run --timeout 3600000 "Large refactoring task" +Agent resolution order: + 1) --agent flag + 2) OPENCODE_DEFAULT_AGENT + 3) oh-my-opencode.json "default_run_agent" + 4) Sisyphus (fallback) + +Available core agents: + Sisyphus, Hephaestus, Prometheus, Atlas + Unlike 'opencode run', this command waits until: - All todos are completed or cancelled - All child sessions (background tasks) are idle