[PR #5157] feat: add CLI arguments to agent create command for scripting #11273

Closed
opened 2026-02-16 18:16:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5157

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5157 **State:** closed **Merged:** Yes --- ## 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 ```bash 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.
yindo added the pull-request label 2026-02-16 18:16:05 -05:00
yindo closed this issue 2026-02-16 18:16:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11273