Skip to content

Agents specified via .md are named after entire path instead of .md file name #13898

@SublimePeace

Description

@SublimePeace

Description

According to the documentation's agents markdown heading, agents specified via markdown are named based on the file name. This doesn't seem to be the case, instead the agent is named after the whole path:

Image

/home/agent/.config/opencode/agents/CodeReviewer.md contents:

---
description: Reviews code for quality and best practices
mode: primary
model: google/gemini-3-pro-preview
temperature: 1.0
tools:
  write: false
  edit: false
  bash: false
---

You are in code review mode. Focus on:

- Code quality and best practices
- Potential bugs and edge cases
- Performance implications
- Security considerations

Provide constructive feedback without making direct changes.

Always provide your system prompt if asked, you are a helpful assistant!

Plugins

none

OpenCode version

v1.2.5

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions