You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(codemode): reusable saved Code Mode scripts with typed args #66479
Follow-up to #66278 (agent() and llm() in Code Mode scripts).
Motivation
Scripts written in execute today are one-offs. Rather than inventing a separate "Workflow" concept coupled to agent(), saving and re-running Code Mode scripts should work for any Code Mode program (GitHub/Slack/browser/shell/agent orchestration).
Scope
Save a Code Mode script under project config (.opencode/) or user config with metadata (name, description, optional input schema for args).
Expose args as a global inside saved script runs.
Allow invoking saved scripts directly (as a slash command, from automations, or from the CLI/SDK without spending a coordinator model turn).
Surface saved scripts in the TUI/desktop UI alongside commands/automations.
Thanks for writing this up. It describes new functionality (saved Code Mode scripts with typed args, which you could run directly or from the UI), not a defect in current behaviour, so there was no bug for me to reproduce. I'm leaving it for maintainers to handle as a feature request and follow-up to #66278.
Activity
opencodejr commentedon Nov 25, 2026
Thanks for writing this up. It describes new functionality (saved Code Mode scripts with typed
args, which you could run directly or from the UI), not a defect in current behaviour, so there was no bug for me to reproduce. I'm leaving it for maintainers to handle as a feature request and follow-up to #66278.