Repository navigation
Closed
Labels
Description
👑 QUEEN TRINITY — Центральный Мозг
Я координирую. Агенты исполняют.
Chrome Extension = мои глаза и рот. Claude Code агенты = мои руки.
Mirror: gHashTag/trinity#528
Status: ACTIVE — лечимся и строим мост
🏗 Архитектура моста
[БРАУЗЕР]
trios-ext sidebar (Dioxus/Wasm) ← #108 ✅
│ Chrome Side Panel
│ WebSocket ws://localhost:3333
▼
[MCP СЕРВЕР — trios-server]
trios-bus (EventBus) ← #107 ✅
│ Envelope<T> протокол
│ publish/subscribe
▼
[АГЕНТЫ — Claude Code]
ALPHA BETA GAMMA DELTA ZETA
(каждый = отдельный claude process)
│
▼
[ОПЫТ]
.trinity/experience/*.trinity
← агрегирует Королева
🎯 Главная задача сейчас
Связать Chrome Extension → MCP Server → Claude Code агентов в живую систему.
Шаг 1 — trios-server (MCP endpoint)
// crates/trios-server/src/main.rs
#[tokio::main]
async fn main() {
let bus = TriosBus::new();
let mcp = McpServer::new(bus.clone());
// WebSocket на 3333 для Extension
mcp.serve("0.0.0.0:3333").await;
}Методы:
agents/list→ список активных Claude процессовagents/chat→ отправить сообщение агентуtasks/assign→ назначить задачуexperience/read→ прочитать.trinity/experience/
Шаг 2 — Claude Code Bridge
// crates/trios-claude/src/lib.rs
pub struct ClaudeBridge {
processes: HashMap<AgentId, ChildProcess>,
}
impl ClaudeBridge {
pub async fn spawn_agent(&mut self, name: &str) -> AgentId;
pub async fn send_task(&self, id: AgentId, task: &str) -> Result<String>;
pub async fn get_status(&self, id: AgentId) -> AgentStatus;
}Запуск агента:
claude --model claude-opus-4-5 --print "task" 2>&1
Шаг 3 — Extension видит агентов
После #108 + trios-server:
- Sidebar показывает
[ALPHA: working] [BETA: idle] - Клик на агента → чат прямо в браузере
- Назначить задачу → агент получает в процессе
💊 Лечение Королевы (самодиагностика)
Проблемы которые нужно починить:
| Симптом | Причина | Лечение |
|---|---|---|
| Агенты не видят друг друга | Нет shared EventBus | #107 ✅ DONE |
| Нет UI для координации | Нет Extension | #108 ✅ DONE |
| Нет MCP сервера | trios-server не создан | → #113 (новая задача) |
| Нет bridge к claude процессам | trios-claude не создан | → #114 (новая задача) |
| Агенты не синхронизируют опыт | experience bus не активен | → #111 |
📋 Child Issues
| Issue | Задача | Статус | Приоритет |
|---|---|---|---|
| #107 | trios-bus EventBus | ✅ DONE | P0 |
| #108 | trios-ext Chrome Extension | ✅ DONE | P0 |
| #111 | Multi-agent orchestration | ⏳ TODO | P1 |
| #113 | trios-server — MCP WebSocket endpoint | 🆕 NEW | P0 |
| #114 | trios-claude — Claude Code process bridge | 🆕 NEW | P1 |
✅ Acceptance Criteria (Королева здорова когда)
-
trios-serverзапущен, отвечает наws://localhost:3333 - Chrome Extension sidebar показывает живых агентов
- Можно написать агенту из браузера и получить ответ
-
.trinity/experience/синхронизируется между агентами -
trios-busагрегирует события всех агентов - Queen видит все активные задачи в реальном времени
Laws
| Law | Rule |
|---|---|
| L1 | No .sh — Rust + TypeScript only |
| L2 | Every PR closes a child issue |
| L3 | cargo clippy -- -D warnings = zero |
| L7 | Experience log в .trinity/experience/ |
Refs: #107 #108 #111 #110 #109 trinity#528
Agent claim: 🔒 AGENT [name] CLAIMING: [task] | Branch: feat/queen-* | Status: IN PROGRESS
Activity
[-]👑 QUEEN TRINITY — Link to trinity#528 (Meta-Orchestrator)[/-][+]👑 QUEEN TRINITY — Meta-Orchestrator: Chrome Extension MCP Bridge → Claude Code Agents[/+]feat: add Chrome extension artifacts and MCP WebSocket server
gHashTag commentedon Apr 20, 2026
🔒 AGENT ECHO CLAIMING: #106 (trios-claude bridge) | Branch: feat/trios-claude | Status: IN PROGRESS
ts: 2026-04-21T03:00:00Z
issue: #106
status: creating crates/trios-claude, Claude Code process bridge
next: ClaudeBridge spawn/send_task/get_status, integrate with trios-server ws_handler
gHashTag commentedon Apr 20, 2026
AGENT ECHO HEARTBEAT
ts: 2026-04-21T03:20:00Z
issue: #106
status: trios-claude bridge DONE — PR #153
next: continuing with next P1 task
L8 checklist:
Completed sub-tasks for #106:
Remaining: trios-server ↔ trios-claude integration, Extension live agents view
feat: trios-server MCP WebSocket endpoint (ws://0.0.0.0:9005/ws) — ag…
feat: trios-server MCP WebSocket endpoint (ws://0.0.0.0:9005/ws) — Cl…
feat: trios-server MCP WebSocket endpoint (ws://0.0.0.0:9005/ws) — ag…
feat(trios-claude): Claude Code process bridge with session managemen…
feat(server): add event broadcasting to WebSocket MCP endpoint
fix(extension): correct WASM import paths for #106
fix(extension): update WASM files with fresh build for #106
fix(extension): add error handler and remove module type from service…
fix(extension): use ES6 import instead of importScripts in bg-sw.js for
4 remaining items
fix(extension): resolve all WebSocket and CSP issues for #106
fix(extension): final WebSocket and CSP fixes for #106
feat(server): CORS, operator broadcast events, browser push commands …
docs(experience): MCP server bridge #106 — CORS + broadcast + browser…
fix(server): clippy bool_assert_comparison in operator test (refs #106)…
fix(clippy): remove unnecessary casts and redundant clone in trios-go…
feat(server): add /mcp HTTP endpoint, dynamic tool_count, fix experie…
feat(server): add MCP initialize + ping + id preservation (refs #106)
gHashTag commentedon Apr 21, 2026
🎯 Night-shift dispatch → @claude-code
Priority: P1 (High, this week)
Bridge: BrowserOS :9002 (live) → target: WebSocket MCP :3333
Constitutional: L21 · L22 · L23 · L24 · L25
Task
Реализовать WebSocket MCP bridge на :3333 в
trios-server, который оборачивает EventBus и пробрасывает JSON-RPC к уже живому HTTP-мосту :9002.Deliverables
crates/trios-server/src/mcp_ws.rs— WS endpoint, JSON-RPC 2.0, methods:agent.register,agent.dispatch,agent.chat,bus.subscribe,bus.publish.initialize→ сервер отвечаетserverInfo+ capabilities + soul-name registry snapshot./agent-events/register).tests/mcp_ws_smoke.rs— connect → initialize → dispatch → проверить SSE event на :9002/agent-events.queen/mcp-ws-3333→main.Constraints
Envelope<T>протокол переиспользовать из 🏗️ RFC: One-Shot Integration — декомпозиция crates + дефолтный протокол связи агентов #107.Acceptance
initializehandshake отдаёт capabilitiesDispatched by Comet (night-shift). Bridge-only per L24. Любой blocker → comment в этот issue + SSE chat event.
gHashTag commentedon Apr 29, 2026
Meta-orchestrator design. trios-bridge and trios-claude crates implement agent communication. Closing design issue.
docs(phd): add matrix-ledger schema section (L-MATRIX-LEDGER · trios#…
gHashTag commentedon May 15, 2026
Wave-38 launched — Reversible dendritic NULLOR (392 TOPS/W)
W37 sub-V_T mainline (350 TOPS/W) ↗ W38 target 392 TOPS/W (×1.12 via adiabatic charge recycling).
tt_shuttle_max_squeeze(TT_SQUEEZE_V38_NULLOR.md)OP_NULL_PE = 0xE5(chain 0xD0..0xE5, 18 opcodes)R5-HONEST · Apache-2.0 · admin@t27.ai · R18 LAYER-FROZEN additive only
gHashTag commentedon May 15, 2026
Wave-39 launched — Speculative early-exit (470 TOPS/W)
W38 nullor mainline (392) ↗ W39 target 470 (×1.20 via early-exit @ avg 0.42× depth, τ=φ⁻¹).
tt_shuttle_max_squeeze(TT_SQUEEZE_V39_SPECULATIVE_EXIT.md)OP_SPEC_EXIT = 0xE7(chain 0xD0..0xE7, 20 opcodes)R5-HONEST · Apache-2.0 · admin@t27.ai · R18 additive only
phi^2 + phi^-2 = 3 · NEVER STOP · DOI 10.5281/zenodo.19227877
gHashTag commentedon May 16, 2026
Wave-40 launched — Trinity-loss sparsity 80% (540 TOPS/W)
W39 spec-exit mainline (470) ↗ W40 target 540 (×1.15 via s=0.80 channel pruning, λ=φ⁻²).
tt_shuttle_max_squeeze(TT_SQUEEZE_V40_SPARSITY.md)OP_SPARSE_MASK = 0xE8(chain 0xD0..0xE8, 21 opcodes)R5-HONEST · Apache-2.0 · admin@t27.ai · R18 additive only
phi^2 + phi^-2 = 3 · NEVER STOP · DOI 10.5281/zenodo.19227877