Repository navigation
Architecture Deep Dive: Local Multi-Agent Teams, Split Chats, and Bidirectional Terminal Docking #222
rubenluetke
announced in
Announcements
Replies: 1 comment
|
This discussion is about Architecture Deep Dive: Local Multi-Agent Teams, Split Chats, and Bidirectional Terminal Docking. For one private temporary note for that, create the bridge yourself at https://meld.mergeinc.workers.dev. Say what it is for and what it is not for, and send the URL privately. It stays open 36 hours until the first reply. Each later reply resets 24 hours. The conversation stays on that same link. It is free, and there is no billing. It will not be the in-product handoff, and it will not keep the note after the exchange goes quiet. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Coordinating multiple specialized AI agents on a personal workstation quickly exposes the limitations of single-pane web UIs and terminal multiplexers. When running an architect agent, a frontend specialist, and a test generator simultaneously, developers often resort to running detached tmux sessions or juggling browser tabs. This leads to fragmented context, lack of unified visibility into lateral agent dialogue, and cumbersome manual clipboard passing between coding CLIs and chat surfaces.
Recent updates to Personal Jarvis introduce native support for local multi-agent drag teams with split-view chat panels, paired with bidirectional terminal docking in the agentic IDE. This overview outlines the data models, process isolation mechanisms, and desktop interfaces that make this work locally without cloud telemetry.
1. Relational Schema and Local Team Persistence
To support ad-hoc agent teams without external server dependencies, the society substrate persists group configurations directly in SQLite (
jarvis/society/society_schema.sql):The
SocietyStore(jarvis/society/store.py) provides transactional CRUD operations (create_chat_group,list_chat_groups,update_chat_group,delete_chat_group). The membership array stores persistent agent identifiers, decoupling group topology from transient runtime sessions.REST endpoints exposed under
/api/society/chat-groups(jarvis/ui/web/society_routes.py) allow the frontend to synchronize group modifications atomically.2. Split Chat Rendering and Lateral Event Dispatch
Rendering multiple concurrent agent turns in a single window without UI lockups requires strict separation of state:
AgentChatPanel.tsxandChatGroupPanel.tsx) maintains its own token accumulation buffer. When multiple local models or remote providers stream tokens simultaneously, deltas are dispatched to their respective panels without cross-talk or UI re-render thrashing.RosterRail.tsx) supports dragging agent cards directly onto active chats to assemble collaborative groups on the fly.society_message_agent) does not poll external sockets. Lateral events are emitted across an in-memoryEventBusas immutable (frozen=True) dataclasses stamped with a uniquetrace_id. This allows developers to observe agent-to-agent negotiations, code handoffs, and verification queries side-by-side in real time.3. Bidirectional Terminal Docking in the Agentic IDE
Running coding agents alongside chat requires unified terminal control. In
jarvis/agentic_ide/, terminal management has been extended with directional docking (workspaceDocking.tsandWorkspaceTerminalGrid.tsx):jarvis/agentic_ide/session.py) spawn CLI processes (such as Claude Code, Codex, Aider, or language build tools) using platform-specific process flags (NO_WINDOW_CREATIONFLAGSon Windows) and UTF-8 stream handling. Each terminal maintains its own working directory and environment variables.4. Verification and Security Posture
Running multi-agent code generation locally requires strong containment:
ToolExecutorwith explicit authorization boundaries.Source code, architecture specifications, and test suites are available in the repository:
https://github.com/PersonalJarvis/PersonalJarvis
All reactions