Extracted system prompts from Antigravity (Google's VS Code fork with AI capabilities).
This repository contains system prompts and instructions that power Antigravity's AI agent. These prompts define:
- Agent Identity & Behavior: How the AI presents itself and interacts
- Workflow Modes: PLANNING, EXECUTION, and VERIFICATION phases
- Knowledge Management: Persistent memory via Knowledge Items (KI)
- Task Tracking: Structured task management with artifacts
- Tool Usage: Available tools and how to use them
antigravity_prompts/
├── prompts/
│ ├── planning-mode.txt # Full system prompt (agentic mode)
│ ├── Fast Prompt.txt # Simplified system prompt
│ ├── modes.md # PLANNING/EXECUTION/VERIFICATION modes
│ ├── knowledge_items.md # Knowledge Items (KI) system
│ ├── task.md # Task management with checklists
│ ├── implementation_plan.md # Implementation plan artifact format
│ └── walkthrough.md # Walkthrough artifact format
├── CLAUDE.md # Project documentation
├── REVERSE_ENGINEERING.md # Extraction methodology
└── README.md
The complete agentic system prompt (~600 lines) containing:
- Identity: "You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team"
- User Information: Workspace paths, OS details, access restrictions
- Agentic Mode: Task boundary system for complex multi-step work
- Mode Descriptions: PLANNING, EXECUTION, VERIFICATION phases
- Artifact System: task.md, implementation_plan.md, walkthrough.md
- Tool Definitions: 25+ tools including browser_subagent, codebase_search, run_command, etc.
- Web Development Guidelines: Tech stack, design aesthetics, SEO best practices
- Workflows: Custom workflow system via
.agent/workflows/*.md - Communication Style: GitHub markdown formatting, proactiveness guidelines
A shorter version (~300 lines) with essential identity, workspace info, tools, and web development guidelines. Missing the full agentic mode features like task boundaries and persistent context.
Defines the three operational modes:
| Mode | Purpose |
|---|---|
| PLANNING | Research, understand requirements, create implementation_plan.md, get user approval |
| EXECUTION | Implement the approved plan, return to PLANNING if encountering issues |
| VERIFICATION | Prove work is complete, capture evidence, create walkthrough.md |
Instructions for using the persistent memory system:
- Mandatory First Step: Check KI summaries before ANY research
- KI Structure: Each KI has
metadata.jsonandartifacts/directory - When to Use: Debugging, following patterns, complex implementations
- Key Principle: KIs are starting points, not ground truth - always verify
Checklist-based task tracking:
- [ ] uncompleted task <!-- id: 0 -->
- [/] in progress task <!-- id: 1 -->
- [x] completed task <!-- id: 2 -->Template for technical plans with:
- Goal description and context
- User review requirements
- Proposed changes grouped by component
- Verification plan (automated tests + manual verification)
- Confidence assessment (6-question framework)
Post-implementation summary with:
- Changes made
- Verification results
- Embedded screenshots/recordings
For complex tasks, the agent uses task_boundary tool to:
- Set TaskName, TaskSummary, TaskStatus
- Track mode (PLANNING/EXECUTION/VERIFICATION)
- Update progress without overwhelming the user
Before notifying users, agents must rate confidence (0.0-1.0) based on:
- Gaps in addressing the request?
- Unverified assumptions?
- Complex logic with unknowns?
- Non-trivial interaction risks?
- Ambiguous requirements?
- Irreversible changes?
Two mechanisms for cross-conversation memory:
- Conversation Logs: Raw history in
.system_generated/logs - Knowledge Items: Distilled knowledge by KNOWLEDGE SUBAGENT
| Category | Tools |
|---|---|
| Search | codebase_search, grep_search, find_by_name, search_in_file, search_web |
| Files | view_file, write_to_file, replace_file_content, multi_replace_file_content |
| Terminal | run_command, command_status, send_command_input, read_terminal |
| Browser | browser_subagent, read_url_content |
| Analysis | view_file_outline, view_code_item, list_dir |
| Media | generate_image |
Extracted from Antigravity 1.104.0 installation.
This is a reverse-engineering effort for educational purposes. The extracted content may be incomplete or partially accurate.