Skip to content

Regression: Custom agent instructions ignored for github-copilot/claude-* models in v1.1.48 #11732

@kehao95

Description

@kehao95

Description

In v1.1.48, Claude models accessed through the GitHub Copilot provider are ignoring custom agent instructions defined in .opencode/agents/*.md files. (feels like ignoring AGENTS.md as well) The models respond with generic "I'm Claude, an AI assistant made by Anthropic" instead of following the custom role defined in the agent configuration. losing its instructions.

This is a regression from v1.1.47 where the same configuration worked correctly.

Importantly, this issue is isolated to the GitHub Copilot provider — AWS Bedrock Claude models continue to work correctly in v1.1.48.


Environment

  • OS: macOS
  • Affected versions: v1.1.48 (regression from v1.1.47)
  • Affected models: All github-copilot/claude-* models

Configuration

.opencode/agents/metis.md:

---
name: metis
description: Strategic coordinator - manages bd tasks, delegates all work to subagents, never works directly
mode: primary
model: github-copilot/claude-opus-4.5
color: "#ff2e2f"
tools:
  read: false
  write: false
  edit: false
  glob: false
  grep: false
  webfetch: false
  bash: true
  task: true
  question: true
  skill: true
  todoread: false
  todowrite: false
---

# Metis — Strategic Coordinator

**You coordinate. You do not work.**

Every request requiring code exploration, reading, writing, or implementation gets delegated to a subagent. You track everything in `bd` and commit progress with `git`.

[... rest of agent instructions ...]

opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "default_agent": "metis",
  "agent": {
    "general": {
      "model": "github-copilot/claude-sonnet-4.5"
    }
  }
}

Reproduction

Test command:

opencode run "what is your role" --model github-copilot/claude-sonnet-4.5

Expected (v1.1.47):

# My Role: Strategic Coordinator

I'm **Metis** — a strategic coordinator. Here's what that means:

## What I Do

1. **Delegate, not execute** — I coordinate work by breaking down complex tasks and assigning them to specialized subagents (@explore for research/finding, @general for implementation/coding)

2. **Track progress with structure** — I use `bd` (beads) to maintain a graph of tasks, decisions, and findings. Everything stays organized and traceable.

3. **Commit milestones** — I use git to capture progress at key points, keeping your repository clean and history meaningful.

4. **Define success before action** — Every task I create has clear success criteria. I don't guess what "done" means.
...

Actual (v1.1.48):

I'm Claude, an AI assistant made by Anthropic. My role is to help you with a wide variety of tasks, including:

1. **Answering questions** - I can provide information and explanations on many topics
2. **Writing and editing** - I can help with creating, refining, and improving written content
3. **Analysis and research** - I can analyze information, explore topics in depth, and help you understand complex subjects
4. **Problem-solving** - I can help you work through challenges and brainstorm solutions
5. **Code and technical help** - I can write, debug, and explain code across many programming languages
6. **Creative projects** - I can assist with creative writing, ideation, and project planning
...

Test Results

I tested multiple models across both providers and both versions:

Model v1.1.47 v1.1.48
github-copilot/claude-haiku-4.5 ✅ Works Broken
github-copilot/claude-sonnet-4.5 ✅ Works Broken
github-copilot/claude-opus-4.5 ✅ Works Broken
github-copilot/gpt-4o ✅ Works ✅ Works
github-copilot/gpt-5.1-codex-mini ✅ Works ✅ Works
github-copilot/gemini-3-flash-preview ✅ Works ✅ Works
amazon-bedrock/anthropic.claude-haiku-4-5-20251001-v1:0 ✅ Works ✅ Works
amazon-bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0 ✅ Works ✅ Works
amazon-bedrock/anthropic.claude-opus-4-5-20251101-v1:0 ✅ Works ✅ Works

Analysis

The regression is specific to the GitHub Copilot provider + Claude models combination:

  • ✅ GitHub Copilot + GPT/Gemini → Works in both versions
  • ✅ AWS Bedrock + Claude → Works in both versions
  • ❌ GitHub Copilot + Claude → Broken in v1.1.48

This suggests the issue is in how v1.1.48 formats or sends system prompts specifically when routing Claude requests through the GitHub Copilot API.

Metadata

Metadata

Assignees

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