Skip to content

Commit 1144800

Browse files
authored
Merge pull request #2118 from markscott-ms/bye-bye-chatmode
Replace Copilot Chatmode with Copilot Agent
2 parents d4afc64 + b802f4c commit 1144800

File tree

26 files changed

+191
-280
lines changed

26 files changed

+191
-280
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ node_modules/
4545
coverage/
4646
/cli/test/template-bundles/
4747
.github/chatmodes
48+
.github/agents
4849
shared/test-output/

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ architecture-as-code/
3333
├── calm-plugins/vscode/ # VSCode extension
3434
├── calm-models/ # TypeScript data models
3535
├── calm-widgets/ # React visualization components
36-
├── calm-ai/ # AI chatmode tools & prompts
36+
├── calm-ai/ # AI agent tools & prompts
3737
├── shared/ # Shared TypeScript utilities
3838
├── docs/ # Docusaurus documentation site
3939
├── advent-of-calm/ # Educational content (24-day challenge)

advent-of-calm/AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ advent-of-calm/
4343

4444
**Week 2 (Days 8-14): Controls, Flows & AI-Assisted Operations**
4545
- Days 8-10: Controls (security), ADRs, Flows (business processes)
46-
- Days 11-14: AI integration (chatmode, analysis, documentation generation)
46+
- Days 11-14: AI integration (agent, analysis, documentation generation)
4747
- Outcome: Governed architecture with AI-assisted workflows
4848

4949
**Week 3 (Days 15-18): Patterns & Automation**
@@ -102,7 +102,7 @@ Questions to consolidate learning
102102

103103
### AI-First Approach
104104
- GitHub Copilot integration starts Day 1
105-
- CALM chatmode introduced Day 11
105+
- CALM agent introduced Day 11
106106
- AI used for generation, validation, and documentation
107107
- Teaches both CALM and AI-assisted workflows
108108

advent-of-calm/day-1.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ This directory will contain CALM patterns for architectural governance.
7474
Generated documentation from CALM models.
7575
```
7676

77-
### 5. Enable AI Assistance with Copilot Chatmode
77+
### 5. Enable AI Assistance with Copilot Agent
7878
```bash
79-
calm copilot-chatmode -d .
79+
calm init-ai -p copilot -d .
8080
```
8181

82-
This creates `.github/chatmodes/CALM.chatmode.md` with specialized CALM knowledge for GitHub Copilot.
82+
This creates `.github/agents/CALM.agent.md` with specialized CALM knowledge for GitHub Copilot.
8383

8484
### 6. Add a .gitignore
8585
Create `.gitignore`:
@@ -118,7 +118,7 @@ Your Day 1 submission should include a commit tagged `day-1` containing:
118118

119119
**Required Files:**
120120
- `README.md` - Project introduction with progress checklist
121-
- `.github/chatmodes/CALM.chatmode.md` - Copilot configuration
121+
- `.github/agents/CALM.agent.md` - Copilot configuration
122122
- `.gitignore` - Basic ignore patterns
123123
- `architectures/` - Empty directory (ready for Day 2)
124124
- `patterns/` - Empty directory
@@ -129,8 +129,8 @@ Your Day 1 submission should include a commit tagged `day-1` containing:
129129
# Test CALM CLI is installed
130130
calm --version
131131

132-
# Verify chatmode file exists and contains CALM schema guidance
133-
test -f .github/chatmodes/CALM.chatmode.md && grep -q "CALM" .github/chatmodes/CALM.chatmode.md
132+
# Verify agent file exists and contains CALM schema guidance
133+
test -f .github/agents/CALM.agent.md && grep -q "CALM" .github/agents/CALM.agent.md
134134

135135
# Check git tag exists
136136
git tag | grep -q "day-1"
@@ -142,7 +142,7 @@ git tag | grep -q "day-1"
142142
- [GitHub Copilot Chat](https://docs.github.com/en/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide)
143143

144144
## Tips
145-
- If you don't have GitHub Copilot access, the chatmode file is still useful as documentation for you to reference
145+
- If you don't have GitHub Copilot access, the agent file is still useful as documentation for you to reference
146146
- Use descriptive commit messages - they tell the story of your learning
147147
- Consider making your repository public to inspire others
148148
- Tag each day's work (`day-1`, `day-2`, etc.) to create clear milestones

advent-of-calm/day-15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,4 @@ git tag | grep -q "day-15"
301301

302302
## Next Steps
303303

304-
Tomorrow (Day 16) you'll use docify to generate operations documentation - runbooks, on-call guides, and incident report templates from your architecture metadata! This shows how the CALM Chatmode and documentation capabilities of CALM all work from the same source of truth, your CALM architecture!
304+
Tomorrow (Day 16) you'll use docify to generate operations documentation - runbooks, on-call guides, and incident report templates from your architecture metadata! This shows how the CALM Agent and documentation capabilities of CALM all work from the same source of truth, your CALM architecture!

advent-of-calm/day-17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ git tag | grep -q "day-17"
336336
- Test both generation AND validation to ensure the pattern works
337337

338338
## Trouble Shooting
339-
- Remember AI can make mistakes, if for some reason your pattern won't generate a valid architecture ask CALM Chatmode to figure out why not, this prompt may be helpful.
339+
- Remember AI can make mistakes, if for some reason your pattern won't generate a valid architecture ask CALM Agent to figure out why not, this prompt may be helpful.
340340

341341
```text
342342
My pattern doesn't generate a valid architecture when I run the generate command, look at this valid pattern - https://raw.githubusercontent.com/finos/architecture-as-code/refs/heads/main/conferences/osff-ln-2025/workshop/conference-signup.pattern.json - identify the problem.

