summaryrefslogtreecommitdiffhomepage
path: root/github/action.yml
diff options
context:
space:
mode:
authorMatt Silverlock <[email protected]>2025-12-20 12:46:48 -0500
committerAiden Cline <[email protected]>2025-12-20 11:49:23 -0600
commit8f6c8844d742b56858823e57388e8149f665cb7a (patch)
tree7113743b383c1f8a6329531ef214c8e47d3c7b64 /github/action.yml
parentda6e0e60c0ca42d54595553fc1ab70f62be6e3b9 (diff)
downloadopencode-8f6c8844d742b56858823e57388e8149f665cb7a.tar.gz
opencode-8f6c8844d742b56858823e57388e8149f665cb7a.zip
feat: support configuring a default_agent across all API/user surfaces (#5843)
Co-authored-by: observerw <[email protected]>
Diffstat (limited to 'github/action.yml')
-rw-r--r--github/action.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/github/action.yml b/github/action.yml
index cf276b51c..57e26d856 100644
--- a/github/action.yml
+++ b/github/action.yml
@@ -9,6 +9,10 @@ inputs:
description: "Model to use"
required: true
+ agent:
+ description: "Agent to use. Must be a primary agent. Falls back to default_agent from config or 'build' if not found."
+ required: false
+
share:
description: "Share the opencode session (defaults to true for public repos)"
required: false
@@ -62,6 +66,7 @@ runs:
run: opencode github run
env:
MODEL: ${{ inputs.model }}
+ AGENT: ${{ inputs.agent }}
SHARE: ${{ inputs.share }}
PROMPT: ${{ inputs.prompt }}
USE_GITHUB_TOKEN: ${{ inputs.use_github_token }}