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)
This commit is contained in:
parent
a7a847eb9e
commit
dd3f93d3e7
@ -66,7 +66,7 @@ Model Providers (Priority: Native > Copilot > OpenCode Zen > Z.ai > Kimi):
|
|||||||
program
|
program
|
||||||
.command("run <message>")
|
.command("run <message>")
|
||||||
.description("Run opencode with todo/background task completion enforcement")
|
.description("Run opencode with todo/background task completion enforcement")
|
||||||
.option("-a, --agent <name>", "Agent to use (default: Sisyphus)")
|
.option("-a, --agent <name>", "Agent to use (default: from CLI/env/config, fallback: Sisyphus)")
|
||||||
.option("-d, --directory <path>", "Working directory")
|
.option("-d, --directory <path>", "Working directory")
|
||||||
.option("-t, --timeout <ms>", "Timeout in milliseconds (default: 30 minutes)", parseInt)
|
.option("-t, --timeout <ms>", "Timeout in milliseconds (default: 30 minutes)", parseInt)
|
||||||
.addHelpText("after", `
|
.addHelpText("after", `
|
||||||
@ -75,6 +75,15 @@ Examples:
|
|||||||
$ bunx oh-my-opencode run --agent Sisyphus "Implement feature X"
|
$ bunx oh-my-opencode run --agent Sisyphus "Implement feature X"
|
||||||
$ bunx oh-my-opencode run --timeout 3600000 "Large refactoring task"
|
$ 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:
|
Unlike 'opencode run', this command waits until:
|
||||||
- All todos are completed or cancelled
|
- All todos are completed or cancelled
|
||||||
- All child sessions (background tasks) are idle
|
- All child sessions (background tasks) are idle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user