Skip to content

Tab key cycles through 4 agents (including README/WORKFLOW) after setting a global opencode.json #12785

@raymelon

Description

@raymelon

Description

So I was messing with my config and noticed something weird. When I hit Tab to switch agents, it cycles through:

plan → build → README → WORKFLOW

And then back to plan. That's 4 agents total.

But from the docs, I thought Tab only switches between the "primary" agents like build and plan? The docs say "For primary agents, use the Tab key to cycle through them" and list build and plan as the only user-facing primary ones.

I get that compaction, summary, and title are background system agents (makes sense, they run automatically). But README and WORKFLOW showing up in the Tab cycle seems off? I thought those were just permission contexts that apply to all agents, not selectable agents I can "become".

Is this intentional behavior or a bug? If it's intentional, maybe the docs need updating because it's confusing to see 4 items in the cycle when you expect 2.

My opencode.json config (in case it's relevant):

{
  "$schema": "https://opencode.ai/config.json",
  "small_model": "openrouter/google/gemma-3-4b-it:free",
  "provider": {},
  "default_agent": "plan",
  "autoupdate": false,
  "mcp": {
    "gh_grep": { "type": "remote", "url": "https://mcp.grep.app" },
    "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp" }
  }
}

Plugins

none

OpenCode version

1.1.52

Steps to reproduce

  1. Set a global opencode.json with the same content as I provided
  2. Restart OpenCode
  3. Switch through agents by pressing Tab
  4. Expect to see README (in blue) and WORKFLOW (in RED) workflows

Screenshot and/or share link

Image Image

Operating System

Windows 10

Terminal

Warp

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions