Skip to content

Non-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.

3.6 KB
Raw Blame

Contributing to agy-fast

Thanks for contributing! agy-fast uses a protected main + dev branching model so main stays releasable and safe for one-command installers (install.sh / install.ps1) and direct git clone users.

Branching Model

Branch Role Protection
main Stable released code only (vX.Y.Z tags) Protected: PR + passing Linux/macOS/Windows CI & stress benchmark required; no direct push, force-push, or deletion
dev Active integration branch for upcoming releases Protected against deletion & force-push; default target for feature/fix PRs and Dependabot
feat/*, fix/*, docs/* Short-lived topic branches branched from dev Automatically deleted after PR merge
hotfix/* Urgent production fixes branched from main PR into main, then back-merged into dev

Submitting a Pull Request

  1. Branch off dev:
    git checkout dev
    git pull origin dev
    git checkout -b fix/your-topic
    
  2. Make your edits and rebuild the bundled runtime outputs if you touched src/:
    npm run typecheck
    npm run build
    npm test
    
    If you also changed plugin.json, mcp_config.json, hooks.json, or rules/AGENTS.md, run:
    npm run validate
    
  3. Open a PR targeting dev. CI will automatically verify Linux, macOS, and Windows (verify (ubuntu-latest, Node 20/22/24), verify (macos-latest, Node 20/22/24), verify (windows-latest, Node 20)), dist/ bundle freshness, install.sh syntax, install.ps1 PowerShell AST validation, and the 11-scenario stress suite (stress).

Release Flow (Maintainers)

  1. On dev, bump version in package.json, package-lock.json, plugin.json, and SERVER_VERSION in src/mcp-server-core.ts, add the ## [X.Y.Z] - YYYY-MM-DD section to CHANGELOG.md, run npm run typecheck && npm run build && npm test && npm run validate && npm run bench:stress, and commit.
  2. Open a Release PR from dev → main and wait for all CI checks (verify (ubuntu-latest, Node 20/22/24), verify (macos-latest, Node 20/22/24), verify (windows-latest, Node 20), and stress) to pass.
  3. Merge using Create a merge commit (avoid Squash on dev → main so branch history stays aligned), pull the merged main, and push a signed/annotated tag vX.Y.Z:
    git checkout main && git pull origin main
    git tag -s vX.Y.Z -m "Release vX.Y.Z" && git push origin vX.Y.Z
    
    (Use -a if GPG/SSH signing is not yet configured; -s is strongly recommended.) Pushing vX.Y.Z automatically triggers .github/workflows/release.yml, which verifies the tag is on main, checks version parity across package.json, package-lock.json, plugin.json, and src/mcp-server-core.ts, runs tests & dist/ freshness checks, generates SHA256SUMS.txt + SLSA build provenance attestations (actions/attest-build-provenance), extracts notes from CHANGELOG.md, and publishes the GitHub Release (tags matching v* are protected against deletion/mutation once pushed).
  4. Zero-token npm Trusted Publishing (optional OIDC automation): To have release.yml automatically publish stable tags to npmjs with --provenance (no long-lived npm tokens stored in GitHub Secrets), configure INK-Q/agy-fast → .github/workflows/release.yml under Trusted Publisher on npmjs.com for package agy-fast, then set the repository variable NPM_TRUSTED_PUBLISHING=true.
  5. Fast-forward/sync dev with main (git checkout dev && git merge main && git push origin dev) so the next release cycle stays conflict-free.