Skip to content

feat(codemode): reusable saved Code Mode scripts with typed args #66479

Backlog

Description

@hearnadam

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.

Activity

  1. opencodejr commented on Nov 25, 2026

    @opencodejr
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions