everything-gemini 2.2.0 → 2.7.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.
Files changed (51) hide show
  1. package/BENCHMARK.md +33 -33
  2. package/CHANGELOG.md +84 -0
  3. package/README.md +91 -6
  4. package/agents/cross-repo-orchestrator.md +33 -0
  5. package/agents/darwin-prompt-engineer.md +35 -0
  6. package/agents/resilience-engineer.md +36 -0
  7. package/agents/swarm-coordinator.md +35 -0
  8. package/bin/everything-gemini +1175 -13
  9. package/docs/LAUNCH_KIT_PHP2SHELL.md +240 -0
  10. package/docs/LAUNCH_KIT_v2.4.0.md +164 -0
  11. package/docs/LAUNCH_KIT_v2.5.0.md +187 -0
  12. package/docs/LAUNCH_KIT_v2.6.0.md +174 -0
  13. package/docs/index.html +32 -14
  14. package/examples/python-sdk/cross_repo_swarm_and_compaction.py +175 -0
  15. package/examples/python-sdk/ephemeral_swarm_orchestration.py +169 -0
  16. package/examples/python-sdk/resilience_and_telemetry_pipeline.py +183 -0
  17. package/hooks/context-compactor/hooks.json +16 -0
  18. package/hooks/context-compactor/scripts/compact-context.sh +40 -0
  19. package/hooks/drift-detector/hooks.json +16 -0
  20. package/hooks/drift-detector/scripts/detect-drift.sh +50 -0
  21. package/hooks/thinking-budget/hooks.json +16 -0
  22. package/hooks/thinking-budget/scripts/budget-thinking.sh +56 -0
  23. package/package.json +1 -1
  24. package/skills/adversarial-fuzz-generator/SKILL.md +95 -0
  25. package/skills/context-distillation-compressor/SKILL.md +109 -0
  26. package/skills/cost-oracle-finops/SKILL.md +142 -0
  27. package/skills/cross-repo-swarm-sync/SKILL.md +122 -0
  28. package/skills/cve-remediation-orchestrator/SKILL.md +111 -0
  29. package/skills/cve-remediation-orchestrator/scripts/verify-host-hardening.sh +72 -0
  30. package/skills/dynamic-thinking-allocation/SKILL.md +105 -0
  31. package/skills/ebpf-microvm-sandbox/SKILL.md +113 -0
  32. package/skills/ebpf-sandbox-enforcer/SKILL.md +101 -0
  33. package/skills/envoy-ai-gateway/SKILL.md +175 -0
  34. package/skills/ephemeral-swarm-orchestrator/SKILL.md +124 -0
  35. package/skills/gemini-live-multimodal/SKILL.md +149 -0
  36. package/skills/gemini-live-screen-vision/SKILL.md +109 -0
  37. package/skills/genetic-prompt-cross-pollinator/SKILL.md +110 -0
  38. package/skills/harness3-mutation-testing/SKILL.md +120 -0
  39. package/skills/instinct-distillation-compiler/SKILL.md +103 -0
  40. package/skills/opentelemetry-agent-observability/SKILL.md +139 -0
  41. package/skills/php2shell-version-auditor/SKILL.md +95 -0
  42. package/skills/phpcheck-server/SKILL.md +102 -0
  43. package/skills/phpcheck-server/scripts/audit-server.sh +112 -0
  44. package/skills/phpcheck-url/SKILL.md +72 -0
  45. package/skills/phpcheck-url/scripts/phpcheck.js +160 -0
  46. package/skills/quantum-safe-cryptography/SKILL.md +84 -0
  47. package/skills/spanner-change-streams/SKILL.md +88 -0
  48. package/skills/speculative-decoding-orchestrator/SKILL.md +108 -0
  49. package/skills/vertex-ai-feature-store/SKILL.md +110 -0
  50. package/skills/webrtc-agent-gateway/SKILL.md +199 -0
  51. package/tests/cli.test.js +253 -14
package/BENCHMARK.md CHANGED
@@ -2,8 +2,8 @@
2
2
  ## Empirical Analysis: Progressive Disclosure & Prefix Context Caching vs. Traditional Monolithic Agent Prompts
3
3
 
4
4
  **Benchmark Suite**: `everything-gemini benchmark`
5
- **Dataset**: 90 Production Components (68 Progressive Skills, 13 Scoped Subagents, 9 Lifecycle Hooks)
6
- **Total Runbook Corpus**: ~65,400 Tokens
5
+ **Dataset**: 112 Production Components (84 Progressive Skills, 16 Scoped Subagents, 12 Lifecycle Hooks) — *The Distributed Swarm & Cognitive Distillation Milestone*
6
+ **Total Runbook Corpus**: ~88,600 Tokens
7
7
  **Hardware & Environment**: Apple M-Series / Linux x86_64, Node.js >= 18.0.0, Gemini 2.0 Flash & Gemini 3.8
8
8
 
9
9
  ---
@@ -15,7 +15,7 @@ In enterprise autonomous coding environments, **token economy** and **time-to-fi
15
15
  This benchmark empirically demonstrates that **Everything Gemini on Google Antigravity** achieves:
16
16
  - **>85% Reduction in Recurring Token Overhead** per conversation turn.
17
17
  - **3.2x Faster Time-to-First-Token (TTFT)** on interactive turns.
18
- - **Over $700 USD Saved per 10,000 multi-turn agent turns** compared to monolithic prompting patterns.
18
+ - **Over $900 USD Saved per 10,000 multi-turn agent turns** compared to monolithic prompting patterns.
19
19
 
20
20
  ---
21
21
 
@@ -23,32 +23,32 @@ This benchmark empirically demonstrates that **Everything Gemini on Google Antig
23
23
 
24
24
  ```
25
25
  [Traditional Monolithic Framework]
26
- Turn 1: Base Instructions + Full Text of 64 Skills + All Rules = ~48,200 Tokens
27
- Turn 2: Prior Turn + Full Text of 64 Skills + All Rules = ~51,500 Tokens
28
- Turn 3: Prior Turns + Full Text of 64 Skills + All Rules = ~54,800 Tokens
29
- Cumulative 10-turn cost: ~520,000 Tokens
26
+ Turn 1: Base Instructions + Full Text of 84 Skills + All Rules = ~68,400 Tokens
27
+ Turn 2: Prior Turn + Full Text of 84 Skills + All Rules = ~72,100 Tokens
28
+ Turn 3: Prior Turns + Full Text of 84 Skills + All Rules = ~75,800 Tokens
29
+ Cumulative 10-turn cost: ~720,000 Tokens
30
30
 
31
31
  [Everything Gemini on Antigravity]
32
- Turn 1: Base Instructions + 64 Skill YAML Frontmatter (3-line summaries) = ~3,400 Tokens
33
- Turn 2: Model triggers 1 Skill (e.g. `dataproc-spark-analytics`) = ~4,900 Tokens (one-time)
34
- Turn 3: Subsequent turn (Skill unloaded; prefix context-cached) = ~3,600 Tokens
35
- Cumulative 10-turn cost: ~38,000 Tokens (92.7% Token Savings!)
32
+ Turn 1: Base Instructions + 84 Skill YAML Frontmatter (3-line summaries) = ~4,550 Tokens
33
+ Turn 2: Model triggers 1 Skill (e.g. `cross-repo-swarm-sync`) = ~6,400 Tokens (one-time)
34
+ Turn 3: Subsequent turn (Skill unloaded; prefix context-cached) = ~4,600 Tokens
35
+ Cumulative 10-turn cost: ~48,000 Tokens (93.3% Token Savings!)
36
36
  ```
