# abdullah-dawoud/t-rex architecture

> Architecture diagram of the GitHub repository abdullah-dawoud/t-rex, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdullah-dawoud/t-rex
- Repository: https://github.com/abdullah-dawoud/t-rex

## Overview

T-Rex is a local-first desktop workspace for directing AI agents, tools, and project knowledge. A user opens a project, attaches context, describes work, and reviews the agents’ results and file changes; permissions and approval boundaries govern sensitive actions. The graph preserves the documented branches for agent setup, tools, skills, memory, and activity alongside the request workflow. Several subsystem links are documented at product level rather than visible in sampled call sites, so those links are dashed; unsampled implementation details are not inferred.

Main entry points: [`src/Trex.Desktop/Workspace.cs`](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/Workspace.cs) (Project workspace), [`src/Trex.Core/Orchestration/RequestEngine.cs`](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Orchestration/RequestEngine.cs) (Request engine), [`src/Trex.Desktop/App.axaml.cs`](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/App.axaml.cs) (Desktop app), [`src/Trex.Core/Connections/Connections.cs`](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Connections/Connections.cs) (Connections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Desktop experience"]
  node_desktop["Desktop app<br/>[App.axaml.cs]"]
  node_workspace["Project workspace<br/>[Workspace.cs]"]
end

subgraph group_execution["Request execution"]
  node_engine["Request engine<br/>[RequestEngine.cs]"]
  node_attachments["Attachments<br/>[Attachments.cs]"]
end

subgraph group_capabilities["Agents and tools"]
  node_agents["Agent adapters"]
  node_teams["Team selection<br/>[AutoTeams.cs]"]
  node_connections["Connections<br/>[Connections.cs]"]
  node_tools["Production tools<br/>[ProductionTools.cs]"]
  node_skills["Skills<br/>[SkillManager.cs]"]
  node_autodesk["Autodesk bridge<br/>[Program.cs]"]
end

subgraph group_knowledge["Project knowledge"]
  node_memory[("Memory<br/>[MemoryStore.cs]")]
  node_projects["Project discovery<br/>[ProjectScanner.cs]"]
end

subgraph group_state["Local state and safety"]
  node_sessions[("Sessions and activity<br/>[SessionStore.cs]")]
  node_settings[("Settings<br/>[SettingsStore.cs]")]
  node_permissions["Access policy"]
end

node_user(("User"))

node_user -->|"uses"| node_desktop
node_desktop -->|"opens workspace"| node_workspace
node_workspace -.->|"submits requests"| node_engine
node_engine -.->|"dispatches work"| node_agents
node_engine -.->|"selects team"| node_teams
node_engine -->|"records activity"| node_sessions
node_engine -.->|"checks access"| node_permissions
node_workspace -.->|"prepares context"| node_attachments
node_workspace -.->|"opens projects"| node_projects
node_workspace -.->|"manages connections"| node_connections
node_connections -->|"resolves access"| node_tools
node_workspace -.->|"manages skills"| node_skills
node_engine -.->|"uses project knowledge"| node_memory
node_workspace -.->|"reviews knowledge"| node_memory
node_workspace -.->|"configures"| node_settings
node_engine -.->|"uses optional bridge"| node_autodesk
node_user -->|"reviews results"| node_workspace

click node_desktop "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/App.axaml.cs"
click node_workspace "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/Workspace.cs"
click node_engine "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Orchestration/RequestEngine.cs"
click node_agents "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Agents/AntigravityAdapter.cs"
click node_teams "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Teams/AutoTeams.cs"
click node_connections "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Connections/Connections.cs"
click node_tools "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Connections/ProductionTools.cs"
click node_skills "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Skills/SkillManager.cs"
click node_attachments "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Attachments/Attachments.cs"
click node_memory "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Memory/MemoryStore.cs"
click node_projects "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Projects/ProjectScanner.cs"
click node_sessions "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Sessions/SessionStore.cs"
click node_settings "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Settings/SettingsStore.cs"
click node_permissions "https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Orchestration/FullAccessPolicy.cs"
click node_autodesk "https://github.com/abdullah-dawoud/t-rex/blob/main/bridges/autodesk-ai-bridge/src/AutodeskAIBridge.Host/Program.cs"

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_desktop,node_workspace,node_user toneBlue
class node_engine,node_attachments toneAmber
class node_agents,node_teams,node_connections,node_tools,node_skills,node_autodesk toneMint
class node_memory,node_projects toneRose
class node_sessions,node_settings,node_permissions toneIndigo
```

## Components

### Desktop experience

- [Desktop app](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/App.axaml.cs): `src/Trex.Desktop/App.axaml.cs`
- [Project workspace](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Desktop/Workspace.cs): `src/Trex.Desktop/Workspace.cs`

### Request execution

- [Request engine](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Orchestration/RequestEngine.cs): `src/Trex.Core/Orchestration/RequestEngine.cs`
- [Attachments](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Attachments/Attachments.cs): `src/Trex.Core/Attachments/Attachments.cs`

### Agents and tools

- [Agent adapters](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Agents/AntigravityAdapter.cs): `src/Trex.Core/Agents/AntigravityAdapter.cs`
- [Team selection](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Teams/AutoTeams.cs): `src/Trex.Core/Teams/AutoTeams.cs`
- [Connections](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Connections/Connections.cs): `src/Trex.Core/Connections/Connections.cs`
- [Production tools](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Connections/ProductionTools.cs): `src/Trex.Core/Connections/ProductionTools.cs`
- [Skills](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Skills/SkillManager.cs): `src/Trex.Core/Skills/SkillManager.cs`
- [Autodesk bridge](https://github.com/abdullah-dawoud/t-rex/blob/main/bridges/autodesk-ai-bridge/src/AutodeskAIBridge.Host/Program.cs): `bridges/autodesk-ai-bridge/src/AutodeskAIBridge.Host/Program.cs`

### Project knowledge

- [Memory](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Memory/MemoryStore.cs): `src/Trex.Core/Memory/MemoryStore.cs`
- [Project discovery](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Projects/ProjectScanner.cs): `src/Trex.Core/Projects/ProjectScanner.cs`

### Local state and safety

- [Sessions and activity](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Sessions/SessionStore.cs): `src/Trex.Core/Sessions/SessionStore.cs`
- [Settings](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Settings/SettingsStore.cs): `src/Trex.Core/Settings/SettingsStore.cs`
- [Access policy](https://github.com/abdullah-dawoud/t-rex/blob/main/src/Trex.Core/Orchestration/FullAccessPolicy.cs): `src/Trex.Core/Orchestration/FullAccessPolicy.cs`

### Other components

- **User**

## Connections

- User → Desktop app: uses (evidence: `README.md`)
- Desktop app → Project workspace: opens workspace (evidence: `src/Trex.Desktop/App.axaml.cs`)
- Project workspace → Request engine: submits requests (evidence: `src/Trex.Desktop/Workspace.cs`)
- Request engine → Agent adapters: dispatches work (evidence: `src/Trex.Core/Orchestration/RequestEngine.cs`)
- Request engine → Team selection: selects team
- Request engine → Sessions and activity: records activity (evidence: `src/Trex.Core/Orchestration/RequestEngine.cs`)
- Request engine → Access policy: checks access (evidence: `src/Trex.Core/Orchestration/RequestEngine.cs`)
- Project workspace → Attachments: prepares context (evidence: `src/Trex.Desktop/Workspace.cs`)
- Project workspace → Project discovery: opens projects
- Project workspace → Connections: manages connections (evidence: `src/Trex.Desktop/Workspace.cs`)
- Connections → Production tools: resolves access (evidence: `src/Trex.Core/Connections/Connections.cs`)
- Project workspace → Skills: manages skills (evidence: `src/Trex.Desktop/Workspace.cs`)
- Request engine → Memory: uses project knowledge
- Project workspace → Memory: reviews knowledge
- Project workspace → Settings: configures (evidence: `src/Trex.Desktop/Workspace.cs`)
- Request engine → Autodesk bridge: uses optional bridge
- User → Project workspace: reviews results (evidence: `README.md`)
