# rishabhk103/claude-code architecture

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

- Interactive diagram: https://gitdiagram.com/rishabhk103/claude-code
- Repository: https://github.com/rishabhk103/claude-code

## Overview

1. **What this repo is**
   - This is a terminal-based AI agent client, not a generic library. The architecture centers on an interactive CLI that runs sessions, streams LLM output, executes tools, and renders everything in a React/Ink terminal UI.

2. **Top-level runtime path**
   - The startup path begins in `src/main.tsx` and the CLI entrypoints under `src/entrypoints/`.
   - Command parsing and app bootstrapping fan out into the UI, session state, config loading, auth, and service initialization.
   - The app is built for **Bun** and **TypeScript**, with **React + Ink** for terminal rendering and **Commander.js**-style CLI parsing.

3. **Core conversation engine**
   - `src/QueryEngine.ts`, `src/context.ts`, `src/Task.ts`, and `src/Tool.ts` are the core runtime abstractions.
   - The QueryEngine is the central loop that sends prompts to Anthropic, handles streaming responses, processes tool calls, and advances the session.
   - `Tool.ts` defines the contract for tools: input schema, permission behavior, execution state, and result shapes.

4. **Tool execution layer**
   - `src/tools/` contains the actual capabilities the model can invoke: shell, file read/write/edit, grep/glob, web fetch/search, MCP, LSP, notebook editing, sub-agents, tasks, cron, messaging, and remote triggers.
   - This layer is one of the main architecture boundaries: model outputs are converted into structured tool invocations, then into user-visible messages and state updates.
   - Tool implementations depend heavily on the utility layer for shell safety, filesystem access, parsing, and protocol adapters.

5. **Permission and safety boundary**
   - Tool execution is gated by `src/hooks/toolPermission/` and the broader permission utilities in `src/utils/permissions/`.
   - This subsystem decides whether a tool call is allowed, denied, or requires interactive approval.
   - It is tightly coupled to UI permission dialogs in `src/components/permissions/` and to policy modes such as default, plan, auto, and bypass-style behaviors.

6. **Command subsystem**
   - `src/commands.ts` and `src/commands/` implement user-facing slash commands like config, doctor, compact, review, memory, tasks, mcp, diff, theme, resume, and others.
   - Commands are not the same as tools: commands are user-initiated control surfaces for the CLI itself, while tools are model-invoked capabilities.
   - Many commands are full-screen Ink flows and interact with the same state, settings, and services as the main session UI.

7. **UI and interaction model**
   - `src/components/`, `src/screens/`, `src/context/`, `src/hooks/`, `src/keybindings/`, and `src/vim/` form the interactive terminal experience.
   - The UI is organized around message streams, prompt input, dialogs, status lines, permission prompts, task views, and settings panes.
   - Keybindings and vim mode are separate interaction layers, so the terminal UX is highly stateful and input-mode driven.

8. **Session, state, and history**
   - `src/state/`, `src/history.ts`, `src/bootstrap/`, `src/assistant/`, and `src/tasks/` manage the lifecycle of a conversation/session.
   - These modules hold current app state, persisted session history, queued messages, task objects, and restoration/resume logic.
   - The app treats sessions as long-lived entities that can be compacted, resumed, branched, rewound, or handed off to another device or process.

9. **Integrations and external services**
   - `src/services/api/` wraps Anthropic API calls and related usage, file, bootstrap, and error flows.
   - `src/services/oauth/` and `src/utils/secureStorage/` handle authentication and credential persistence.
   - `src/services/analytics/`, `src/services/policyLimits/`, and related telemetry modules feed product analytics, limit enforcement, and feature-flag behavior.
   - `src/services/lsp/` and `src/services/mcp/` connect the app to external code intelligence and tool servers.

10. **Bridge and remote-control architecture**
   - `src/bridge/`, `src/remote/`, `src/server/`, and `src/upstreamproxy/` provide cross-process and remote-session communication.
   - The bridge layer exists specifically to connect the CLI with IDE integrations and external controllers.
   - Remote session support appears to be a first-class subsystem, not an add-on: it includes session management, transport, permission bridging, and reconnect logic.

