opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: add CLI arguments to agent create command for scripting

Open Timorleiderman opened this issue 1 month ago • 6 comments

Summary

  • Add --path, --description, and --mode CLI options to opencode agent create command
  • Enables non-interactive agent creation for scripting and automation use cases

Usage

opencode agent create --path ./my-project --description "Review TypeScript code" --mode subagent

When all three arguments are provided, the command runs non-interactively and outputs only the created file path. When any argument is missing, it falls back to interactive prompts.

Timorleiderman avatar Dec 06 '25 07:12 Timorleiderman

/review

rekram1-node avatar Dec 08 '25 22:12 rekram1-node

/review

Timorleiderman avatar Dec 08 '25 22:12 Timorleiderman

only I can trigger them haha

rekram1-node avatar Dec 08 '25 22:12 rekram1-node

/review

rekram1-node avatar Dec 08 '25 22:12 rekram1-node

/review

rekram1-node avatar Dec 09 '25 02:12 rekram1-node

lgtm

github-actions[bot] avatar Dec 09 '25 02:12 github-actions[bot]