advent-of-calm/day-18.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Day 18: Using Standards for Your Organization
22

3-
## ATTENTION
4-
5-
Please ensure you are using the latest version of the CALM CLI and reran `calm copilot-chatmode` to update your repositories chatmode files.
6-
A bug exists in Chatmode instructions for CLI <= 1.24.0 where the CALM Schema
7-
URL in the $ref attribute is incorrect. It should refer to
8-
`https://calm.finos.org/release/1.1/meta/core.json`.
9-
103
## Overview
114
Learn how CALM Standards extend the flexible core schema with your organization's specific requirements, enabling consistent governance across all architectures.
125

@@ -62,7 +55,7 @@ Standards extend core CALM definitions using `allOf` composition:
6255

6356
This says: "A node using this Standard must satisfy BOTH the core CALM node requirements AND our additional properties."
6457

65-
Please ensure the URL in the `$ref` property is correct. If not, you may need to update your CLI and Copilot Chatmode instructions.
58+
Please ensure the URL in the `$ref` property is correct. If not, you may need to update your CLI and Copilot Agent instructions.
6659

6760
### 4. Explore Common Use Cases
6861

advent-of-calm/day-2.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Day 2: Create Your First Node
22

33
## Overview
4-
Use the CALM chatmode you configured on Day 1 to create your first architecture file with AI assistance.
4+
Use the CALM agent you configured on Day 1 to create your first architecture file with AI assistance.
55

66
## Objective and Rationale
7-
- **Objective:** Create a valid CALM architecture JSON file containing a single node using GitHub Copilot and the CALM chatmode
8-
- **Rationale:** Learn to leverage AI for architecture authoring. The chatmode you installed provides Copilot with deep CALM schema knowledge, making it an expert assistant. This teaches both CALM concepts AND effective AI-powered workflows.
7+
- **Objective:** Create a valid CALM architecture JSON file containing a single node using GitHub Copilot and the CALM agent
8+
- **Rationale:** Learn to leverage AI for architecture authoring. The agent you installed provides Copilot with deep CALM schema knowledge, making it an expert assistant. This teaches both CALM concepts AND effective AI-powered workflows.
99

1010
## Requirements
1111

@@ -24,15 +24,15 @@ A **node** in CALM represents a distinct architectural component. CALM provides
2424

2525
**Custom node types:** You can define your own node types (e.g., "message-queue", "cache", "api-gateway") to better represent components specific to your architecture.
2626

27-
### 2. Open the CALM Chatmode in VSCode
27+
### 2. Open the CALM Agent in VSCode
2828

2929
1. Open your `advent-of-calm-2025` repository in VSCode
3030
2. Open the Copilot Chat panel:
3131
- **Windows/Linux**: `Ctrl+Alt+I` or click the chat icon in the sidebar
3232
- **Mac**: `Cmd+Shift+I` or click the chat icon in the sidebar
33-
3. **Select the CALM chatmode** to maintain context across multiple prompts:
34-
- Click the chatmode selector dropdown in the chat panel (it shows "General Purpose" by default)
35-
- Select **"CALM"** from the list of available chatmodes
33+
3. **Select the CALM agent** to maintain context across multiple prompts:
34+
- Click the agent selector dropdown in the chat panel (it shows "Agent" by default)
35+
- Select **"CALM"** from the list of available agents
3636
- The chat panel will now show "CALM" as the active mode
3737
- This keeps you in CALM mode for all subsequent prompts in this conversation
3838

