Repository navigation
Conversation
Antigravity now receives the aidd-context memory hook. Setup and plugin
install merge each plugin's hooks into .agents/hooks.json under one key
named after the plugin, copy its scripts under .agents/hooks/<plugin>/,
and clean removes that key alone, deleting the file only when empty.
The project-hooks route Cursor used is generalised: a tool declares a
ProjectHooksFormat beside hooksDestination "project", now allowed in flat
mode too, and the installer and uninstaller read only that. Cursor's
behaviour is unchanged. An unparsable project hooks file now stops the
install with the file named.
agy 1.2.17 rejects Claude's nested { hooks: [...] } groups and runs a
workspace hook from <repo>/.agents through a shell, so each command is
prefixed with "cd .. && "; events other than SessionStart are skipped
with a warning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
aidd setup --ai antigravitynow installs the AIDD memory hook:agyrefreshes the project memory at session start. Phase 3 of #511, stacked on #957.🛠️ How it works
aidd-contextplugin, not throughHooksCapability. Codex'sHooksCapabilityis never fed: nocodex-hooksconfig ref exists, so copying it would have written nothing. Antigravity uses the project-hooks route Cursor already had, with idempotent merge, per-entry provenance and safe clean.ProjectHooksFormatbesidehooksDestination: "project", which flat mode may now declare too.project-hooks-materializer.tsandremove-project-hooks.tsread only that format, with no Cursor import left. Cursor's suites pass with no assertion changed.antigravity-hooks.ts):SessionStart;.agents/hooks/<plugin>/;cd .. &&;translate --to antigravity --as flatuses the same merge function;hooksMergenow receives the plugin name.agy1.2.17, with an interactive session under a pty (script -q /dev/null agy -i … --add-dir <ws>). In print mode the model is never called, so no hook fires.[{ "hooks": [...] }]is rejected:invalid hook "aidd-probe": command hook must specify 'command'.<repo>/.agents, through a shell. A probe hook logged"cwd":".../agy-cwd-probe/.agents"with"workspacePaths":[".../agy-cwd-probe"]. Withcd .. &&, the marker readAIDD-MEMORY-MARKER cwd=<repo> docs=true..agents/hooks.jsonnow stops the install with the file named (.agents/hooks.json is not valid JSON (…); left untouched.), for Cursor too.🧪 How to verify
cd cli && pnpm test: 6835 passed, 1 skipped.pnpm smoke: 144 passed, 0 failed.aidd_docs/memory/andAGENTS.mdcarrying the memory markers):aidd setup --source local --path <framework> --ai antigravity --plugins recommended --yeswrites.agents/hooks.jsonwith theaidd-contextkey and.agents/hooks/aidd-context/update_memory.js.lint, then run setup again:.agents/hooks.jsonis byte-identical.script -q /dev/null agy -i "reply OK" --add-dir <repo>logsloaded 2 named hooks from 1 hooks.json file(s), andAGENTS.mdat the repo root gains the memory list.aidd clean --forceleaves.agents/hooks.jsonholding onlylint, and removes.agents/hooks/.antigravity:flatcell moved (.agents/hooks.jsonand the copied script).HooksCapabilityandmergeCodexHooksJsonare dead code.🔗 Linked issue
Refs #511
✅ I certify
🤖 Generated with Claude Code