Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
Renderer
All paths are relative to apps/switch-console-desktop/.
Main Entry Points
src/renderer/main.tsx: renderer bootstrapsrc/renderer/App.tsx: top-level provider compositionsrc/renderer/app/workspace.tsx: main post-onboarding shellsrc/renderer/app/view-registry.ts: view definitions and navigation guards; switches between viewssrc/renderer/lib/ipc.ts: typed RPC client (rpc) and event emitter (events) used throughout renderer
App Shell (src/renderer/app/)
workspace.tsx,home-view.tsx— shell and top-level viewsmodal-registry.ts— central modal registry; all modals are registered hereview-registry.ts— central view registry; all views are registered hereapp-menu-events.tsx— native app menu event wiring
Feature Areas (src/renderer/features/)
sessions/— session experience:create-session-modal/,components/,hooks/, andstores/(MobX session stores andsession-selectors.ts)locations/— an agent's working directory on a host, and its settings panel;stores/holds location stores andlocation-selectors.tsremote-hosts/— SSH hosts: the host list and detail views, reachability notices, and host setupswitch-rooms/— Switch room membership and the inline bridge pane (room-embed-layer.tsx)chats/— direct chats with agents: timeline, composer and agent activityswitch-servers/— Switch server connections, including a Switch Console-managed serversidebar/— app sidebarsettings/— settings viewcommand-palette/— command palette
Shared Renderer Infrastructure (src/renderer/lib/)
ipc.ts— typed RPC client and event emittermodal/— modal provider, renderer, store, and close-guard infrastructurelayout/— layout, navigation, and panel drag providerscommands/— command registry (registry.ts) and view-levelcommandProviderhookshotkeys/— global hotkey handlingupdates/— in-app update surfacesstores/— cross-feature stores (navigation, dependencies, resource monitor, ...)providers/,hooks/,components/,ui/,theme/— shared providers, hooks, and UI primitives
There is no editor/ directory. Monaco is still a dependency, but the only integration
left in the renderer is lib/components/monaco-keyboard-bridge.tsx.
Tests
- Renderer unit tests:
src/renderer/tests/ - Playwright-backed browser tests:
src/renderer/tests/browser/
When Editing Here
- Check
agents/conventions/renderer-patterns.mdfor modal, view, SDK transcripts, and store patterns. - Call RPC methods via the typed
rpcclient fromsrc/renderer/lib/ipc.ts(alias@renderer/lib/ipc), e.g.rpc.sessions.create(...). - New modals must be registered in
src/renderer/app/modal-registry.ts. - New views must be registered in
src/renderer/app/view-registry.ts. - The preload bridge (
src/preload/index.ts) exposes onlyinvoke,eventSend,eventOn, andgetPathForFileonwindow.electronAPI; keep renderer-main calls on typed RPC and typed events.