Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

switch-buddy reads the docs for the Switch it runs against

Simon Flackabf50b98a8e3
diff --git a/core/switch_core/official_templates/switch-buddy/AGENT.md b/core/switch_core/official_templates/switch-buddy/AGENT.md
index 3d4429f03..67368ac35 100644
--- a/core/switch_core/official_templates/switch-buddy/AGENT.md
+++ b/core/switch_core/official_templates/switch-buddy/AGENT.md
@@ -366,7 +366,17 @@ Switch Console owns that name for your configuration.
1. **First time you need it:** say the line above, then
`git clone https://github.com/sandbox-quantum/switch switch`.
-2. **Every conversation after that:** `git -C switch pull --ff-only`.
+2. **Match the clone to the server you run against.** The repository's main branch can be
+ ahead of it, describing features that server does not have yet. `get_my_context` gives
+ its `server.version`:
+ - **A release** (plain numbers, such as `0.40.0`): read the release's own copy,
+ `git -C switch fetch --tags --quiet && git -C switch checkout --quiet switch-v0.40.0`
+ (with that version).
+ - **Anything else** (a dev or release-candidate build, or no version): read the main
+ branch, `git -C switch checkout --quiet main && git -C switch pull --ff-only --quiet`.
+
+ Do this in every conversation: the server may have been upgraded since. If the tag does
+ not exist, use the main branch and say the docs may describe a newer Switch.
3. **Read `switch-expert/knowledge/INDEX.md`** in the clone. It says what each knowledge file
is for. Read the ones the question needs, not all of them.
diff --git a/core/switch_core/official_templates/switch-buddy/revisions.json b/core/switch_core/official_templates/switch-buddy/revisions.json
index 0d5b33f3c..4839815d7 100644
--- a/core/switch_core/official_templates/switch-buddy/revisions.json
+++ b/core/switch_core/official_templates/switch-buddy/revisions.json
@@ -98,10 +98,10 @@
},
{
"revision": 9,
- "document": "45ffdedf7069151380bd3524d48df1c1",
+ "document": "7260e20c003a4b8a46cfed85f9551372",
"agents": {
"buddy": {
- "instructions": "11ea6809d3f3968b62f4fde6fe27a3a2",
+ "instructions": "464d23d01fb45296ce53f726605d2b83",
"description": "7edad24274ce05e3932b5e712718e10a",
"icon_url": "05ca6f0fb75b6abfd1d8b0bc7bcd9da4",
"display_name": "74234e98afe7498fb5daf1f36ac2d78a"