From dd3f93d3e7f1cb9b7bc963b070f7d453764fd333 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 2 Feb 2026 10:49:24 +0900 Subject: [PATCH] docs(cli): improve run command help with agent options Update --help text for 'run' command to document: - Agent resolution priority order - OPENCODE_DEFAULT_AGENT environment variable - oh-my-opencode.json 'default_run_agent' config option - Available core agents (Sisyphus, Hephaestus, Prometheus, Atlas) --- src/cli/index.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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