Archon release
git clone https://github.com/coleam00/Archon
T=$(mktemp -d) && git clone --depth=1 https://github.com/coleam00/Archon "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/release" ~/.claude/skills/coleam00-archon-release && rm -rf "$T"
.claude/skills/release/SKILL.mdRelease Skill
Creates a release by comparing dev to main, generating changelog entries from commits, bumping the version, and creating a PR. After the tag is pushed and the release workflow finishes building binaries, updates the Homebrew formula with the real SHA256 values from the published
checksums.txt, syncs the coleam00/homebrew-archon tap, and verifies the end-to-end install path via /test-release.
⚠️ CRITICAL — Homebrew formula SHAs cannot be known until after the release workflow builds binaries.
The
field inversionand thehomebrew/archon.rbfields must be updated atomically. Never update one without the other.sha256The correct sequence is:
- Tag is pushed → release workflow fires → binaries built →
uploadedchecksums.txt- Fetch
from the published releasechecksums.txt- Parse the SHA256 per platform
- Update
with the new version AND the new SHAs in a single commithomebrew/archon.rb- Sync to the
tap repocoleam00/homebrew-archon/Formula/archon.rbUpdating the formula's
field without also updating theversionvalues creates a stale, misleading formula that looks valid but produces checksum mismatches on install. This has happened before (v0.3.0: version updated to 0.3.0 but SHAs were still from v0.2.13). Always do both or neither.sha256
Process
Step 1: Validate State
# Must be on dev branch with clean working tree git checkout dev git pull origin dev git status --porcelain # must be empty git fetch origin main
If not on dev or working tree is dirty, abort with a clear message.
Step 2: Detect Stack and Current Version
Detect the project's package manager and version file:
- Check for
— Python project, version inpyproject.tomlversion = "x.y.z" - Check for
— Node/Bun project, version inpackage.json"version": "x.y.z" - Check for
— Rust project, version inCargo.tomlversion = "x.y.z" - Check for
— Go project (version from git tags only, no file to bump)go.mod
If none found, abort: "Could not detect project stack — no version file found."
Read the current version from the detected file.
Step 3: Determine Version Bump
Bump rules based on argument:
- No argument or
(default):patch0.1.0 -> 0.1.1
:minor0.1.3 -> 0.2.0
:major0.3.5 -> 1.0.0
Step 4: Collect Commits
# Get all commits on dev that aren't on main git log main..dev --oneline --no-merges
If no new commits, abort: "Nothing to release — dev is up to date with main."
Step 5: Draft Changelog Entries
Read the commit messages and the actual diffs (
git diff main..dev) to understand what changed.
Categorize into Keep a Changelog sections:
- Added — new features, new files, new capabilities
- Changed — modifications to existing behavior
- Fixed — bug fixes
- Removed — deleted features or code
Writing rules:
- Write entries as a human would — clear, concise, user-facing language
- Do NOT just copy commit messages verbatim — rewrite them into proper changelog entries
- Group related commits into single entries where it makes sense
- Include PR numbers in parentheses when available:
(#12) - Each entry should start with a noun or gerund describing WHAT changed
- Skip internal-only changes (CI tweaks, typo fixes) unless they affect behavior
- One blank line between sections
Step 6: Update Files
-
Version file — update version to new value:
: updatepackage.json"version": "x.y.z"
: updatepyproject.tomlversion = "x.y.z"
: updateCargo.tomlversion = "x.y.z"
-
Workspace version sync (monorepo only):
- If
exists, runscripts/sync-versions.sh
to sync allbash scripts/sync-versions.sh
versions to match the root version.packages/*/package.json
- If
-
Lockfile refresh (stack-dependent):
+package.json
: runbun.lockbun install
+package.json
: runpackage-lock.jsonnpm install --package-lock-only
+pyproject.toml
: runuv.lockuv lock --quiet
: runCargo.tomlcargo update --workspace
-
— prepend new version section:CHANGELOG.md
## [x.y.z] - YYYY-MM-DD One-line summary of the release. ### Added - Entry one (#PR) - Entry two (#PR) ### Changed - Entry one (#PR) ### Fixed - Entry one (#PR)
Move any content under
[Unreleased] into the new version section. Leave [Unreleased] header with nothing under it.
Step 7: Present for Review
Show the user:
- The detected stack and version file
- The version bump (old -> new)
- The full changelog section that will be added
- The list of commits being included
Ask: "Does this look good? I'll commit and create the PR."
Step 8: Commit and PR
Only after user approval:
# Stage version file, workspace packages, lockfile, and changelog git add <version-file> packages/*/package.json <lockfile> CHANGELOG.md git commit -m "Release x.y.z" # Push dev git push origin dev # Create PR: dev -> main gh pr create --base main --head dev \ --title "Release x.y.z" \ --body "$(cat <<'EOF' ## Release x.y.z {changelog section content} --- Merging this PR releases x.y.z to main. EOF )"
Return the PR URL to the user.
Step 9: Tag, Release, and Sync After Merge
After the PR is merged (either by the user or via
gh pr merge):
# Fetch the merge commit on main git fetch origin main # Tag the merge commit git tag vx.y.z origin/main git push origin vx.y.z # Create a GitHub Release from the tag (uses changelog content as release notes) gh release create vx.y.z --title "vx.y.z" --notes "{changelog section content without the ## header}" # Sync dev with main so both branches are identical git checkout dev git pull origin main git push origin dev
Important: This sync ensures dev has the merge commit from main. Without it, dev and main diverge. The CI
job only pushes the formula commit to dev — it does not bring the PR merge commit onto dev. This manualupdate-homebrewis what ensures dev has the merge commit.git pull origin main
The GitHub Release is distinct from the git tag — without it, the release won't appear on the repository's Releases page. Always create it.
If the user merges the PR themselves and comes back, still offer to tag, release, and sync.
Step 10: Wait for Release Workflow and Update Homebrew Formula
Note: The
CI job inupdate-homebrewruns automatically after the release job and handles the formula update + push to dev (part of Step 10). Step 11 (tap sync to.github/workflows/release.yml) is always manual. Check the Actions tab before running Step 10 manually.coleam00/homebrew-archon
After the tag is pushed,
.github/workflows/release.yml builds platform binaries and uploads them to the GitHub release. This takes 5-10 minutes. The Homebrew formula SHA256 values cannot be known until these binaries exist.
Wait for all assets to appear on the release:
echo "Waiting for release workflow to finish uploading binaries..." for i in {1..30}; do ASSET_COUNT=$(gh release view "vx.y.z" --repo coleam00/Archon --json assets --jq '.assets | length') # Expect 7 assets: 5 binaries (darwin-arm64, darwin-x64, linux-arm64, linux-x64, windows-x64.exe) + archon-web.tar.gz + checksums.txt if [ "$ASSET_COUNT" -ge 7 ]; then echo "All $ASSET_COUNT assets uploaded" break fi echo " Assets so far: $ASSET_COUNT/7 — waiting 30s (attempt $i/30)..." sleep 30 done if [ "$ASSET_COUNT" -lt 7 ]; then echo "ERROR: Release workflow did not finish uploading assets after 15 minutes" echo "Check https://github.com/coleam00/Archon/actions for the release workflow run" exit 1 fi
Fetch checksums.txt and extract SHA256 values:
TMP_DIR=$(mktemp -d) gh release download "vx.y.z" --repo coleam00/Archon --pattern "checksums.txt" --dir "$TMP_DIR" DARWIN_ARM64_SHA=$(awk '/archon-darwin-arm64$/ {print $1}' "$TMP_DIR/checksums.txt") DARWIN_X64_SHA=$(awk '/archon-darwin-x64$/ {print $1}' "$TMP_DIR/checksums.txt") LINUX_ARM64_SHA=$(awk '/archon-linux-arm64$/ {print $1}' "$TMP_DIR/checksums.txt") LINUX_X64_SHA=$(awk '/archon-linux-x64$/ {print $1}' "$TMP_DIR/checksums.txt") # Sanity check — all four must be present and non-empty for var in DARWIN_ARM64_SHA DARWIN_X64_SHA LINUX_ARM64_SHA LINUX_X64_SHA; do if [ -z "${!var}" ]; then echo "ERROR: $var is empty — checksums.txt may be malformed" cat "$TMP_DIR/checksums.txt" exit 1 fi done rm -rf "$TMP_DIR"
Update
in the main repo atomically with version AND SHAs:homebrew/archon.rb
Rewrite the formula file using the exact template below. Do NOT edit in place with sed — the whole file should be regenerated from this template so there is zero risk of partial updates.
cat > homebrew/archon.rb << EOF # Homebrew formula for Archon CLI # To install: brew install coleam00/archon/archon # # This formula downloads pre-built binaries from GitHub releases. # For development, see: https://github.com/coleam00/Archon class Archon < Formula desc "Remote agentic coding platform - control AI assistants from anywhere" homepage "https://github.com/coleam00/Archon" version "x.y.z" license "MIT" on_macos do on_arm do url "https://github.com/coleam00/Archon/releases/download/v#{version}/archon-darwin-arm64" sha256 "${DARWIN_ARM64_SHA}" end on_intel do url "https://github.com/coleam00/Archon/releases/download/v#{version}/archon-darwin-x64" sha256 "${DARWIN_X64_SHA}" end end on_linux do on_arm do url "https://github.com/coleam00/Archon/releases/download/v#{version}/archon-linux-arm64" sha256 "${LINUX_ARM64_SHA}" end on_intel do url "https://github.com/coleam00/Archon/releases/download/v#{version}/archon-linux-x64" sha256 "${LINUX_X64_SHA}" end end def install binary_name = case when OS.mac? && Hardware::CPU.arm? "archon-darwin-arm64" when OS.mac? && Hardware::CPU.intel? "archon-darwin-x64" when OS.linux? && Hardware::CPU.arm? "archon-linux-arm64" when OS.linux? && Hardware::CPU.intel? "archon-linux-x64" end bin.install binary_name => "archon" end test do # Basic version check - archon version should exit with 0 on success assert_match version.to_s, shell_output("#{bin}/archon version") end end EOF
Commit the formula update to main, then sync back to dev:
git checkout main git pull origin main git add homebrew/archon.rb git commit -m "chore(homebrew): update formula to vx.y.z" git push origin main # Sync dev with main so the formula update is on both branches git checkout dev git pull origin main git push origin dev
Step 11: Sync the Homebrew Tap Repo
The
coleam00/homebrew-archon repository hosts the actual tap formula that Homebrew reads when users run brew tap coleam00/archon && brew install coleam00/archon/archon. The file coleam00/Archon/homebrew/archon.rb is the source-of-truth template; the file coleam00/homebrew-archon/Formula/archon.rb is what users actually install from. These must be kept in sync.
TAP_DIR=$(mktemp -d) git clone git@github.com:coleam00/homebrew-archon.git "$TAP_DIR" cp homebrew/archon.rb "$TAP_DIR/Formula/archon.rb" cd "$TAP_DIR" if git diff --quiet; then echo "Tap formula already matches — no sync needed" else git add Formula/archon.rb git commit -m "chore: sync formula to vx.y.z" git push origin main fi cd - rm -rf "$TAP_DIR"
If the
git clone fails with a permissions error, the user running the release skill does not have push access to coleam00/homebrew-archon. Ask them to request push access from the repo owner, or to perform the sync manually via the GitHub web UI. Do not skip this step silently — the release is not complete until the tap is synced.
Step 12: Verify the Release End-to-End
After the formula is synced, the final verification step is to actually install the released binary via Homebrew and run smoke tests. Use the
test-release skill:
/test-release brew x.y.z
This will:
- Install via
brew tap coleam00/archon && brew install coleam00/archon/archon - Verify the binary reports the correct version and
Build: binary - Verify bundled workflows load
- Verify the SDK spawn path works (a minimal assist workflow)
- Verify the env-leak gate is active (if shipped in this release)
- Uninstall cleanly
- Produce a PASS/FAIL report
If
fails, the release is not ready to announce. File a hotfix issue for whatever broke, cut /test-release brew
x.y.z+1 with the fix, and re-run this skill. Do NOT advertise a release that fails test-release.
Also run
/test-release curl-mac x.y.z to cover the curl install path. The two install paths test slightly different things (Homebrew tests the tap formula, curl tests install.sh and checksums from the release) and both need to work for users to have a reliable install experience.
If you have a VPS available, also run
/test-release curl-vps x.y.z <vps-target> to verify the Linux binary.
Important Rules
- NEVER force push
- NEVER skip the review step — always show the changelog before committing
- NEVER include "Co-Authored-By: Claude" or any AI attribution in the commit
- NEVER add emoji to changelog entries unless the user asks
- If the user says "ship it" without specifying bump type, default to patch
- The commit message is just
— clean and simpleRelease x.y.z - NEVER update
version field without also updating thehomebrew/archon.rb
values. They must move together atomically. The correct SHAs only exist after the release workflow finishes building binaries — see Step 10. Updating the version field alone produces a stale formula that looks valid but causes checksum mismatches on install.sha256 - NEVER skip Step 11 (tap sync). The
file is only a template; users install fromcoleam00/Archon/homebrew/archon.rb
. If you update one without the other, users get stale or wrong data.coleam00/homebrew-archon/Formula/archon.rb - NEVER announce a release that failed
. A release that installs but crashes on first invocation is worse than no release — it burns user trust. If the release verification fails, cut a hotfix before telling anyone the release exists./test-release brew