@@ -133,8 +133,8 @@ git tag | grep -q "day-2"
133133
- [GitHub Copilot Chat Documentation](https://docs.github.com/en/copilot/using-github-copilot/asking-github-copilot-questions-in-your-ide)
134134

135135
## Tips
136-
- The chatmode makes Copilot a CALM expert - use it liberally!
137-
- **Remember to select the CALM chatmode** from the dropdown to maintain conversation context across multiple prompts
136+
- The agent makes Copilot a CALM expert - use it liberally!
137+
- **Remember to select the CALM agent** from the dropdown to maintain conversation context across multiple prompts
138138
- If you don't have Copilot access, you can manually create the file following this structure:
139139
```json
140140
{
@@ -151,13 +151,13 @@ git tag | grep -q "day-2"
151151
}
152152
```
153153
- Ask Copilot follow-up questions if you don't understand something
154-
- Use the CALM chatmode selector to stay in CALM mode across all your prompts
154+
- Use the CALM agent selector to stay in CALM mode across all your prompts
155155

156156
## Troubleshooting
157157

158-
**"I don't see CALM in the chatmode list"**
159-
- Make sure you ran `calm copilot-chatmode -d .` on Day 1
160-
- Check that `.github/chatmodes/CALM.chatmode.md` exists
158+
**"I don't see CALM in the agent list"**
159+
- Make sure you ran `calm init-ai -p copilot -d .` on Day 1
160+
- Check that `.github/agents/CALM.agent.md` exists
161161
- Restart VSCode and try again
162162

163163
**"Copilot generated an invalid file"**
@@ -167,7 +167,7 @@ git tag | grep -q "day-2"
167167

168168
**"I don't have GitHub Copilot"**
169169
- You can manually create the file using the example structure above
170-
- The chatmode file itself is good documentation you can reference
170+
- The agent file itself is good documentation you can reference
171171
- Consider this a prompt for what you need to create
172172

173173
## Next Steps

advent-of-calm/setup.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,39 +63,39 @@ If auto-update is disabled, you can manually update:
6363
3. Click the gear icon and select "Check for Updates"
6464
4. Click "Update" if available
6565

66-
## CALM Copilot Chatmode
66+
## CALM Copilot Agent
6767

68-
The CALM Copilot Chatmode enhances GitHub Copilot with deep knowledge of the CALM specification, making it an expert assistant for architecture authoring.
68+
The CALM Copilot Agent enhances GitHub Copilot with deep knowledge of the CALM specification, making it an expert assistant for architecture authoring.
6969

70-
### What is a Chatmode?
70+
### What is an Agent?
7171

72-
Chatmodes are specialized configurations for GitHub Copilot Chat that provide domain-specific expertise. The CALM chatmode includes:
72+
Agents are specialized configurations for GitHub Copilot Chat that provide domain-specific expertise. The CALM agent includes:
7373
- Complete CALM schema knowledge
7474
- Best practices for architecture modeling
7575
- Examples and patterns
7676

77-
### Install or Update the Chatmode
77+
### Install or Update the Agent
7878

79-
Use the CALM CLI to install or update the chatmode:
79+
Use the CALM CLI to install or update the agent:
8080

8181
```bash
82-
calm copilot-chatmode
82+
calm init-ai -p copilot
8383
```
8484

8585
This command will:
8686
- Create or update `.github/copilot-instructions.md` in your repository
87-
- Download the latest chatmode configuration from the CALM project
87+
- Download the latest agent configuration from the CALM project
8888
- Ensure you have the most up-to-date CALM expertise for Copilot
8989

9090
### Apply the Update
9191

92-
After installing or updating the chatmode:
92+
After installing or updating the agent:
9393

9494
1. **Start a new Copilot Chat session** in VS Code
9595
- Close any existing chat panels
9696
- Open a fresh chat session (click the Copilot chat icon or use `Cmd+Shift+I` / `Ctrl+Shift+I`)
9797

98-
2. The updated chatmode will be active in your new chat session
98+
2. The updated agent will be active in your new chat session
9999

100100
**Note:** You don't need to restart VS Code - just start a new chat session!
101101

@@ -128,12 +128,12 @@ If the extension isn't working properly:
128128
3. Uninstall and reinstall the extension
129129
4. Check the Output panel (View → Output → select "CALM" from dropdown)
130130

131-
### Chatmode Issues
131+
### Agent Issues
132132

133-
If Copilot doesn't seem to be using the chatmode:
133+
If Copilot doesn't seem to be using the agent:
134134

135-
1. Verify `.github/copilot-instructions.md` exists in your repository root
136-
2. Run `calm copilot-chatmode` to ensure it's up to date
135+
1. Verify `.github/agents/CALM.agent.md` exists in your repository root
136+
2. Run `calm init-ai` to ensure it's up to date
137137
3. Start a completely new chat session (close and reopen)
138138
4. Ensure GitHub Copilot is active (check status bar)
139139
5. Make sure you're chatting from within your repository directory

advent-of-calm/website/src/pages/setup.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (!entry) {
99
const { Content } = await entry.render();
1010
---
1111

12-
<Layout title="Setup - Keeping Your CALM Tools Up to Date" description="Learn how to keep your CALM CLI, VS Code Extension, and Copilot Chatmode up to date">
12+
<Layout title="Setup - Keeping Your CALM Tools Up to Date" description="Learn how to keep your CALM CLI, VS Code Extension, and Copilot Agent up to date">
1313
<nav class="day-nav">
1414
<div class="nav-center">
1515
<a href={import.meta.env.BASE_URL} class="nav-button home">Back to Calendar</a>

0 commit comments

Comments
 (0)