Repository navigation
Conversation
…agent.md Antigravity's flat build now writes each plugin agent to .agents/agents/<plugin>-<agent>/agent.md, the nested layout agy documents, with its links resolved from that directory. The frontmatter is rebuilt rather than copied, by a builder Codex flat and Kimi can reuse: name, the source description, model: inherit, and tools as a YAML list when declared. agy 1.2.17 silently drops an agent whose model is opus or whose tools is a comma string. A blank description stops the build with the agent named. The profile declares no AgentsCapability: that would also enable the raw fallback route, which copies Claude frontmatter verbatim. The bundle budget moves to 742 KB, measured at 734.5 KB. 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 AIDD's agents whereagydiscovers them. Phase 4 of #511, stacked on #958.🛠️ How it works
Path.
build.tswrites each plugin agent to.agents/agents/<plugin>-<agent>/agent.md. That nested layout is the oneagydocuments; AIDD never writes<name>.md. Body links are resolved from the nested directory.Frontmatter rebuilt, not copied.
portable-agent.tsis meant to be reused by feat(cli): emit portable Markdown agents under .agents/agents #916 for Codex flat and Kimi. It keeps:name;description(a blank one throwsInvalidAgentFrontmatterError, naming the agent);model: inherit;toolsas a YAML list, only when the source declares tools.Every other key is dropped.
Why rebuild. Measured on
agy1.2.17 with/agents: an agent withmodel: opusand one withtools: view_file, grep_searchare both absent from the list, without any error. An agent with notools, or with Claude tool names in a YAML list, is listed.No
AgentsCapability. That capability would also enable the raw fallback route (flatSectionFile), which copies Claude frontmatter to.agents/agents/<plugin>/<file>.md, a fileagywould drop.setuptakes the built-tree route, which reads this artifact. The plan is updated to match.Bundle budget 734 → 742 KB. Measured with tsup:
nextThe raise is recorded in
check-bundle-size.mjs, with 1.0% headroom.🧪 How to verify
cd cli && pnpm test: 6844 passed, 1 skipped.pnpm smoke: 144 passed, 0 failed.antigravity:flatmoves, with 4 fixture agents at.agents/agents/<name>/agent.md.agy1.2.17, fresh git repo:aidd setup --source local --path <framework> --ai antigravity --plugins recommended --yeswrites.agents/agents/aidd-dev-{checker,executor}/agent.md, recorded in.aidd/manifest.json.agy --add-dir <repo> --output-format json -p "/agents"exits 0 with"agents":["aidd-dev-checker","aidd-dev-executor"]. The invented nameaidd-dev-ghostis absent.aidd clean --forceremoves them, and.agents/is gone.AIDD_PORTABLE_AGENT_OKexecution marker is left to feat(cli): emit portable Markdown agents under .agents/agents #916.modelback to the source value fails the model test; computing links from a non-nested path fails the body test.nameat another path.🔗 Linked issue
Refs #511, #916
✅ I certify
🤖 Generated with Claude Code