GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: OpenCode GitHub Actions can't work with disabled default agents · Issue #4578 · anomalyco/opencode

[FEATURE]: OpenCode GitHub Actions can't work with disabled default agents #4578

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: OpenCode GitHub Actions can't work with disabled default agents#4578
Copy link
Assignees
fwang

Description

@AdiKsOnDev
AdiKsOnDev
opened on Nov 21, 2025
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Context

There is a way to disable the primary agents that OpenCode ships with originally by adding the following lines to the config:

{
  "agent": {
    "plan": {
      "disable": true
    },
    "build": {
      "disable": true
    }
  },
}

This is very useful when making custom primary agents that have the same purpose but with prompts that better suit one's needs. And I personally place them in my repositories to enforce these agents on my team members.

The issue

When working with the OpenCode agent, it also uses this config file. And if the default agents are disabled, OpenCode workflow fails with an error:

 opencode
undefined is not an object (evaluating 'agent.name')

There is an obvious work-around that I am currently using, which is to (surprise) turn on the default agents. But personally, it's very annoying because it forces me to toggle between ~7 agents every time I start up opencode

Proposal

It'd be great to add the ability to specify the agent you want OpenCode to use when prompting it through CLI, then add support for that feature in GitHub actions:

opencode --agent [name-of-primary-agent] <prompt>

Then in GitHub when prompting, add a possibility to pass the agent name as an option

Activity

  1. AdiKsOnDev
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Nov 21, 2025
  2. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    rekram1-node
    on Nov 21, 2025
    Member
    More actions

    Yeah makes sense will fix

    Reacted by Adil Alizada
  3. rekram1-node
    assigned
    fwang
    on Nov 21, 2025
  4. AdiKsOnDev commented on Nov 21, 2025

    @AdiKsOnDev
    AdiKsOnDev
    on Nov 21, 2025
    Author
    More actions

    Yeah makes sense will fix

    Thanks!

  5. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  6. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  7. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @fwang
    fwang

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.