# examproco/claude-code-camp-2026-q2 architecture

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

- Interactive diagram: https://gitdiagram.com/examproco/claude-code-camp-2026-q2
- Repository: https://github.com/examproco/claude-code-camp-2026-q2

## Overview

This repository is a Claude Code Camp collection of staged Ruby agent-framework implementations, a CircleMUD world parser and browser explorer, a MUD connection library, and a session-log viewer. The explorer workflow is loading parsed world data, deriving cross-references, then browsing or mapping entities with optional zone scoping. The Ruby stages suggest an agent workflow spanning providers, tools, and terminal interfaces, but the sampled evidence does not establish its full call sequence. Connections below are limited to visible imports or documented behavior; several unsampled framework links are omitted.

Main entry points: [`week0_explore/preview/web/src/App.tsx`](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/App.tsx) (Browser routes), [`week0_explore/preview/web/src/data/useWorld.tsx`](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/useWorld.tsx) (World context), [`week0_explore/preview/web/src/pages/WorldMap.tsx`](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/pages/WorldMap.tsx) (World maps), [`week1_baseline/ruby/12_context/lib/boukensha/agent.rb`](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/agent.rb) (Agent loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_world["World explorer"]
  node_world_parser["World parser<br/>[parse.py]"]
  node_world_models["World models<br/>[models.py]"]
  node_world_data["World data loader<br/>[load.ts]"]
  node_world_relations["Cross references<br/>[relations.ts]"]
  node_world_state["World context<br/>[useWorld.tsx]"]
  node_zone_scope["Zone scope<br/>[zoneScope.tsx]"]
  node_explorer_app["Browser routes<br/>[App.tsx]"]
  node_entity_pages["Entity pages<br/>[ZoneDetail.tsx]"]
  node_map_pages["World maps<br/>[WorldMap.tsx]"]
end

subgraph group_agent["Agent framework"]
  node_ruby_agent["Agent loop<br/>[agent.rb]"]
  node_ruby_client["Model client<br/>[client.rb]"]
  node_ruby_provider["Model providers<br/>[base.rb]"]
  node_ruby_tools["Tool library"]
end

subgraph group_terminal["MUD and terminal"]
  node_mud_manager["MUD session<br/>[session.rb]"]
  node_mud_primitives["MUD commands<br/>[primitives.rb]"]
  node_tui["Terminal interface<br/>[tui.rb]"]
  node_tui_bridge["Terminal input bridge<br/>[program.c]"]
end

subgraph group_logs["Session logs"]
  node_log_app["Log viewer<br/>[app.rb]"]
  node_log_sessions["Session records<br/>[session.rb]"]
  node_ansi["ANSI formatting<br/>[ansi.rb]"]
end

node_explorer_user(("Explorer"))

node_world_parser -.->|"defines data"| node_world_models
node_world_data -->|"types as"| node_world_models
node_world_state -->|"loads world"| node_world_data
node_world_state -->|"builds indexes"| node_world_relations
node_zone_scope -->|"reads world"| node_world_state
node_explorer_app -->|"provides data"| node_world_state
node_explorer_app -->|"provides scope"| node_zone_scope
node_explorer_app -->|"routes pages"| node_entity_pages
node_explorer_app -->|"routes maps"| node_map_pages
node_map_pages -->|"queries links"| node_world_relations
node_map_pages -->|"reads world"| node_world_state
node_explorer_user -.->|"browses"| node_explorer_app
node_mud_manager -->|"accepts commands"| node_mud_primitives
node_ruby_agent -.->|"uses client"| node_ruby_client
node_ruby_client -.->|"dispatches requests"| node_ruby_provider
node_ruby_agent -.->|"invokes tools"| node_ruby_tools
node_tui -.->|"uses terminal bridge"| node_tui_bridge
node_log_app -->|"loads sessions"| node_log_sessions
node_log_app -->|"formats output"| node_ansi

click node_world_parser "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/circlemud-world-parser/circlemud_world_parser/parse.py"
click node_world_models "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/circlemud-world-parser/circlemud_world_parser/models.py"
click node_world_data "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/load.ts"
click node_world_relations "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/relations.ts"
click node_world_state "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/useWorld.tsx"
click node_zone_scope "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/zoneScope.tsx"
click node_explorer_app "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/App.tsx"
click node_entity_pages "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/pages/ZoneDetail.tsx"
click node_map_pages "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/pages/WorldMap.tsx"
click node_ruby_agent "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/agent.rb"
click node_ruby_client "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/client.rb"
click node_ruby_provider "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/backends/base.rb"
click node_ruby_tools "https://github.com/ExamProCo/claude-code-camp-2026-Q2/tree/main/week1_baseline/ruby/12_context/lib/boukensha/tools"
click node_mud_manager "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/mud_manager/lib/mud_manager/session.rb"
click node_mud_primitives "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/mud_manager/lib/mud_manager/primitives.rb"
click node_tui "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/tui.rb"
click node_tui_bridge "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/patches/bubbletea/program.c"
click node_log_app "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/app.rb"
click node_log_sessions "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/session.rb"
click node_ansi "https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/ansi.rb"

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_world_parser,node_world_models,node_world_data,node_world_relations,node_world_state,node_zone_scope,node_explorer_app,node_entity_pages,node_map_pages toneBlue
class node_ruby_agent,node_ruby_client,node_ruby_provider,node_ruby_tools toneAmber
class node_mud_manager,node_mud_primitives,node_tui,node_tui_bridge toneMint
class node_log_app,node_log_sessions,node_ansi toneRose
class node_explorer_user toneIndigo
```

## Components

### World explorer

- [World parser](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/circlemud-world-parser/circlemud_world_parser/parse.py): `week0_explore/circlemud-world-parser/circlemud_world_parser/parse.py`
- [World models](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/circlemud-world-parser/circlemud_world_parser/models.py): `week0_explore/circlemud-world-parser/circlemud_world_parser/models.py`
- [World data loader](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/load.ts): `week0_explore/preview/web/src/data/load.ts`
- [Cross references](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/relations.ts): `week0_explore/preview/web/src/data/relations.ts`
- [World context](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/useWorld.tsx): `week0_explore/preview/web/src/data/useWorld.tsx`
- [Zone scope](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/data/zoneScope.tsx): `week0_explore/preview/web/src/data/zoneScope.tsx`
- [Browser routes](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/App.tsx): `week0_explore/preview/web/src/App.tsx`
- [Entity pages](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/pages/ZoneDetail.tsx): `week0_explore/preview/web/src/pages/ZoneDetail.tsx`
- [World maps](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/preview/web/src/pages/WorldMap.tsx): `week0_explore/preview/web/src/pages/WorldMap.tsx`

### Agent framework

- [Agent loop](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/agent.rb): `week1_baseline/ruby/12_context/lib/boukensha/agent.rb`
- [Model client](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/client.rb): `week1_baseline/ruby/12_context/lib/boukensha/client.rb`
- [Model providers](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/backends/base.rb): `week1_baseline/ruby/12_context/lib/boukensha/backends/base.rb`
- [Tool library](https://github.com/ExamProCo/claude-code-camp-2026-Q2/tree/main/week1_baseline/ruby/12_context/lib/boukensha/tools): `week1_baseline/ruby/12_context/lib/boukensha/tools`

### MUD and terminal

- [MUD session](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/mud_manager/lib/mud_manager/session.rb): `week0_explore/mud_manager/lib/mud_manager/session.rb`
- [MUD commands](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week0_explore/mud_manager/lib/mud_manager/primitives.rb): `week0_explore/mud_manager/lib/mud_manager/primitives.rb`
- [Terminal interface](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/lib/boukensha/tui.rb): `week1_baseline/ruby/12_context/lib/boukensha/tui.rb`
- [Terminal input bridge](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/12_context/patches/bubbletea/program.c): `week1_baseline/ruby/12_context/patches/bubbletea/program.c`

### Session logs

- [Log viewer](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/app.rb): `week1_baseline/ruby/log_viz/lib/log_viz/app.rb`
- [Session records](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/session.rb): `week1_baseline/ruby/log_viz/lib/log_viz/session.rb`
- [ANSI formatting](https://github.com/ExamProCo/claude-code-camp-2026-Q2/blob/main/week1_baseline/ruby/log_viz/lib/log_viz/ansi.rb): `week1_baseline/ruby/log_viz/lib/log_viz/ansi.rb`

### Other components

- **Explorer**

## Connections

- World parser → World models: defines data
- World data loader → World models: types as
- World context → World data loader: loads world (evidence: `week0_explore/preview/web/src/data/useWorld.tsx`)
- World context → Cross references: builds indexes (evidence: `week0_explore/preview/web/src/data/useWorld.tsx`)
- Zone scope → World context: reads world (evidence: `week0_explore/preview/web/src/data/zoneScope.tsx`)
- Browser routes → World context: provides data (evidence: `week0_explore/preview/web/src/App.tsx`)
- Browser routes → Zone scope: provides scope (evidence: `week0_explore/preview/web/src/App.tsx`)
- Browser routes → Entity pages: routes pages (evidence: `week0_explore/preview/web/src/App.tsx`)
- Browser routes → World maps: routes maps (evidence: `week0_explore/preview/web/src/App.tsx`)
- World maps → Cross references: queries links (evidence: `week0_explore/preview/web/src/pages/WorldMap.tsx`)
- World maps → World context: reads world (evidence: `week0_explore/preview/web/src/pages/WorldMap.tsx`)
- Explorer → Browser routes: browses
- MUD session → MUD commands: accepts commands (evidence: `week0_explore/mud_manager/lib/mud_manager/session.rb`)
- Agent loop → Model client: uses client
- Model client → Model providers: dispatches requests
- Agent loop → Tool library: invokes tools
- Terminal interface → Terminal input bridge: uses terminal bridge
- Log viewer → Session records: loads sessions (evidence: `week1_baseline/ruby/log_viz/lib/log_viz/app.rb`)
- Log viewer → ANSI formatting: formats output (evidence: `week1_baseline/ruby/log_viz/lib/log_viz/app.rb`)
