# codecrafters-io/build-your-own-claude-code architecture

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

- Interactive diagram: https://gitdiagram.com/codecrafters-io/build-your-own-claude-code
- Repository: https://github.com/codecrafters-io/build-your-own-claude-code

## Overview

This repository is challenge content, not a shared runtime application: it provides starter programs and example solutions for a prompt-to-LLM chat task across several languages. The README identifies the challenge and its course-sdk context, but the supplied evidence does not document a runtime handoff among templates, compiled starters, and solutions. The source excerpts show the starters’ common workflow: accept a prompt, configure OpenRouter access, request a chat completion, check for a response, and print the result once the TODO is enabled. The graph therefore focuses on the content collections rather than inventing links between them.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_challenge["Challenge content"]
  node_templates["Language templates"]
  node_compiled["Compiled starters"]
  node_solutions["Stage solutions"]
end

click node_templates "https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/starter_templates"
click node_compiled "https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/compiled_starters"
click node_solutions "https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/solutions"

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_templates,node_compiled,node_solutions toneBlue
```

## Components

### Challenge content

- [Language templates](https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/starter_templates): `starter_templates`
- [Compiled starters](https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/compiled_starters): `compiled_starters`
- [Stage solutions](https://github.com/codecrafters-io/build-your-own-claude-code/tree/main/solutions): `solutions`