11. **Extensibility via plugins and skills**
   - `src/plugins/` and `src/utils/plugins/` implement plugin discovery, loading, validation, marketplace integration, and lifecycle management.
   - `src/skills/` and `src/tools/SkillTool/` provide reusable agent workflows that can be bundled with the product or loaded from disk.
   - This creates two extensibility axes: plugins extend the application, while skills extend the agent’s behavior and prompting.

12. **Memory, context, and compaction**
   - `src/memdir/`, `src/services/SessionMemory/`, `src/services/compact/`, `src/services/extractMemories/`, and `src/utils/context*.ts` manage long-running context.
   - The system actively summarizes, extracts, and stores memories to fit within token limits and to preserve useful session state.
   - Context management is therefore a core architectural concern, not just a utility.

13. **Task and multi-agent orchestration**
   - `src/tasks/`, `src/tools/AgentTool/`, `src/coordinator/`, and related swarm utilities support background work, delegated subtasks, and multi-agent coordination.
   - Tasks are represented as explicit runtime objects with UI views, status updates, and lifecycle controls.
   - This subsystem sits between the main conversation loop and parallel execution environments.

14. **Cross-cutting infrastructure**
   - `src/utils/` is the large shared foundation: shell parsing/execution, filesystem helpers, git utilities, prompt handling, token estimation, sandbox support, telemetry helpers, and platform-specific logic.
   - `src/constants/`, `src/types/`, `src/schemas/`, and `src/migrations/` support stable configuration, validation, and backward compatibility.
   - Overall, the repository is organized around a few strong boundaries: session orchestration, model/tool execution, interactive UI, external integrations, and persistence/state management.

