anomalyco / anomalyco/opencode

Custom primary agent mode name not shown in system-reminder notification

Open
#38,643 2 comments 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Jul 24, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
Description

When switching to a custom primary agent (defined via .opencode/agents/*.md or opencode.json's agent field), the system reminder notification always shows either "build" or "plan" instead of the actual custom agent name.

Steps to reproduce
  1. Create a custom primary agent, e.g. .opencode/agents/manual.md
  2. Press Tab to cycle through agents: build → plan → manual
  3. Observe the <system-reminder> notification
Expected behavior

The notification should say something like:

Your operational mode has changed from plan to manual.
Actual behavior

It says:

Your operational mode has changed from plan to build.

This means the notification falls back to "build" for any unrecognized custom primary agent name, which is misleading for both the user and the LLM.

Impact

Custom primary agents work correctly (permissions, prompt) but the misleading notification text may confuse the LLM into thinking it's in build mode, potentially affecting its conservative/aggressive behavior.

Plugins

None, just the original version.

OpenCode version

1.18.4

Steps to reproduce
  1. Create .opencode/agents/manual.md (or any custom primary agent)
  2. Press Tab to cycle: build → plan → manual
  3. The always says "build" or "plan", never "manual", and "manual" will be recognized as "plan" by OpenCode
Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.