# jshreyansh/tacit architecture

> Architecture diagram of the GitHub repository jshreyansh/tacit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jshreyansh/tacit
- Repository: https://github.com/jshreyansh/tacit

## Overview

Tacit is a desktop workspace that places project worktrees, terminals, coding agents, browser nodes, and typed relationships on a spatial canvas. The main workflow is to add a project, work in its worktrees through terminals or agents, and review related browser, session, and Git context without leaving the canvas. Hydra adds Lead-driven orchestration; usage tracking and session insights provide supporting views. The README documents product-level flows; source excerpts and the index provide only selective implementation links, so unsampled relationships are omitted.

Main entry points: [`src/canvas/CanvasRoot.tsx`](https://github.com/jshreyansh/tacit/blob/main/src/canvas/CanvasRoot.tsx) (Spatial Canvas), [`src/App.tsx`](https://github.com/jshreyansh/tacit/blob/main/src/App.tsx) (Tacit App), [`src/stores/projectStore.ts`](https://github.com/jshreyansh/tacit/blob/main/src/stores/projectStore.ts) (Project Worktrees), [`src/terminal/terminalRuntimeStore.ts`](https://github.com/jshreyansh/tacit/blob/main/src/terminal/terminalRuntimeStore.ts) (Terminal Runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Canvas Workspace"]
  node_app["Tacit App<br/>[App.tsx]"]
  node_canvas["Spatial Canvas<br/>[CanvasRoot.tsx]"]
  node_project_model["Project Worktrees<br/>[projectStore.ts]"]
  node_workdesk["Saved Workdesk<br/>[WorkdeskView.tsx]"]
  node_terminals["Terminal Runtime"]
end

subgraph group_agents["Agents and Workflows"]
  node_agent_sessions["Agent Sessions<br/>[agent-service.ts]"]
  node_manager_chat["Manager Chat<br/>[managerChatMode.ts]"]
  node_hydra["Hydra Orchestration<br/>[dispatcher.ts]"]
  node_agent_providers["Agent Providers<br/>[model-registry.ts]"]
end

subgraph group_browser["Browser Nodes"]
  node_browser_profiles["Browser Profiles"]
  node_browser_control["Browser Control"]
  node_browser_connections["Connected Browsers"]
end

subgraph group_context["Work Context"]
  node_typed_links["Typed Connections"]
  node_pins["Pins and Tasks<br/>[pinStore.ts]"]
  node_sessions["Session History<br/>[session-list.ts]"]
  node_git_context["Git Review<br/>[git-info.ts]"]
end

subgraph group_insights["Usage and Insights"]
  node_usage["Usage Tracking<br/>[usage-collector.ts]"]
  node_session_insights["Session Insights<br/>[insights-engine.ts]"]
end

node_user(("Person"))

node_user -->|"uses"| node_app
node_app -->|"presents"| node_canvas
node_app -->|"switches views"| node_workdesk
node_user -->|"adds project"| node_project_model
node_project_model -->|"places work"| node_canvas
node_canvas -->|"hosts terminals"| node_terminals
node_terminals -->|"runs agents"| node_agent_sessions
node_agent_sessions -.->|"uses providers"| node_agent_providers
node_user -->|"chats with manager"| node_manager_chat
node_user -->|"dispatches workflow"| node_hydra
node_user -->|"imports profiles"| node_browser_profiles
node_browser_profiles -->|"registers connection"| node_browser_connections
node_canvas -->|"controls browser nodes"| node_browser_control
node_canvas -->|"draws connections"| node_typed_links
node_canvas -.->|"shows pins"| node_pins
node_user -->|"replays conversations"| node_sessions
node_user -->|"reviews changes"| node_git_context
node_user -->|"reviews spending"| node_usage
node_sessions -.->|"analyzes sessions"| node_session_insights

click node_app "https://github.com/jshreyansh/tacit/blob/main/src/App.tsx"
click node_canvas "https://github.com/jshreyansh/tacit/blob/main/src/canvas/CanvasRoot.tsx"
click node_project_model "https://github.com/jshreyansh/tacit/blob/main/src/stores/projectStore.ts"
click node_workdesk "https://github.com/jshreyansh/tacit/blob/main/src/workdesk/WorkdeskView.tsx"
click node_terminals "https://github.com/jshreyansh/tacit/blob/main/src/terminal/terminalRuntimeStore.ts"
click node_agent_sessions "https://github.com/jshreyansh/tacit/blob/main/electron/agent-service.ts"
click node_manager_chat "https://github.com/jshreyansh/tacit/blob/main/src/actions/managerChatMode.ts"
click node_hydra "https://github.com/jshreyansh/tacit/blob/main/hydra/src/dispatcher.ts"
click node_browser_profiles "https://github.com/jshreyansh/tacit/blob/main/shared/browser-profile-import.ts"
click node_browser_control "https://github.com/jshreyansh/tacit/blob/main/shared/browser-controller.ts"
click node_browser_connections "https://github.com/jshreyansh/tacit/blob/main/shared/browser-connection.ts"
click node_typed_links "https://github.com/jshreyansh/tacit/blob/main/shared/connection-types.ts"
click node_pins "https://github.com/jshreyansh/tacit/blob/main/src/stores/pinStore.ts"
click node_sessions "https://github.com/jshreyansh/tacit/blob/main/electron/session-list.ts"
click node_git_context "https://github.com/jshreyansh/tacit/blob/main/electron/git-info.ts"
click node_usage "https://github.com/jshreyansh/tacit/blob/main/electron/usage-collector.ts"
click node_session_insights "https://github.com/jshreyansh/tacit/blob/main/electron/insights-engine.ts"
click node_agent_providers "https://github.com/jshreyansh/tacit/blob/main/agent/src/model-registry.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_canvas,node_project_model,node_workdesk,node_terminals toneBlue
class node_agent_sessions,node_manager_chat,node_hydra,node_agent_providers toneAmber
class node_browser_profiles,node_browser_control,node_browser_connections toneMint
class node_typed_links,node_pins,node_sessions,node_git_context toneRose
class node_usage,node_session_insights,node_user toneIndigo
```

## Components

### Canvas Workspace

- [Tacit App](https://github.com/jshreyansh/tacit/blob/main/src/App.tsx): `src/App.tsx`
- [Spatial Canvas](https://github.com/jshreyansh/tacit/blob/main/src/canvas/CanvasRoot.tsx): `src/canvas/CanvasRoot.tsx`
- [Project Worktrees](https://github.com/jshreyansh/tacit/blob/main/src/stores/projectStore.ts): `src/stores/projectStore.ts`
- [Saved Workdesk](https://github.com/jshreyansh/tacit/blob/main/src/workdesk/WorkdeskView.tsx): `src/workdesk/WorkdeskView.tsx`
- [Terminal Runtime](https://github.com/jshreyansh/tacit/blob/main/src/terminal/terminalRuntimeStore.ts): `src/terminal/terminalRuntimeStore.ts`

### Agents and Workflows

- [Agent Sessions](https://github.com/jshreyansh/tacit/blob/main/electron/agent-service.ts): `electron/agent-service.ts`
- [Manager Chat](https://github.com/jshreyansh/tacit/blob/main/src/actions/managerChatMode.ts): `src/actions/managerChatMode.ts`
- [Hydra Orchestration](https://github.com/jshreyansh/tacit/blob/main/hydra/src/dispatcher.ts): `hydra/src/dispatcher.ts`
- [Agent Providers](https://github.com/jshreyansh/tacit/blob/main/agent/src/model-registry.ts): `agent/src/model-registry.ts`

### Browser Nodes

- [Browser Profiles](https://github.com/jshreyansh/tacit/blob/main/shared/browser-profile-import.ts): `shared/browser-profile-import.ts`
- [Browser Control](https://github.com/jshreyansh/tacit/blob/main/shared/browser-controller.ts): `shared/browser-controller.ts`
- [Connected Browsers](https://github.com/jshreyansh/tacit/blob/main/shared/browser-connection.ts): `shared/browser-connection.ts`

### Work Context

- [Typed Connections](https://github.com/jshreyansh/tacit/blob/main/shared/connection-types.ts): `shared/connection-types.ts`
- [Pins and Tasks](https://github.com/jshreyansh/tacit/blob/main/src/stores/pinStore.ts): `src/stores/pinStore.ts`
- [Session History](https://github.com/jshreyansh/tacit/blob/main/electron/session-list.ts): `electron/session-list.ts`
- [Git Review](https://github.com/jshreyansh/tacit/blob/main/electron/git-info.ts): `electron/git-info.ts`

### Usage and Insights

- [Usage Tracking](https://github.com/jshreyansh/tacit/blob/main/electron/usage-collector.ts): `electron/usage-collector.ts`
- [Session Insights](https://github.com/jshreyansh/tacit/blob/main/electron/insights-engine.ts): `electron/insights-engine.ts`

### Other components

- **Person**

## Connections

- Person → Tacit App: uses (evidence: `README.md`)
- Tacit App → Spatial Canvas: presents (evidence: `src/App.tsx`)
- Tacit App → Saved Workdesk: switches views (evidence: `src/App.tsx`)
- Person → Project Worktrees: adds project (evidence: `README.md`)
- Project Worktrees → Spatial Canvas: places work (evidence: `README.md`)
- Spatial Canvas → Terminal Runtime: hosts terminals (evidence: `README.md`)
- Terminal Runtime → Agent Sessions: runs agents (evidence: `README.md`)
- Agent Sessions → Agent Providers: uses providers
- Person → Manager Chat: chats with manager
- Person → Hydra Orchestration: dispatches workflow (evidence: `README.md`)
- Person → Browser Profiles: imports profiles (evidence: `README.md`)
- Browser Profiles → Connected Browsers: registers connection
- Spatial Canvas → Browser Control: controls browser nodes (evidence: `README.md`)
- Spatial Canvas → Typed Connections: draws connections (evidence: `README.md`)
- Spatial Canvas → Pins and Tasks: shows pins
- Person → Session History: replays conversations (evidence: `README.md`)
- Person → Git Review: reviews changes (evidence: `README.md`)
- Person → Usage Tracking: reviews spending (evidence: `README.md`)
- Session History → Session Insights: analyzes sessions