Main entry points: [`src/QueryEngine.ts`](https://github.com/rishabhk103/claude-code/blob/main/src/QueryEngine.ts) (Query loop), [`src/services/tools/toolExecution.ts`](https://github.com/rishabhk103/claude-code/blob/main/src/services/tools/toolExecution.ts) (Tool exec), [`src/components/App.tsx`](https://github.com/rishabhk103/claude-code/blob/main/src/components/App.tsx) (App shell), [`src/state/AppState.tsx`](https://github.com/rishabhk103/claude-code/blob/main/src/state/AppState.tsx) (App state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_main["CLI entry<br/>bootstrap<br/>[main.tsx]"]
  node_queryengine(("Query loop<br/>agent runtime<br/>[QueryEngine.ts]"))
  node_context["Session context<br/>conversation state<br/>[context.ts]"]
  node_taskcore["Task model<br/>task runtime<br/>[Task.ts]"]
  node_sessionstate[("App state<br/>state store<br/>[AppState.tsx]")]
  node_history["History<br/>[history.ts]"]
  node_taskviews["Task views<br/>task ui<br/>[tasks.ts]"]
end

subgraph group_ui["Terminal UI"]
  node_appui["App shell<br/>ink app<br/>[App.tsx]"]
  node_promptinput["Prompt input<br/>input layer<br/>[PromptInput.tsx]"]
  node_messages["Messages<br/>message rendering"]
  node_permissionsui["Permission UI<br/>approval dialogs"]
  node_commands["Slash cmds<br/>cli commands<br/>[commands.ts]"]
  node_keybinds["Keybindings<br/>input mapping<br/>[defaultBindings.ts]"]
end

subgraph group_tools["Tools"]
  node_toolcontract["Tool contract<br/>tool schema<br/>[Tool.ts]"]
  node_toolexec["Tool exec<br/>tool orchestration<br/>[toolExecution.ts]"]
  node_toolshell["Shell tools<br/>command tools<br/>[BashTool.tsx]"]
  node_filetools["File tools<br/>fs tools<br/>[FileEditTool.ts]"]
  node_agenttools["Agent tools<br/>delegation tools<br/>[AgentTool.tsx]"]
  node_mcpweb["MCP/Web tools<br/>network tools<br/>[MCPTool.ts]"]
end

subgraph group_policy["Policy"]
  node_permissiongate["Permission gate<br/>approval policy"]
  node_permissionsutil["Permission rules<br/>policy utils<br/>[permissions.ts]"]
end

subgraph group_integrations["Integrations"]
  node_bridge["Bridge<br/>remote control<br/>[bridgeMain.ts]"]
  node_remote["Remote sessions<br/>remote runtime"]
  node_plugins["Plugins<br/>extensibility<br/>[builtinPlugins.ts]"]
  node_skills["Skills<br/>agent workflows<br/>[bundledSkills.ts]"]
  node_servicesapi["API services<br/>anthropic api<br/>[claude.ts]"]
  node_authstorage[("Auth storage<br/>oauth/secure storage<br/>[client.ts]")]
  node_lspmcp["LSP/MCP svc<br/>code intelligence"]
end

subgraph group_infra["Shared Infra"]
  node_settings[("Settings<br/>config system<br/>[settings.ts]")]
  node_storage[("Storage<br/>persistence<br/>[sessionStorage.ts]")]
  node_utils["Utilities<br/>shared helpers"]
end

node_main -->|"boots"| node_queryengine
node_main -->|"mounts"| node_appui
node_main -->|"dispatches"| node_commands
node_queryengine -->|"uses"| node_context
node_queryengine -->|"invokes"| node_toolcontract
node_queryengine -->|"executes"| node_toolexec
node_queryengine -->|"calls"| node_servicesapi
node_queryengine -->|"updates"| node_sessionstate
node_sessionstate -->|"persists"| node_history
node_sessionstate -->|"tracks"| node_taskviews
node_appui -->|"contains"| node_promptinput
node_appui -->|"renders"| node_messages
node_appui -->|"shows"| node_permissionsui
node_appui -->|"reads"| node_keybinds
node_commands -->|"controls"| node_sessionstate
node_commands -->|"reads"| node_settings
node_toolcontract -->|"checks"| node_permissiongate
node_permissiongate -->|"evaluates"| node_permissionsutil
node_permissiongate -->|"prompts"| node_permissionsui
node_toolexec -->|"runs"| node_toolshell
node_toolexec -->|"runs"| node_filetools
node_toolexec -->|"runs"| node_agenttools
node_toolexec -->|"runs"| node_mcpweb
node_toolexec -->|"gated by"| node_permissiongate
node_toolshell -->|"depends on"| node_utils
node_filetools -->|"depends on"| node_utils
node_agenttools -->|"spawns"| node_taskcore
node_mcpweb -->|"connects"| node_lspmcp
node_bridge -->|"feeds"| node_remote
node_bridge -->|"bridges"| node_permissionsui
node_plugins -->|"extends"| node_settings
node_skills -->|"enhances"| node_agenttools
node_servicesapi -->|"auths via"| node_authstorage
node_servicesapi -->|"persists"| node_storage
node_lspmcp -->|"loads via"| node_plugins
node_utils -->|"supports"| node_settings

click node_main "https://github.com/rishabhk103/claude-code/blob/main/src/main.tsx"
click node_queryengine "https://github.com/rishabhk103/claude-code/blob/main/src/QueryEngine.ts"
click node_context "https://github.com/rishabhk103/claude-code/blob/main/src/context.ts"
click node_taskcore "https://github.com/rishabhk103/claude-code/blob/main/src/Task.ts"
click node_sessionstate "https://github.com/rishabhk103/claude-code/blob/main/src/state/AppState.tsx"
click node_history "https://github.com/rishabhk103/claude-code/blob/main/src/history.ts"
click node_taskviews "https://github.com/rishabhk103/claude-code/blob/main/src/tasks.ts"
click node_appui "https://github.com/rishabhk103/claude-code/blob/main/src/components/App.tsx"
click node_promptinput "https://github.com/rishabhk103/claude-code/blob/main/src/components/PromptInput/PromptInput.tsx"
click node_messages "https://github.com/rishabhk103/claude-code/blob/main/src/components/messages/AssistantTextMessage.tsx"
click node_permissionsui "https://github.com/rishabhk103/claude-code/blob/main/src/components/permissions/PermissionDialog.tsx"
click node_commands "https://github.com/rishabhk103/claude-code/blob/main/src/commands.ts"
click node_keybinds "https://github.com/rishabhk103/claude-code/blob/main/src/keybindings/defaultBindings.ts"
click node_toolcontract "https://github.com/rishabhk103/claude-code/blob/main/src/Tool.ts"
click node_toolexec "https://github.com/rishabhk103/claude-code/blob/main/src/services/tools/toolExecution.ts"
click node_toolshell "https://github.com/rishabhk103/claude-code/blob/main/src/tools/BashTool/BashTool.tsx"
click node_filetools "https://github.com/rishabhk103/claude-code/blob/main/src/tools/FileEditTool/FileEditTool.ts"
click node_agenttools "https://github.com/rishabhk103/claude-code/blob/main/src/tools/AgentTool/AgentTool.tsx"
click node_mcpweb "https://github.com/rishabhk103/claude-code/blob/main/src/tools/MCPTool/MCPTool.ts"
click node_permissiongate "https://github.com/rishabhk103/claude-code/blob/main/src/hooks/toolPermission/PermissionContext.ts"
click node_permissionsutil "https://github.com/rishabhk103/claude-code/blob/main/src/utils/permissions/permissions.ts"
click node_bridge "https://github.com/rishabhk103/claude-code/blob/main/src/bridge/bridgeMain.ts"
click node_remote "https://github.com/rishabhk103/claude-code/blob/main/src/remote/RemoteSessionManager.ts"
click node_plugins "https://github.com/rishabhk103/claude-code/blob/main/src/plugins/builtinPlugins.ts"
click node_skills "https://github.com/rishabhk103/claude-code/blob/main/src/skills/bundledSkills.ts"
click node_servicesapi "https://github.com/rishabhk103/claude-code/blob/main/src/services/api/claude.ts"
click node_authstorage "https://github.com/rishabhk103/claude-code/blob/main/src/services/oauth/client.ts"
click node_lspmcp "https://github.com/rishabhk103/claude-code/blob/main/src/services/lsp/LSPServerManager.ts"
click node_settings "https://github.com/rishabhk103/claude-code/blob/main/src/utils/settings/settings.ts"
click node_storage "https://github.com/rishabhk103/claude-code/blob/main/src/utils/sessionStorage.ts"
click node_utils "https://github.com/rishabhk103/claude-code/tree/main/src/utils"

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_main,node_queryengine,node_context,node_taskcore,node_sessionstate,node_history,node_taskviews toneBlue
class node_appui,node_promptinput,node_messages,node_permissionsui,node_commands,node_keybinds toneAmber
class node_toolcontract,node_toolexec,node_toolshell,node_filetools,node_agenttools,node_mcpweb toneMint
class node_permissiongate,node_permissionsutil toneRose
class node_bridge,node_remote,node_plugins,node_skills,node_servicesapi,node_authstorage,node_lspmcp toneIndigo
class node_settings,node_storage,node_utils toneTeal
```

## Components

### Runtime

CLI bootstrap, session loop, state, and task orchestration

- [CLI entry](https://github.com/rishabhk103/claude-code/blob/main/src/main.tsx): bootstrap · Process startup and top-level entrypoints. · `src/main.tsx`
- [Query loop](https://github.com/rishabhk103/claude-code/blob/main/src/QueryEngine.ts): agent runtime · Central conversation engine that streams model output and advances turns. · `src/QueryEngine.ts`
- [Session context](https://github.com/rishabhk103/claude-code/blob/main/src/context.ts): conversation state · Conversation context, prompts, and runtime abstractions shared across turns. · `src/context.ts`
- [Task model](https://github.com/rishabhk103/claude-code/blob/main/src/Task.ts): task runtime · Core task abstraction used for background and delegated work. · `src/Task.ts`
- [App state](https://github.com/rishabhk103/claude-code/blob/main/src/state/AppState.tsx): state store · Persistent and in-memory session/app state plus resume history. · `src/state/AppState.tsx`
- [History](https://github.com/rishabhk103/claude-code/blob/main/src/history.ts): session history · Session history and restoration support. · `src/history.ts`
- [Task views](https://github.com/rishabhk103/claude-code/blob/main/src/tasks.ts): task ui · Runtime task objects and UI-facing task lifecycle surfaces. · `src/tasks.ts`

### Terminal UI

Ink/React screens, components, input, and interaction layers

- [App shell](https://github.com/rishabhk103/claude-code/blob/main/src/components/App.tsx): ink app · Root UI composition and overall terminal layout. · `src/components/App.tsx`
- [Prompt input](https://github.com/rishabhk103/claude-code/blob/main/src/components/PromptInput/PromptInput.tsx): input layer · Prompt, command, and mode-aware terminal input handling. · `src/components/PromptInput/PromptInput.tsx`
- [Messages](https://github.com/rishabhk103/claude-code/blob/main/src/components/messages/AssistantTextMessage.tsx): message rendering · Streamed assistant, user, tool, and system message rendering. · `src/components/messages/AssistantTextMessage.tsx`
- [Permission UI](https://github.com/rishabhk103/claude-code/blob/main/src/components/permissions/PermissionDialog.tsx): approval dialogs · Interactive approval flows for tool use and policy decisions. · `src/components/permissions/PermissionDialog.tsx`
- [Slash cmds](https://github.com/rishabhk103/claude-code/blob/main/src/commands.ts): cli commands · User-initiated CLI commands and full-screen command flows. · `src/commands.ts`
- [Keybindings](https://github.com/rishabhk103/claude-code/blob/main/src/keybindings/defaultBindings.ts): input mapping · Shortcut parsing, binding resolution, and vim-style input modes. · `src/keybindings/defaultBindings.ts`

### Tools

Model-invoked capabilities and their execution wrappers

- [Tool contract](https://github.com/rishabhk103/claude-code/blob/main/src/Tool.ts): tool schema · Common tool interface, permissions, and result shapes. · `src/Tool.ts`
- [Tool exec](https://github.com/rishabhk103/claude-code/blob/main/src/services/tools/toolExecution.ts): tool orchestration · Streaming tool execution and orchestration layer. · `src/services/tools/toolExecution.ts`
- [Shell tools](https://github.com/rishabhk103/claude-code/blob/main/src/tools/BashTool/BashTool.tsx): command tools · Bash and PowerShell execution with safety, sandbox, and read-only checks. · `src/tools/BashTool/BashTool.tsx`
- [File tools](https://github.com/rishabhk103/claude-code/blob/main/src/tools/FileEditTool/FileEditTool.ts): fs tools · Read, write, edit, glob, and grep capabilities. · `src/tools/FileEditTool/FileEditTool.ts`
- [Agent tools](https://github.com/rishabhk103/claude-code/blob/main/src/tools/AgentTool/AgentTool.tsx): delegation tools · Sub-agents, tasks, and agent workflow tools. · `src/tools/AgentTool/AgentTool.tsx`
- [MCP/Web tools](https://github.com/rishabhk103/claude-code/blob/main/src/tools/MCPTool/MCPTool.ts): network tools · Model context protocol, web fetch/search, and remote resource access. · `src/tools/MCPTool/MCPTool.ts`

### Policy

Permission checks, approvals, and safety gates

- [Permission gate](https://github.com/rishabhk103/claude-code/blob/main/src/hooks/toolPermission/PermissionContext.ts): approval policy · Tool permission decision logic and approval routing. · `src/hooks/toolPermission/PermissionContext.ts`
- [Permission rules](https://github.com/rishabhk103/claude-code/blob/main/src/utils/permissions/permissions.ts): policy utils · Mode selection, rule matching, denials, and safety helpers. · `src/utils/permissions/permissions.ts`

### Integrations

External services, remote control, plugins, and auth

- [Bridge](https://github.com/rishabhk103/claude-code/blob/main/src/bridge/bridgeMain.ts): remote control · Cross-process bridge for IDE and remote-session control. · `src/bridge/bridgeMain.ts`
- [Remote sessions](https://github.com/rishabhk103/claude-code/blob/main/src/remote/RemoteSessionManager.ts): remote runtime · Remote session manager, websocket transport, and reconnect flows. · `src/remote/RemoteSessionManager.ts`
- [Plugins](https://github.com/rishabhk103/claude-code/blob/main/src/plugins/builtinPlugins.ts): extensibility · Plugin discovery, loading, validation, and marketplace flows. · `src/plugins/builtinPlugins.ts`
- [Skills](https://github.com/rishabhk103/claude-code/blob/main/src/skills/bundledSkills.ts): agent workflows · Bundled and loaded skill workflows that extend agent behavior. · `src/skills/bundledSkills.ts`
- [API services](https://github.com/rishabhk103/claude-code/blob/main/src/services/api/claude.ts): anthropic api · Anthropic client, usage, bootstrap, and error-handling wrappers. · `src/services/api/claude.ts`
- [Auth storage](https://github.com/rishabhk103/claude-code/blob/main/src/services/oauth/client.ts): oauth/secure storage · OAuth flows and credential persistence. · `src/services/oauth/client.ts`
- [LSP/MCP svc](https://github.com/rishabhk103/claude-code/blob/main/src/services/lsp/LSPServerManager.ts): code intelligence · LSP management and MCP connection services. · `src/services/lsp/LSPServerManager.ts`

### Shared Infra

Cross-cutting utilities, settings, persistence, and protocol helpers

- [Settings](https://github.com/rishabhk103/claude-code/blob/main/src/utils/settings/settings.ts): config system · Configuration loading, validation, and migration support. · `src/utils/settings/settings.ts`
- [Storage](https://github.com/rishabhk103/claude-code/blob/main/src/utils/sessionStorage.ts): persistence · Session storage, secure storage, and file persistence helpers. · `src/utils/sessionStorage.ts`
- [Utilities](https://github.com/rishabhk103/claude-code/tree/main/src/utils): shared helpers · Shared shell, git, context, token, and platform helpers. · `src/utils`

## Connections

- CLI entry → Query loop: boots · Startup initializes the core agent loop.
- CLI entry → App shell: mounts · CLI startup mounts the terminal application UI.
- CLI entry → Slash cmds: dispatches · Entry path routes user command invocations.
- Query loop → Session context: uses · The query loop reads and updates session context.
- Query loop → Tool contract: invokes · Model tool calls are validated against the tool contract.
- Query loop → Tool exec: executes · Structured tool calls are handed to the execution layer.
- Query loop → API services: calls · Conversation turns stream through the Anthropic API wrapper.
- Query loop → App state: updates · Each turn mutates app/session state.
- App state → History: persists · State and session history are stored for resume and rewind.
- App state → Task views: tracks · Tasks are reflected in the session state.
- App shell → Prompt input: contains · Main shell contains prompt and command input.
- App shell → Messages: renders · Conversation content is rendered as message streams.
- App shell → Permission UI: shows · UI surfaces approval dialogs and prompts.
- App shell → Keybindings: reads · Terminal interaction depends on keybinding state.
- Slash cmds → App state: controls · Commands operate on current session and app state.
- Slash cmds → Settings: reads · Command flows inspect and modify configuration.
- Tool contract → Permission gate: checks · Tool contract consults permission policy before execution.
- Permission gate → Permission rules: evaluates · Policy engine uses shared permission rules and helpers.
- Permission gate → Permission UI: prompts · Interactive approvals are surfaced through the UI.
- Tool exec → Shell tools: runs · Execution layer dispatches shell-capable tools.
- Tool exec → File tools: runs · Execution layer dispatches filesystem tools.
- Tool exec → Agent tools: runs · Execution layer dispatches delegated agent tools.
- Tool exec → MCP/Web tools: runs · Execution layer dispatches external/network tools.
- Tool exec → Permission gate: gated by · Tool execution is blocked or approved by permissions.
- Shell tools → Utilities: depends on · Shell tools rely on shared shell, git, and safety helpers.
- File tools → Utilities: depends on · File tools use filesystem, path, and diff utilities.
- Agent tools → Task model: spawns · Agent tools create and manage task-like work units.
- MCP/Web tools → LSP/MCP svc: connects · MCP and web-facing tools use external protocol services.
- Bridge → Remote sessions: feeds · Bridge layer connects to remote session control.
- Bridge → Permission UI: bridges · Remote actions still route through permission handling.
- Plugins → Settings: extends · Plugins integrate with configuration and startup settings.
- Skills → Agent tools: enhances · Skills influence agent behavior and delegated workflows.
- API services → Auth storage: auths via · API access relies on OAuth and secure credential storage.
- API services → Storage: persists · API and session-related data use persistence helpers.
- LSP/MCP svc → Plugins: loads via · LSP/MCP integrations are exposed through plugin and service layers.
- Utilities → Settings: supports · Shared utilities underpin configuration and validation.