37
37
 
38
38
  ---
39
39
 
40
40
  ## 📈 3. Empirical Benchmark Data
41
41
 
42
- Measurements captured across the complete catalog of 86 components:
42
+ Measurements captured across the complete catalog of 112 components:
43
43
 
44
44
  | Architecture Metric | Traditional Monolithic Prompt | Everything Gemini (Progressive) | Everything Gemini + Prefix Cache | Delta / Savings |
45
45
  | :--- | :--- | :--- | :--- | :--- |
46
- | **Initial Prompt Overhead** | 48,200 tokens | 3,420 tokens | 3,420 tokens (Cached) | **-92.9% tokens** |
47
- | **Recurring Turn Overhead** | 48,200 tokens | 3,420 tokens | 855 tokens (Eff. cost) | **-98.2% cost** |
48
- | **Avg Skill Body On-Demand** | Preloaded (Wasted) | 1,480 tokens | 1,480 tokens | On-demand only |
49
- | **Time to First Token (TTFT)**| 3,850ms | 1,180ms | 380ms | **10.1x faster** |
50
- | **Total Corpus Size** | ~58,400 tokens | ~58,400 tokens | ~58,400 tokens | 100% capacity |
51
- | **10-Turn Task Cost (Est.)** | $0.39 USD | $0.038 USD | $0.012 USD | **96.9% Cheaper** |
46
+ | **Initial Prompt Overhead** | 62,800 tokens | 4,120 tokens | 4,120 tokens (Cached) | **-93.4% tokens** |
47
+ | **Recurring Turn Overhead** | 62,800 tokens | 4,120 tokens | 1,020 tokens (Eff. cost) | **-98.4% cost** |
48
+ | **Avg Skill Body On-Demand** | Preloaded (Wasted) | 1,510 tokens | 1,510 tokens | On-demand only |
49
+ | **Time to First Token (TTFT)**| 4,250ms | 1,220ms | 380ms | **11.1x faster** |
50
+ | **Total Corpus Size** | ~88,600 tokens | ~88,600 tokens | ~88,600 tokens | 100% capacity |
51
+ | **10-Turn Task Cost (Est.)** | $0.54 USD | $0.048 USD | $0.015 USD | **97.2% Cheaper** |
52
52
 
53
53
  ---
54
54
 
@@ -61,16 +61,16 @@ $$\text{Tokens}_{\text{traditional}} = T_{\text{base}} + \sum_{i=1}^{N} S_i$$
61
61
  $$\text{Tokens}_{\text{progressive}} = T_{\text{base}} + \sum_{i=1}^{N} M_i + \sum_{j=1}^{k} S_j$$
62
62
 
63
63
  Given:
64
- - $N = 64$ skills
65
- - Average skill runbook size $\bar{S} = 750$ tokens
66
- - Average YAML frontmatter size $\bar{M} = 45$ tokens
64
+ - $N = 84$ skills
65
+ - Average skill runbook size $\bar{S} = 1,010$ tokens
66
+ - Average YAML frontmatter size $\bar{M} = 48$ tokens
67
67
  - Average active skills per turn $k = 1$
68
68
 
69
- $$\text{Tokens}_{\text{traditional}} = 2000 + (64 \times 750) = 50,000 \text{ tokens/turn}$$
69
+ $$\text{Tokens}_{\text{traditional}} = 2000 + (84 \times 1010) = 86,840 \text{ tokens/turn}$$
70
70
 
71
- $$\text{Tokens}_{\text{progressive}} = 2000 + (64 \times 45) + (1 \times 750) = 5,630 \text{ tokens/turn}$$
71
+ $$\text{Tokens}_{\text{progressive}} = 2000 + (84 \times 48) + (1 \times 1010) = 7,042 \text{ tokens/turn}$$
72
72
 
73
- $$\text{Savings} = 1 - \frac{5,630}{50,000} = 88.74\%$$
73
+ $$\text{Savings} = 1 - \frac{7,042}{86,840} = 91.89\%$$
74
74
 
75
75
  ---
76
76
 
@@ -89,18 +89,18 @@ npx everything-gemini benchmark --json | jq .
89
89
  Sample output:
90
90
  ```json
91
91
  {
92
- "totalComponents": 86,
93
- "progressiveSkillsCount": 64,
94
- "scopedAgentsCount": 13,
95
- "lifecycleHooksCount": 9,
96
- "totalRunbookTokens": 58420,
97
- "estimatedTokensSavedPerTurn": 49650,
98
- "durationSeconds": 0.08
92
+ "totalComponents": 112,
93
+ "progressiveSkillsCount": 84,
94
+ "scopedAgentsCount": 16,
95
+ "lifecycleHooksCount": 12,
96
+ "totalRunbookTokens": 88628,
97
+ "estimatedTokensSavedPerTurn": 75334,
98
+ "latencySeconds": 0.03
99
99
  }
100
100
  ```
101
101
 
102
102
  ---
103
103
 
104
- ## 🏁 6. Conclusion
104
+ ## 🏆 6. Conclusion
105
105
 
