Skip to content

feat(cli): emit antigravity agents as portable .agents/agents/<name>/agent.md - #960

Draft
tkman59 wants to merge 1 commit into
feat/511-antigravity-memory-hookfrom
feat/511-antigravity-agents
Draft

tkman59 wants to merge 1 commit into
feat/511-antigravity-memory-hookfrom
feat/511-antigravity-agents

Conversation

@tkman59

@tkman59 tkman59 commented Oct 5, 2026

Copy link
Copy Markdown

🎯 What & why

aidd setup --ai antigravity now installs AIDD's agents where agy discovers them. Phase 4 of #511, stacked on #958.

🛠️ How it works

  • Path. build.ts writes each plugin agent to .agents/agents/<plugin>-<agent>/agent.md. That nested layout is the one agy documents; AIDD never writes <name>.md. Body links are resolved from the nested directory.

  • Frontmatter rebuilt, not copied. portable-agent.ts is meant to be reused by feat(cli): emit portable Markdown agents under .agents/agents #916 for Codex flat and Kimi. It keeps:

    • name;
    • the source description (a blank one throws InvalidAgentFrontmatterError, naming the agent);
    • model: inherit;
    • tools as a YAML list, only when the source declares tools.

    Every other key is dropped.

  • Why rebuild. Measured on agy 1.2.17 with /agents: an agent with model: opus and one with tools: view_file, grep_search are both absent from the list, without any error. An agent with no tools, 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 file agy would drop. setup takes the built-tree route, which reads this artifact. The plan is updated to match.

  • Bundle budget 734 → 742 KB. Measured with tsup:

    Branch Bundle
    next 727.1 KB
    feat(cli): add Antigravity CLI as a flat host for skills #957 729.4 KB
    feat(cli): merge plugin hooks into antigravity's .agents/hooks.json #958 732.8 KB
    this PR 734.5 KB

    The 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.
  • Golden: only antigravity:flat moves, with 4 fixture agents at .agents/agents/<name>/agent.md.
  • Live, 2026-10-05, agy 1.2.17, fresh git repo:
    1. aidd setup --source local --path <framework> --ai antigravity --plugins recommended --yes writes .agents/agents/aidd-dev-{checker,executor}/agent.md, recorded in .aidd/manifest.json.
    2. agy --add-dir <repo> --output-format json -p "/agents" exits 0 with "agents":["aidd-dev-checker","aidd-dev-executor"]. The invented name aidd-dev-ghost is absent.
    3. aidd clean --force removes them, and .agents/ is gone.

⚠️ Heads-up

🔗 Linked issue

Refs #511, #916

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

🤖 Generated with Claude Code

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant