HL β TFW-30: Antigravity Adapter Audit¶
Date: 2026-04-09 Author: Coordinator (Antigravity session) Status: π HL_DRAFT β Awaiting review
1. Vision¶
The Antigravity adapter is fully aligned with TFW: workflows compose cleanly, Skills provide progressive disclosure for templates/context, and Planning Mode is either harmonized or explicitly controlled β no silent conflicts. The adapter is the reference implementation, not an afterthought.
Impact: Agents in Antigravity follow TFW protocols without wasted tokens, hidden artifacts, or broken context loading. Users get predictable behavior across all TFW tools.
"I run
/tfw-planin Antigravity and the agent does exactly what it does in Claude Code β same quality, same traces, no surprises."
2. Current State (As-Is)¶
Adapter structure¶
.agent/
βββ rules/
β βββ agents.md (AGENTS.md duplicate β always-on)
β βββ tfw.md (always-on, context loading pointer)
βββ workflows/
βββ tfw-plan.md (FULL COPY of .tfw/workflows/plan.md)
βββ tfw-handoff.md (FULL COPY)
βββ tfw-research.md (FULL COPY)
βββ tfw-review.md (FULL COPY)
βββ tfw-resume.md (FULL COPY)
βββ tfw-docs.md (FULL COPY)
βββ tfw-knowledge.md (FULL COPY)
βββ tfw-config.md (FULL COPY)
βββ tfw-release.md (FULL COPY)
βββ tfw-update.md (FULL COPY)
βββ tfw-init.md (FULL COPY)
βββ tfw-task.md (meta-workflow)
Quantified problems¶
| Problem | Evidence | Impact |
|---|---|---|
| 12 full-copy workflows | .agent/workflows/ = copies of .tfw/workflows/ |
Drift guaranteed on any update. Adapter README still says cp research.md (wrong path since TFW-22) |
| Skills = unused | No .agent/skills/ folder exists |
Zero progressive disclosure β all context loaded always-on via rules |
| Planning Mode conflict | Antigravity system prompt enforces implementation_plan.md β task.md β walkthrough.md |
TFW has HL/TS/RF. Empirical data: 105 conversations, 54 planning artifacts created. 0 artifacts in TFW-specific sessions (c22231b1, 530041c1, b54e04b8). TFW rules suppress Planning Mode silently |
| No GEMINI.md | Only AGENTS.md + tfw.md in .agent/rules/ |
Miss the highest-priority rule slot that Antigravity provides |
| No turbo annotations | None of the 12 workflows use // turbo |
Safe read-only steps (context loading, file reading) require manual approval |
| No workflow composition | Workflows don't use Call /other-workflow |
tfw-task.md mentions it conceptually but doesn't use proper syntax |
Planning Mode β empirical analysis¶
Total conversations: 105
Planning artifacts found: 54 (impl_plan: 12, task: 32, walkthrough: 10)
Artifact rate: 51%
TFW-specific sessions checked: 3 (consistency audit conversations)
Planning artifacts in TFW: 0 (0%)
Current session (TFW active): 0 artifacts created
Inversion: what would happen WITHOUT TFW rules?
β Antigravity would create implementation_plan.md for complex tasks, task.md for tracking, walkthrough.md for summaries. This is a useful built-in capability that TFW rules silently suppress.
Inversion Analysis: Where TFW Hurts in Antigravity¶
| What TFW does | What Antigravity expects | Conflict |
|---|---|---|
| Rules load conventions.md, glossary.md at session start | Progressive disclosure: load heavy context only when needed | Token waste on every session, even for simple questions |
12 copied workflows in .agent/workflows/ |
Workflows should be self-contained or reference canonical sources | Drift. tfw-update must re-copy 12 files β fragile |
HL/TS/RF written to tasks/ folder on disk |
Planning artifacts written to brain/<conv-id>/ |
Parallel systems. Double bookkeeping if both active |
| Role Lock (Coordinator can't write code) | Planning Mode blocks code during planning | Compatible β actually aligned |
| No skills | Skills = progressive disclosure mechanism | Missed optimization: templates could be skills |
3. Target State (To-Be)¶
3.1 Result Visualization¶
BEFORE (current): AFTER (target):
.agent/ .agent/
βββ rules/ βββ rules/
β βββ agents.md (always-on) β βββ agents.md (always-on)
β βββ tfw.md (always-on) β βββ tfw.md (always-on, lighter)
βββ workflows/ βββ skills/
βββ tfw-plan.md β FULL COPY β βββ tfw-conventions/
βββ tfw-handoff.md β FULL COPY β β βββ SKILL.md (auto: when TFW task)
βββ tfw-research.mdβ FULL COPY β βββ tfw-templates/
βββ tfw-review.md β FULL COPY β βββ SKILL.md (auto: when writing HL/TS/RF)
βββ ...11 more copies... βββ workflows/
βββ tfw-task.md βββ tfw-plan.md β THIN ADAPTER
βββ tfw-handoff.md β THIN ADAPTER
βββ tfw-research.md β THIN ADAPTER
βββ tfw-review.md β THIN ADAPTER
βββ tfw-resume.md β THIN ADAPTER
βββ tfw-docs.md β THIN ADAPTER
βββ tfw-knowledge.mdβ THIN ADAPTER
βββ tfw-config.md β THIN ADAPTER
βββ tfw-release.md β THIN ADAPTER
βββ tfw-update.md β THIN ADAPTER
βββ tfw-init.md β THIN ADAPTER
βββ tfw-task.md β META (uses Call)
Thin adapter pattern (each ~15 lines):
ββββββββββββββββββββββββββββββββββββ
β --- β
β description: TFW Plan β ... β
β --- β
β π ROLE LOCK: COORDINATOR β
β β
β // turbo β
β 1. Read [`.tfw/workflows/plan.md`](../../reference/workflows/plan.md) β
β 2. Follow ALL steps exactly β
β 3. Read referenced templates β
β from `.tfw/templates/` β
β β
β Source of truth: β
β [`.tfw/workflows/plan.md`](../../reference/workflows/plan.md) β
ββββββββββββββββββββββββββββββββββββ
Planning Mode strategy:
βββββββββββββββββββββββββββββββββββββββββββββββ
β Antigravity Planning Mode vs TFW β
β β
β Option A: Suppress (current β silent) β
β Option B: Harmonize (map HLβplan, TSβtask) β
β Option C: Coexist (let both run) β
β β
β β Needs RESEARCH to decide β
βββββββββββββββββββββββββββββββββββββββββββββββ
4. Phases¶
Phase A: Core Adapter Refactor π΄¶
- Convert 12 full-copy workflows to thin adapters
- Add
// turboannotations to safe read-only steps - Validate that
/tfw-plan,/tfw-handoffetc. still work correctly - Update
.tfw/adapters/antigravity/README.mdto reflect new pattern
Phase B: Skills Integration π‘¶
- Create
tfw-conventionsskill (auto-activate on TFW task context) - Create
tfw-templatesskill (auto-activate when writing HL/TS/RF/ONB/REVIEW) - Lighten always-on rules (remove heavy context loading)
- Test progressive disclosure: verify skills activate correctly
Phase C: Planning Mode Strategy π‘¶
- RESEARCH: test Planning Mode interaction empirically
- Decide: suppress / harmonize / coexist
- Implement chosen strategy via rules or workflow adjustments
- Document the decision as Architecture Decision
5. Definition of Done (DoD)¶
- β
1. All 12 workflows are thin adapters (β€20 lines each), pointing to
.tfw/workflows/ - β 2. At least 1 skill created and demonstrably auto-activating
- β 3. Planning Mode interaction documented as Architecture Decision (D36+)
- β
4.
// turboon context-loading steps in all workflows - β
5.
.tfw/adapters/antigravity/README and templates updated - β
6. No regression:
/tfw-planstill produces HL artifact correctly
6. Definition of Failure (DoF)¶
- β 1. Thin adapters don't trigger workflow reading (agent ignores
Read .tfw/workflows/plan.md) - β 2. Skills don't auto-activate in practice (description matching fails)
- β 3. Planning Mode creates duplicate/conflicting artifacts alongside TFW artifacts
On failure: Revert to full-copy pattern for failed items, document findings as Architecture Decision.
7. Principles¶
- Single Source of Truth β
.tfw/workflows/is canonical; adapters reference, never copy - Progressive Disclosure β load context when needed, not everything always-on
- Empirical over theoretical β test each change in live Antigravity session before committing
- Graceful degradation β if a feature doesn't work (Skills, turbo), fall back to known-working pattern
9. Risks¶
| Risk | Probability | Impact | Mitigation |
|---|---|---|---|
| Thin adapters fail β agent doesn't read referenced file | Medium | High | Test with one workflow first (tfw-plan). If fails β full copy with header-only diff |
| Skills don't match β never auto-activate | Medium | Medium | Use explicit @mention fallback + broad description |
| Planning Mode can't be controlled via rules | Low | Medium | Document as known limitation; coexist pattern |
| turbo annotations cause unsafe auto-runs | Low | High | Only annotate read-only steps (view_file, list_dir) |
10. RESEARCH Case¶
Blind Spots¶
- Whether Antigravity actually reads files referenced in thin workflow adapters (or ignores indirection)
- Whether Skills auto-activation is reliable enough for heavy-context files like conventions.md
- How Planning Mode artifacts interact with TFW artifacts when both are active
- Whether
Call /other-workflowactually works for workflow composition
Hypotheses¶
| # | Hypothesis | Status |
|---|---|---|
| H1 | Thin adapter workflows (15 lines + "Read .tfw/workflows/plan.md") will cause the agent to read and follow the canonical workflow | open |
| H2 | Skills with broad descriptions (e.g., "Use when working on a TFW task") will auto-activate reliably | open |
| H3 | TFW rules suppress Antigravity Planning Mode (implementation_plan/task/walkthrough creation) | confirmed β empirical: 0/3 TFW sessions created planning artifacts |
| H4 | // turbo annotations on context-loading steps will correctly auto-run read-only commands |
open |
| H5 | Call /other-workflow syntax works for composing workflows (e.g., tfw-task calls tfw-plan) |
open |
Risks of Not Researching¶
- We implement thin adapters and they don't work β agents produce empty/confused output
- We add Skills and they never activate β added complexity with zero benefit
- We don't understand Planning Mode interaction β users get confused by hidden artifacts
Proposed RESEARCH Focus¶
- Gather: Test thin adapter pattern with 1 workflow (tfw-plan). Does the agent read the referenced file?
- Extract: Create 1 test skill, observe auto-activation behavior
- Challenge: Can Planning Mode be explicitly controlled via rules? What happens when both TFW and Planning Mode are active?
Why Not Just...?¶
- Why not keep full copies? β Proven drift problem.
tfw-updatemust copy 12 files. Already broken (research.md path). - Why not skip Skills entirely? β Progressive disclosure = proven pattern (D25). conventions.md is 327 lines loaded on every session β wasteful.
- Why not disable Planning Mode? β It might be useful for non-TFW tasks. Controlling > disabling.
11. Strategic Session Insights¶
| # | Insight | Category | Source |
|---|---|---|---|
| S1 | User suspects TFW rules suppress Planning Mode: "I often see that it doesn't create [planning artifacts], maybe only creates them without TFW" | process | User, direct observation |
| S2 | User preference: control > disable. "I'd rather turn it off if possible, but you're right, we need to take control" | philosophy | User, planning session |
| S3 | User values inversion thinking as analysis tool | convention | User, explicit request |
| S4 | Task is primarily research-focused: "the task was to investigate, just a question of whether we use everything" | stakeholder | User, scope clarification |
HL β TFW-30: Antigravity Adapter Audit | 2026-04-09