# itzzkirito/ecc architecture

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

- Interactive diagram: https://gitdiagram.com/itzzkirito/ecc
- Repository: https://github.com/itzzkirito/ecc

## Overview

ECC is a harness-native agent engineering system: users configure agent work, run and coordinate sessions, inspect results, and apply reusable skills and safeguards across supported coding harnesses. The sampled Rust `ecc2` runtime provides session management, persistence, worktrees, communications, notifications, observability, and a terminal dashboard. Separate evaluation tooling measures agent and GateGuard effectiveness, while the Python LLM and taste-application modules provide additional capabilities. Several repository areas are represented by paths and README descriptions rather than inspected source, so their internal connections are omitted.

Main entry points: [`ecc2/src/main.rs`](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/main.rs) (ECC runtime CLI), [`ecc2/src/session/manager.rs`](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/manager.rs) (Session manager), [`ecc2/src/session/store.rs`](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/store.rs) (Session store), [`docker/gateguard-effectiveness/lib.js`](https://github.com/itzzkirito/ecc/blob/main/docker/gateguard-effectiveness/lib.js) (GateGuard evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Agent runtime"]
  node_ecc2["ECC runtime CLI<br/>[main.rs]"]
  node_config["Runtime config<br/>[mod.rs]"]
  node_sessions["Session manager<br/>[manager.rs]"]
  node_sessiontypes["Session types<br/>[mod.rs]"]
  node_store[("Session store<br/>[store.rs]")]
  node_worktrees["Worktrees<br/>[mod.rs]"]
  node_comms["Agent communications<br/>[mod.rs]"]
  node_output["Session output<br/>[output.rs]"]
  node_daemon["Session daemon<br/>[daemon.rs]"]
  node_notifications["Notifications<br/>[notifications.rs]"]
  node_observability["Observability<br/>[mod.rs]"]
  node_dashboard["Terminal dashboard<br/>[dashboard.rs]"]
end

subgraph group_eval["Evaluation"]
  node_eval_lib["Evaluation library<br/>[ai-eval-lib.js]"]
  node_gate_lib["GateGuard evaluation<br/>[lib.js]"]
  node_gate_arms["Evaluation arms<br/>[arms.js]"]
  node_harness_eval["Harness evaluation<br/>[harness_eval.rs]"]
end

subgraph group_llm["LLM and skills"]
  node_taste_pipeline["Taste pipeline<br/>[pipeline.py]"]
  node_taste_forge["Taste forge<br/>[forge.py]"]
  node_llm_ollama["Ollama provider<br/>[ollama.py]"]
  node_llm_reasoning["Provider reasoning<br/>[reasoning.py]"]
end

subgraph group_workflow["Review workflow"]
  node_review_workflow["Orchestration review"]
end

node_engineer(("Engineer"))

node_engineer -.->|"runs"| node_ecc2
node_ecc2 -->|"loads"| node_config
node_ecc2 -->|"dispatches"| node_sessions
node_ecc2 -->|"uses"| node_store
node_ecc2 -->|"uses"| node_comms
node_ecc2 -->|"uses"| node_harness_eval
node_ecc2 -->|"uses"| node_notifications
node_ecc2 -->|"uses"| node_observability
node_ecc2 -->|"launches"| node_dashboard
node_sessions -->|"uses"| node_sessiontypes
node_sessions -->|"persists"| node_store
node_sessions -->|"reads"| node_config
node_sessions -->|"uses"| node_worktrees
node_sessions -->|"uses"| node_output
node_sessions -->|"uses"| node_comms
node_sessions -->|"uses"| node_notifications
node_sessions -->|"uses"| node_observability
node_dashboard -->|"reads"| node_store
node_comms -->|"writes"| node_store
node_eval_lib -.->|"scores"| node_gate_lib
node_gate_lib -->|"runs checks"| node_eval_lib
node_gate_lib -->|"uses"| node_gate_arms
node_taste_pipeline -->|"calls"| node_taste_forge
node_llm_ollama -->|"uses"| node_llm_reasoning
node_engineer -.->|"requests review"| node_review_workflow

click node_ecc2 "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/main.rs"
click node_config "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/config/mod.rs"
click node_sessions "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/manager.rs"
click node_sessiontypes "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/mod.rs"
click node_store "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/store.rs"
click node_worktrees "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/worktree/mod.rs"
click node_comms "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/comms/mod.rs"
click node_output "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/output.rs"
click node_daemon "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/daemon.rs"
click node_notifications "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/notifications.rs"
click node_observability "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/observability/mod.rs"
click node_dashboard "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/tui/dashboard.rs"
click node_eval_lib "https://github.com/itzzkirito/ecc/blob/main/docker/context-profiles/ai-eval-lib.js"
click node_gate_lib "https://github.com/itzzkirito/ecc/blob/main/docker/gateguard-effectiveness/lib.js"
click node_gate_arms "https://github.com/itzzkirito/ecc/blob/main/docker/gateguard-effectiveness/arms.js"
click node_harness_eval "https://github.com/itzzkirito/ecc/blob/main/ecc2/src/harness_eval.rs"
click node_taste_pipeline "https://github.com/itzzkirito/ecc/blob/main/skills/taste-application/scripts/pipeline.py"
click node_taste_forge "https://github.com/itzzkirito/ecc/blob/main/skills/taste-application/scripts/forge.py"
click node_llm_ollama "https://github.com/itzzkirito/ecc/blob/main/src/llm/providers/ollama.py"
click node_llm_reasoning "https://github.com/itzzkirito/ecc/blob/main/src/llm/providers/reasoning.py"
click node_review_workflow "https://github.com/itzzkirito/ecc/blob/main/workflows/orch-review.workflow.js"

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_ecc2,node_config,node_sessions,node_sessiontypes,node_store,node_worktrees,node_comms,node_output,node_daemon,node_notifications,node_observability,node_dashboard toneBlue
class node_eval_lib,node_gate_lib,node_gate_arms,node_harness_eval toneAmber
class node_taste_pipeline,node_taste_forge,node_llm_ollama,node_llm_reasoning toneMint
class node_review_workflow toneRose
class node_engineer toneIndigo
```

## Components

### Agent runtime

- [ECC runtime CLI](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/main.rs): `ecc2/src/main.rs`
- [Runtime config](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/config/mod.rs): `ecc2/src/config/mod.rs`
- [Session manager](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/manager.rs): `ecc2/src/session/manager.rs`
- [Session types](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/mod.rs): `ecc2/src/session/mod.rs`
- [Session store](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/store.rs): `ecc2/src/session/store.rs`
- [Worktrees](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/worktree/mod.rs): `ecc2/src/worktree/mod.rs`
- [Agent communications](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/comms/mod.rs): `ecc2/src/comms/mod.rs`
- [Session output](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/output.rs): `ecc2/src/session/output.rs`
- [Session daemon](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/session/daemon.rs): `ecc2/src/session/daemon.rs`
- [Notifications](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/notifications.rs): `ecc2/src/notifications.rs`
- [Observability](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/observability/mod.rs): `ecc2/src/observability/mod.rs`
- [Terminal dashboard](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/tui/dashboard.rs): `ecc2/src/tui/dashboard.rs`

### Evaluation

- [Evaluation library](https://github.com/itzzkirito/ecc/blob/main/docker/context-profiles/ai-eval-lib.js): `docker/context-profiles/ai-eval-lib.js`
- [GateGuard evaluation](https://github.com/itzzkirito/ecc/blob/main/docker/gateguard-effectiveness/lib.js): `docker/gateguard-effectiveness/lib.js`
- [Evaluation arms](https://github.com/itzzkirito/ecc/blob/main/docker/gateguard-effectiveness/arms.js): `docker/gateguard-effectiveness/arms.js`
- [Harness evaluation](https://github.com/itzzkirito/ecc/blob/main/ecc2/src/harness_eval.rs): `ecc2/src/harness_eval.rs`

### LLM and skills

- [Taste pipeline](https://github.com/itzzkirito/ecc/blob/main/skills/taste-application/scripts/pipeline.py): `skills/taste-application/scripts/pipeline.py`
- [Taste forge](https://github.com/itzzkirito/ecc/blob/main/skills/taste-application/scripts/forge.py): `skills/taste-application/scripts/forge.py`
- [Ollama provider](https://github.com/itzzkirito/ecc/blob/main/src/llm/providers/ollama.py): `src/llm/providers/ollama.py`
- [Provider reasoning](https://github.com/itzzkirito/ecc/blob/main/src/llm/providers/reasoning.py): `src/llm/providers/reasoning.py`

### Review workflow

- [Orchestration review](https://github.com/itzzkirito/ecc/blob/main/workflows/orch-review.workflow.js): `workflows/orch-review.workflow.js`

### Other components

- **Engineer**

## Connections

- Engineer → ECC runtime CLI: runs
- ECC runtime CLI → Runtime config: loads (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Session manager: dispatches (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Session store: uses (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Agent communications: uses (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Harness evaluation: uses (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Notifications: uses (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Observability: uses (evidence: `ecc2/src/main.rs`)
- ECC runtime CLI → Terminal dashboard: launches (evidence: `ecc2/src/main.rs`)
- Session manager → Session types: uses (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Session store: persists (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Runtime config: reads (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Worktrees: uses (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Session output: uses (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Agent communications: uses (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Notifications: uses (evidence: `ecc2/src/session/manager.rs`)
- Session manager → Observability: uses (evidence: `ecc2/src/session/manager.rs`)
- Terminal dashboard → Session store: reads (evidence: `ecc2/src/tui/app.rs`)
- Agent communications → Session store: writes (evidence: `ecc2/src/comms/mod.rs`)
- Evaluation library → GateGuard evaluation: scores (evidence: `docker/gateguard-effectiveness/lib.js`)
- GateGuard evaluation → Evaluation library: runs checks (evidence: `docker/gateguard-effectiveness/lib.js`)
- GateGuard evaluation → Evaluation arms: uses (evidence: `docker/gateguard-effectiveness/lib.js`)
- Taste pipeline → Taste forge: calls (evidence: `skills/taste-application/scripts/pipeline.py`)
- Ollama provider → Provider reasoning: uses (evidence: `src/llm/providers/ollama.py`)
- Engineer → Orchestration review: requests review
