بنقرة واحدة
antigravity-manager
// Comprehensive guide to Antigravity Manager architecture, workflows, and development. Use this to understand how to work on the project.
// Comprehensive guide to Antigravity Manager architecture, workflows, and development. Use this to understand how to work on the project.
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
Archive multiple completed changes at once. Use when archiving several parallel changes.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
| name | antigravity-manager |
| description | Comprehensive guide to Antigravity Manager architecture, workflows, and development. Use this to understand how to work on the project. |
Antigravity Manager is a hybrid Desktop Application built with Electron, React, and NestJS. It follows a modular architecture where the frontend (Renderer) communicates with the backend (Main) via type-safe IPC (ORPC).
graph TD
User[User Interface] -->|React/Vite| Renderer[Renderer Process]
Renderer -->|ORPC Client| IPC[IPC Layer]
IPC -->|ORPC Router| Main[Main Process]
Main -->|Bootstraps| Server[NestJS Server]
Main -->|Calls| Services[Service Layer]
Services -->|Read/Write| DB[(SQLite Database)]
Services -->|HTTP| Cloud[Cloud APIs (Google/Anthropic)]
src/main.ts: Electron Main Process entry point.src/preload.ts: Bridge between Main and Renderer.src/renderer.tsx: React App entry point.src/components/: Reusable React UI components (Radix UI based).src/ipc/: IPC Routers and Handlers (Domain logic).
router.ts: Main ORPC router definition.account/, cloud/, database/: Domain-specific handlers.src/server/: NestJS application modules (proxies/gateways).src/services/: Core business logic (framework agnostic).
GoogleAPIService.ts: Gemini/Cloud interactions.AutoSwitchService.ts: Account rotation logic.src/routes/: Frontend routing definitions (File-based).package-lock.json)npm startnpm run lintnpm run test:unitnpm run test:e2enpm run makeThe project uses orpc for type-safe communication.
src/ipc/router.ts with Zod schemas.src/ipc/account/handler.ts).Data is stored in a local SQLite file.
Better-SQLite3 for direct access.src/services or src/ipc.GoogleAPIService handles token exchange and refreshing.AutoSwitchService monitors usage and switches active accounts automatically.src/components/ui (Radix primitives) for consistency.