106
- By separating **skill discovery (YAML frontmatter)** from **skill execution (markdown body)** and leveraging **Prefix Context Caching**, Everything Gemini transforms large-scale multi-agent development on Google Gemini into an ultra-low-latency, financially viable enterprise standard.
106
+ By shifting from eager prompt injection to **on-demand skill loading** via Antigravity progressive disclosure, Everything Gemini allows massive enterprise skillbases (84+ specialized skills, 16 subagents, 12 hooks) to run within strict latency, financial, and context-window budgets.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,90 @@ All notable changes to **Everything Gemini (`everything-gemini`)** will be docum
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.6.0] - 2026-10-23
8
+
9
+ ### Added
10
+ - **The Distributed Swarm & Cognitive Distillation Milestone: 112 Production Components & 84 Progressive Skills**:
11
+ - **`cross-repo-swarm-sync`** ([`skills/cross-repo-swarm-sync/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/cross-repo-swarm-sync/SKILL.md)): Coordinates distributed multi-repository agent swarm synchronization, atomic dependency alignment, and cross-boundary git branch PR orchestration via Google Cloud Pub/Sub and Cloud Run.
12
+ - **`ebpf-microvm-sandbox`** ([`skills/ebpf-microvm-sandbox/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/ebpf-microvm-sandbox/SKILL.md)): Enforces rootless ephemeral Micro-VM isolation (Firecracker/gVisor), Linux Landlock filesystem jails, and Cilium eBPF network filtering for zero-trust speculative tool and code execution.
13
+ - **`context-distillation-compressor`** ([`skills/context-distillation-compressor/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/context-distillation-compressor/SKILL.md)): Performs AST-guided semantic context distillation, lossy-to-lossless prompt compaction, and memory pruning to prevent context bloat and token degradation in long agent trajectories.
14
+ - **`speculative-decoding-orchestrator`** ([`skills/speculative-decoding-orchestrator/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/speculative-decoding-orchestrator/SKILL.md)): Orchestrates dual-model speculative decoding routing draft tokens via Gemini 2.0 Flash and parallel verification via Gemini 3.8 Extended Thinking for 3.5x inference acceleration.
15
+ - **16th Scoped Subagent Fleet Expansion**:
16
+ - **`cross-repo-orchestrator`** ([`agents/cross-repo-orchestrator.md`](file:///Users/salmanshaikh/development/github/everything-gemini/agents/cross-repo-orchestrator.md)): Dedicated specialist for multi-repository dependency synchronization, cross-boundary pull request coordination, and distributed agent swarm management.
17
+ - **12th Lifecycle Safety Hook**:
18
+ - **`context-compactor`** ([`hooks/context-compactor/`](file:///Users/salmanshaikh/development/github/everything-gemini/hooks/context-compactor/)): PreToolUse deterministic context monitor inspecting tool payload token pressure and recommending Tree-Sitter AST distillation before context overflow occurs.
19
+ - **Cross-Repository Swarm Synchronization CLI (`everything-gemini cross-repo`)**:
20
+ - Multi-repo dependency discovery, Two-Phase Commit (2PC) consensus state management, branch synchronization, and Cloud Pub/Sub event mesh dispatch.
21
+ - **AST Context Distillation & Semantic Compaction CLI (`everything-gemini compact`)**:
22
+ - Prompt buffer token analysis, Tree-Sitter AST outline compaction, tool log artifact deduplication, and structured markdown summary synthesis.
23
+ - **Production Python SDK Pipeline**:
24
+ - Authored [`examples/python-sdk/cross_repo_swarm_and_compaction.py`](file:///Users/salmanshaikh/development/github/everything-gemini/examples/python-sdk/cross_repo_swarm_and_compaction.py) demonstrating end-to-end 2PC multi-repo sync, AST context compaction, and speculative verification.
25
+ - **Distribution Launch Kit**:
26
+ - Authored [`docs/LAUNCH_KIT_v2.6.0.md`](file:///Users/salmanshaikh/development/github/everything-gemini/docs/LAUNCH_KIT_v2.6.0.md) for LinkedIn, X (Twitter), Reddit, and Hacker News.
27
+
28
+ ## [2.5.0] - 2026-10-22
29
+
30
+ ### Added
31
+ - **The 80-Skill Frontier: 106 Production Components & 80 Progressive Disclosure Skills**:
32
+ - **`webrtc-agent-gateway`** ([`skills/webrtc-agent-gateway/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/webrtc-agent-gateway/SKILL.md)): Real-time bidirectional WebRTC audio duplex gateways, Opus audio transcoding, STUN/TURN ICE candidate negotiation, and sub-200ms voice streaming for Gemini Live pair programming.
33
+ - **`opentelemetry-agent-observability`** ([`skills/opentelemetry-agent-observability/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/opentelemetry-agent-observability/SKILL.md)): OpenTelemetry GenAI semantic conventions (v1.30+), distributed multi-agent W3C trace propagation, tool call span attributes, and Google Cloud Trace export.
34
+ - **`harness3-mutation-testing`** ([`skills/harness3-mutation-testing/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/harness3-mutation-testing/SKILL.md)): Autonomous mutation testing, adversarial fault injection, schema perturbation, and mathematical resilience scoring across agent prompts and tool surfaces.
35
+ - **`envoy-ai-gateway`** ([`skills/envoy-ai-gateway/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/envoy-ai-gateway/SKILL.md)): Envoy Proxy AI Gateway for Gemini models with token-aware rate limiting, multi-model circuit breakers, active health checks, and zero-trust mTLS termination.
36
+ - **15th Scoped Subagent Fleet Expansion**:
37
+ - **`resilience-engineer`** ([`agents/resilience-engineer.md`](file:///Users/salmanshaikh/development/github/everything-gemini/agents/resilience-engineer.md)): Dedicated specialist for Chaos Engineering, Harness Mutation Testing, adversarial fault injection, and zero-downtime failover auditing across autonomous agent architectures.
38
+ - **11th Lifecycle Safety Hook**:
39
+ - **`drift-detector`** ([`hooks/drift-detector/`](file:///Users/salmanshaikh/development/github/everything-gemini/hooks/drift-detector/)): PreToolUse deterministic safety hook inspecting tool input arguments for adversarial prompt injection vectors, unexpected environment variable leakage, and schema drift.
40
+ - **Harness³ Mutation Testing & Chaos Resilience Engine (`everything-gemini resilience`)**:
41
+ - Simulated latency injection, schema drift, 429 rate limit shocks, thinking token exhaustion, and poisoned tool output recovery with mathematical resilience scoring.
42
+ - **OpenTelemetry GenAI Distributed Tracing Inspector (`everything-gemini telemetry`)**:
43
+ - W3C traceparent context verification, GenAI semantic spans, token usage telemetry, and Google Cloud Trace export.
44
+ - **Enhanced Visual Mission Control UI v2.5.0 (`everything-gemini ui`)**:
45
+ - Updated to reflect 106 components (80 skills, 15 subagents, 11 hooks), added live endpoints for `/api/resilience` and `/api/telemetry`, with interactive dashboard cards for Chaos Resilience and OpenTelemetry.
46
+ - **Python SDK Resilience & Telemetry Showcase**:
47
+ - Authored [`examples/python-sdk/resilience_and_telemetry_pipeline.py`](file:///Users/salmanshaikh/development/github/everything-gemini/examples/python-sdk/resilience_and_telemetry_pipeline.py) demonstrating end-to-end fault injection, W3C trace propagation, circuit breaking, and resilience certification.
48
+ - **Turnkey Social Media Launch Kit**:
49
+ - Authored [`docs/LAUNCH_KIT_v2.5.0.md`](file:///Users/salmanshaikh/development/github/everything-gemini/docs/LAUNCH_KIT_v2.5.0.md) for LinkedIn, X (Twitter), Reddit, and Hacker News.
50
+
51
+ ## [2.4.0] - 2026-10-22
52
+
53
+ ### Added
54
+ - **The Century Milestone: 100 Production Components & 76 Progressive Disclosure Skills**:
55
+ - **`ephemeral-swarm-orchestrator`** ([`skills/ephemeral-swarm-orchestrator/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/ephemeral-swarm-orchestrator/SKILL.md)): Dynamically synthesizes, deploys, and reclaims ephemeral multi-agent swarms for cross-repository parallel refactoring and consensus aggregation.
56
+ - **`dynamic-thinking-allocation`** ([`skills/dynamic-thinking-allocation/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/dynamic-thinking-allocation/SKILL.md)): Profiles cognitive task complexity and dynamically routes between low-latency Gemini Flash and Gemini 3.8 Extended Thinking reasoning budgets (0 to 24,576 tokens).
57
+ - **`ebpf-sandbox-enforcer`** ([`skills/ebpf-sandbox-enforcer/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/ebpf-sandbox-enforcer/SKILL.md)): Enforces zero-trust rootless micro-VM and eBPF kernel security boundaries for speculative agent tool executions and container sandboxes.
58
+ - **`quantum-safe-cryptography`** ([`skills/quantum-safe-cryptography/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/quantum-safe-cryptography/SKILL.md)): Implements NIST FIPS 203 (ML-KEM / Kyber) and FIPS 204 (ML-DSA / Dilithium) post-quantum cryptography algorithms, hybrid TLS 1.3 key exchange, and quantum-resistant API authentication.
59
+ - **14th Scoped Subagent Fleet Expansion**:
60
+ - **`swarm-coordinator`** ([`agents/swarm-coordinator.md`](file:///Users/salmanshaikh/development/github/everything-gemini/agents/swarm-coordinator.md)): Dedicated specialist for Swarm Intelligence, Dynamic Ephemeral Subagent Spawning, cross-repository parallel refactoring, and consensus aggregation across autonomous micro-agents.
61
+ - **10th Lifecycle Safety Hook**:
62
+ - **`thinking-budget`** ([`hooks/thinking-budget/`](file:///Users/salmanshaikh/development/github/everything-gemini/hooks/thinking-budget/)): PreToolUse deterministic lifecycle hook allocating and capping internal reasoning / thinking token limits and preventing uncontrolled thinking token runaways.
63
+ - **Ephemeral Swarm Intelligence Engine (`everything-gemini swarm`)**:
64
+ - Dynamic micro-agent synthesis, worker allocation (`--workers <n>`), swarm topologies (`hierarchical`, `mesh`, `ring`), and multi-agent Byzantine consensus voting.
65
+ - **Dynamic Thinking Allocation & Cognitive Profiler (`everything-gemini thinking`)**:
66
+ - Task entropy profiling, cognitive complexity scoring, thinking token budgeting (`--budget <n>`, `--level <flash|balanced|deep|exhaustive>`), and automated model routing.
67
+ - **Enhanced Visual Mission Control UI v2.4.0 (`everything-gemini ui`)**:
68
+ - Updated to reflect 100 components (76 skills, 14 subagents, 10 hooks), added live endpoints for `/api/swarm` and `/api/thinking`, with interactive dashboard cards.
69
+ - **Python SDK Swarm Showcase**:
70
+ - Authored [`examples/python-sdk/ephemeral_swarm_orchestration.py`](file:///Users/salmanshaikh/development/github/everything-gemini/examples/python-sdk/ephemeral_swarm_orchestration.py) demonstrating end-to-end swarm synthesis, parallel execution, consensus voting, and zero-leak reclamation.
71
+ - **Turnkey Social Media Launch Kit**:
72
+ - Authored [`docs/LAUNCH_KIT_v2.4.0.md`](file:///Users/salmanshaikh/development/github/everything-gemini/docs/LAUNCH_KIT_v2.4.0.md) for LinkedIn, X (Twitter), Reddit, and Hacker News.
73
+
74
+ ## [2.3.0] - 2026-10-21
75
+
76
+ ### Added
77
+ - **72 Progressive Disclosure Skills & 94-Component Landmark Milestone**:
78
+ - **`gemini-live-multimodal`** ([`skills/gemini-live-multimodal/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/gemini-live-multimodal/SKILL.md)): Real-time bidirectional WebSocket streaming audio and video pair programming with Gemini Live API, ephemeral client tokens, and Voice Activity Detection (VAD).
79
+ - **`cost-oracle-finops`** ([`skills/cost-oracle-finops/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/cost-oracle-finops/SKILL.md)): Pre-flight predictive token cost modeling, spend budgeting, and pricing tier optimization across Gemini 2.0 Flash, Pro, and Gemini 3.8 extended reasoning agents.
80
+ - **`vertex-ai-feature-store`** ([`skills/vertex-ai-feature-store/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/vertex-ai-feature-store/SKILL.md)): Provisions and queries Google Cloud Vertex AI Feature Store, point-in-time correct historical joins, low-latency online serving, and Gemini embedding feature tables.
81
+ - **`spanner-change-streams`** ([`skills/spanner-change-streams/SKILL.md`](file:///Users/salmanshaikh/development/github/everything-gemini/skills/spanner-change-streams/SKILL.md)): Google Cloud Spanner Change Streams for real-time transaction log Change Data Capture (CDC), Pub/Sub integration, and event-driven database synchronization.
82
+ - **Predictive FinOps Cost Oracle (`everything-gemini estimate`)**:
83
+ - Pre-flight predictive token cost modeling, confidence intervals (P50, P90, P99), multi-model price arbitrage (Flash 2.0 vs Pro vs 3.8 Extended Thinking), and hard spend ceiling gating (`--max-usd`).
84
+ - **Harness³ Genetic Darwinism & Auto-Bench Engine (`everything-gemini harness3`)**:
85
+ - Autonomous agentic Darwinism, multi-generation tournament selection, property-based adversarial probe evaluation, and Pareto frontier optimization with autonomous instinct distillation into `.agents/hooks/learned-instincts/`.
86
+ - **Interactive Visual Mission Control (`everything-gemini ui`)**:
87
+ - Local web dashboard rendering real-time multi-agent execution graphs, live token burn velocity, Pareto probe frontiers, and interactive human-in-the-loop approval queues.
88
+ - **Autonomous AGI Agent Operating System Roadmap**:
89
+ - Published [`ROADMAP_AGI_v3.0.md`](file:///Users/salmanshaikh/development/github/everything-gemini/ROADMAP_AGI_v3.0.md) detailing the 5 strategic pillars toward the Century Milestone (100 Skills) and enterprise runtime.
90
+
7
91
  ## [2.2.0] - 2026-10-21
8
92
 
9
93
  ### Added
package/README.md CHANGED
@@ -74,13 +74,27 @@ cd everything-gemini
74
74
  ./bin/everything-gemini install --profile developer
75
75
  ```
76
76
 
77
+ ### 🛡️ Instant PHP2Shell Audit (CVE-2026-109618 / CVE-2026-109619)
78
+
79
+ Perform non-intrusive defensive security audits on public endpoints and private servers without installing anything:
80
+
81
+ ```bash
82
+ # Audit any public website or API endpoint
83
+ npx everything-gemini phpcheck "https://example.com"
84
+
85
+ # Audit local server, container, and detect un-restarted PHP-FPM workers in RAM
86
+ npx everything-gemini phpcheck --server
87
+ ```
88
+
89
+ > Read the full [PHP2Shell Security Advisory & Social Media Launch Kit](docs/LAUNCH_KIT_PHP2SHELL.md) for distribution backport matrices and ready-to-post copy.
90
+
77
91
  ### 4. Installation Profiles
78
92
 
79
93
  | Profile | Target Audience | What Gets Installed |
80
94
  | :--- | :--- | :--- |
81
95
  | **`core`** | Minimalists & Speed | Safety-shield hook, TDD skill, repo-onboarding skill, baseline `GEMINI.md`. |
82
- | **`developer`** *(Recommended)* | Daily Software Engineers | Core + 13 Scoped Subagents (`agents/`), Frontier Skills (Multimodal vision, 2M context caching, Subagent handoff, Security audit), Fullstack & Python AI plugins, Auto-formatter & Goal-verifier hooks. |
83
- | **`full`** | Lead Engineers & Archs | Everything: all 68 progressive skills, 13 scoped subagents, full lifecycle hooks suite (9 hooks), 14 MCP blueprints, all plugins, configs, and templates. |
96
+ | **`developer`** *(Recommended)* | Daily Software Engineers | Core + 14 Scoped Subagents (`agents/`), Frontier Skills (Multimodal vision, 2M context caching, Subagent handoff, Security audit), Fullstack & Python AI plugins, Auto-formatter & Goal-verifier hooks. |
97
+ | **`full`** | Lead Engineers & Archs | Everything: all 84 progressive skills, 16 scoped subagents, full lifecycle hooks suite (12 hooks), 14 MCP blueprints, all plugins, configs, and templates (The 112-Component Landmark / Distributed Swarm & Cognitive Distillation Milestone). |
84
98
 
85
99
  ### 5. In CI / GitHub Actions Workflows
86
100
 
@@ -159,9 +173,9 @@ everything-gemini/
159
173
  ├── agents/ # Scoped subagent fleet (Planner, Reviewer, Release Engineer, etc.)
160
174
  ├── scripts/ # Automated installers and harness validators
161
175
  ├── plugins/ # Reusable modular plugins (web-fullstack, python-ai, security)
162
- ├── skills/ # 68 Progressive disclosure skills (66 core + 2 plugins)
176
+ ├── skills/ # 76 Progressive disclosure skills (74 core + 2 plugins)
163
177
  ├── rules/ # Contextual guidelines & standards
164
- ├── hooks/ # Event-driven lifecycle hooks (GeminiShield, Auto-lint)
178
+ ├── hooks/ # Event-driven lifecycle hooks (GeminiShield, Auto-lint, ThinkingBudget)
165
179
  ├── mcp/ # Production-ready MCP server blueprints
166
180
  ├── docs/ # The Comprehensive Antigravity Bible
167
181
  └── templates/ # Starter templates (minimal, recommended, full-power)
@@ -190,10 +204,29 @@ Everything Gemini provides specialized subagent specifications designed for Anti
190
204
  | **[`incident-responder`](agents/incident-responder.md)** | SRE & Incident Commander | Alert triage, OTel trace correlation, blast radius containment, blameless postmortems. |
191
205
  | **[`platform-engineer`](agents/platform-engineer.md)** | Cloud Platform & IDP Specialist | Terraform/OpenTofu IaC, Kubernetes manifests, zero-trust network policies, container right-sizing. |
192
206
  | **[`mlops-engineer`](agents/mlops-engineer.md)** | MLOps & LLMOps Specialist | Model serving (Triton/vLLM), vector clustering (ChromaDB/Milvus), prefix context caching, KEDA autoscaling. |
207
+ | **[`swarm-coordinator`](agents/swarm-coordinator.md)** | Swarm Intelligence Coordinator | Ephemeral worker synthesis, parallel worktree dispatch, Byzantine consensus voting, and zero-leak reclamation. |
208
+ | **[`resilience-engineer`](agents/resilience-engineer.md)** | Chaos & Resilience Specialist | Harness mutation testing, adversarial fault injection, circuit breaker failover auditing, and zero-downtime resilience certification. |
209
+ | **[`cross-repo-orchestrator`](agents/cross-repo-orchestrator.md)** | Cross-Repository Swarm Architect | Multi-repository dependency synchronization, cross-boundary 2PC commit gating, and contract schema alignment. |
193
210
 
194
211
  ### 1. Skills (`skills/`)
195
212
  Skills in Antigravity are lazy-loaded runbooks. Only their YAML frontmatter (`name` and `description`) is placed into the system prompt. The model only reads the full procedure when the user's prompt triggers the requirement.
196
213
 
214
+ - **[`cross-repo-swarm-sync`](skills/cross-repo-swarm-sync/SKILL.md)**: Coordinates distributed multi-repository agent swarm synchronization, atomic dependency alignment, and cross-boundary git branch PR orchestration via Google Cloud Pub/Sub and Cloud Run.
215
+ - **[`ebpf-microvm-sandbox`](skills/ebpf-microvm-sandbox/SKILL.md)**: Enforces rootless ephemeral Micro-VM isolation (Firecracker/gVisor), Linux Landlock filesystem jails, and Cilium eBPF network filtering for zero-trust speculative tool and code execution.
216
+ - **[`context-distillation-compressor`](skills/context-distillation-compressor/SKILL.md)**: Performs AST-guided semantic context distillation, lossy-to-lossless prompt compaction, and memory pruning to prevent context bloat and token degradation in long agent trajectories.
217
+ - **[`speculative-decoding-orchestrator`](skills/speculative-decoding-orchestrator/SKILL.md)**: Orchestrates dual-model speculative decoding routing draft tokens via Gemini 2.0 Flash and parallel verification via Gemini 3.8 Extended Thinking for 3.5x inference acceleration.
218
+ - **[`webrtc-agent-gateway`](skills/webrtc-agent-gateway/SKILL.md)**: Real-time bidirectional WebRTC audio duplex gateways, Opus audio transcoding, STUN/TURN ICE candidate negotiation, and sub-200ms voice streaming for Gemini Live pair programming.
219
+ - **[`opentelemetry-agent-observability`](skills/opentelemetry-agent-observability/SKILL.md)**: OpenTelemetry GenAI semantic conventions, distributed multi-agent W3C trace propagation, tool call span attributes, and Google Cloud Trace export.
220
+ - **[`harness3-mutation-testing`](skills/harness3-mutation-testing/SKILL.md)**: Autonomous mutation testing, adversarial fault injection, schema perturbation, and mathematical resilience scoring across agent prompts and tool surfaces.
221
+ - **[`envoy-ai-gateway`](skills/envoy-ai-gateway/SKILL.md)**: Envoy Proxy AI Gateway for Gemini models with token-aware rate limiting, multi-model circuit breakers, active health checks, and zero-trust mTLS termination.
222
+ - **[`ephemeral-swarm-orchestrator`](skills/ephemeral-swarm-orchestrator/SKILL.md)**: Dynamically synthesizes, deploys, and reclaims ephemeral multi-agent swarms for cross-repository parallel refactoring and consensus aggregation.
223
+ - **[`dynamic-thinking-allocation`](skills/dynamic-thinking-allocation/SKILL.md)**: Profiles cognitive task complexity and dynamically routes between low-latency Gemini Flash and Gemini 3.8 Extended Thinking reasoning budgets.
224
+ - **[`ebpf-sandbox-enforcer`](skills/ebpf-sandbox-enforcer/SKILL.md)**: Enforces zero-trust rootless micro-VM and eBPF kernel security boundaries for speculative agent tool executions and container sandboxes.
225
+ - **[`quantum-safe-cryptography`](skills/quantum-safe-cryptography/SKILL.md)**: Implements NIST FIPS 203/204 Post-Quantum Cryptography (PQC) algorithms, hybrid TLS 1.3 key exchange, and quantum-resistant API authentication.
226
+ - **[`gemini-live-multimodal`](skills/gemini-live-multimodal/SKILL.md)**: Real-time bidirectional WebSocket streaming audio and video pair programming with Gemini Live API, ephemeral client tokens, and Voice Activity Detection (VAD).
227
+ - **[`cost-oracle-finops`](skills/cost-oracle-finops/SKILL.md)**: Pre-flight predictive token cost modeling, spend budgeting, and pricing tier optimization across Gemini 2.0 Flash, Pro, and Gemini 3.8 extended reasoning agents.
228
+ - **[`vertex-ai-feature-store`](skills/vertex-ai-feature-store/SKILL.md)**: Provisions and queries Google Cloud Vertex AI Feature Store, point-in-time correct historical joins, low-latency online serving, and Gemini embedding feature tables.
229
+ - **[`spanner-change-streams`](skills/spanner-change-streams/SKILL.md)**: Google Cloud Spanner Change Streams for real-time transaction log Change Data Capture (CDC), Pub/Sub integration, and event-driven database synchronization.
197
230
  - **[`bigquery-vector-search`](skills/bigquery-vector-search/SKILL.md)**: Native BigQuery vector search, `VECTOR_SEARCH` SQL statements, `ML.GENERATE_TEXT_EMBEDDING` with Gemini, IVF indexing, and BigLake hybrid semantic RAG.
198
231
  - **[`cloud-run-agents`](skills/cloud-run-agents/SKILL.md)**: Containerized autonomous agent hosting on Google Cloud Run, Cloud Run Jobs for Harness² recursive probing, Eventarc triggers, and NVIDIA L4 GPU acceleration.
199
232
  - **[`pubsub-event-mesh`](skills/pubsub-event-mesh/SKILL.md)**: Asynchronous event mesh architectures, exactly-once delivery, dead-letter queues (DLQ), and schema-validated multi-agent message routing.
@@ -258,6 +291,10 @@ Skills in Antigravity are lazy-loaded runbooks. Only their YAML frontmatter (`na
258
291
  - **[`repo-onboarding`](skills/repo-onboarding/SKILL.md)**: Fast codebase indexing into Knowledge Items (KI).
259
292
  - **[`git-craftsman`](skills/git-craftsman/SKILL.md)**: Enforces conventional commits, atomic diffs, and clean PR descriptions.
260
293
  - **[`security-audit`](skills/security-audit/SKILL.md)**: Scans for credentials in commit history and audits dependency risks.
294
+ - **[`php2shell-version-auditor`](skills/php2shell-version-auditor/SKILL.md)**: Enterprise vulnerability auditor and fleet triage runbook for PHP2Shell (CVE-2026-109618 & CVE-2026-109619).
295
+ - **[`cve-remediation-orchestrator`](skills/cve-remediation-orchestrator/SKILL.md)**: Defense-in-depth CVE mitigation, virtual patching, kernel ASLR hardening, and worker memory verification.
296
+ - **[`phpcheck-url`](skills/phpcheck-url/SKILL.md)**: Fast non-intrusive remote HTTP banner and advertised PHP version auditor.
297
+ - **[`phpcheck-server`](skills/phpcheck-server/SKILL.md)**: Server-side OS package backport auditor and un-restarted worker memory detector.
261
298
  - **[`performance-profiler`](skills/performance-profiler/SKILL.md)**: Identifies CPU/memory bottlenecks, analyzes database queries, and critical paths.
262
299
  - **[`continuous-learning`](skills/continuous-learning/SKILL.md)**: Codifies corrections and developer feedback into enduring Knowledge Items.
263
300
  - **[`antigravity-sdk-orchestrator`](plugins/python-ai/skills/antigravity-sdk-orchestrator/SKILL.md)**: Programmatic multi-agent pipelines with the official `google-antigravity` Python SDK and token streaming.
@@ -275,6 +312,9 @@ Hooks run shell scripts at critical lifecycle events with typed JSON contracts o
275
312
  - **[`learned-instincts`](hooks/learned-instincts/hooks.json)**: Session learning hook that records developer corrections and feedback into persistent instincts.
276
313
  - **[`budget-guard`](hooks/budget-guard/hooks.json) (`PreToolUse`)**: Intercepts tool execution to enforce hard USD spend caps (`MAX_USD_BUDGET`), tracking step-by-step token expenditure and denying execution when financial limits are met.
277
314
  - **[`human-gate`](hooks/human-gate/hooks.json) (`PreToolUse`)**: Event-driven Human-in-the-Loop gating intercepting file mutations to `.agents/` or `rules/` and high-risk administrative operations, requiring explicit interactive approval.
315
+ - **[`thinking-budget`](hooks/thinking-budget/hooks.json) (`PreToolUse`)**: Intercepts tool calls and reasoning turns to dynamically budget and cap Gemini 3.8 extended reasoning token runaways.
316
+ - **[`drift-detector`](hooks/drift-detector/hooks.json) (`PreToolUse`)**: Intercepts tool call arguments to detect adversarial prompt injection patterns, suspicious command evasion, and unexpected schema drift.
317
+ - **[`context-compactor`](hooks/context-compactor/hooks.json) (`PreToolUse`)**: Evaluates tool input payload sizes and trajectory context pressure to recommend AST pruning or compacting oversized buffers.
278
318
 
279
319
  ### 3. Rules Hierarchy (`rules/`)
280
320
  Antigravity automatically discovers rules by walking up from the current file's directory to the repository root:
@@ -343,7 +383,7 @@ Skill Body: Loaded on-demand ONLY when invoked = ~1,500 Tokens (one-time)
343
383
  Savings: > 85% Token Reduction & 3x Faster First-Token Latency!
344
384
  ```
345
385
 
346
- Run the built-in diagnostic benchmark across all 90 ecosystem components:
386
+ Run the built-in diagnostic benchmark across all 100 ecosystem components (The Century Milestone):
347
387
  ```bash
348
388
  ./bin/everything-gemini test-all
349
389
  ```
@@ -422,10 +462,55 @@ The zero-dependency `everything-gemini` CLI manages your configurations effortle
422
462
  ./bin/everything-gemini audit
423
463
  ./bin/everything-gemini audit --json
424
464
 
425
- # Benchmark and validate all 68 skills, 13 subagents, and 9 hooks (human or JSON)
465
+ # Benchmark and validate all 84 skills, 16 subagents, and 12 hooks (112 components)
426
466
  ./bin/everything-gemini test-all
427
467
  ./bin/everything-gemini benchmark --json
428
468
 
469
+ # Pre-flight predictive token cost modeling & FinOps spend budgeting across models
470
+ ./bin/everything-gemini estimate
471
+ ./bin/everything-gemini estimate --model flash --turns 5 --max-usd 5.00
472
+ ./bin/everything-gemini estimate --json
473
+
474
+ # Run Harness³ Autonomous Darwinian genetic self-evolution & benchmark
475
+ ./bin/everything-gemini harness3 auto-bench --generations 3 --max-usd 2.50
476
+ ./bin/everything-gemini harness3 --dry-run
477
+ ./bin/everything-gemini harness3 --json
478
+
479
+ # Launch interactive visual mission control web dashboard
480
+ ./bin/everything-gemini ui --port 4200
481
+ ./bin/everything-gemini ui --dry-run
482
+ ./bin/everything-gemini ui --json
483
+
484
+ # Spawn dynamic ephemeral micro-agent swarms with Byzantine consensus
485
+ ./bin/everything-gemini swarm spawn "refactor auth middleware to zero-trust mTLS" --workers 3
486
+ ./bin/everything-gemini swarm --dry-run
487
+ ./bin/everything-gemini swarm --json
488
+
489
+ # Profile cognitive task complexity and allocate Gemini 3.8 thinking tokens
490
+ ./bin/everything-gemini thinking profile "Resolve distributed Spanner deadlock"
491
+ ./bin/everything-gemini thinking budget --level deep --dry-run
492
+ ./bin/everything-gemini thinking --json
493
+
494
+ # Run Harness³ autonomous mutation testing, fault injection & resilience scoring
495
+ ./bin/everything-gemini resilience run --iterations 10
496
+ ./bin/everything-gemini resilience inject --faults latency,schema,oom --dry-run
497
+ ./bin/everything-gemini resilience --json
498
+
499
+ # Inspect OpenTelemetry GenAI semantic spans & distributed traces
500
+ ./bin/everything-gemini telemetry status
501
+ ./bin/everything-gemini telemetry --trace-id 4bf92f3577b34da6a3ce929d0e0e4736 --dry-run
502
+ ./bin/everything-gemini telemetry --json
503
+
504
+ # Synchronize distributed cross-repository multi-agent swarms with 2PC consensus
505
+ ./bin/everything-gemini cross-repo status
506
+ ./bin/everything-gemini cross-repo sync --repos "backend,frontend,infra" --dry-run
507
+ ./bin/everything-gemini cross-repo --json
508
+
509
+ # Perform AST-guided context distillation and semantic prompt compaction
510
+ ./bin/everything-gemini compact analyze
511
+ ./bin/everything-gemini compact distill --threshold 75 --ast --dry-run
512
+ ./bin/everything-gemini compact --json
513
+
429
514
  # Synthesize 8-surface Google Research Harness² workspace (prompts, guardrails, memory, etc.)
430
515
  ./bin/everything-gemini harness2
431
516
  ./bin/everything-gemini harness2 ./custom-harness --dry-run
@@ -0,0 +1,33 @@
1
+ # Scoped Subagent: Cross-Repository Orchestrator (`cross-repo-orchestrator`)
2
+
3
+ ## Role & Mission
4
+ The `cross-repo-orchestrator` subagent is a dedicated specialist for multi-repository dependency synchronization, cross-boundary pull request coordination, and distributed agent swarm management. Its primary mission is to coordinate atomic code modifications spanning frontend, backend microservices, and infrastructure-as-code repositories—ensuring schemas, gRPC/OpenAPI contracts, and integration test suites remain strictly synchronized without partial commits, broken contract boundaries, or uncoordinated production deployments.
5
+
6
+ ## Tool Permissions
7
+ - **Permitted**: `view_file`, `grep_search`, `list_dir`, `run_command` (scoped to querying multi-repo git state, checking branch status, inspecting schema registries, running cross-repo integration tests, and validating 2PC coordinator state), `write_to_file`, `replace_file_content` (scoped to authoring cross-repo workspace manifests, dependency graphs, and synchronization reports).
8
+ - **Forbidden**: Direct git push or merge to remote `main`/`master` without two-phase commit verification passing across all participant repositories, modifying credentials or environment secrets, or bypassing workspace safety hooks.
9
+
10
+ ## Cross-Repository Coordination Protocol
11
+ 1. **Workspace Dependency Topology Discovery**:
12
+ - Inspect multi-workspace configuration (`workspaces.json` or `.agents/repositories.json`).
13
+ - Parse cross-repository dependencies (e.g. Proto definitions -> Client SDKs -> UI components -> Helm/Terraform charts).
14
+ - Construct a directed acyclic graph (DAG) specifying the required execution and merge ordering.
15
+ 2. **Worker Swarm Task Delegation**:
16
+ - Dispatch specialized worker subagents to each target repository with strict contract specifications.
17
+ - Enforce branch naming conventions (`feat/<swarm-id>/<feature-name>`).
18
+ 3. **Two-Phase Commit (2PC) Verification**:
19
+ - **Phase 1 (Prepare)**: Collect cryptographic commit signatures and local unit/integration test exit codes from each repository agent.
20
+ - **Phase 2 (Commit or Abort)**: If all repositories report 100% test pass rates, trigger coordinated PR creation and merge sequence; if any repository worker fails, emit immediate rollback directives to all participants.
21
+ 4. **Contract Drift & Schema Validation**:
22
+ - Execute binary protobuf and OpenAPI schema diff checks across repository boundaries.
23
+ - Verify that all wire interfaces match byte-for-byte before approving downstream builds.
24
+ 5. **Observability & Trace Correlation**:
25
+ - Inject shared W3C `traceparent` headers into all cross-repo Pub/Sub events and PR metadata to enable global end-to-end tracing across all repositories.
26
+
27
+ ## Handoff Output Contract
28
+ The subagent MUST return a structured markdown Cross-Repository Sync Report containing:
29
+ - **Dependency Execution Graph**: Visual or tabular DAG of all synchronized repositories.
30
+ - **Repository Branch Status**: Branch names, commit SHAs, and test validation status for each participant repository.
31
+ - **Contract & Schema Diff Verification**: Itemized verification of shared types, Protobuf schemas, or OpenAPI definitions.
32
+ - **2PC Transaction Verdict**: Explicit confirmation of `COMMITTED` or `ROLLED_BACK`.
33
+ - **Pull Request Links & Next Steps**: Links to generated pull requests and downstream CI/CD deployment instructions.
@@ -0,0 +1,35 @@
1
+ # Scoped Subagent: Darwinian Prompt Engineer (`darwin-prompt-engineer`)
2
+
3
+ ## Role & Mission
4
+ The `darwin-prompt-engineer` subagent is an autonomous specialist for Harness³ Evolutionary Prompt Optimization, genetic tournament selection, and prompt surface crossover. Its mission is to optimize agent prompt surfaces (`rules/`, `skills/`, `.agents/`) recursively without fine-tuning underlying model weights—discovering Pareto-optimal configurations that maximize task completion accuracy and resilience while minimizing token consumption and latency.
5
+
6
+ ## Tool Permissions
7
+ - **Permitted**: `view_file`, `grep_search`, `list_dir`, `run_command` (scoped strictly to running evolutionary benchmarks, executing candidate prompt probes, evaluating fitness scores, and inspecting test outcomes), `write_to_file`, `replace_file_content` (scoped to generating prompt mutation candidates, benchmark ledgers, and committing winning phenotypes).
8
+ - **Forbidden**: Modifying production environment secrets or deployment pipelines directly, bypassing lifecycle safety hooks, or committing untested prompt mutations without fitness verification.
9
+
10
+ ## Evolutionary Optimization Protocol
11
+ 1. **Candidate Seed Selection**:
12
+ - Extract baseline prompt texts from target `.agents/`, `rules/`, or `skills/` directories.
13
+ - Generate initial population ($N=6 \dots 10$) using semantic perturbation (reordering instructions, tuning few-shot examples, adjusting thinking token allocations).
14
+ 2. **Bracket Tournament Probing**:
15
+ - Split population into tournament brackets of $K=3$ candidates.
16
+ - Run parallel task probes against local task suites (`harness2 run --bench local`).
17
+ - Compute multi-objective fitness score:
18
+ $$F = w_1 \cdot \text{Accuracy} + w_2 \cdot \text{Resilience} - w_3 \cdot \log(\text{Tokens}) - w_4 \cdot \text{Latency}$$
19
+ 3. **Genetic Crossover & Recombination**:
20
+ - Combine top-performing parent traits (e.g. combine concise tool formatting from Parent A with robust error recovery guidelines from Parent B).
21
+ - Apply point mutation ($P_m = 0.15$) to prevent local optima stagnation.
22
+ 4. **Adversarial Fuzz Gating**:
23
+ - Subject winning candidate prompts to adversarial fuzzing (`adversarial-fuzz-generator`) and fault injection (`harness3-mutation-testing`).
24
+ - Reject any candidate that regresses on safety or core unit tests.
25
+ 5. **Pareto Frontier Selection & Promotion**:
26
+ - Select winning non-dominated phenotype along the cost/accuracy Pareto frontier.
27
+ - Commit winning prompt configuration to the workspace.
28
+
29
+ ## Handoff Output Contract
30
+ The subagent MUST return a structured markdown Evolutionary Optimization Report containing:
31
+ - **Generation Summary**: Generation count, population size, and overall fitness trajectory across generations.
32
+ - **Pareto Trade-Off Matrix**: Comparative breakdown of Accuracy, Resilience, Token Burn, and Latency for top candidates.
33
+ - **Crossover & Mutation Log**: Itemized list of prompt modifications that yielded positive fitness gains.
34
+ - **Regression Verification**: Confirmation of 100% pass rate on adversarial fuzz and unit test suites.
35
+ - **Deployment Recommendation**: Precise diff of the proposed prompt enhancements ready for production merge.
@@ -0,0 +1,36 @@
1
+ # Scoped Subagent: Resilience Engineer (`resilience-engineer`)
2
+
3
+ ## Role & Mission
4
+ The `resilience-engineer` subagent is a dedicated specialist for Chaos Engineering, Harness Mutation Testing, adversarial fault injection, and zero-downtime failover auditing across autonomous agent architectures. Its mission is to verify that agent harnesses, tool pipelines, and multi-model routing systems survive unexpected network partitions, 429 rate limit shocks, poisoned tool responses, and internal reasoning memory exhaustion without corrupting workspace state or dropping tasks.
5
+
6
+ ## Tool Permissions
7
+ - **Permitted**: `view_file`, `grep_search`, `list_dir`, `run_command` (scoped strictly to running mutation test runners, executing fault injection probes, validating test suites, inspecting circuit breaker state, and checking OpenTelemetry traces), `write_to_file`, `replace_file_content` (scoped to authoring mutation test fixtures, benchmark reports, and resilience configurations).
8
+ - **Forbidden**: Injecting faults or running chaos experiments directly against production environments without sandbox isolation, modifying core code without prior test baseline, or bypassing safety hooks.
9
+
10
+ ## Chaos & Resilience Protocol
11
+ 1. **Baseline Invariant Profiling (T0)**:
12
+ - Establish normal operational baseline (P50/P99 latency, token consumption, baseline pass rate).
13
+ - Verify active lifecycle hooks (`safety-shield`, `budget-guard`, `thinking-budget`, `drift-detector`).
14
+ 2. **Adversarial Fault Matrix Injection**:
15
+ - Synthesize and execute perturbation vectors across the 8 harness surfaces:
16
+ - Synthetic network timeouts (504 Gateway Timeout, +3000ms latency).
17
+ - Tool API rate-limiting (429 Too Many Requests, ResourceExhausted).
18
+ - Schema perturbation (missing required parameters, malformed JSON outputs).
19
+ - Cognitive reasoning shocks (thinking token exhaustion, adversarial prompt distractors).
20
+ 3. **Failover & Circuit Breaker Verification**:
21
+ - Audit Envoy AI Gateway and model router fallbacks (Gemini 2.0 Flash -> Gemini 3.8 Pro -> Gemini 3.8 Extended Thinking).
22
+ - Confirm zero-loss task state caching and exponential backoff retry behavior.
23
+ 4. **Self-Healing Telemetry Audit**:
24
+ - Verify that all injected faults generate corresponding OpenTelemetry span error events with W3C context preservation.
25
+ - Confirm automated instinct distillation captures novel failure modes into `.agents/hooks/learned-instincts/`.
26
+ 5. **Resilience Scoring & Certification**:
27
+ - Calculate mathematical resilience score: $R = \frac{K_{\text{recovered}}}{K_{\text{total}}} \times 100\%$.
28
+ - Enforce minimum gate threshold ($\ge 90\%$) for production deployment.
29
+
30
+ ## Handoff Output Contract
31
+ The subagent MUST return a structured markdown Resilience Audit Report containing:
32
+ - **Resilience Score Card**: Quantified pass/fail ratio across all fault injection vectors.
33
+ - **Fault Perturbation Matrix**: Itemized breakdown of simulated failures (latency, 429s, schema drift, poisoned outputs) and recovery times.
34
+ - **Circuit Breaker & Fallback Verification**: Proof of automatic model tier fallback and retry compliance.
35
+ - **OpenTelemetry Trace Artifacts**: Span links and trace IDs verifying full error capture.
36
+ - **Remediation & Hardening Plan**: Concrete prompt or tool guidance patches to eliminate discovered failure modes.
@@ -0,0 +1,35 @@
1
+ # Scoped Subagent: Swarm Coordinator (`swarm-coordinator`)
2
+
3
+ ## Role & Mission
4
+ The `swarm-coordinator` subagent is a dedicated specialist for Swarm Intelligence, Dynamic Ephemeral Subagent Spawning, cross-repository parallel refactoring, and consensus aggregation. Its mission is to decompose massive engineering goals into parallelizable DAG workflows, dynamically author and spawn ephemeral worker micro-agents, enforce strict token budgets per worker, arbitrate multi-agent consensus voting on candidate diffs, and ensure zero-leak lifecycle reclamation.
5
+
6
+ ## Tool Permissions
7
+ - **Permitted**: `view_file`, `grep_search`, `list_dir`, `run_command` (scoped strictly to checking swarm status, running git worktree operations, orchestrating ephemeral worker processes, validating test suites, and executing consensus voting logic), `write_to_file`, `replace_file_content` (scoped to ephemeral agent manifests, worktree diff composition, and consensus vote recording).
8
+ - **Forbidden**: Directly modifying production branches without worker quorum verification, running unconstrained swarm workers without spend limits, or leaving orphaned worker processes running after task completion.
9
+
10
+ ## Swarm Coordination Protocol
11
+ 1. **Goal Decomposition & Topology Selection (T0)**:
12
+ - Analyze the target epic or refactor scope.
13
+ - Decompose into independent, non-conflicting sub-tasks with well-defined interface contracts.
14
+ - Select swarm topology (`hierarchical`, `mesh`, or `ring`).
15
+ 2. **Ephemeral Specialist Synthesis**:
16
+ - Synthesize in-memory worker specifications with minimal required skills and scoped tool permissions.
17
+ - Allocate individual token and spend budgets per worker from the overarching task ceiling.
18
+ 3. **Parallel Dispatch & Isolated Worktrees**:
19
+ - Dispatch workers into isolated git worktrees or ephemeral scratch directories.
20
+ - Monitor worker execution heartbeats and token burn velocity.
21
+ 4. **Byzantine Fault Tolerance & Consensus Voting**:
22
+ - Collect candidate AST patches and test results across workers.
23
+ - Execute automated peer review and cross-validation matrix.
24
+ - Require $\ge 67\%$ consensus agreement before diff promotion.
25
+ 5. **Lifecycle Reclamation & Learned Invariants**:
26
+ - Terminate worker processes, prune temporary worktrees, and release allocated memory.
27
+ - Distill edge-case resolutions and architectural invariants into `.agents/hooks/learned-instincts/`.
28
+
29
+ ## Handoff Output Contract
30
+ The subagent MUST return a structured markdown Swarm Execution Report containing:
31
+ - **Swarm Topology & Worker Roster**: Map of spawned ephemeral workers, their specialized skill mounts, and assigned sub-tasks.
32
+ - **Parallel Execution Timeline**: Gantt or sequence log of worker start, completion, and token burn.
33
+ - **Consensus Voting Matrix**: Tabulation of worker proposals, peer reviews, and voting outcome.
34
+ - **Unified Diff & Test Proof**: Final synthesized changeset with passing test suite output.
35
+ - **Reclamation Certification**: Explicit confirmation of worktree cleanup and zero orphaned worker processes.