Google AI Studio Managed Agents & Multi-Agent Orchestration¶
imago defines a fleet of specialized Managed Agents powered by the Google Antigravity Agent (antigravity-preview-05-2026) and Gemini Deep Research Agent (deep-research-pro-preview-12-2025), following the official Google Gemini Managed Agents architecture.
1. Multi-Agent Fleet Architecture¶
flowchart TD
%% Semantic class definitions with vibrant, high-contrast jewel palettes
classDef studio fill:#0284c7,stroke:#0369a1,stroke-width:2px,color:#ffffff
classDef agents fill:#7c3aed,stroke:#6d28d9,stroke-width:2px,color:#ffffff
classDef runtime fill:#d97706,stroke:#b45309,stroke-width:2px,color:#ffffff
classDef sandbox fill:#059669,stroke:#047857,stroke-width:2px,color:#ffffff
classDef security fill:#e11d48,stroke:#be123c,stroke-width:2px,color:#ffffff
subgraph StudioUI["1. Google AI Studio Playground & Antigravity IDE"]
Dropdown["Agents Dropdown Selection<br/><small>Switch between 6 Specialized Managed Agents</small>"]:::studio
Interactions["Interactions / Agents API<br/><small>client.agents.create · client.interactions.create</small>"]:::studio
Dropdown --> Interactions
end
subgraph AgentFleet["2. Specialized Agent Fleet (.agents/managed-agents/)"]
direction TB
A1["infra-forge<br/><small>Packer HCL2 · QEMU/Proxmox · GPU Driver Stacks</small>"]:::agents
A2["security-compliance<br/><small>CIS L2 · DISA STIG · NIST SP 800-53 · Goss</small>"]:::agents
A3["container-k8s<br/><small>containerd 2.3.5 · crun OCI · Cilium/Calico · CDI</small>"]:::agents
A4["qa-gatekeeper<br/><small>Pytest Matrix · ShellCheck · required-aggregator</small>"]:::agents
A5["deep-researcher<br/><small>Upstream BOM Scans · Kernel CVEs · Nygard ADRs</small>"]:::agents
A6["docs-architect<br/><small>MkDocs Strict Portal · Jewel-Tone Mermaid</small>"]:::agents
end
subgraph Runtimes["3. Base Agent Execution Engines"]
AGY["antigravity-preview-05-2026<br/><small>Gemini 3.8 Flash · Code Execution & FS</small>"]:::runtime
Deep["deep-research-pro-preview-12-2025<br/><small>Autonomous Multi-Source Web Analyst</small>"]:::runtime
end
subgraph Sandbox["4. Ephemeral Linux Sandbox (/workspace)"]
Mount["Mounted GitHub Repository<br/><small>github://cordanaLLM/imago</small>"]:::sandbox
Network["Egress Domain Allowlist<br/><small>github.com · k8s.io · ubuntu.com · debian.org</small>"]:::sandbox
end
subgraph Hooks["5. Security & Privacy Lifecycle Hooks (.agents/hooks.json)"]
PreTool["pre_tool Interception<br/><small>guard_privacy.py: Zero RFC 1918 & Path Leaks</small>"]:::security
end
Interactions --> AgentFleet
A1 & A2 & A3 & A4 & A6 --> AGY
A5 --> Deep
AGY & Deep --> Sandbox
Sandbox --> Hooks
style StudioUI fill:none,stroke:#0284c7,stroke-width:2px,stroke-dasharray: 4 4
style AgentFleet fill:none,stroke:#7c3aed,stroke-width:2px,stroke-dasharray: 4 4
style Runtimes fill:none,stroke:#d97706,stroke-width:2px,stroke-dasharray: 4 4
style Sandbox fill:none,stroke:#059669,stroke-width:2px,stroke-dasharray: 4 4
style Hooks fill:none,stroke:#e11d48,stroke-width:2px,stroke-dasharray: 4 4
2. Agent Roster & Specializations¶
| Agent ID | Base Agent Engine | Core Specialization | Tools Enabled |
|---|---|---|---|
lusoris-infra-forge |
antigravity-preview-05-2026 |
Packer HCL2, standalone QEMU, Proxmox VE, GPU passthrough (Intel Xe2, AMD ROCm 10, NVIDIA 580–615), VirtIO storage tuning | code_execution, filesystem_tools, google_search, url_context |
lusoris-security-compliance |
antigravity-preview-05-2026 |
CIS L2 Server baseline, DISA STIG, OpenSSH CA integration (00-hardened-sshd.conf), NIST SP 800-53/190 crosswalks, Goss specs |
code_execution, filesystem_tools, google_search |
lusoris-container-k8s |
antigravity-preview-05-2026 |
containerd 2.3.5, crun RuntimeClass, Cilium eBPF, Calico BGP, Flannel, kube-vip HA, and CDI device plugin integration |
code_execution, filesystem_tools, google_search, url_context |
lusoris-qa-gatekeeper |
antigravity-preview-05-2026 |
Pytest verification suite (55+ tests), ShellCheck static analysis, Shfmt, Yamllint, and PR required-aggregator validation |
code_execution, filesystem_tools |
lusoris-deep-researcher |
deep-research-pro-preview-12-2025 |
Multi-source architectural research, upstream distribution lifecycle tracking, kernel CVE impact assessment, Nygard ADR drafts | google_search, url_context |
lusoris-docs-architect |
antigravity-preview-05-2026 |
Strict MkDocs builds (mkdocs build --strict), high-contrast jewel-tone Mermaid architecture diagrams, and docs-to-code synchrony |
filesystem_tools, url_context |
3. Populating Google AI Studio Dropdown¶
To register or update the fleet in your Google AI Studio Playground:
# Validate declarative agent specifications
python scripts/manage_aistudio_agents.py validate
# Register the fleet with your Gemini API Key
export GEMINI_API_KEY="your-api-key-here"
python scripts/manage_aistudio_agents.py register
Once registered:
- Open Google AI Studio.
- Navigate to the Playground tab and switch the toggle to Agents.
- Open the Agents dropdown: all 6 specialized
lusoris-*agents appear ready for execution with pre-mounted sources and tool configurations.
4. Multi-Agent Worktree Fan-Out Protocol¶
To prevent Git index conflicts and uncoordinated file overwrites during multi-agent workflows, background coding agents operate in isolated Git worktrees outside the checkout per Hard Rule 11. scripts/orchestrate_fanout.py creates them as imago-agent-<role> in the workstation's central worktrees/ folder, two levels above the main checkout; the environment variable IMAGO_WORKTREES_DIR names another folder. Run it from the main checkout:
# Spawn an isolated worktree for infra-forge
python scripts/orchestrate_fanout.py spawn infra-forge feat/new-gpu-flavor
# Spawn an isolated worktree for security auditing
python scripts/orchestrate_fanout.py spawn security-compliance feat/audit-goss
# List active agent worktrees
python scripts/orchestrate_fanout.py list
# Prune worktree after PR merge
python scripts/orchestrate_fanout.py prune infra-forge
5. Automated Sandbox Lifecycle Hooks (.agents/hooks.json)¶
All managed agents executing within Google-hosted Linux sandboxes are subject to declarative interception hooks:
- Privacy Guardrail (
pre_tool): Before any write operation (filesystem_tools.write_file),/.agents/hooks-scripts/guard_privacy.pyvalidates that no private RFC 1918 IPs (10.x,192.168.x,172.16-31.x) or local workstation home paths exist in the payload. Violations abort tool execution with exit code 1. - Power of 10 Linter (
post_tool): Validates shell scripts to ensure functions remain $\le 60$ lines and strictly adhere toset -euo pipefail.