Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design, implement, and debug autonomous AI agents and multi-agent systems in Rust using the Google Antigravity (AGY) Rust SDK. ACTIVATE this skill when the user wants to create, configure, or orchestrate Google Antigravity agents in Rust.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 24% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 24% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 199% | 0% |
This skill provides comprehensive instructions, architectural guidelines, and reference examples for building autonomous AI agents in Rust using the Google Antigravity SDK.
Ensure the following prerequisites are met before building or running agents:
Cargo.toml:toml [dependencies] antigravity-sdk-rust = { path = "path/to/antigravity-sdk-rust" } tokio = { version = "1", features = ["full"] }
GEMINI_API_KEY environment variable or supply it programmatically via GeminiConfig:localharness binary is accessible either on your system PATH or configured via AgentConfig::binary_path.When designing and deploying agents to WebAssembly targets such as wasm32-wasip1 (e.g., inside Spin or standard WASI runtimes):
sh cargo check --target wasm32-wasip1
WasmConnectionStrategy / WasmConnection) to connect to a host-side localharness WebSocket server.#[async_trait] attribute macro. The SDK uses native async traits (stable since Rust 1.75 / Rust 2024). Standard traits like Connection, Hook, Tool, and Trigger are implemented as native async traits (using impl Future + Send returns for trait-level Send bounds). For dynamic dispatch and runtime storage (e.g. Arc<dyn DynHook>), the SDK provides companion object-safe traits (DynHook, DynTool, DynTrigger) which are automatically implemented via blanket implementations for any type implementing the base trait.sh cargo test wasm::tests
0 to allocate a free TCP port dynamically, record that port, configure WasmConnectionStrategy to point to it, and mock standard JSON frames (StepUpdate, TrajectoryStateUpdate, etc.) to verify client state transitions.Use the links below to navigate specific topics and code configurations:
See architecture.md.
See agent_configuration.md.
See built_in_tools.md.
See safety_policies.md.
See error_handling.md.
See observability.md.
See mcp_integration.md.
See hello_world.md.
Tool trait.See custom_tool.md.
See persona_config.md.
See multimodal.md.
See subagents.md.
See mcp_tools.md.
See periodic_trigger.md.
See hooks.md.
conversation_id.See persistence.md.
See app_data_dir_override.md.
See structured_output.md.
See agent_skills.md.
See policies.md.
See streaming.md.
Other measured skills in the registry, with their headline benchmark lift.