feat: add CLI arguments to agent create command for scripting#5157
Merged
rekram1-node merged 1 commit intoDec 10, 2025
Conversation
Collaborator
|
/review |
Contributor
Author
|
/review |
Collaborator
|
only I can trigger them haha |
Collaborator
|
/review |
rekram1-node
reviewed
Dec 8, 2025
rekram1-node
reviewed
Dec 8, 2025
- Add --path, --description, --mode, and --tools CLI options - Each option independently skips its corresponding prompt (autofill behavior) - Fully non-interactive when all options are provided - Fix generateObject to use messages instead of prompt parameter - Show available tools in help text for easy copying
rekram1-node
reviewed
Dec 9, 2025
Collaborator
|
/review |
Contributor
|
lgtm |
shuv1337
added a commit
to Latitudes-Dev/shuvcode
that referenced
this pull request
Dec 10, 2025
Merged additional commits from sst/opencode:dev after v1.0.141: - feat: add CLI arguments to agent create command for scripting (anomalyco#5157) - fix: use project references for desktop typecheck - tauri: update macos icon - tauri: don't ask to restart separately in updater - tauri: comment out restart server dialog - Various CI improvements Resolved conflicts: - .github/workflows/publish.yml: removed (fork-specific) - .github/workflows/snapshot.yml: kept ours (fork-specific) - packages/desktop/src/context/global-sync.tsx: merged with catch handler - packages/sdk/openapi.json: accepted upstream
xywsxp
pushed a commit
to xywsxp/opencode
that referenced
this pull request
Apr 24, 2026
Rwanbt
pushed a commit
to Rwanbt/opencode
that referenced
this pull request
May 5, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
avion23
pushed a commit
to avion23/opencode
that referenced
this pull request
Jun 10, 2026
Rwanbt
pushed a commit
to Rwanbt/opencode
that referenced
this pull request
Jun 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--path,--description, and--modeCLI options toopencode agent createcommandUsage
opencode agent create --path ./my-project --description "Review TypeScript code" --mode subagentWhen 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.