squad-version-check
Skill3.1k starsChanged 9 months agoMITView on GitHub
Internals of how @bradygaster/squad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.
- Reads credentials
- Installs packages
4 other projects use a version of this, 1 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- microsoft/fsi-banking-payments-dispute-resolution-acceleratorword for word, first seen Aug 14, 2026
- microsoft/wazaedited, first seen Jun 15, 2026
- github/gh-awword for word, first seen May 27, 2026
- Azure/fleetword for word, first seen Feb 7, 2026
Who's talking about microsoft/Generative-AI-for-beginners-dotnet
- @adnug.bsky.social“Despite the wet and windy weather, we had a great turnout for our "Move over Python, AI just got a new best …”Bluesky · Jul 10, 2025 · 2 likes
- dotnet-presentations/ai-workshop“Unit 10 - Microsoft Agent Framework essentials (single agent, tools, memory, multi-agent bridge)”GitHub · Jul 26, 2026 · 1 reactions
- @demir-lenk.bsky.social“Really helpful resource about .net with ai. It Help me a lot github.com/microsoft/Ge...”Bluesky · Mar 5, 2025 · 1 likes
- microsoft/generative-ai-with-javascript“Link Checker Report”GitHub · Oct 4, 2026
- microsoft/generative-ai-with-javascript“Link Checker Report”GitHub · Sep 27, 2026
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Bluesky (27 times).
On GitHub · 25
- Jul 26, 2026Unit 10 - Microsoft Agent Framework essentials (single agent, tools, memory, multi-agent bridge) — dotnet-presentations/ai-workshop1 reaction
- Oct 4, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 27, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 20, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 13, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
20 more on GitHub
- Sep 6, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 30, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 23, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 16, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 9, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Aug 2, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 26, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 19, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 12, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jul 5, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 28, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 21, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 14, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Jun 7, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- May 31, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Mar 11, 2026Curso Gen AI 4 Beginners — MarioCodes/dotnet-ai-experiments0 reactions
- Feb 16, 2026Migrate Microsoft AgentFx AI Web Chat App to Fluent UI Blazor and Implement DocAssistant.Charty Architecture (Schema/Examples Memory + SQL Chat + Charting + Security Policies) — YuriyMorozyuk95/DocAssistant.Charty_20 reactions
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Nov 11, 2025Add Microsoft Agent Framework integration with three operational modes — elbruno/251112-netconf25-customavatar0 reactions
On Bluesky · 2
- Jul 10, 2025Despite the wet and windy weather, we had a great turnout for our "Move over Python, AI just got a new best friend! .NET!" event last… — @adnug.bsky.social2 likes and reposts
- Mar 5, 2025Really helpful resource about .net with ai. It Help me a lot github.com/microsoft/Ge... — @demir-lenk.bsky.social1 likes and repost
Other versions4 projects use a version of this.
Word for word · 3
- github/gh-aw★ 5.3k100% same
- Azure/fleet★ 226100% same
- microsoft/fsi-banking-payments-dispute-resolution-accelerator★ 0100% same
Edited · 1
- microsoft/waza★ 1.4k100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository78 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- samples/CoreSamples/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-AG-UI/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-MutliAgent/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-Persisting/.github/copilot-instructions.mdCopilot instructions
- samples/MAF/MAF-AIWebChatApp-Simple/.github/copilot-instructions.mdCopilot instructions
- .squad/templates/copilot-instructions.mdCopilot instructions
- agent-collaborationSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-squad-communicationSkill
- cross-squadSkill
- error-recoverySkill
- git-workflowSkill
- iterative-retrievalSkill
- reflectSkill
- reviewer-protocolSkill
- secret-handlingSkill
- session-recoverySkill
- squad-conventionsSkill
- squad-helpSkill
- squadSkill
- test-disciplineSkill
- tiered-memorySkill
- {skill-name}Skill
- agent-collaborationSkill
- agent-conductSkill
- architectural-proposalsSkill
- ci-validation-gatesSkill
- client-compatibilitySkill
- cli-wiringSkill
- coordinator-init-modeSkill
- coordinator-response-modeSkill
- coordinator-source-of-truthSkill
- cross-machine-coordinationSkill
- cross-squad-communicationSkill
- cross-squadSkill
- distributed-meshSkill
- docs-standardsSkill
- e2e-template-testingSkill
- economy-modeSkill
- error-recoverySkill
- external-commsSkill
- fact-checkingSkill
- gh-auth-isolationSkill
- github-multi-accountSkill
- git-workflowSkill
- history-hygieneSkill
- humanizerSkill
- init-modeSkill
- iterative-retrievalSkill
- model-selectionSkill
- napSkill
- notification-routingSkill
- personal-squadSkill
- project-conventionsSkill
- pr-review-responseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Use @insider tag for insider builds.
- Distinctive: line 106
Use this one-liner from inside a coordinator prompt to fetch dist-tags:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SKILL: Squad CLI Internals — Version Stamping & Upgrade Mechanics
Confidence: medium Discovered by: Data Date: 2026-05-26 Validated in: Issue #1173 recon (bradygaster/squad)
What This Skill Covers
Reusable knowledge about how @bradygaster/squad-cli stamps its version into squad.agent.md, how squad upgrade works, what it preserves vs. overwrites, and how to probe the npm registry for the latest version from a coordinator prompt.
Package & Registry Facts
- Package name:
@bradygaster/squad-cli - Registry: npm (public)
- CLI binary:
squad(registered viapackage.json#bin.squad) - Node version requirement: Node ≥22.5.0 (ESM-only codebase)
Version Stamping Mechanism
Source file: dist/cli/core/version.js
Three functions:
getPackageVersion()
Walks up from the compiled JS file to find package.json. Returns pkg.version. Works from both dist/cli/core/version.js and a bundled root cli.js. Returns '0.0.0' as fallback if not found.
stampVersion(filePath, version)
Mutates squad.agent.md in three places:
- HTML comment:
<!-- version: {version} -->(must be on the line immediately after frontmatter---) - Identity line:
- **Version:** {version} - Greeting instruction: backtick-quoted
`Squad v{version}`
Called by: both init and upgrade — after copying the template to the destination.
readInstalledVersion(filePath)
Reads the stamped version back from squad.agent.md:
- First tries HTML comment format:
/<!-- version: ([0-9.]+(?:-[a-z]+(?:\.\d+)?)?) -->/ - Falls back to old frontmatter format:
/^version:\s*"([^"]+)"/m - Returns
'0.0.0'on any error
squad upgrade Behavior
Source file: dist/cli/core/upgrade.js
What gets overwritten:
squad.agent.md— full overwrite from template, thenstampVersion()- Files with
overwriteOnUpgrade: trueinTEMPLATE_MANIFEST: casting JSON files, template .md files,copilot-instructions.md(if @copilot enabled) - GitHub Actions workflows — from
templates/workflows/; non-npm projects get type-aware stubs - Runs
runMigrations()after file copy
What is PRESERVED:
team.md,routing.md,decisions.md,ceremonies.md(user-owned)agents/*/history.md(individual agent memory).squad/config.json— never touched;stateBackendsurvives intact- User-added files not in TEMPLATE_MANIFEST
Self-upgrade path (selfUpgradeCli()):
Detects npm/pnpm/yarn via npm_execpath and npm_config_user_agent. Runs:
- npm:
npm install -g @bradygaster/squad-cli@latest - pnpm:
pnpm add -g @bradygaster/squad-cli@latest - yarn:
yarn global add @bradygaster/squad-cli@latestUse@insidertag for insider builds.
compareSemver(a, b) utility (in upgrade.js):
Returns -1/0/1. Handles pre-release: strips pre-release for base comparison, then treats pre-release as less than release (e.g., 0.9.5-insider.1 < 0.9.5). Can be ported directly if needed in prompt logic.
.squad/config.json — What It Holds
{
"version": 1,
"stateBackend": "worktree"
}Other optional fields added by the coordinator at runtime:
defaultModel— global model override for all agent spawnsagentModelOverrides.{agentName}— per-agent model override
The file is read-only from the upgrade path's perspective. Only the coordinator writes to it (for model preferences).
Version-Check Probe (npm Registry)
Use this one-liner from inside a coordinator prompt to fetch dist-tags:
npm view @bradygaster/squad-cli dist-tags --json- Timeout: 5 seconds. If no response within 5 seconds, abandon and show normal greeting.
- On success: extract
dist-tags[channel](e.g.,dist-tags["insider"]). - On any error (network failure, registry unreachable, parse error): show normal greeting.
Upstream OS-Specific Cache
The CLI (self-update.ts) writes latest version info to an OS-specific path with a 24h TTL.
One-liner to read the upstream cache:
node -e "const p=require('path'),o=require('os');const b=process.env.APPDATA||(process.platform==='darwin'?p.join(o.homedir(),'Library','Application Support'):p.join(o.homedir(),'.config'));const f=p.join(b,'squad-cli','update-check.json');try{const d=JSON.parse(require('fs').readFileSync(f,'utf8'));const age=Date.now()-d.checkedAt;if(age<86400000)console.log(JSON.stringify(d));else console.log('STALE')}catch{console.log('MISS')}"Output semantics:
- Valid JSON
{"latestVersion":"X.Y.Z","checkedAt":N}→ cache hit; uselatestVersion STALE→ cache expired (older than 24h); treat as no dataMISS→ cache missing or corrupt; treat as no data
OS-specific cache path:
- Windows:
%APPDATA%\squad-cli\update-check.json - Linux:
~/.config/squad-cli/update-check.json - macOS:
~/Library/Application Support/squad-cli/update-check.json
Repo-Local Cache Convention: .squad/.cache/version-check.json
Used by coordinator for insider/preview channels (the upstream cache only stores latest).
Schema:
{
"checkedAt": "2026-05-26T14:13:28.492Z",
"currentVersion": "0.9.6-insider.2",
"channel": "insider",
"channelVersion": "0.9.7-insider.1"
}TTL: 24 hours from checkedAt.
Gitignore: .squad/.cache/ is listed in .gitignore — cache files are never committed.
Key File Paths (installed CLI)
| Purpose | Path |
| Version utilities | dist/cli/core/version.js |
| Upgrade logic | dist/cli/core/upgrade.js |
| Init logic | dist/cli/core/init.js |
| Template manifest | dist/cli/core/templates.js |
| Copilot install helper | dist/cli/copilot-install.js |
| squad.agent.md template | templates/squad.agent.md.template |
| Session init reference | templates/session-init-reference.md |
| All templates | templates/ |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

