A learning game that turns the code AI wrote for you into a galaxy you light up by understanding it.
Project description
Codemble
Turn AI-built code into a galaxy you actually understand.
Codemble is a local-first learning game for projects built with Claude Code, Codex, and other coding agents. It maps real parser evidence into a 3D galaxy, then lights each region only after you prove you understand it.
Your project · Your key · Your machine · No invented structure
Quick start · Learning loop · Documentation · Test v0.2.0
[!IMPORTANT] v0.2.0 is the current Phase 1 tester release. It maps Python, JavaScript, TypeScript, and mixed projects in one parser-proven galaxy. The technical release is complete; unaided learner runs are the evidence still being collected. Try the ten-minute tester loop.
Quick start
uvx codemble # or: pipx install codemble && codemble
Codemble opens your browser — pick your project folder there. To skip the
picker, pass a path: codemble ./your-ai-built-project.
Until the first PyPI release (v0.3.0) lands, install from the tag instead — v0.2.0 has no picker yet, so pass your project path:
pipx install git+https://github.com/udhawan97/Codemble.git@v0.2.0 codemble ./your-ai-built-project
The wheel already contains the web app, so Node.js is not required. No API key is needed for the galaxy, source viewer, language Lens, checks, lighting, or saved progress. Add your own Anthropic or OpenAI key only if you want grounded prose explanations:
export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_API_KEY=sk-...
Installation, configuration, and troubleshooting →
How the learning loop works
| Step | What Codemble does | What you gain |
|---|---|---|
| 1. Chart | Parses your project without running its code or package scripts | A deterministic map made from source evidence |
| 2. Navigate | Guides you from galaxy → system → study on scripted camera rails | Orientation without getting lost in free flight |
| 3. Study | Shows the real source, exact line numbers, neighbors, and parser-detected language idioms | Context tied to code you can inspect |
| 4. Prove | Generates and scores checks from the graph—never from the model | A region lights only when understanding is demonstrated |
| 5. Return | Saves progress locally; changing one file re-dims only its module | A living map that stays honest as the project changes |
No XP. No streaks. No leaderboard. The visible reward is the useful one: more of your own code becomes a sky you understand.
Read the galaxy
| In the galaxy | In your project |
|---|---|
| A star system | One source module |
| A planet | A function or class |
| The Home system | The selected parser-ranked entrypoint |
| A route or edge | An import or call; approximate calls are labeled possible |
| Size | Lines of code |
| Brightness | Structural centrality |
| Dim → lit | Not yet proven → understood |
Python-only, JavaScript-only, TypeScript-only, and mixed projects share the same graph contract. Language focus changes only what you are looking at; it never changes coordinates, progress, or parser truth.
Honest by construction
Codemble is built for learners who may not yet be able to spot a confident mistake. Accuracy therefore outranks spectacle:
- Structure, entrypoints, concepts, imports, and calls come from parsers.
- Every explanation points to a real
file:lineand may name only supplied identifiers and relationships. - Language Lens notes appear only where a parser detected the construct.
- Check answers come from the graph, never an LLM.
- Approximate relationships stay visibly uncertain.
- Provider output that fails grounding validation is withheld instead of being softened into a guess.
Read the full correctness contract. A wrong explanation is a highest-severity bug—report it without mercy.
Local-first, with an explicit AI boundary
| Stays on your machine | Leaves only when you ask |
|---|---|
| Project discovery and parsing | The bounded Study context sent to your configured provider |
| Graph, language Lens, and checks | A request triggered only when you open Study |
| Local server and packaged web app | Nothing in the background |
Progress and explanation cache in ~/.codemble/ |
No accounts, telemetry, or Codemble cloud |
No key? Codemble remains a complete parser-backed map and learning game; only the optional prose narration is unavailable.
Boundaries that keep the map truthful
- Supported source: Python 3.11+, JavaScript/JSX, TypeScript/TSX, and mixed projects. Unsupported languages stay outside the graph rather than being guessed.
- Scale: above roughly 300 supported source files, choose a subdirectory —
the in-app picker prompts for the scope, or pass
codemble --path ./project/subdirectory. - Ambiguous Home: choose a parser-ranked entrypoint in the app or pass
--entrypoint NODE_ID. - Broken source: syntax errors remain visible; Codemble maps safe partial evidence instead of crashing or inventing the missing structure.
- Rendering: WebGL is required. There is intentionally no misleading 2D fallback in this release.
Help test the release
The most valuable contribution right now is not a feature request. It is a first run on a real AI-built project:
- Follow the ten-minute tester guide.
- Light at least one system.
- Report confusion verbatim—never paste private source or API keys.
Develop
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest && ruff check .
(cd web && npm install && npm run check)
(cd docs-site && npm install && npm run check && npm run build)
The load-bearing design and architecture contracts are documented, not implied:
Roadmap
| Horizon | Work |
|---|---|
| Now | Collect unaided first-run evidence on v0.2.0 across supported project types |
| Next | Go, Rust, and Java adapters; level-of-detail rendering for larger repositories |
| Later | Read-only share links, new quest types, and the coordinated public launch |
The public roadmap separates shipped work from planned work. Milestones move only when their acceptance evidence exists.
License
Codemble is released under the Apache License 2.0.
Built for the moment after “AI made it work” and before “I know how it works.”
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codemble-0.3.0.tar.gz.
File metadata
- Download URL: codemble-0.3.0.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb6a08e5bfa3b5418c99b6608d899840bcf0faf7d0907564c63906ca1097ab88
|
|
| MD5 |
5ad5320cb680c0ed7b996d51f258e1a5
|
|
| BLAKE2b-256 |
a0c449581bc637b383306434590405d5d61fa829e6bf2eb9ab91ccd69c15927f
|
Provenance
The following attestation bundles were made for codemble-0.3.0.tar.gz:
Publisher:
publish-pypi.yml on udhawan97/Codemble
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemble-0.3.0.tar.gz -
Subject digest:
eb6a08e5bfa3b5418c99b6608d899840bcf0faf7d0907564c63906ca1097ab88 - Sigstore transparency entry: 2200833910
- Sigstore integration time:
-
Permalink:
udhawan97/Codemble@5c66045a5d5aca6a28dbfab5ed2eb449d356ff3c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/udhawan97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5c66045a5d5aca6a28dbfab5ed2eb449d356ff3c -
Trigger Event:
release
-
Statement type:
File details
Details for the file codemble-0.3.0-py3-none-any.whl.
File metadata
- Download URL: codemble-0.3.0-py3-none-any.whl
- Upload date:
- Size: 743.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f9af7f4c4fae302f4d49e09e87862e3ba39f8de712e201c03d89f9daed846c5
|
|
| MD5 |
c5762693ceacfbccd12876b16a79256f
|
|
| BLAKE2b-256 |
c399c4d2dda12d4350d8cf1039b20cbf68b12f283d8beb101f15571055807c45
|
Provenance
The following attestation bundles were made for codemble-0.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on udhawan97/Codemble
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemble-0.3.0-py3-none-any.whl -
Subject digest:
9f9af7f4c4fae302f4d49e09e87862e3ba39f8de712e201c03d89f9daed846c5 - Sigstore transparency entry: 2200833944
- Sigstore integration time:
-
Permalink:
udhawan97/Codemble@5c66045a5d5aca6a28dbfab5ed2eb449d356ff3c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/udhawan97
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5c66045a5d5aca6a28dbfab5ed2eb449d356ff3c -
Trigger Event:
release
-
Statement type: