# ilearn-lab/evoharness architecture

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

- Interactive diagram: https://gitdiagram.com/ilearn-lab/evoharness
- Repository: https://github.com/ilearn-lab/evoharness

## Overview

1. **What this repo is**
   EvoHarness is a Python-based terminal agent harness with an optional React/Ink TUI. It is not just a model wrapper: the repo centers on a workspace-native control system for commands, skills, agents, plugins, MCP servers, approvals, and long-horizon session state.

2. **Startup and entrypoints**
   The runtime enters through `evo_harness/__main__.py` and `src/evo_harness/cli.py`, with utility scripts in `scripts/` for specialized workbench modes. At launch, the harness resolves the current workspace, loads local settings, discovers registered surfaces, and then opens either the TUI or a text session fallback.

3. **Core runtime control plane**
   The main orchestration layer lives under `src/evo_harness/harness/`. Modules such as `session.py`, `conversation.py`, `commands.py`, `tasks.py`, `workflows.py`, `tools.py`, and `stream_events.py` coordinate the live interaction loop: user input, tool calls, command dispatch, task execution, and streaming model output.

4. **Provider boundary**
   Model access is isolated behind adapter modules in `src/evo_harness/adapters/`, especially `claude_code.py` and `openharness.py`. This is the boundary to external LLM backends and gateway styles; provider selection, base URL, and API-key handling are part of the runtime configuration rather than hardcoded app logic.

5. **Workspace as product surface**
   The repository treats workspace files as first-class architecture. `.claude/` contains commands, agents, skills, and agent workflows; `.evo-harness/` contains runtime registries like `settings.json`, `mcp.json`, and `marketplace.json`; and `plugins/` contains installable workflow bundles. Discovery and rendering of these surfaces are handled by `harness/plugins.py`, `harness/skills.py`, `harness/agents.py`, `harness/slash_commands.py`, and related registry modules.

6. **Plugin ecosystem boundary**
   Each plugin under `plugins/*` is a self-contained bundle with its own `.claude-plugin/plugin.json`, optional `.mcp.json`, and local `agents/`, `commands/`, `skills/`, and `hooks/` folders. Architecturally, plugins add new workflow families without changing the core harness. Examples include `docs-foundry`, `workspace-ops`, `session-lab`, `safe-inspector`, and `delivery-lab`.

7. **MCP as an externalized service layer**
   The repo also ships local MCP servers in `src/evo_harness/*_mcp_server.py` and runtime support in `harness/mcp.py`, `harness/mcp_runtime.py`, and `harness/web_research.py`. These expose tools/resources/prompts for workspace docs, workspace intelligence, quality gates, session analysis, document automation, and web research. This is the main boundary for reusable external capabilities.

8. **Approvals, permissions, and safety**
   Mutating actions are mediated by `harness/permissions.py`, `harness/approvals.py`, `harness/hooks.py`, and the approval-related command surfaces in the workspace. The runtime supports modes like read-only planning versus auto-execution, so safety is a first-class control path rather than an afterthought.

9. **Memory, state, and persistence**
   Long-lived state is split across runtime memory and storage. `harness/memory.py`, `harness/environment.py`, `harness/settings.py`, and `storage/ledger.py` capture session context, workspace configuration, and historical records used for later review, promotion, or rollback. This is what makes the harness “long-horizon” rather than purely chat-session based.

10. **Controlled self-evolution pipeline**
   The self-evolution subsystem is explicit in `src/evo_harness/autonomous_evolution.py`, `core/analyzer.py`, `core/policy.py`, `core/validator.py`, and the operator modules under `src/evo_harness/operators/`. The flow is evidence-driven: session traces or workspace state are analyzed, a policy chooses an operator such as revise-command, revise-skill, distill-memory, or grow-ecosystem, candidate changes are validated, and then they are promoted, held, or rolled back.

11. **Frontend composition**
   The terminal UI in `frontend/terminal/` is a thin presentation layer over the backend session. Components like `ConversationView`, `PromptInput`, `StatusBar`, `ToolCallDisplay`, and `ModalHost`, plus the `useBackendSession` hook, render the live harness state and stream events; they do not own the business logic.

