Gemini CLI / Antigravity
Gemini CLI / Antigravity
Section titled “Gemini CLI / Antigravity”Gemini CLI is Google’s AI-powered command-line tool. Antigravity is Google’s VS Code fork with Gemini integration. Both tools share the same .gemini/ configuration format.
LNAI exports unified configuration to the native .gemini/ format, transforming settings and rules as needed.
Output Structure
Section titled “Output Structure”.gemini/├── GEMINI.md # Symlink → ../.ai/AGENTS.md├── settings.json # Generated (MCP servers)├── skills/<name>/ # Symlinks → ../../.ai/skills/<name>/└── <overrides> # Symlinks from .ai/.gemini/
<dir>/GEMINI.md # Generated (rules per directory)File Mapping
Section titled “File Mapping”| Source | Output | Type |
|---|---|---|
.ai/AGENTS.md | .gemini/GEMINI.md | Symlink |
.ai/rules/*.md | <dir>/GEMINI.md | Generated |
.ai/skills/<name>/ | .gemini/skills/<name>/ | Symlink |
.ai/settings.json | .gemini/settings.json | Transformed |
.ai/.gemini/<path> | .gemini/<path> | Symlink |
Transformations
Section titled “Transformations”MCP Servers
Section titled “MCP Servers”HTTP/SSE servers use httpUrl instead of url:
// Input (LNAI format){ "mcpServers": { "remote": { "url": "https://example.com/mcp" } }}
// Output (Gemini format){ "mcpServers": { "remote": { "httpUrl": "https://example.com/mcp" } }}| LNAI | Gemini CLI |
|---|---|
url | httpUrl |
Rules are grouped by their target directory and combined into GEMINI.md files:
paths:
- "src/\*_/_.ts"
---
Use strict TypeScript...## typescript.md
Use strict TypeScript...Rules targeting the project root (.) are placed at the root level. Rules targeting subdirectories (e.g., apps/cli/**) create GEMINI.md files in those directories.
Unsupported Features
Section titled “Unsupported Features”Permissions
Section titled “Permissions”Gemini CLI does not support pre-configured permissions in settings.json. Permissions must be granted interactively when prompted during execution.
If your .ai/settings.json contains a permissions block, LNAI will display a warning but continue syncing other configuration.
Overrides
Section titled “Overrides”Place Gemini-specific files in .ai/.gemini/ to have them symlinked directly:
.ai/.gemini/└── custom-config.json → .gemini/custom-config.jsonWhen an override file exists at the same path as a generated file (e.g., settings.json), the override takes priority.