# woozheng/aicp architecture

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

- Interactive diagram: https://gitdiagram.com/woozheng/aicp
- Repository: https://github.com/woozheng/aicp

## Overview

AICP Protocol is a specification for LLM-native agent systems, not an implementation repository. Its documented workflow is for an LLM to express system design as messages, route an Envelop to a receiver-selected plugin, and execute it. The README also describes append-only state and mounting existing callable capabilities. No source excerpts were provided, so the graph reflects documented relationships only; the protocol document is present in the tree but was not inspected.

Main entry points: [`README.md`](https://github.com/woozheng/aicp/blob/main/README.md) (Envelop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_protocol["Protocol Core"]
  node_envelop["Envelop<br/>[README.md]"]
  node_append_state[("Append-Only State<br/>[README.md]")]
end

subgraph group_runtime["Message Runtime"]
  node_route["Route<br/>[README.md]"]
  node_plugin_lookup["Plugin Lookup<br/>[README.md]"]
  node_execute["Plugin Execute<br/>[README.md]"]
end

subgraph group_integration["Capability Integration"]
  node_legacy_capability["Legacy Callable Capability<br/>[README.md]"]
  node_agent_container["Agent Container<br/>[README.md]"]
end

node_llm(("LLM"))

node_llm -->|"produces messages"| node_envelop
node_envelop -->|"enters routing"| node_route
node_route -->|"dispatches to"| node_execute
node_execute -->|"resolves receiver"| node_plugin_lookup
node_legacy_capability -->|"mounts on"| node_agent_container

click node_envelop "https://github.com/woozheng/aicp/blob/main/README.md"
click node_route "https://github.com/woozheng/aicp/blob/main/README.md"
click node_plugin_lookup "https://github.com/woozheng/aicp/blob/main/README.md"
click node_execute "https://github.com/woozheng/aicp/blob/main/README.md"
click node_append_state "https://github.com/woozheng/aicp/blob/main/README.md"
click node_legacy_capability "https://github.com/woozheng/aicp/blob/main/README.md"
click node_agent_container "https://github.com/woozheng/aicp/blob/main/README.md"

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_envelop,node_append_state toneBlue
class node_route,node_plugin_lookup,node_execute toneAmber
class node_legacy_capability,node_agent_container toneMint
class node_llm toneIndigo
```

## Components

### Protocol Core

- [Envelop](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`
- [Append-Only State](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`

### Message Runtime

- [Route](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`
- [Plugin Lookup](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`
- [Plugin Execute](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`

### Capability Integration

- [Legacy Callable Capability](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`
- [Agent Container](https://github.com/woozheng/aicp/blob/main/README.md): `README.md`

### Other components

- **LLM**

## Connections

- LLM → Envelop: produces messages (evidence: `README.md`)
- Envelop → Route: enters routing (evidence: `README.md`)
- Route → Plugin Execute: dispatches to (evidence: `README.md`)
- Plugin Execute → Plugin Lookup: resolves receiver (evidence: `README.md`)
- Legacy Callable Capability → Agent Container: mounts on (evidence: `README.md`)
