Skip to content

Commit a71c338

Browse files
Copilotlmajano
andauthored
Migrate GitHub Copilot agent from .github/copilot-instructions.md to AGENTS.md
Agent-Logs-Url: https://github.com/ColdBox/coldbox-cli/sessions/deaea2fc-b65c-4413-9924-2e4df9bfd7a3 Co-authored-by: lmajano <137111+lmajano@users.noreply.github.com>
1 parent 626ad7c commit a71c338

5 files changed

Lines changed: 17 additions & 12 deletions

File tree

‎AI_INTEGRATION.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ graph LR
188188
189189
Root --> Agents["Agent Configs"]
190190
Agents --> Claude["CLAUDE.md"]
191-
Agents --> Copilot[".github/copilot-instructions.md"]
191+
Agents --> Copilot["AGENTS.md (shared)"]
192192
Agents --> Cursor[".cursorrules"]
193193
Agents --> Other["+ 3 more agents"]
194194
@@ -203,9 +203,8 @@ graph LR
203203
Additionally, agent configuration files are created for you (paths defined in `AgentRegistry.cfc`):
204204

205205
* `CLAUDE.md` - Claude Desktop/Code assistant (points to `AGENTS.md` via `@AGENTS.md`)
206-
* `.github/copilot-instructions.md` - GitHub Copilot
206+
* `AGENTS.md` - Codex, OpenCode & GitHub Copilot (shared file)
207207
* `.cursorrules` - Cursor IDE
208-
* `AGENTS.md` - Codex, OpenCode & Claude (shared file)
209208
* `GEMINI.md` - Gemini CLI
210209

211210
### Keeping Resources Updated
@@ -244,7 +243,7 @@ After installation, configure your AI agents:
244243

245244
**GitHub Copilot (VS Code):**
246245

247-
1. Agent configuration is automatically in `.github/copilot-instructions.md`
246+
1. Agent configuration is automatically in `AGENTS.md`
248247
2. Reload VS Code window
249248
3. Copilot will use the instructions automatically
250249

@@ -890,7 +889,7 @@ ColdBox AI Integration supports **6 major AI agents** with automatic configurati
890889
| Agent | Config File | Description |
891890
| ------------------ | --------------------------------- | ------------------------------ |
892891
| **Claude** | `CLAUDE.md` → `AGENTS.md` | Claude Desktop and Claude Code |
893-
| **GitHub Copilot** | `.github/copilot-instructions.md` | VS Code Copilot integration |
892+
| **GitHub Copilot** | `AGENTS.md` (shared) | VS Code Copilot integration |
894893
| **Cursor** | `.cursorrules` | Cursor IDE rules |
895894
| **Codex** | `AGENTS.md` (shared) | Codex AI assistant |
896895
| **Gemini** | `GEMINI.md` | Gemini CLI integration |
@@ -952,7 +951,7 @@ graph TB
952951
953952
subgraph "Agent Configurations"
954953
Guidelines --> ClaudeConfig["CLAUDE.md"]
955-
Guidelines --> CopilotConfig[".github/copilot-instructions.md"]
954+
Guidelines --> CopilotConfig["AGENTS.md (shared)"]
956955
Guidelines --> CursorConfig[".cursorrules"]
957956
Guidelines --> CodexConfig["AGENTS.md"]
958957
Guidelines --> GeminiConfig["GEMINI.md"]

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ coldbox ai agents remove cursor # Remove an agent
625625
coldbox ai agents refresh # Regenerate all configurations
626626
```
627627

628-
**Supported Agents**: Claude (CLAUDE.md → AGENTS.md), GitHub Copilot (.github/copilot-instructions.md), Cursor (.cursorrules), Codex (AGENTS.md), Gemini (GEMINI.md), OpenCode (AGENTS.md)
628+
**Supported Agents**: Claude (CLAUDE.md → AGENTS.md), GitHub Copilot (AGENTS.md, shared), Cursor (.cursorrules), Codex (AGENTS.md), Gemini (GEMINI.md), OpenCode (AGENTS.md)
629629

630630
#### Guidelines
631631

‎changelog.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- **GitHub Copilot migrated to `AGENTS.md`**
15+
- GitHub Copilot agent configuration now uses `AGENTS.md` (shared with Codex and OpenCode) instead of `.github/copilot-instructions.md`
16+
- Follows the [Agents.md standard](https://github.blog/changelog/2025-08-28-copilot-coding-agent-now-supports-agents-md-custom-instructions/) now supported by GitHub Copilot
17+
- Provides a single source of truth for Copilot, Codex, and OpenCode agents
18+
- Existing `.github/copilot-instructions.md` files are not removed automatically; run `coldbox ai refresh` to write the updated location
19+
1420
- **AI Directory Structure Standardized**
1521
- Renamed `/.ai/` directory to `/.agents/` to follow BoxLang skill repository conventions
1622
- All generated agent configurations, guidelines, and skills now use `/.agents/` instead of `/.ai/`
@@ -140,7 +146,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
140146

141147
##### Multi-Agent Support (6 Agents)
142148

143-
- **Supported Agents**: Claude (`CLAUDE.md`), GitHub Copilot (`.github/copilot-instructions.md`), Cursor (`.cursorrules`), Codex (`AGENTS.md`), Gemini (`GEMINI.md`), OpenCode (`AGENTS.md`)
149+
- **Supported Agents**: Claude (`CLAUDE.md`), GitHub Copilot (`AGENTS.md`, shared), Cursor (`.cursorrules`), Codex (`AGENTS.md`), Gemini (`GEMINI.md`), OpenCode (`AGENTS.md`)
144150
- Layout-specific templates (modern, flat)
145151
- Project context detection (Vite, Docker, ORM, Migrations)
146152
- Agents commands: `list`, `add`, `remove`, `active`, `open`

‎commands/coldbox/ai/agents/help.cfc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ component excludeFromHelp=true extends="coldbox-cli.models.BaseCommand" {
4646
.line()
4747
.yellowLine( "Note: Each agent creates its own configuration file:" )
4848
.line( " Claude: CLAUDE.md" )
49-
.line( " Copilot: .github/copilot-instructions.md" )
49+
.line( " Copilot: AGENTS.md (shared)" )
5050
.line( " Cursor: .cursorrules" )
5151
.line()
5252
}

‎models/AgentRegistry.cfc‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Registry for AI agent configurations
3-
* Manages agent-specific files (CLAUDE.md, .github/copilot-instructions.md, etc.)
3+
* Manages agent-specific files (CLAUDE.md, AGENTS.md, .cursorrules, etc.)
44
*/
55
component singleton {
66

@@ -22,7 +22,7 @@ component singleton {
2222
]
2323
AGENT_FILES = {
2424
"claude" : "CLAUDE.md",
25-
"copilot" : ".github/copilot-instructions.md",
25+
"copilot" : "AGENTS.md",
2626
"cursor" : ".cursorrules",
2727
"codex" : "AGENTS.md",
2828
"gemini" : "GEMINI.md",
@@ -262,7 +262,7 @@ component singleton {
262262
case "claude":
263263
return "#arguments.directory#/CLAUDE.md"
264264
case "copilot":
265-
return "#arguments.directory#/.github/copilot-instructions.md"
265+
return "#arguments.directory#/AGENTS.md"
266266
case "cursor":
267267
return "#arguments.directory#/.cursorrules"
268268
case "codex":

0 commit comments

Comments
 (0)