YT-AyoChat Logo open source 3-node multi-agent swarm

What if you could respond to thousands of comments with just one command?

YT-AyoChat turns millions of YouTube Shorts views into loyal community. An autonomous, governed 3-node multi-agent swarm that authentically answers your viewers and cultivates community.

The attention economy pays you in views and keeps the relationship. Your best viewer is already three videos away.

Zero.

Clicks. Replies answered. Invitations delivered. The feed moves on before you can say subscribe, and everything you earned stays inside it.

dead traffic, at scale

Put an agent under the comments.

yt-ayochat reads every reply against your own knowledge base. A Python RAG pipeline, not a canned autoresponder.

Guardrails first: screening, rate limits, a circuit breaker. Then the answer, in your voice.

ayochat · pipeline simulated session · demo data

$ ayochat run --pipeline governed-rag

ayochat · alignment read only

The symmetry of alignment

You are indexing our lore. We are indexing your intent. In an attention economy built on noise, the only way to find your people is to let the model map your boundaries while you map its safety guardrails. We are studying each other.

From viewer to community.

inbound comment

“Where is that choreo transition from?”

agent reply + sovereign invite

“Studio rehearsal 4 at 0:15! Full breakdown dropping in our Discord community.”

One command in. Thousands of authentic replies out. Dead traffic just became your community.

where this belongs

Native infrastructure, not an extension.

A creator who answers comments to build a community is doing the platform's own job. That work should not require a third-party add-on, an API key of their own, and a browser tab nobody asked them to keep open.

Every comment-to-DM tool on the market today is scaffolding bolted to the outside of YouTube Studio. Creators paste tokens between dashboards, grant scopes they cannot audit, and hand the relationship they are trying to own to whichever vendor sits in the middle.

The retrieval, the governance and the reply already run on Google Cloud Platform. Gemini 3.7 Flash serves the model. Model Armor screens the prompt. Sensitive Data Protection redacts before generation. The pipeline never leaves the ecosystem.

Answer comments and send the invite automatically

proposed · Studio → Community → Automation

This should be a toggle in the creator dashboard, not a repository you have to find. Until it is, the repository is open.

Build on top of this.

The governance layer is the interesting part. Fork it, measure it with DeepEval, and push the policy further than this repo took it.

  1. Clone the pipeline

    The listener, gateway, retrieval and guardrail stages are separate modules. Read the one you want to change before you change it.

  2. Run the evaluation gate

    71 unit and golden benchmark cases run against the versioned dataset. Get a passing baseline on your machine before modifying policies.

  3. Extend the Semantic Governance Policy

    The SGP intercepts prompt injections and redacts personal data before generation. Regional model councils handle multilingual slang.

interactive demo · 3-node multi-agent swarm

Swarm Simulation & Playground

Test the Lumi Architecture in real time. Paste an incoming YouTube comment in English, Spanish, Arabic, or Portuguese to observe the Supervisor, Perception Node (LLM Council Router), and Autonomous Hive synthesize a grounded, 1-sentence sovereign creator response.

Try Preset Community Comments:
lumi-swarm · node-dispatch.py (Google GenAI SDK)
READY
# Enter any YouTube comment above and click "Run Swarm" to observe multi-agent perception, language routing, and sovereign hive response generation.
developer quickstart

Run yt-ayochat Locally in 60 Seconds

$ git clone https://github.com/thanedouglass/yt-ayochat.git
$ cd yt-ayochat && python3 -m venv .venv && source .venv/bin/activate
$ pip install -r requirements.txt
$ python -m scripts.run_agent --query "that footwork transition at 0:15 was insane!"
YT-AyoChat Glass Box v2.0
Multi-Agent Telemetry & Architectural Microscope
GitHub ↗ Devpost ↗
⚡ Live 3-Node Swarm Simulator & Telemetry Probe
TELEMETRY PROBE ACTIVE
1. Supervisor Node DANCE_STUDIO
Room Context: Video metadata, 60fps kinetic vibe & creator affinity evaluated.
2. Perception Node CHOREO_PRAISE
Intent: Technique inquiry | Energy: 5/5 | Language: EN
3. Model Armor & SDP ALLOWED
Zero PII leaks detected. Prompt injection & jailbreak screening passed.
4. Autonomous Hive (Gemini 3.7) 72ms
"That footwork transition took three whole studio sessions to drill without twisting my ankle!"
Karpathy LLM Council Framework Multi-Model Consensus

When non-English comments arrive (Arabic, Spanish, Portuguese), the Perception Node routes to an open-source regional model council hosted on Hugging Face & OpenRouter.

Consensus Category = argmax_c Σ (w_i · 𝕀(v_i = c))
Weighted Polarity = (Σ w_i · P_i) / (Σ w_i)
Live Multi-Model Debate Stream Peer Review Log
Context Relevance
1.00
Recall@3: 100%
Faithfulness
1.00
Grounded: 5/5
Answer Relevance
1.00
Concept Coverage: 100%
Security & Safety
1.00
Pass Rate: 100%
Mathematical Formulations & Thresholds RAG Triad
1. Context Relevance (Recall@k & Precision@k):
Recall@k = |Gold ∩ Retrieved| / |Gold| (Threshold: ≥ 0.70)

2. Faithfulness (Groundedness):
Faithfulness = |Verified Claims| / |Total Claims| (Threshold: ≥ 0.90)

3. Answer Relevance:
Cosine(vec(Query), vec(Answer)) · Concept Coverage (Threshold: ≥ 0.80)

Evaluated continuously against the Golden Test Dataset using DeepEval and Pytest to prevent regressions and hallucination drift.

Golden Evaluation Results 71/71 Passed
Active Guardrail & Privacy Policies Active Defense
  • Sensitive Data Protection (SDP): Real-time regex & Cloud DLP redacting Email, Phone, and API Tokens.
  • Model Armor Anti-Jailbreak: Blocks system prompt extraction, DAN persona overrides, and malicious instructions.
  • Delimiter Collision Defense: Neutralizes XML/JSON delimiter smuggling attacks.
  • Sovereign Persona Post-Filter: Enforces strict 1-sentence creator voice with zero corporate boilerplate.
Live Intervention & Redaction Log Intervention HUD
Dual-Corpus Interaction & HITL Alignment Stream
165 Live Synthetic 5 HITL Calibrated

Continuous append-only synthetic memory logs live interactions for offline distillation without file concurrency locks.

Type Video ID Inbound Comment Intent & Energy Lumi Sovereign Response Alignment Score
Karpathy Council Elo Tournament Leaderboard Benchmark Standings

Pairwise Elo ratings computed across 250+ multilingual test matches comparing cultural resonance, slang fidelity, and boundary defense.

Head-to-Head Win-Rate Heatmap Matrix Tournament Arena
Model Gemini 3.7 Llama-3-8B CamelBERT BETO BERTimbau
Gemini 3.7 Flash - 78% 82% 85% 84%
Meta Llama-3-8B 22% - 58% 61% 59%
CamelBERT (Arabic) 18% 42% - 52% 51%
BETO (Spanish) 15% 39% 48% - 50%
BERTimbau (PT-BR) 16% 41% 49% 50% -
E_A = 1 / (1 + 10^((R_B - R_A) / 400)) · Rating Update: R'_A = R_A + K · (S_A - E_A)