Repository navigation
Description
Summary
Add an agent-scoped voice + canvas workspace to Trinity — a split-panel voice UI where a Gemini Live session is grounded in a specific agent's context (CLAUDE.md, template, credentials) while also holding Trinity MCP access to orchestrate the broader fleet.
This is an experimental feature gated behind a feature flag.
Context
Trinity's existing voice mode already scopes to an agent via `/api/agents/{name}/voice/start`. This feature extends that pattern: instead of replacing the agent with a neutral platform-level orchestrator, we ground the voice session in the agent's persona and context, then augment it with Trinity MCP tools so it can reach across the fleet.
A "chief of staff" or orchestrator-type agent is the natural host — but any agent works. The agent's CLAUDE.md defines the personality and purpose; Trinity MCP provides fleet-wide reach.
Inspired by the split-panel workspace pattern in Corbin, adapted for Trinity's multi-agent context.
Design
- Left panel: Reuse existing
VoiceOverlay.vueorb — no changes to audio or animation - Right panel: Canvas updated by 4 voice-driven tools:
show_markdown(content, title?)— default, renders markdownupdate_panel(html, title?)— full HTML panel replacementappend_to_panel(html)— incremental contentclear_panel()— reset for new topic
- Voice session: Extend existing per-agent voice session (
POST /api/agents/{name}/voice/start) to inject Trinity MCP tools alongside the agent's context — no new endpoint needed - Agent context injected: agent's CLAUDE.md, template.yaml metadata, and active tool list
- Trinity MCP tools injected:
chat_with_agent,list_agents,get_agent_health,get_fleet_health(and others as appropriate), using the current user's MCP API key - Auth: Uses current user's JWT — agent visibility matches what the user can access
- Navigation: Canvas panel lives on the agent detail page (new "Workspace" tab), not a new top-level route
Acceptance Criteria
- Agent detail page gains a "Workspace" tab with split-panel layout (orb left, canvas right)
- Voice session is agent-scoped — agent's CLAUDE.md and template context injected into Gemini's system prompt
- Voice agent also has access to Trinity MCP tools:
chat_with_agent,list_agents,get_agent_health,get_fleet_health(and others as appropriate) - Panel tools (
show_markdown,update_panel,append_to_panel,clear_panel) are callable during voice session - Canvas updates in real-time as voice agent makes tool calls
- Feature is gated behind
workspace_enabledfeature flag (default OFF) - Existing per-agent voice mode (existing tab) is unaffected
Technical Notes
- Extend
POST /api/agents/{name}/voice/start— add agent context + Trinity MCP tools to Gemini system prompt; no new endpoint - Backend adds panel state endpoint:
GET /api/agents/{name}/voice/{session_id}/panel(polled at 300ms by frontend) - Tool dispatch: panel tools handled in-process by backend; MCP tools proxied to
mcp-serverusing user's API key - Reuse
VoiceOverlay.vue,useVoiceSession.js, and audio utils unchanged - Feature flag: add
workspace_enabledtoGET /api/settings/feature-flags(default false) - Session transcript saved on stop (same pattern as existing per-agent voice)
Activity
[-]feat(workspace): Trinity-wide voice + canvas workspace with MCP agent control [experimental][/-][+]feat(voice): agent-scoped voice + canvas workspace with Trinity MCP access [experimental][/+]vybe commentedon May 7, 2026
/claim
github-actions commentedon May 7, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/699-<short-slug>Fixes #699docs(voice): add VOICE-008 to requirements + voice API table in archi…
feat(voice): agent workspace page with canvas panel and Gemini panel …
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.6.1 (#1171)