I shipped ap v2.96.0 on 2026-12-05. The repo is github.com/xgbtxy/ap, MIT licensed. The main change is a new plugin/ directory: a self-contained Antigravity plugin bundle. It validates cleanly with agy plugin validate plugin/ --strict --json, returning findings: [] and reporting mcpServers: 1, hooks: 1, rules: 1, skills: 1. This post is about what went into it and the decisions behind the layout.
1. What a bundle contains
The bundle is deliberately flat and readable. plugin/plugin.json is the manifest, with plugin/assets/logo.svg next to it. plugin/mcp_config.json starts the MCP server as ap mcp --profile core. plugin/hooks.json wires up a single SessionStart hook, and plugin/scripts/session-boot.mjs is the script it runs. plugin/rules/AGENTS.md holds the rules, and plugin/skills/ap-primitives/SKILL.md holds the one skill.
Installation is one command either way: plugin/install.ps1 on Windows and plugin/install.sh elsewhere. Both accept -DryRun / --dry-run, so you can see what would be copied before anything touches disk. I added the dry-run flags because an installer that writes into a tool's config directory should be inspectable first.
2. Why a zero-dependency SessionStart hook
The hook is a single .mjs file with no dependencies. It takes a snapshot of the repo at session start and hands that context to the agent. I kept it dependency-free on purpose. A hook runs before anything else in the session, so if it needs a package install or a native build step, a broken environment turns into a broken session with a confusing error. A plain module with no imports beyond the standard library is the smallest thing that can fail.
Cross-OS was the other constraint. The same script has to work on Windows and on Unix-like systems without branching into two implementations. Keeping it to standard library APIs made that tractable, and it means the hook has nothing to audit beyond the file itself.
3. A core MCP profile instead of everything
ap mcp --profile core is what the bundle launches. The toolkit has more surface than a default session needs, and exposing all of it at startup makes the tool list noisy and the first turn slower. The core profile is the smaller subset intended for starting work, without the rest.
This is a judgment call, not a measurement. If the core profile turns out too thin in practice, the fix is a config change in mcp_config.json, not a code change, which is part of why I put the profile name in the bundle rather than hardcoding a default.
4. ap-winjob aliases
Separately, the ap-winjob CLI picked up --max-mem-mb and --max-ram-mb as aliases for --memory-limit-mb. Same flag, three spellings. I kept the original as canonical and added the shorter aliases for convenience. The unit tests cover 51 of 51 cases.
5. Verification
Before tagging, I ran the usual gates:
cargo fmt --all -- --check: PASScargo clippy --workspace --all-targets -- -D warnings: 0 warningscargo test --workspace: 361 passed, 0 failed
The plugin bundle itself was checked with the strict validator above, which is the check that matters most for this release since the bundle is the new artifact.
What I am unsure about
- I have not tested the bundle against a wide range of Antigravity versions. The strict validator passes on the version I used, but I do not know how much the manifest and hook schema drift between releases.
- The core MCP profile is my guess at a sensible default. I have no data on whether most users want more or less exposed at session start, and the right split may differ by project type.
Links
我觉得技术没有壁垒,在合适的时间做合适的事情就好,hhh