# anthropics/claude-code-playground architecture

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

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

## Overview

This repository is an Anthropic DevRel playground, not a single application: it collects Claude Code setups, plugins, reusable skills, and demonstrations. The user workflow is to browse an entry, read its explanation and run instructions, then try it in its intended environment. The documented collection branches are represented alongside the three sampled hooks. Hook internals and their host interactions are shown where excerpts support them; other entry directories are mapped as capabilities without inferred implementation links.

Main entry points: [`claude-code/mods/blast-radius/hooks/blast-radius.mjs`](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs) (Blast Radius), [`claude-code/mods/replay-theater/hooks/replay-theater.mjs`](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs) (Replay Theater), [`claude-code/mods/token-weather/hooks/token-weather.mjs`](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/token-weather/hooks/token-weather.mjs) (Token Weather), [`claude-code/hooks`](https://github.com/anthropics/claude-code-playground/tree/main/claude-code/hooks) (Hook examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Claude Code setups"]
  node_hooks["Hook examples"]
  node_claude_md["CLAUDE.md examples"]
  node_settings["Settings examples"]
  node_workflows["Personal workflows"]
end

subgraph group_mods["Claude Code mods"]
  node_blast["Blast Radius<br/>[blast-radius.mjs]"]
  node_replay["Replay Theater<br/>[replay-theater.mjs]"]
  node_weather["Token Weather<br/>[token-weather.mjs]"]
  node_risk_check["Risk classification<br/>[blast-radius.mjs]"]
  node_impact_report["Impact measurement<br/>[blast-radius.mjs]"]
  node_approval_pane["Approval pane<br/>[blast-radius.mjs]"]
  node_edit_capture["Edit capture<br/>[replay-theater.mjs]"]
  node_diff_steps["Diff steps<br/>[replay-theater.mjs]"]
  node_replay_view["Replay view<br/>[replay-theater.mjs]"]
  node_forecast["Context forecast<br/>[token-weather.mjs]"]
end

subgraph group_skills["Skills"]
  node_skills_repo["Reusable skills"]
end

subgraph group_demos["Demonstrations"]
  node_demos_repo["Demos"]
  node_launch_demos["Launch demos"]
end

node_user(("User"))
node_claude["Claude Code"]
node_bash_tool["Bash tool"]
node_edit_tools["File edit tools"]
node_context_usage["Context usage"]

node_user -->|"browses"| node_hooks
node_user -->|"browses"| node_claude_md
node_user -->|"browses"| node_settings
node_user -->|"browses"| node_workflows
node_user -->|"tries"| node_blast
node_user -->|"tries"| node_replay
node_user -->|"tries"| node_weather
node_user -->|"browses"| node_skills_repo
node_user -->|"browses"| node_demos_repo
node_user -->|"browses"| node_launch_demos
node_claude -->|"loads plugin"| node_blast
node_claude -->|"loads plugin"| node_replay
node_claude -->|"runs hooks"| node_weather
node_blast -->|"holds risky call"| node_bash_tool
node_blast -->|"classifies command"| node_risk_check
node_risk_check -->|"measures impact"| node_impact_report
node_blast -->|"opens for decision"| node_approval_pane
node_edit_tools -->|"triggers capture"| node_replay
node_replay -->|"records edits"| node_edit_capture
node_edit_capture -->|"creates steps"| node_diff_steps
node_replay -->|"renders replay"| node_replay_view
node_context_usage -->|"provides readings"| node_weather
node_weather -->|"builds forecast"| node_forecast

click node_hooks "https://github.com/anthropics/claude-code-playground/tree/main/claude-code/hooks"
click node_claude_md "https://github.com/anthropics/claude-code-playground/tree/main/claude-code/claude-md"
click node_settings "https://github.com/anthropics/claude-code-playground/tree/main/claude-code/settings"
click node_workflows "https://github.com/anthropics/claude-code-playground/tree/main/claude-code/workflows"
click node_blast "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs"
click node_replay "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs"
click node_weather "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/token-weather/hooks/token-weather.mjs"
click node_skills_repo "https://github.com/anthropics/claude-code-playground/tree/main/skills"
click node_demos_repo "https://github.com/anthropics/claude-code-playground/tree/main/demos"
click node_launch_demos "https://github.com/anthropics/claude-code-playground/tree/main/launch-demos"
click node_risk_check "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs"
click node_impact_report "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs"
click node_approval_pane "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs"
click node_edit_capture "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs"
click node_diff_steps "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs"
click node_replay_view "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs"
click node_forecast "https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/token-weather/hooks/token-weather.mjs"

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_hooks,node_claude_md,node_settings,node_workflows,node_user toneBlue
class node_blast,node_replay,node_weather,node_risk_check,node_impact_report,node_approval_pane,node_edit_capture,node_diff_steps,node_replay_view,node_forecast toneAmber
class node_skills_repo toneMint
class node_demos_repo,node_launch_demos toneRose
class node_claude,node_bash_tool,node_edit_tools,node_context_usage toneIndigo
```

## Components

### Claude Code setups

- [Hook examples](https://github.com/anthropics/claude-code-playground/tree/main/claude-code/hooks): `claude-code/hooks`
- [CLAUDE.md examples](https://github.com/anthropics/claude-code-playground/tree/main/claude-code/claude-md): `claude-code/claude-md`
- [Settings examples](https://github.com/anthropics/claude-code-playground/tree/main/claude-code/settings): `claude-code/settings`
- [Personal workflows](https://github.com/anthropics/claude-code-playground/tree/main/claude-code/workflows): `claude-code/workflows`

### Claude Code mods

- [Blast Radius](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs): `claude-code/mods/blast-radius/hooks/blast-radius.mjs`
- [Replay Theater](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs): `claude-code/mods/replay-theater/hooks/replay-theater.mjs`
- [Token Weather](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/token-weather/hooks/token-weather.mjs): `claude-code/mods/token-weather/hooks/token-weather.mjs`
- [Risk classification](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs): `claude-code/mods/blast-radius/hooks/blast-radius.mjs`
- [Impact measurement](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs): `claude-code/mods/blast-radius/hooks/blast-radius.mjs`
- [Approval pane](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/blast-radius/hooks/blast-radius.mjs): `claude-code/mods/blast-radius/hooks/blast-radius.mjs`
- [Edit capture](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs): `claude-code/mods/replay-theater/hooks/replay-theater.mjs`
- [Diff steps](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs): `claude-code/mods/replay-theater/hooks/replay-theater.mjs`
- [Replay view](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/replay-theater/hooks/replay-theater.mjs): `claude-code/mods/replay-theater/hooks/replay-theater.mjs`
- [Context forecast](https://github.com/anthropics/claude-code-playground/blob/main/claude-code/mods/token-weather/hooks/token-weather.mjs): `claude-code/mods/token-weather/hooks/token-weather.mjs`

### Skills

- [Reusable skills](https://github.com/anthropics/claude-code-playground/tree/main/skills): `skills`

### Demonstrations

- [Demos](https://github.com/anthropics/claude-code-playground/tree/main/demos): `demos`
- [Launch demos](https://github.com/anthropics/claude-code-playground/tree/main/launch-demos): `launch-demos`

### Other components

- **User**
- **Claude Code**
- **Bash tool**
- **File edit tools**
- **Context usage**

## Connections

- User → Hook examples: browses (evidence: `README.md`)
- User → CLAUDE.md examples: browses (evidence: `README.md`)
- User → Settings examples: browses (evidence: `README.md`)
- User → Personal workflows: browses (evidence: `README.md`)
- User → Blast Radius: tries (evidence: `README.md`)
- User → Replay Theater: tries (evidence: `README.md`)
- User → Token Weather: tries (evidence: `README.md`)
- User → Reusable skills: browses (evidence: `README.md`)
- User → Demos: browses (evidence: `README.md`)
- User → Launch demos: browses (evidence: `README.md`)
- Claude Code → Blast Radius: loads plugin (evidence: `claude-code/mods/blast-radius/hooks/blast-radius.mjs`)
- Claude Code → Replay Theater: loads plugin (evidence: `claude-code/mods/replay-theater/hooks/replay-theater.mjs`)
- Claude Code → Token Weather: runs hooks (evidence: `claude-code/mods/token-weather/hooks/token-weather.mjs`)
- Blast Radius → Bash tool: holds risky call (evidence: `claude-code/mods/blast-radius/hooks/blast-radius.mjs`)
- Blast Radius → Risk classification: classifies command (evidence: `claude-code/mods/blast-radius/hooks/blast-radius.mjs`)
- Risk classification → Impact measurement: measures impact (evidence: `claude-code/mods/blast-radius/hooks/blast-radius.mjs`)
- Blast Radius → Approval pane: opens for decision (evidence: `claude-code/mods/blast-radius/hooks/blast-radius.mjs`)
- File edit tools → Replay Theater: triggers capture (evidence: `claude-code/mods/replay-theater/hooks/replay-theater.mjs`)
- Replay Theater → Edit capture: records edits (evidence: `claude-code/mods/replay-theater/hooks/replay-theater.mjs`)
- Edit capture → Diff steps: creates steps (evidence: `claude-code/mods/replay-theater/hooks/replay-theater.mjs`)
- Replay Theater → Replay view: renders replay (evidence: `claude-code/mods/replay-theater/hooks/replay-theater.mjs`)
- Context usage → Token Weather: provides readings (evidence: `claude-code/mods/token-weather/hooks/token-weather.mjs`)
- Token Weather → Context forecast: builds forecast (evidence: `claude-code/mods/token-weather/hooks/token-weather.mjs`)
