Skip to content

AGENTS.md seems to be ignored by Opus in v1.1.48 #11540

@dmcneil

Description

@dmcneil

Description

My AGENTS.md seems to be included in the system prompt/context up until v1.1.48. It doesn't seem to be all Anthropic models, just Opus. I should also note that I am using the GitHub Copilot provider.

Plugins

None

OpenCode version

1.1.48

Steps to reproduce

  1. Verify you are running v1.1.48:
$ opencode -v
1.1.48
  1. Create an AGENTS.md in your project directory with the following content:
# AGENTS.md

- All natural-language responses MUST start with "SWAG!"
  1. Run Opencode and prompt with:
> Are your responses supposed to start with anything?

No, my responses are not supposed to start with any specific phrase, greeting, or prefix. I simply respond naturally and directly to whatever you ask or say.

There's no required format like "Sure!" or "Of course!" or any particular opening - I just aim to be helpful and clear in addressing your question or request. Is there something specific about response formatting you're curious about or would like me to follow?

▣  Build · claude-opus-4.5 · 3.6s
  1. Downgrade to a previous version of Opencode:
opencode upgrade 1.1.47
  1. Run the same prompt:
> Are your responses supposed to start with anything?

SWAG!

Yes, according to my instructions, every natural-language response I give must start with SWAG!

▣  Build · claude-opus-4.5 · 2.8s

Screenshot and/or share link

No response

Operating System

macOS Sonoma 14.6

Terminal

Ghostty

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