This document describes the core architecture and system identity of Google Antigravity Fast Prompt, an agentic AI coding assistant designed by Google Deepmind's Advanced Agentic Coding team. It covers Antigravity's fundamental role definition, file system access model, knowledge management architecture, and the supporting subsystems that enable its operation.
For details about specific tool operations and the Knowledge Items system, see 3.2. For workflow system specifications, see 3.4. For web development standards and design requirements, see 3.5 and 3.6.
Antigravity is defined as a powerful agentic AI coding assistant that operates in a pair programming relationship with users. The system identity is explicitly declared within the <identity> tags at the beginning of every session.
Identity Definition:
Core Responsibilities:
The system's task scope includes:
Contextual Metadata Processing:
Antigravity receives metadata with each USER request:
The prompt explicitly states: "This information may or may not be relevant to the coding task, it is up for you to decide."
Sources: Google/Antigravity/Fast Prompt.txt1-6
Antigravity operates within a strictly controlled file system model based on workspace URIs and CorpusNames. This architecture enforces security boundaries and defines where the system can read and write files.
The system enforces strict access control policies defined in the user information block:
C:\Users\Lucas\.gemini is permitted ONLY for system-specified operations.gemini directory, or Desktop folders (unless explicitly requested)Google/Antigravity/Fast Prompt.txt7-14
The workspace architecture uses a URI-to-CorpusName mapping system shown in the format [URI] -> [CorpusName]:
| Component | Example Value | Purpose |
|---|---|---|
| Workspace URI | c:\Users\Lucas\OneDrive\Escritorio\antigravity | User-visible file path (Windows format) |
| CorpusName | c:/Users/Lucas/OneDrive/Escritorio/antigravity | Internal workspace identifier (forward slashes) |
| Mapping | [URI] -> [CorpusName] | Defines access boundaries |
Note: Multiple URIs can potentially map to the same CorpusName, allowing different path representations to refer to the same logical workspace.
This mapping enables:
Sources: Google/Antigravity/Fast Prompt.txt7-14
All file operations in Antigravity follow a strict protocol that emphasizes absolute path usage and optional execution control.
When using tools that accept file path arguments,
ALWAYS use the absolute file path.
Google/Antigravity/Fast Prompt.txt15-18
This requirement eliminates ambiguity in file operations and ensures consistent behavior across different working directory contexts.
Every tool in the functions namespace includes a waitForPreviousTools parameter that controls execution ordering:
| Parameter Value | Execution Mode | Use Case |
|---|---|---|
false or omitted | Parallel execution | Independent read operations, non-conflicting tasks |
true | Sequential execution | Dependent operations, file edits, terminal commands |
Example from browser_subagent signature:
This design enables performance optimization through parallel tool execution (achieving 3-5x performance gains as documented in 8.5) while maintaining safety for operations with dependencies or side effects.
Sources: Google/Antigravity/Fast Prompt.txt15-18 Google/Antigravity/Fast Prompt.txt334-336
Antigravity's architecture consists of multiple specialized subsystems that work together to provide comprehensive coding assistance.
Sources: Google/Antigravity/Fast Prompt.txt1-6 Google/Antigravity/Fast Prompt.txt99-215 Google/Antigravity/Fast Prompt.txt216-301 Google/Antigravity/Fast Prompt.txt320-611
Antigravity implements a dual-system approach to persistent context: Knowledge Items (KIs) for distilled, curated knowledge and Conversation Logs for raw historical data.
The Knowledge Subagent is a specialized component that:
metadata.json and artifacts/ structureGoogle/Antigravity/Fast Prompt.txt241-242
| Criterion | Use Knowledge Items (KIs) | Use Conversation Logs |
|---|---|---|
| Information Type | Distilled, curated knowledge on specific topics | Raw conversation details, task-specific context |
| Use Case | Topic research, pattern analysis | Reviewing specific conversation, debugging past work |
| Access Pattern | Start with KI summaries → Read relevant artifacts | Identify conversation ID → Read logs/artifacts |
| Update Frequency | Updated across multiple conversations | Immutable after conversation completion |
| Granularity | High-level summaries with detailed artifacts | Full conversation transcript with system metadata |
Mandatory First Step: Before ANY research or analysis, Antigravity MUST:
view_file tool)Prohibited Pattern:
USER: Can you analyze the core engine module?
BAD: [Immediately calls list_dir and view_file for fresh analysis]
Correct Pattern:
USER: Can you analyze the core engine module?
GOOD: Let me check KI summaries first
[Sees "Core Engine Architecture" KI with artifact path]
[Calls view_file to read existing architecture_overview.md]
Sources: Google/Antigravity/Fast Prompt.txt99-137
Sources: Google/Antigravity/Fast Prompt.txt99-250 Google/Antigravity/Fast Prompt.txt204-215
Antigravity supports user-defined workflows stored in the .agent/workflows directory using a YAML frontmatter + Markdown format.
Google/Antigravity/Fast Prompt.txt80-84
Workflows support special annotations that enable automatic command execution:
| Annotation Type | Scope | Behavior |
|---|---|---|
// turbo | Single step | Auto-run ONLY the next run_command tool call (set SafeToAutoRun=true) |
// turbo-all | Entire workflow | Auto-run EVERY run_command tool call in the workflow |
Example Workflow with Turbo Annotation:
In this example:
run_commandSafeToAutoRun=true set automaticallyTurbo-All Example:
If a workflow contains // turbo-all anywhere in the file, EVERY run_command tool call in the workflow will have SafeToAutoRun set to true.
Sources: Google/Antigravity/Fast Prompt.txt87-95
Workflows can be triggered by:
/slash-command)When triggered, Antigravity uses view_file to read .agent/workflows/slash-command.md.
Sources: Google/Antigravity/Fast Prompt.txt78-98
Antigravity employs specialized subagents for complex, domain-specific operations that require focused tool sets and operational models.
The browser_subagent tool launches a specialized agent for browser automation:
Function Signature:
Parameter Specifications:
| Parameter | Requirements | Example |
|---|---|---|
RecordingName | Lowercase, underscores, max 3 words, describes recording content | login_flow_demo |
Task | Clear, actionable task for subagent with specific stop condition | "Navigate to example.com, fill login form, submit. Return when logged in or error occurs." |
TaskName | Title-case, human-readable, represents reasonable work chunk, replaces non-human terms | "Navigating to Example Page" (not "Navigating to https://...") |
Critical Behavior: All browser interactions are automatically recorded as WebP videos to the artifacts/ directory. This is the ONLY method to capture browser session animations.
Error Handling: If the subagent returns that open_browser_url tool failed, there is a browser issue outside agent control. The agent MUST ask the user how to proceed and use the suggested_responses tool.
Sources: Google/Antigravity/Fast Prompt.txt326-336
Sources: Google/Antigravity/Fast Prompt.txt326-336
Antigravity's tool ecosystem is organized into functional categories, each serving specific aspects of the coding workflow.
Antigravity provides multiple file editing tools with specific use cases:
| Tool | Use Case | Key Parameters | Line Range |
|---|---|---|---|
write_to_file | Creating new files | TargetFile, CodeContent, EmptyFile, Overwrite | 593-610 |
replace_file_content | Single exact string replacement | TargetFile, TargetContent, ReplacementContent, AllowMultiple, StartLine, EndLine | 463-488 |
multi_replace_file_content | Multiple non-adjacent edits | TargetFile, ReplacementChunks[], Instruction | 438-461 |
Common Parameters Across All Edit Tools:
Special Parameters:
ArtifactMetadata (optional): Available in multi_replace_file_content for updating artifact files with ArtifactType (implementation_plan, walkthrough, task, other) and SummaryCodeMarkdownLanguage: Required markdown language identifier (e.g., python, javascript)Sources: Google/Antigravity/Fast Prompt.txt438-610
The run_command tool implements sophisticated execution control for Windows PowerShell:
Background Process Flow:
run_command 490-502WaitMsBeforeAsync millisecondscommand_status(CommandId, WaitDurationSeconds) with returned ID to check progress 349-358send_command_input(CommandId, Input?, Terminate?) for REPL interaction or termination 514-524Terminal Output Retrieval:
For full terminal content, use read_terminal(Name, ProcessID) 504-512 instead of relying on command_status output which is truncated by OutputCharacterCount.
Sources: Google/Antigravity/Fast Prompt.txt490-524
Sources: Google/Antigravity/Fast Prompt.txt320-611
Antigravity implements specific communication guidelines that govern how it formats responses and interacts with users.
| Requirement | Implementation |
|---|---|
| Format | GitHub-style Markdown |
| Organization | Headers for structure, bold/italic for emphasis |
| Code References | Backticks for files, directories, functions, classes |
| URLs | Markdown link format: <FileRef file-url="https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools/blob/ae37329a/label" undefined file-path="label">Hii</FileRef> |
Google/Antigravity/Fast Prompt.txt303-304
Proactiveness Model:
Helpfulness Philosophy:
Google/Antigravity/Fast Prompt.txt304-307
When calling tools with array or object parameters, parameters must be structured using JSON:
Parameter Validation Rules:
Google/Antigravity/Fast Prompt.txt309-314
Parallel Tool Execution:
<function_calls> blockGoogle/Antigravity/Fast Prompt.txt316-317
Sources: Google/Antigravity/Fast Prompt.txt302-317
| Component | Value |
|---|---|
| Operating System | Windows |
| Default Shell | PowerShell |
| Special System Directory | C:\Users\Lucas\.gemini |
| Workspace Pattern | c:\Users\Lucas\OneDrive\Escritorio\antigravity |
Google/Antigravity/Fast Prompt.txt8-10
Antigravity enforces strict security boundaries through its workspace model:
.gemini directory accessible only for system operationsThese constraints ensure:
Refresh this wiki