This file provides guidance to Gemini-based AI tools (including Antigravity) when working with code in this repository.
This is the Modernize framework - a production-validated system providing protocols, specialized agents, and automation for systematic AI-assisted software modernization and development. The framework supports a complete workflow: assess → plan → execute → improve.
Key Characteristics:
- Protocol-driven architecture where each workflow is a comprehensive protocol document
- Multi-agent coordination system with 6 specialized agents
- Originally created for .NET Framework migrations but universally applicable
- Emphasizes continuous improvement through retrospective analysis
CRITICAL: This repository maintains two parallel implementations that MUST stay in sync:
| Platform | Directory | Guidance File |
|---|---|---|
| Antigravity | .agent/ |
GEMINI.md (this file) |
| Claude Code | plugins/ |
CLAUDE.md |
When modifying any workflow, rule, or protocol:
- Always update BOTH versions - Changes to one must be mirrored to the other
- Check the mapping:
.agent/workflows/*.md↔plugins/autocoder/commands/*.md.agent/rules/*.md↔plugins/modernize/agents/*.md
- Verify parity after changes: Both should have identical functionality
- Test both platforms if possible before committing
Key parallel files:
| Workflow | Antigravity | Claude Code |
|---|---|---|
/improve-test-coverage |
.agent/workflows/improve-test-coverage.md |
plugins/autocoder/commands/improve-test-coverage.md |
/fix |
.agent/workflows/fix.md |
plugins/autocoder/commands/fix.md |
/fix-loop |
.agent/workflows/fix-loop.md |
plugins/autocoder/commands/fix-loop.md |
/monitor-workers |
.agent/workflows/monitor-workers.md |
plugins/autocoder/commands/monitor-workers.md |
/monitor-loop |
.agent/workflows/monitor-loop.md |
plugins/autocoder/commands/monitor-loop.md |
/full-regression-test |
.agent/workflows/full-regression-test.md |
plugins/autocoder/commands/full-regression-test.md |
/review-blocked |
.agent/workflows/review-blocked.md |
plugins/autocoder/commands/review-blocked.md |
/install |
.agent/workflows/install.md |
plugins/autocoder/commands/install.md |
Key parallel scripts:
| Script | Antigravity | Claude Code |
|---|---|---|
start-parallel-agents.sh |
.agent/scripts/start-parallel-agents.sh |
plugins/autocoder/scripts/start-parallel-agents.sh |
join-parallel-agents.sh |
.agent/scripts/join-parallel-agents.sh |
plugins/autocoder/scripts/join-parallel-agents.sh |
fetch-blocked-issues.sh |
.agent/scripts/fetch-blocked-issues.sh |
plugins/autocoder/scripts/fetch-blocked-issues.sh |
add-blocking-label.sh |
.agent/scripts/add-blocking-label.sh |
plugins/autocoder/scripts/add-blocking-label.sh |
approve-blocked-issue.sh |
.agent/scripts/approve-blocked-issue.sh |
plugins/autocoder/scripts/approve-blocked-issue.sh |
reject-blocked-issue.sh |
.agent/scripts/reject-blocked-issue.sh |
plugins/autocoder/scripts/reject-blocked-issue.sh |
Available workflows in .agent/workflows/:
# 1. Assessment - Evaluate modernization readiness
/assess
# Output: ASSESSMENT.md with viability analysis across 8 dimensions
# 2. Planning - Create detailed execution strategy
/plan
# Output: PLAN.md with phase breakdown, timeline, resource allocation
# 3. Execution - Orchestrate multi-agent modernization
/modernize
# Coordinates 6 specialist agents through 7 phases# 4. Retrospective - Analyze project history for improvements
/retro
# Output: IMPROVEMENTS.md with 3-5 evidence-based recommendations
# 5. Apply Improvements - Implement retrospective findings
/retro-apply
# Updates workflows, protocols, and automation based on IMPROVEMENTS.md# Autonomous issue resolution
/fix
# Continuous issue resolution loop
/fix-loop
# Test coverage improvement
/improve-test-coverage
# Full regression testing
/full-regression-testRecommended Workflow: /assess → /plan → /modernize → /retro → /retro-apply
.agent/
├── README.md # Configuration overview
├── protocols/ # Agent behavior protocols
│ ├── adr-lifecycle.md # ADR lifecycle (7 stages)
│ ├── testing-protocol.md # 6-phase testing protocol
│ └── ... # Other protocols
├── rules/ # Agent-specific rules
│ ├── architect.md # Architect agent rules
│ ├── coder.md # Coder agent rules
│ ├── tester.md # Tester agent rules
│ └── ... # Other agent rules
├── workflows/ # Executable workflows
│ ├── fix.md # Autonomous issue resolution
│ ├── improve-test-coverage.md # Coverage improvement
│ └── ... # Other workflows
└── scripts/
└── append-to-history.sh # Log to HISTORY.md
6 Specialized Agents work together through protocol-defined coordination:
- Migration Coordinator - Strategic oversight, agent coordination
- Security Agent - CVE scanning, vulnerability remediation
- Architect Agent - Technology decisions, ADR creation
- Coder Agent - Implementation and migration
- Tester Agent - 6-phase testing protocol
- Documentation Agent - HISTORY.md logging, guides
- Security: Score ≥45/100 before migration starts
- Build: 100% success before next stage
- Tests: 100% pass rate before proceeding
- Issues: All P0/P1 resolved before release
This repository uses a persistent test-coverage.md report for efficient coverage tracking:
- Location:
test-coverage.mdin project root - Purpose: Track coverage by functional area without re-running full analysis
- Update: After adding tests, update the relevant section
- Refresh: Use
/improve-test-coverage --refreshto regenerate
All code changes must pass:
- Unit Tests
- Integration Tests
- Build Tests
- Smoke Tests
- Security Tests
- Performance Tests
Location: .agent/protocols/testing-protocol.md
All agent work is logged to HISTORY.md using:
./.agent/scripts/append-to-history.sh "<title>" "<details>" "<context>" "<impact>"Antigravity supports parallel agent coordination through git worktrees and workspace management:
Start parallel agents:
bash .agent/scripts/start-parallel-agents.sh [num_agents]
# Creates worktrees, generates config, attempts to launch AntigravityJoin existing session:
bash .agent/scripts/join-parallel-agents.sh
# Reads config, shows status, attempts to reopen workspacesHow it works:
- Creates N-1 git worktrees (one coordinator stays in main repo)
- Detects if
.agent/is a symlink and replicates to each worktree - Generates
.agent/parallel-workspaces.jsonwith workspace config - Attempts to launch Antigravity and open workspaces
- Agents coordinate through GitHub issues and labels (working, needs-approval, P0-P3, etc.)
Key difference from Claude Code:
- No
CLAUDE_CODE_TASK_LIST_IDenvironment variable - Coordination is purely through GitHub API (labels, comments)
- No tmux - uses Antigravity GUI workspace model
Use /install workflow to install framework into target projects:
Option 1: Symlink (Recommended)
- Stays updated with framework improvements
git pullin framework repo updates all linked projects- Symlinks automatically replicated to worktrees by
start-parallel-agents.sh
Option 2: Copy (Custom)
- Independent snapshot for customization
- No automatic updates
- Full control over protocols/rules
- MADR 3.0.0: https://adr.github.io/madr/ - ADR format specification
- Keep a Changelog: https://keepachangelog.com/ - CHANGELOG format
- Repository: https://github.com/laird/agents
- Antigravity Docs: See
docs/ANTIGRAVITY.md