12. **How to think about the architecture diagram**
   A clean diagram for this repo should show three main zones: the **runtime/control plane** in `src/evo_harness/harness` and `cli.py`, the **workspace surface** in `.claude/`, `.evo-harness/`, and `plugins/`, and the **execution/extensibility plane** made of provider adapters, MCP servers, and evolution operators. Data flows from workspace discovery and user input into the session runtime, out to LLM providers and MCP services, and back through approvals, memory, and validation.

Main entry points: [`src/evo_harness/harness/runtime.py`](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/runtime.py) (Runtime), [`src/evo_harness/harness/session.py`](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/session.py) (Session), [`frontend/terminal/src/App.tsx`](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/App.tsx) (Terminal UI), [`src/evo_harness/harness/mcp_runtime.py`](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/mcp_runtime.py) (MCP runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime control plane"]
  node_src_evo_harness___main__(("__main__<br/>entrypoint<br/>[__main__.py]"))
  node_src_evo_harness_cli["CLI<br/>entrypoint<br/>[cli.py]"]
  node_harness_runtime["Runtime<br/>orchestrator<br/>[runtime.py]"]
  node_harness_session["Session<br/>[session.py]"]
  node_harness_conversation["Conversation<br/>dialog manager<br/>[conversation.py]"]
  node_harness_commands["Commands<br/>dispatch<br/>[commands.py]"]
  node_harness_tasks["Tasks<br/>task runner<br/>[tasks.py]"]
  node_harness_tools["Tools<br/>tooling<br/>[tools.py]"]
  node_harness_stream_events["Stream events<br/>event stream<br/>[stream_events.py]"]
  node_harness_permissions{{"Permissions<br/>policy gate<br/>[permissions.py]"}}
  node_harness_approvals{{"Approvals<br/>human gate<br/>[approvals.py]"}}
end

subgraph group_workspace["Workspace surfaces"]
  node_harness_plugins["Plugins<br/>discovery<br/>[plugins.py]"]
  node_harness_skills["Skills<br/>registry<br/>[skills.py]"]
  node_harness_agents["Agents<br/>registry<br/>[agents.py]"]
  node_harness_slash_commands["Slash commands<br/>registry<br/>[slash_commands.py]"]
  node_harness_workflows["Workflows<br/>registry<br/>[workflows.py]"]
end

subgraph group_extensibility["Extensibility layer"]
  node_adapters_boundary["Adapters<br/>llm boundary<br/>[__init__.py]"]
  node_claude_adapter["Claude code<br/>provider adapter<br/>[claude_code.py]"]
  node_openharness_adapter["OpenHarness<br/>provider adapter<br/>[openharness.py]"]
  node_mcp_runtime["MCP runtime<br/>service host<br/>[mcp_runtime.py]"]
  node_workspace_mcp["Workspace MCP<br/>mcp server"]
  node_quality_mcp["Quality gates<br/>mcp server"]
  node_web_research_mcp["Web research<br/>mcp server"]
  node_evolution_pipeline["Evolution<br/>pipeline"]
  node_analyzer["Analyzer<br/>analysis<br/>[analyzer.py]"]
  node_policy{{"Policy<br/>decision engine<br/>[policy.py]"}}
  node_validator{{"Validator<br/>gate<br/>[validator.py]"}}
  node_operators["Operators<br/>action set<br/>[__init__.py]"]
end

subgraph group_ui["Terminal UI"]
  node_frontend_app["Terminal UI<br/>presentation<br/>[App.tsx]"]
  node_conversation_view["Conversation view<br/>ui component"]
  node_prompt_input["Prompt input<br/>ui component<br/>[PromptInput.tsx]"]
  node_status_bar["Status bar<br/>ui component<br/>[StatusBar.tsx]"]
  node_tool_display["Tool calls<br/>ui component"]
  node_backend_hook["Backend hook<br/>bridge"]
end

subgraph group_persistence["State and records"]
end

node_src_evo_harness___main__ -->|"start"| node_src_evo_harness_cli
node_src_evo_harness_cli -->|"boot"| node_harness_runtime
node_harness_runtime -->|"open"| node_harness_session
node_harness_session -->|"manage"| node_harness_conversation
node_harness_session -->|"dispatch"| node_harness_commands
node_harness_session -->|"run"| node_harness_tasks
node_harness_session -->|"invoke"| node_harness_tools
node_harness_session -->|"stream"| node_harness_stream_events
node_harness_tools -->|"check"| node_harness_permissions
node_harness_tools -->|"approve"| node_harness_approvals
node_harness_runtime -->|"discover"| node_harness_plugins
node_harness_runtime -->|"load"| node_harness_skills
node_harness_runtime -->|"load"| node_harness_agents
node_harness_runtime -->|"load"| node_harness_slash_commands
node_harness_runtime -->|"load"| node_harness_workflows
node_harness_runtime -->|"provider"| node_adapters_boundary
node_adapters_boundary -->|"impl"| node_claude_adapter
node_adapters_boundary -->|"impl"| node_openharness_adapter
node_harness_runtime -->|"serve"| node_mcp_runtime
node_mcp_runtime -->|"host"| node_workspace_mcp
node_mcp_runtime -->|"host"| node_quality_mcp
node_mcp_runtime -->|"host"| node_web_research_mcp
node_harness_runtime -->|"evolve"| node_evolution_pipeline
node_evolution_pipeline -->|"analyze"| node_analyzer
node_evolution_pipeline -->|"decide"| node_policy
node_evolution_pipeline -->|"validate"| node_validator
node_policy -->|"choose"| node_operators
node_validator -.->|"gate"| node_harness_approvals
node_harness_stream_events -->|"bind"| node_backend_hook
node_backend_hook -->|"render"| node_frontend_app
node_frontend_app -->|"show"| node_conversation_view
node_frontend_app -->|"capture"| node_prompt_input
node_frontend_app -->|"status"| node_status_bar
node_frontend_app -->|"inspect"| node_tool_display
node_harness_runtime -.->|"fallback"| node_src_evo_harness_cli

click node_src_evo_harness___main__ "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/__main__.py"
click node_src_evo_harness_cli "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/cli.py"
click node_harness_runtime "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/runtime.py"
click node_harness_session "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/session.py"
click node_harness_conversation "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/conversation.py"
click node_harness_commands "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/commands.py"
click node_harness_tasks "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/tasks.py"
click node_harness_tools "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/tools.py"
click node_harness_stream_events "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/stream_events.py"
click node_harness_permissions "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/permissions.py"
click node_harness_approvals "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/approvals.py"
click node_harness_plugins "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/plugins.py"
click node_harness_skills "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/skills.py"
click node_harness_agents "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/agents.py"
click node_harness_slash_commands "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/slash_commands.py"
click node_harness_workflows "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/workflows.py"
click node_adapters_boundary "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/__init__.py"
click node_claude_adapter "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/claude_code.py"
click node_openharness_adapter "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/openharness.py"
click node_mcp_runtime "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/mcp_runtime.py"
click node_workspace_mcp "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/workspace_docs_mcp_server.py"
click node_quality_mcp "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/quality_gate_mcp_server.py"
click node_web_research_mcp "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/web_research_mcp_server.py"
click node_evolution_pipeline "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/autonomous_evolution.py"
click node_analyzer "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/analyzer.py"
click node_policy "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/policy.py"
click node_validator "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/validator.py"
click node_operators "https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/operators/__init__.py"
click node_frontend_app "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/App.tsx"
click node_conversation_view "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/ConversationView.tsx"
click node_prompt_input "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/PromptInput.tsx"
click node_status_bar "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/StatusBar.tsx"
click node_tool_display "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/ToolCallDisplay.tsx"
click node_backend_hook "https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/hooks/useBackendSession.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_src_evo_harness___main__,node_src_evo_harness_cli,node_harness_runtime,node_harness_session,node_harness_conversation,node_harness_commands,node_harness_tasks,node_harness_tools,node_harness_stream_events,node_harness_permissions,node_harness_approvals toneBlue
class node_harness_plugins,node_harness_skills,node_harness_agents,node_harness_slash_commands,node_harness_workflows toneAmber
class node_adapters_boundary,node_claude_adapter,node_openharness_adapter,node_mcp_runtime,node_workspace_mcp,node_quality_mcp,node_web_research_mcp,node_evolution_pipeline,node_analyzer,node_policy,node_validator,node_operators toneMint
class node_frontend_app,node_conversation_view,node_prompt_input,node_status_bar,node_tool_display,node_backend_hook toneRose
```

## Components

### Runtime control plane

Entrypoints and live session orchestration

- [__main__](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/__main__.py): entrypoint · Python package entrypoint for launching the harness · `src/evo_harness/__main__.py`
- [CLI](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/cli.py): entrypoint · Command-line startup and mode selection · `src/evo_harness/cli.py`
- [Runtime](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/runtime.py): orchestrator · Coordinates session startup, workspace resolution, and backend wiring · `src/evo_harness/harness/runtime.py`
- [Session](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/session.py): session loop · Owns the live interaction lifecycle · `src/evo_harness/harness/session.py`
- [Conversation](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/conversation.py): dialog manager · Tracks message exchange and turn structure · `src/evo_harness/harness/conversation.py`
- [Commands](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/commands.py): dispatch · Resolves and executes slash commands and command surfaces · `src/evo_harness/harness/commands.py`
- [Tasks](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/tasks.py): task runner · Coordinates task execution and job flow · `src/evo_harness/harness/tasks.py`
- [Tools](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/tools.py): tooling · Tool invocation and workspace actions exposed to the agent · `src/evo_harness/harness/tools.py`
- [Stream events](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/stream_events.py): event stream · Streaming model and session events for the UI · `src/evo_harness/harness/stream_events.py`
- [Permissions](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/permissions.py): policy gate · Checks whether actions are allowed · `src/evo_harness/harness/permissions.py`
- [Approvals](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/approvals.py): human gate · Manages approval workflows for mutating actions · `src/evo_harness/harness/approvals.py`

### Workspace surfaces

Repo-local commands, agents, skills, and registries

- [Plugins](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/plugins.py): discovery · Discovers installed plugin bundles and their surfaces · `src/evo_harness/harness/plugins.py`
- [Skills](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/skills.py): registry · Loads workspace and plugin skills · `src/evo_harness/harness/skills.py`
- [Agents](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/agents.py): registry · Loads agent definitions from workspace surfaces · `src/evo_harness/harness/agents.py`
- [Slash commands](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/slash_commands.py): registry · Discovers command surfaces from workspace and plugins · `src/evo_harness/harness/slash_commands.py`
- [Workflows](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/workflows.py): registry · Coordinates reusable workflow bundles · `src/evo_harness/harness/workflows.py`

### Extensibility layer

LLM adapters, MCP services, and evolution pipeline

- [Adapters](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/__init__.py): llm boundary · Provider abstraction for external model backends · `src/evo_harness/adapters/__init__.py`
- [Claude code](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/claude_code.py): provider adapter · Adapter for Claude-style backend integration · `src/evo_harness/adapters/claude_code.py`
- [OpenHarness](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/adapters/openharness.py): provider adapter · Adapter for gateway-style or alternate backend integration · `src/evo_harness/adapters/openharness.py`
- [MCP runtime](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/harness/mcp_runtime.py): service host · Loads and serves MCP capabilities at runtime · `src/evo_harness/harness/mcp_runtime.py`
- [Workspace MCP](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/workspace_docs_mcp_server.py): mcp server · Workspace documentation and intelligence surfaces · `src/evo_harness/workspace_docs_mcp_server.py`
- [Quality gates](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/quality_gate_mcp_server.py): mcp server · Quality and validation-oriented MCP surface · `src/evo_harness/quality_gate_mcp_server.py`
- [Web research](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/web_research_mcp_server.py): mcp server · External research MCP surface · `src/evo_harness/web_research_mcp_server.py`
- [Evolution](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/autonomous_evolution.py): pipeline · Analyzes traces and proposes self-improvements · `src/evo_harness/autonomous_evolution.py`
- [Analyzer](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/analyzer.py): analysis · Extracts evidence from traces and workspace state · `src/evo_harness/core/analyzer.py`
- [Policy](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/policy.py): decision engine · Selects the next operator or action · `src/evo_harness/core/policy.py`
- [Validator](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/core/validator.py): gate · Validates candidate changes before promotion · `src/evo_harness/core/validator.py`
- [Operators](https://github.com/ilearn-lab/evoharness/blob/main/src/evo_harness/operators/__init__.py): action set · Revision, growth, memory, and stop operators · `src/evo_harness/operators/__init__.py`

### Terminal UI

React/Ink presentation over backend session state

- [Terminal UI](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/App.tsx): presentation · Ink-based terminal application shell · `frontend/terminal/src/App.tsx`
- [Conversation view](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/ConversationView.tsx): ui component · Renders the live transcript · `frontend/terminal/src/components/ConversationView.tsx`
- [Prompt input](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/PromptInput.tsx): ui component · Captures user input and command entry · `frontend/terminal/src/components/PromptInput.tsx`
- [Status bar](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/StatusBar.tsx): ui component · Shows session and runtime status · `frontend/terminal/src/components/StatusBar.tsx`
- [Tool calls](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/components/ToolCallDisplay.tsx): ui component · Displays tool invocations and results · `frontend/terminal/src/components/ToolCallDisplay.tsx`
- [Backend hook](https://github.com/ilearn-lab/evoharness/blob/main/frontend/terminal/src/hooks/useBackendSession.ts): bridge · Connects UI to backend session state · `frontend/terminal/src/hooks/useBackendSession.ts`

## Connections

- __main__ → CLI: start · Package entrypoint delegates to CLI startup
- CLI → Runtime: boot · CLI resolves workspace and launches runtime
- Runtime → Session: open · Runtime creates the active session
- Session → Conversation: manage · Session owns conversation state and turn flow
- Session → Commands: dispatch · Session routes command surfaces
- Session → Tasks: run · Session schedules task execution
- Session → Tools: invoke · Session exposes tools to the agent loop
- Session → Stream events: stream · Session emits live events to consumers
- Tools → Permissions: check · Tool actions pass through permission checks
- Tools → Approvals: approve · Mutating actions may require human approval
- Runtime → Plugins: discover · Runtime discovers plugin bundles and workspace surfaces
- Runtime → Skills: load · Runtime loads available skills
- Runtime → Agents: load · Runtime loads agent definitions
- Runtime → Slash commands: load · Runtime loads command surfaces
- Runtime → Workflows: load · Runtime loads workflow bundles
- Runtime → Adapters: provider · Runtime selects an LLM adapter boundary
- Adapters → Claude code: impl · Claude-style backend adapter
- Adapters → OpenHarness: impl · Alternate backend adapter
- Runtime → MCP runtime: serve · Runtime wires MCP services into the session
- MCP runtime → Workspace MCP: host · Serves workspace intelligence capabilities
- MCP runtime → Quality gates: host · Serves validation and quality capabilities
- MCP runtime → Web research: host · Serves web research capabilities
- Runtime → Evolution: evolve · Runtime can trigger the self-evolution pipeline
- Evolution → Analyzer: analyze · Pipeline inspects traces and workspace state
- Evolution → Policy: decide · Policy selects the next operator
- Evolution → Validator: validate · Candidate changes are validated before promotion
- Policy → Operators: choose · Policy routes work to evolution operators
- Validator → Approvals: gate · Validation results can feed approval decisions
- Stream events → Backend hook: bind · UI hook consumes backend events
- Backend hook → Terminal UI: render · UI shell consumes backend session state
- Terminal UI → Conversation view: show · Renders conversation transcript
- Terminal UI → Prompt input: capture · Accepts user prompts and commands
- Terminal UI → Status bar: status · Shows runtime state
- Terminal UI → Tool calls: inspect · Shows tool activity
- Runtime → CLI: fallback · CLI can choose terminal or text-session modes
