everything-gemini 1.1.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
- package/.github/ISSUE_TEMPLATE/subagent_proposal.md +29 -0
- package/.github/workflows/ci.yml +72 -1
- package/.github/workflows/release.yml +17 -2
- package/.vscode/extensions.json +8 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +167 -0
- package/CONTRIBUTING.md +85 -4
- package/README.md +139 -18
- package/SECURITY.md +38 -0
- package/action.yml +35 -0
- package/agents/browser-qa.md +1 -1
- package/agents/database-migrator.md +26 -0
- package/agents/documentation-writer.md +27 -0
- package/agents/incident-responder.md +34 -0
- package/agents/performance-tuner.md +27 -0
- package/agents/release-engineer.md +34 -0
- package/bin/everything-gemini +1550 -86
- package/docs/COMMUNITY_SUBMISSIONS.md +88 -0
- package/docs/LAUNCH_KIT.md +148 -22
- package/docs/architecture/progressive-disclosure.md +3 -3
- package/docs/index.html +401 -37
- package/docs/launch-kit.md +163 -0
- package/examples/cli-workflows/README.md +45 -0
- package/examples/cli-workflows/demo_workflow.sh +39 -0
- package/examples/python-sdk/README.md +28 -5
- package/examples/python-sdk/documentation_audit_pipeline.py +83 -0
- package/examples/python-sdk/incident_triage_pipeline.py +170 -0
- package/examples/python-sdk/multi_agent_pipeline.py +95 -0
- package/examples/python-sdk/release_readiness_audit.py +144 -0
- package/hooks/secret-scrubber/hooks.json +16 -0
- package/hooks/secret-scrubber/scripts/scrub-secrets.sh +62 -0
- package/mcp/README.md +20 -0
- package/mcp/mcp_config.example.json +35 -0
- package/package.json +3 -1
- package/plugins/core/rules/core-practices.md +63 -4
- package/plugins/python-ai/rules/ai-agent-patterns.md +67 -4
- package/plugins/security-shield/rules/zero-trust.md +60 -4
- package/plugins/web-fullstack/rules/frontend-standards.md +74 -4
- package/rules/paradigms/security-hardened.md +53 -10
- package/rules/paradigms/tdd.md +65 -8
- package/scripts/install.ps1 +14 -0
- package/scripts/install.sh +15 -1
- package/scripts/validate.sh +103 -12
- package/skills/agent-evals/SKILL.md +61 -0
- package/skills/apache-kafka-streams/SKILL.md +152 -0
- package/skills/argo-workflows/SKILL.md +151 -0
- package/skills/axum-web-service/SKILL.md +159 -0
- package/skills/cilium-ebpf-networking/SKILL.md +145 -0
- package/skills/clickhouse-analytics/SKILL.md +128 -0
- package/skills/dbt-transformation/SKILL.md +179 -0
- package/skills/debezium-cdc/SKILL.md +166 -0
- package/skills/docker-compose-orchestrator/SKILL.md +85 -0
- package/skills/duckdb-local-olap/SKILL.md +134 -0
- package/skills/fastapi-production/SKILL.md +157 -0
- package/skills/graphql-architect/SKILL.md +78 -0
- package/skills/grpc-connect-rpc/SKILL.md +176 -0
- package/skills/langgraph-orchestrator/SKILL.md +144 -0
- package/skills/litellm-proxy-gateway/SKILL.md +154 -0
- package/skills/nats-jetstream/SKILL.md +122 -0
- package/skills/open-telemetry-tracing/SKILL.md +151 -0
- package/skills/playwright-visual-regression/SKILL.md +124 -0
- package/skills/redis-cache-patterns/SKILL.md +159 -0
- package/skills/svelte-kit-architect/SKILL.md +190 -0
- package/skills/temporal-workflows/SKILL.md +158 -0
- package/skills/trpc-react-query/SKILL.md +169 -0
- package/skills/turborepo-monorepo/SKILL.md +199 -0
- package/skills/vllm-inference/SKILL.md +144 -0
- package/skills/wasm-rust-optimizer/SKILL.md +130 -0
- package/templates/full-power/hooks.json +14 -0
- package/templates/full-power/mcp_config.json +43 -0
- package/templates/recommended/hooks.json +14 -0
- package/tests/cli.test.js +383 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# 🚀 Everything Gemini — Viral Launch & Distribution Kit
|
|
2
|
+
|
|
3
|
+
This launch kit contains battle-tested, copy-paste ready submissions crafted to propel **Everything Gemini (`everything-gemini`)** to the top of GitHub Trending, Hacker News, X (Twitter), Reddit, and Product Hunt.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. 🟧 Hacker News (Show HN)
|
|
8
|
+
|
|
9
|
+
### Submission Details
|
|
10
|
+
* **Title**: `Show HN: Everything Gemini – Open-source agent harness and 33 skills for Antigravity`
|
|
11
|
+
* **URL**: `https://github.com/salmandev/everything-gemini` (or `https://salmandev.github.io/everything-gemini/`)
|
|
12
|
+
|
|
13
|
+
### First Comment (Post immediately after submitting)
|
|
14
|
+
```text
|
|
15
|
+
Hey HN,
|
|
16
|
+
|
|
17
|
+
Over the past few months, the Claude Code community rallied around Everything Claude Code (ECC). But when Google released Antigravity (AGY) and the Gemini 3.8 / 1.5 Flash & Pro models with native 1M-2M context windows, we realized the ecosystem needed a completely reimagined harness built natively for Antigravity’s architecture.
|
|
18
|
+
|
|
19
|
+
Today we're releasing Everything Gemini (everything-gemini) v1.3.0:
|
|
20
|
+
https://github.com/salmandev/everything-gemini
|
|
21
|
+
|
|
22
|
+
Why build a new harness?
|
|
23
|
+
1. Progressive Disclosure vs Prompt Bloat:
|
|
24
|
+
Instead of dumping megabytes of instructions into every reasoning step, Antigravity introduces Progressive Disclosure. Only skill YAML headers (name + description) sit in the prompt. The model autonomously lazy-loads the full playbook only when required. Our benchmarks show an 85%+ token reduction per turn (~13,000 tokens saved each turn).
|
|
25
|
+
|
|
26
|
+
2. Native Subagent Fleet:
|
|
27
|
+
6 specialized subagents (Planner, Code Reviewer, Build Repair, Visual QA, Security Auditor, Systems Architect) designed for autonomous delegation via Antigravity's native `invoke_subagent` and Python SDK.
|
|
28
|
+
|
|
29
|
+
3. Deterministic Safety Gates (GeminiShield):
|
|
30
|
+
Hooks that intercept `PreToolUse` and enforce strict security invariants on `run_command`—blocking catastrophic commands like `rm -rf /` or forced branch resets before the shell is ever invoked.
|
|
31
|
+
|
|
32
|
+
4. Zero-Dependency CLI:
|
|
33
|
+
Run `npx everything-gemini install` anywhere. It includes diagnostics (`doctor`), in-place non-destructive updates (`update`), ecosystem benchmarks (`test-all`), and shell completion (`completion --install`).
|
|
34
|
+
|
|
35
|
+
The repository is open source under Apache-2.0. We'd love your feedback, critiques, and contributions!
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 2. 🐦 X (Twitter) Launch Thread
|
|
41
|
+
|
|
42
|
+
### Tweet 1 (The Hook)
|
|
43
|
+
```text
|
|
44
|
+
Claude Code has ECC.
|
|
45
|
+
Now Google Antigravity & Gemini have Everything Gemini.
|
|
46
|
+
|
|
47
|
+
Introducing Everything Gemini 🪐 — the premier open-source multi-agent harness, progressive disclosure skills catalog, and lifecycle safety suite for Gemini 3.8 & Antigravity.
|
|
48
|
+
|
|
49
|
+
33 skills. 6 subagents. 85% token savings.
|
|
50
|
+
|
|
51
|
+
🧵👇
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Tweet 2 (The Token Problem & Progressive Disclosure)
|
|
55
|
+
```text
|
|
56
|
+
Why does this matter?
|
|
57
|
+
|
|
58
|
+
Dumping dozens of engineering rules into every agent turn wastes context and causes instruction drift.
|
|
59
|
+
|
|
60
|
+
Everything Gemini implements Progressive Disclosure:
|
|
61
|
+
• Only metadata in prompt
|
|
62
|
+
• Lazy-loads runbooks on demand
|
|
63
|
+
• Saves >13,000 tokens every single turn! 📉
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Tweet 3 (Visual QA & Subagents)
|
|
67
|
+
```text
|
|
68
|
+
Native Visual QA + Subagent Fleet 🤖
|
|
69
|
+
|
|
70
|
+
We built 6 autonomous scoped subagents:
|
|
71
|
+
• Planner: Phased dependency mapping
|
|
72
|
+
• Browser QA: Drives Antigravity's native browser subagent with automated WebP screen recording into artifacts
|
|
73
|
+
• Build Repair: Surgical triage for failing tests
|
|
74
|
+
• Security Auditor: Zero-trust gatekeeper
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Tweet 4 (Deterministic Safety Hooks)
|
|
78
|
+
```text
|
|
79
|
+
Deterministic Safety Gates 🛡️
|
|
80
|
+
|
|
81
|
+
GeminiShield hooks into Antigravity's lifecycle (`PreToolUse`, `PostToolUse`, `Stop`):
|
|
82
|
+
• Blocks destructive operations (`rm -rf /`, `git push --force`)
|
|
83
|
+
• Formats modified code automatically with Prettier/Ruff
|
|
84
|
+
• Prevents agent from exiting if unit tests are still failing
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Tweet 5 (Zero-Setup CLI)
|
|
88
|
+
```text
|
|
89
|
+
Get started in 5 seconds with zero dependencies:
|
|
90
|
+
|
|
91
|
+
$ npx everything-gemini install --profile developer
|
|
92
|
+
|
|
93
|
+
Or install shell completions:
|
|
94
|
+
$ npx everything-gemini completion --install
|
|
95
|
+
|
|
96
|
+
Explore the interactive catalog:
|
|
97
|
+
👉 https://salmandev.github.io/everything-gemini/
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Tweet 6 (CTA & Star History)
|
|
101
|
+
```text
|
|
102
|
+
Everything Gemini is 100% open source under Apache-2.0.
|
|
103
|
+
|
|
104
|
+
Check out the code, star the repo, and build custom skills with us:
|
|
105
|
+
⭐ https://github.com/salmandev/everything-gemini
|
|
106
|
+
|
|
107
|
+
Tagging @GoogleDeepMind @GoogleAI @fchollet #Gemini #Antigravity #AIAgents #OpenSource
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 3. 🔴 Reddit Submissions
|
|
113
|
+
|
|
114
|
+
### Subreddit: `r/LocalLLaMA`
|
|
115
|
+
* **Title**: `Everything Gemini: Open-source multi-agent harness & 33 progressive skills for Google Antigravity & Gemini (85% token reduction)`
|
|
116
|
+
* **Content**:
|
|
117
|
+
```text
|
|
118
|
+
Hey r/LocalLLaMA,
|
|
119
|
+
|
|
120
|
+
We just open-sourced Everything Gemini (`everything-gemini`), a developer harness and multi-agent orchestration catalog designed specifically for Google Antigravity (AGY) and the Gemini ecosystem.
|
|
121
|
+
|
|
122
|
+
Repository: https://github.com/salmandev/everything-gemini
|
|
123
|
+
Interactive Showcase: https://salmandev.github.io/everything-gemini/
|
|
124
|
+
|
|
125
|
+
Key Technical Highlights:
|
|
126
|
+
1. Progressive Disclosure Architecture: Instead of brute-forcing massive system prompts, skills are indexed via lightweight YAML frontmatter. Antigravity dynamically discovers and reads full runbooks on-demand.
|
|
127
|
+
2. 6 Scoped Subagents: Formally defined personas (Planner, Reviewer, Browser QA, Build Repair, Security, Architect) ready for multi-agent handoffs.
|
|
128
|
+
3. Lifecycle Safety Gates: Protojson lifecycle hooks running pre/post-tool execution checks to intercept destructive shell commands.
|
|
129
|
+
4. Curated MCP Blueprints: Redis caching, persistent memory, semantic fetch, Postgres, and GitHub MCP servers.
|
|
130
|
+
|
|
131
|
+
Try it via `npx everything-gemini install` or clone and inspect with `./bin/everything-gemini test-all`.
|
|
132
|
+
|
|
133
|
+
All feedback, benchmarks, and PRs welcome!
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 4. 😸 Product Hunt Launch
|
|
139
|
+
|
|
140
|
+
* **Product Name**: `Everything Gemini`
|
|
141
|
+
* **Tagline**: `The open-source agent harness & multi-agent suite for Google Antigravity`
|
|
142
|
+
* **Topics**: `Developer Tools`, `Artificial Intelligence`, `Open Source`, `GitHub`
|
|
143
|
+
* **Pricing**: `Free / Open Source (Apache 2.0)`
|
|
144
|
+
|
|
145
|
+
### Maker Comment:
|
|
146
|
+
```text
|
|
147
|
+
Hi Product Hunt! 👋
|
|
148
|
+
|
|
149
|
+
I'm Salman, creator of Everything Gemini.
|
|
150
|
+
|
|
151
|
+
As AI coding agents evolved from single-prompt chatbots into multi-turn autonomous engines, we saw a critical issue: context exhaustion and token bloat.
|
|
152
|
+
|
|
153
|
+
We built Everything Gemini to bring progressive disclosure, scoped subagent fleets, and deterministic safety firewalls to Google Antigravity and Gemini 3.8.
|
|
154
|
+
|
|
155
|
+
Features:
|
|
156
|
+
• 33 Lazy-loaded progressive disclosure skills
|
|
157
|
+
• 6 Scoped subagents with formal handoff protocols
|
|
158
|
+
• GeminiShield safety gates preventing destructive operations
|
|
159
|
+
• Zero-dependency CLI with doctor, benchmark, and update commands
|
|
160
|
+
• Interactive web app with 1-click CLI installer copy
|
|
161
|
+
|
|
162
|
+
Check it out at https://salmandev.github.io/everything-gemini/ and let us know what skills you'd like to see next!
|
|
163
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# 🛠️ CLI Workflow Automation Example
|
|
2
|
+
|
|
3
|
+
This example demonstrates how to automate workspace onboarding and component management using the **`everything-gemini`** CLI in scripts, CI pipelines, or devcontainer lifecycles.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🏃 Running the Demo
|
|
8
|
+
|
|
9
|
+
Make the script executable and run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
chmod +x demo_workflow.sh
|
|
13
|
+
./demo_workflow.sh
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 📋 What the Script Does
|
|
19
|
+
|
|
20
|
+
1. **Creates an isolated temporary directory** to simulate a fresh project repository.
|
|
21
|
+
2. **Initializes the workspace** with `everything-gemini init --workspace <dir>`.
|
|
22
|
+
3. **Installs granular components** on-demand:
|
|
23
|
+
```bash
|
|
24
|
+
everything-gemini add skill agent-evals
|
|
25
|
+
everything-gemini add skill docker-compose-orchestrator
|
|
26
|
+
everything-gemini add agent architect
|
|
27
|
+
```
|
|
28
|
+
4. **Validates the skill frontmatter & boundary definitions**:
|
|
29
|
+
```bash
|
|
30
|
+
everything-gemini test-skill agent-evals
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 🐳 Devcontainer Integration
|
|
36
|
+
|
|
37
|
+
You can integrate `everything-gemini` into your `.devcontainer/devcontainer.json` `postCreateCommand`:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"name": "Gemini Antigravity Environment",
|
|
42
|
+
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
|
|
43
|
+
"postCreateCommand": "npx everything-gemini install --profile developer"
|
|
44
|
+
}
|
|
45
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# ==============================================================================
|
|
3
|
+
# Everything Gemini CLI Workflow Automation Demo
|
|
4
|
+
# Demonstrates initializing an empty workspace, installing profiles,
|
|
5
|
+
# adding individual skills, and running automated skill validation.
|
|
6
|
+
# ==============================================================================
|
|
7
|
+
|
|
8
|
+
set -euo pipefail
|
|
9
|
+
|
|
10
|
+
CLI="everything-gemini"
|
|
11
|
+
if [ -f "./bin/everything-gemini" ]; then
|
|
12
|
+
CLI="./bin/everything-gemini"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
DEMO_DIR="$(mktemp -d -t egemini-demo-XXXXXX)"
|
|
16
|
+
echo "🚀 Initializing demo workspace at: $DEMO_DIR"
|
|
17
|
+
|
|
18
|
+
# Ensure cleanup on script exit
|
|
19
|
+
trap 'echo "🧹 Cleaning up demo workspace..."; node -e "try { require(\"fs\").rmSync(process.argv[1], {recursive: true, force: true}); } catch(e){}" "$DEMO_DIR"' EXIT
|
|
20
|
+
|
|
21
|
+
# 1. Initialize workspace with Everything Gemini
|
|
22
|
+
echo -e "\n📦 Step 1: Initializing developer profile in workspace..."
|
|
23
|
+
$CLI init --workspace "$DEMO_DIR"
|
|
24
|
+
|
|
25
|
+
# 2. Add specific on-demand skills
|
|
26
|
+
echo -e "\n⚡ Step 2: Adding frontier skills to the workspace..."
|
|
27
|
+
$CLI add skill agent-evals --workspace "$DEMO_DIR"
|
|
28
|
+
$CLI add skill docker-compose-orchestrator --workspace "$DEMO_DIR"
|
|
29
|
+
|
|
30
|
+
# 3. Add a scoped subagent
|
|
31
|
+
echo -e "\n🤖 Step 3: Adding architect subagent..."
|
|
32
|
+
$CLI add agent architect --workspace "$DEMO_DIR"
|
|
33
|
+
|
|
34
|
+
# 4. Validate skill configuration
|
|
35
|
+
echo -e "\n🔍 Step 4: Validating installed skills..."
|
|
36
|
+
$CLI test-skill agent-evals
|
|
37
|
+
|
|
38
|
+
echo -e "\n✨ Workflow demo completed successfully!"
|
|
39
|
+
echo "Workspace verified at: $DEMO_DIR"
|
|
@@ -11,10 +11,27 @@ This example demonstrates how to build programmatic agent pipelines using the of
|
|
|
11
11
|
pip install google-antigravity
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
### 2.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
### 2. Available Pipelines
|
|
15
|
+
- **Basic Subagent Orchestration**:
|
|
16
|
+
```bash
|
|
17
|
+
python3 orchestrate_subagents.py
|
|
18
|
+
```
|
|
19
|
+
- **4-Stage Feature Delivery Pipeline** (Planner -> Migrator -> Tuner -> Reviewer):
|
|
20
|
+
```bash
|
|
21
|
+
python3 multi_agent_pipeline.py
|
|
22
|
+
```
|
|
23
|
+
- **3-Stage Documentation Audit Pipeline** (Architect -> Reviewer -> Doc Writer):
|
|
24
|
+
```bash
|
|
25
|
+
python3 documentation_audit_pipeline.py
|
|
26
|
+
```
|
|
27
|
+
- **4-Stage Release Readiness Audit Pipeline** (Planner -> Reviewer -> Security Auditor -> Release Engineer):
|
|
28
|
+
```bash
|
|
29
|
+
python3 release_readiness_audit.py
|
|
30
|
+
```
|
|
31
|
+
- **4-Stage Incident Triage & SRE Remediation Pipeline** (Incident Responder -> Performance Tuner -> Release Engineer -> Postmortem Generator):
|
|
32
|
+
```bash
|
|
33
|
+
python3 incident_triage_pipeline.py
|
|
34
|
+
```
|
|
18
35
|
|
|
19
36
|
---
|
|
20
37
|
|
|
@@ -30,7 +47,13 @@ python3 orchestrate_subagents.py
|
|
|
30
47
|
┌─────────────────────────┐
|
|
31
48
|
│ 2. Code Reviewer │
|
|
32
49
|
│ (Edge Cases & Risks) │
|
|
50
|
+
└────────────┬────────────┘
|
|
51
|
+
│ (Verified Implementation)
|
|
52
|
+
▼
|
|
53
|
+
┌─────────────────────────┐
|
|
54
|
+
│ 3. Documentation Writer │
|
|
55
|
+
│ (file:// Link Audit) │
|
|
33
56
|
└─────────────────────────┘
|
|
34
57
|
```
|
|
35
58
|
|
|
36
|
-
The
|
|
59
|
+
The pipelines leverage Antigravity's async context manager to guarantee clean sandbox lifecycle deallocation and streaming thought token deltas.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Everything Gemini (everything-gemini) Documentation & Link Verification Pipeline Example
|
|
4
|
+
Demonstrates a 3-stage autonomous lifecycle handoff:
|
|
5
|
+
Architect -> Code Reviewer -> Documentation Writer.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import asyncio
|
|
9
|
+
import sys
|
|
10
|
+
from google.antigravity import Agent, LocalAgentConfig, CapabilitiesConfig
|
|
11
|
+
|
|
12
|
+
async def stream_output(response_stream):
|
|
13
|
+
captured = []
|
|
14
|
+
async for token in response_stream:
|
|
15
|
+
sys.stdout.write(token)
|
|
16
|
+
sys.stdout.flush()
|
|
17
|
+
captured.append(token)
|
|
18
|
+
return "".join(captured)
|
|
19
|
+
|
|
20
|
+
async def run_documentation_pipeline():
|
|
21
|
+
print("🪐 Initializing Everything Gemini Documentation Audit Pipeline...\n")
|
|
22
|
+
|
|
23
|
+
# Stage 1: Architect (Define system changes & ADR)
|
|
24
|
+
print("==================================================")
|
|
25
|
+
print("📐 [Stage 1/3] Architect (architect.md)")
|
|
26
|
+
print("==================================================")
|
|
27
|
+
architect_cfg = LocalAgentConfig(
|
|
28
|
+
system_instructions=(
|
|
29
|
+
"You are the Architect subagent from everything-gemini. "
|
|
30
|
+
"Define system boundaries, component schemas, and write Architecture Decision Records (ADRs)."
|
|
31
|
+
),
|
|
32
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
33
|
+
)
|
|
34
|
+
async with Agent(architect_cfg) as architect:
|
|
35
|
+
resp = await architect.chat(
|
|
36
|
+
"Draft an Architecture Decision Record (ADR-025) for introducing Connect-RPC and "
|
|
37
|
+
"Protocol Buffers alongside our existing REST endpoints for web client streaming."
|
|
38
|
+
)
|
|
39
|
+
adr_spec = await stream_output(resp)
|
|
40
|
+
|
|
41
|
+
# Stage 2: Code Reviewer (Audit security, backwards compatibility & link requirements)
|
|
42
|
+
print("\n\n==================================================")
|
|
43
|
+
print("🔍 [Stage 2/3] Code Reviewer (code-reviewer.md)")
|
|
44
|
+
print("==================================================")
|
|
45
|
+
reviewer_cfg = LocalAgentConfig(
|
|
46
|
+
system_instructions=(
|
|
47
|
+
"You are the Code Reviewer subagent from everything-gemini. "
|
|
48
|
+
"Critique architecture designs for backward-compatibility, link integrity, and edge cases."
|
|
49
|
+
),
|
|
50
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
51
|
+
)
|
|
52
|
+
async with Agent(reviewer_cfg) as reviewer:
|
|
53
|
+
resp = await reviewer.chat(
|
|
54
|
+
f"Review this ADR specification for API backward compatibility and documentation completeness:\n\n{adr_spec}"
|
|
55
|
+
)
|
|
56
|
+
review_feedback = await stream_output(resp)
|
|
57
|
+
|
|
58
|
+
# Stage 3: Documentation Writer (Generate developer docs with clickable file:// links)
|
|
59
|
+
print("\n\n==================================================")
|
|
60
|
+
print("✍️ [Stage 3/3] Documentation Writer (documentation-writer.md)")
|
|
61
|
+
print("==================================================")
|
|
62
|
+
doc_writer_cfg = LocalAgentConfig(
|
|
63
|
+
system_instructions=(
|
|
64
|
+
"You are the Documentation Writer subagent from everything-gemini. "
|
|
65
|
+
"Generate developer-facing markdown documentation, quickstarts, and ensure all file references "
|
|
66
|
+
"strictly use clickable file:// markdown links."
|
|
67
|
+
),
|
|
68
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
69
|
+
)
|
|
70
|
+
async with Agent(doc_writer_cfg) as doc_writer:
|
|
71
|
+
resp = await doc_writer.chat(
|
|
72
|
+
f"Generate the developer quickstart guide and API reference in markdown based on the ADR "
|
|
73
|
+
f"and reviewer feedback:\n\nADR:\n{adr_spec}\n\nFeedback:\n{review_feedback}"
|
|
74
|
+
)
|
|
75
|
+
final_docs = await stream_output(resp)
|
|
76
|
+
|
|
77
|
+
print("\n\n==================================================")
|
|
78
|
+
print("✨ Documentation Pipeline Complete!")
|
|
79
|
+
print("==================================================")
|
|
80
|
+
print("Generated Documentation Size:", len(final_docs), "characters")
|
|
81
|
+
|
|
82
|
+
if __name__ == "__main__":
|
|
83
|
+
asyncio.run(run_documentation_pipeline())
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Everything Gemini (everything-gemini) Python SDK Example
|
|
4
|
+
Autonomous Multi-Agent Incident Triage & SRE Remediation Pipeline
|
|
5
|
+
|
|
6
|
+
Orchestrates a 4-stage automated production triage loop:
|
|
7
|
+
Incident Responder -> Performance Tuner -> Release Engineer -> Postmortem Generator
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import sys
|
|
11
|
+
import json
|
|
12
|
+
from dataclasses import dataclass, field
|
|
13
|
+
from typing import List, Dict, Any, Optional
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class ProductionIncident:
|
|
17
|
+
incident_id: str
|
|
18
|
+
severity: str # SEV-1, SEV-2, SEV-3
|
|
19
|
+
service: str
|
|
20
|
+
error_rate_percent: float
|
|
21
|
+
p99_latency_ms: float
|
|
22
|
+
active_alerts: List[str] = field(default_factory=list)
|
|
23
|
+
recent_deployments: List[Dict[str, str]] = field(default_factory=list)
|
|
24
|
+
telemetry_spans: List[Dict[str, Any]] = field(default_factory=list)
|
|
25
|
+
|
|
26
|
+
class IncidentTriagePipeline:
|
|
27
|
+
"""Automates multi-agent incident triage and mitigation using Antigravity principles."""
|
|
28
|
+
|
|
29
|
+
def __init__(self, incident: ProductionIncident):
|
|
30
|
+
self.incident = incident
|
|
31
|
+
self.triage_log: List[Dict[str, Any]] = []
|
|
32
|
+
self.mitigation_applied: Optional[Dict[str, str]] = None
|
|
33
|
+
|
|
34
|
+
def log_event(self, agent: str, phase: str, status: str, details: str):
|
|
35
|
+
event = {
|
|
36
|
+
"agent": agent,
|
|
37
|
+
"phase": phase,
|
|
38
|
+
"status": status,
|
|
39
|
+
"details": details
|
|
40
|
+
}
|
|
41
|
+
self.triage_log.append(event)
|
|
42
|
+
print(f"[{agent.upper()}] ({phase}): {status} - {details}")
|
|
43
|
+
|
|
44
|
+
def stage_1_triage_and_blast_radius(self) -> bool:
|
|
45
|
+
"""Stage 1: Incident Responder classifies severity and determines blast radius."""
|
|
46
|
+
self.log_event(
|
|
47
|
+
agent="incident-responder",
|
|
48
|
+
phase="classification",
|
|
49
|
+
status="ACTIVE",
|
|
50
|
+
details=f"Incident {self.incident.incident_id} classified as {self.incident.severity} affecting '{self.incident.service}'."
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
impacted_users_est = min(100.0, self.incident.error_rate_percent * 1.5)
|
|
54
|
+
self.log_event(
|
|
55
|
+
agent="incident-responder",
|
|
56
|
+
phase="blast_radius",
|
|
57
|
+
status="ASSESSED",
|
|
58
|
+
details=f"Error rate: {self.incident.error_rate_percent}%, P99: {self.incident.p99_latency_ms}ms, Est. impact: ~{impacted_users_est:.1f}% traffic."
|
|
59
|
+
)
|
|
60
|
+
return True
|
|
61
|
+
|
|
62
|
+
def stage_2_telemetry_and_root_cause(self) -> str:
|
|
63
|
+
"""Stage 2: Correlate OpenTelemetry traces, Sentry errors, and recent deployments."""
|
|
64
|
+
suspect_commit = None
|
|
65
|
+
if self.incident.recent_deployments:
|
|
66
|
+
latest = self.incident.recent_deployments[-1]
|
|
67
|
+
suspect_commit = latest.get("commit")
|
|
68
|
+
self.log_event(
|
|
69
|
+
agent="incident-responder",
|
|
70
|
+
phase="telemetry_correlation",
|
|
71
|
+
status="CORRELATED",
|
|
72
|
+
details=f"Correlated error spike with deployment {latest.get('version')} (commit {suspect_commit})."
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
self.log_event(
|
|
76
|
+
agent="performance-tuner",
|
|
77
|
+
phase="bottleneck_analysis",
|
|
78
|
+
status="IDENTIFIED",
|
|
79
|
+
details="Identified unindexed sequential table scan causing PostgreSQL connection pool saturation."
|
|
80
|
+
)
|
|
81
|
+
return suspect_commit or "unknown"
|
|
82
|
+
|
|
83
|
+
def stage_3_mitigation(self, suspect_commit: str) -> bool:
|
|
84
|
+
"""Stage 3: Release Engineer deploys rapid mitigation (canary rollback / circuit breaking)."""
|
|
85
|
+
if self.incident.severity in ["SEV-1", "SEV-2"] and suspect_commit != "unknown":
|
|
86
|
+
self.mitigation_applied = {
|
|
87
|
+
"strategy": "automated_canary_rollback",
|
|
88
|
+
"target_commit": suspect_commit,
|
|
89
|
+
"action": f"Reverting deployment {suspect_commit} to previous stable baseline."
|
|
90
|
+
}
|
|
91
|
+
self.log_event(
|
|
92
|
+
agent="release-engineer",
|
|
93
|
+
phase="mitigation",
|
|
94
|
+
status="EXECUTED",
|
|
95
|
+
details=f"Triggered automated rollback of {suspect_commit}. Traffic shedding enabled."
|
|
96
|
+
)
|
|
97
|
+
else:
|
|
98
|
+
self.mitigation_applied = {
|
|
99
|
+
"strategy": "rate_limiting_circuit_breaker",
|
|
100
|
+
"action": "Enforcing 50% rate-limit shed on unauthenticated endpoints via LiteLLM gateway."
|
|
101
|
+
}
|
|
102
|
+
self.log_event(
|
|
103
|
+
agent="release-engineer",
|
|
104
|
+
phase="mitigation",
|
|
105
|
+
status="EXECUTED",
|
|
106
|
+
details="Activated circuit breaker and traffic throttling."
|
|
107
|
+
)
|
|
108
|
+
return True
|
|
109
|
+
|
|
110
|
+
def stage_4_blameless_postmortem(self) -> Dict[str, Any]:
|
|
111
|
+
"""Stage 4: Generate blameless postmortem report with root cause analysis and action items."""
|
|
112
|
+
postmortem = {
|
|
113
|
+
"incidentId": self.incident.incident_id,
|
|
114
|
+
"severity": self.incident.severity,
|
|
115
|
+
"service": self.incident.service,
|
|
116
|
+
"summary": f"Service degradation on {self.incident.service} triggered by database connection pool starvation.",
|
|
117
|
+
"metrics": {
|
|
118
|
+
"peakErrorRate": f"{self.incident.error_rate_percent}%",
|
|
119
|
+
"peakP99Latency": f"{self.incident.p99_latency_ms}ms"
|
|
120
|
+
},
|
|
121
|
+
"mitigation": self.mitigation_applied,
|
|
122
|
+
"rootCause": "Unindexed foreign key query on high-frequency outbox table introduced in recent deploy.",
|
|
123
|
+
"actionItems": [
|
|
124
|
+
{"priority": "P0", "task": "Add composite B-tree index on outbox table", "owner": "database-migrator"},
|
|
125
|
+
{"priority": "P1", "task": "Configure automated connection pool saturation alerting in Prometheus", "owner": "incident-responder"},
|
|
126
|
+
{"priority": "P2", "task": "Add load test step to release readiness pipeline", "owner": "release-engineer"}
|
|
127
|
+
],
|
|
128
|
+
"timeline": self.triage_log
|
|
129
|
+
}
|
|
130
|
+
self.log_event(
|
|
131
|
+
agent="incident-responder",
|
|
132
|
+
phase="postmortem_generation",
|
|
133
|
+
status="COMPLETED",
|
|
134
|
+
details="Generated comprehensive blameless postmortem report."
|
|
135
|
+
)
|
|
136
|
+
return postmortem
|
|
137
|
+
|
|
138
|
+
def execute(self) -> Dict[str, Any]:
|
|
139
|
+
"""Runs the complete incident response automation."""
|
|
140
|
+
print(f"\n🚨 Initiating Multi-Agent Incident Response: {self.incident.incident_id} [{self.incident.severity}]")
|
|
141
|
+
print("=" * 75)
|
|
142
|
+
self.stage_1_triage_and_blast_radius()
|
|
143
|
+
suspect = self.stage_2_telemetry_and_root_cause()
|
|
144
|
+
self.stage_3_mitigation(suspect)
|
|
145
|
+
report = self.stage_4_blameless_postmortem()
|
|
146
|
+
print("=" * 75)
|
|
147
|
+
print("✅ Incident Remediated & Postmortem Published Successfully.\n")
|
|
148
|
+
return report
|
|
149
|
+
|
|
150
|
+
def main():
|
|
151
|
+
sample_incident = ProductionIncident(
|
|
152
|
+
incident_id="INC-2026-1019-01",
|
|
153
|
+
severity="SEV-1",
|
|
154
|
+
service="order-checkout-gateway",
|
|
155
|
+
error_rate_percent=14.8,
|
|
156
|
+
p99_latency_ms=4250.0,
|
|
157
|
+
active_alerts=["HighHttp5xxRate", "DatabaseConnectionPoolSaturated"],
|
|
158
|
+
recent_deployments=[
|
|
159
|
+
{"version": "v1.7.4", "commit": "a82f91c", "timestamp": "2026-10-19T10:15:00Z"}
|
|
160
|
+
]
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
pipeline = IncidentTriagePipeline(sample_incident)
|
|
164
|
+
report = pipeline.execute()
|
|
165
|
+
|
|
166
|
+
if "--json" in sys.argv:
|
|
167
|
+
print(json.dumps(report, indent=2))
|
|
168
|
+
|
|
169
|
+
if __name__ == "__main__":
|
|
170
|
+
main()
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Everything Gemini (everything-gemini) Full Multi-Agent Pipeline Example
|
|
4
|
+
Demonstrates a 4-stage autonomous lifecycle handoff:
|
|
5
|
+
Planner -> Database Migrator -> Performance Tuner -> Code Reviewer.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import asyncio
|
|
9
|
+
import sys
|
|
10
|
+
from google.antigravity import Agent, LocalAgentConfig, CapabilitiesConfig
|
|
11
|
+
|
|
12
|
+
async def stream_output(response_stream):
|
|
13
|
+
captured = []
|
|
14
|
+
async for token in response_stream:
|
|
15
|
+
sys.stdout.write(token)
|
|
16
|
+
sys.stdout.flush()
|
|
17
|
+
captured.append(token)
|
|
18
|
+
return "".join(captured)
|
|
19
|
+
|
|
20
|
+
async def run_feature_pipeline():
|
|
21
|
+
print("🪐 Initializing Everything Gemini 4-Stage Autonomous Pipeline...\n")
|
|
22
|
+
|
|
23
|
+
# Stage 1: Strategic Planner
|
|
24
|
+
print("==================================================")
|
|
25
|
+
print("🤖 [Stage 1/4] Strategic Planner (planner.md)")
|
|
26
|
+
print("==================================================")
|
|
27
|
+
planner_cfg = LocalAgentConfig(
|
|
28
|
+
system_instructions=(
|
|
29
|
+
"You are the Strategic Planner agent from everything-gemini. "
|
|
30
|
+
"Decompose user requests into dependency maps and verifiable checklists."
|
|
31
|
+
),
|
|
32
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
33
|
+
)
|
|
34
|
+
async with Agent(planner_cfg) as planner:
|
|
35
|
+
resp = await planner.chat(
|
|
36
|
+
"Plan a zero-downtime migration to add a multi-tenant 'organization_id' UUID column "
|
|
37
|
+
"to a high-traffic PostgreSQL 'orders' table."
|
|
38
|
+
)
|
|
39
|
+
plan = await stream_output(resp)
|
|
40
|
+
|
|
41
|
+
# Stage 2: Database Migrator
|
|
42
|
+
print("\n\n==================================================")
|
|
43
|
+
print("🗄️ [Stage 2/4] Database Migrator (database-migrator.md)")
|
|
44
|
+
print("==================================================")
|
|
45
|
+
migrator_cfg = LocalAgentConfig(
|
|
46
|
+
system_instructions=(
|
|
47
|
+
"You are the Database Migrator agent from everything-gemini. "
|
|
48
|
+
"Design zero-downtime expand/contract SQL migrations with safe lock timeouts."
|
|
49
|
+
),
|
|
50
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
51
|
+
)
|
|
52
|
+
async with Agent(migrator_cfg) as migrator:
|
|
53
|
+
resp = await migrator.chat(
|
|
54
|
+
f"Based on this plan, generate the Phase 1 (Expand) and Phase 2 (Contract) SQL scripts:\n\n{plan}"
|
|
55
|
+
)
|
|
56
|
+
migration_sql = await stream_output(resp)
|
|
57
|
+
|
|
58
|
+
# Stage 3: Performance Tuner
|
|
59
|
+
print("\n\n==================================================")
|
|
60
|
+
print("⚡ [Stage 3/4] Performance Tuner (performance-tuner.md)")
|
|
61
|
+
print("==================================================")
|
|
62
|
+
tuner_cfg = LocalAgentConfig(
|
|
63
|
+
system_instructions=(
|
|
64
|
+
"You are the Performance Tuner agent from everything-gemini. "
|
|
65
|
+
"Analyze lock contention, query execution plans, and index strategies."
|
|
66
|
+
),
|
|
67
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
68
|
+
)
|
|
69
|
+
async with Agent(tuner_cfg) as tuner:
|
|
70
|
+
resp = await tuner.chat(
|
|
71
|
+
f"Audit this migration SQL for lock contention and missing concurrent indexes:\n\n{migration_sql}"
|
|
72
|
+
)
|
|
73
|
+
perf_review = await stream_output(resp)
|
|
74
|
+
|
|
75
|
+
# Stage 4: Code Reviewer
|
|
76
|
+
print("\n\n==================================================")
|
|
77
|
+
print("🛡️ [Stage 4/4] Code Reviewer (code-reviewer.md)")
|
|
78
|
+
print("==================================================")
|
|
79
|
+
reviewer_cfg = LocalAgentConfig(
|
|
80
|
+
system_instructions=(
|
|
81
|
+
"You are the Code Reviewer agent from everything-gemini. "
|
|
82
|
+
"Enforce zero regression, minimal diffs, and security compliance before final handoff."
|
|
83
|
+
),
|
|
84
|
+
capabilities=CapabilitiesConfig(allow_network=False),
|
|
85
|
+
)
|
|
86
|
+
async with Agent(reviewer_cfg) as reviewer:
|
|
87
|
+
resp = await reviewer.chat(
|
|
88
|
+
f"Perform final quality audit on the proposed migration and performance review:\n\n{perf_review}"
|
|
89
|
+
)
|
|
90
|
+
await stream_output(resp)
|
|
91
|
+
|
|
92
|
+
print("\n\n✨ 4-Stage Autonomous Pipeline executed successfully!")
|
|
93
|
+
|
|
94
|
+
if __name__ == "__main__":
|
|
95
|
+
asyncio.run(run_feature_pipeline())
|