Repo X-ray
One artifact. Every AI tool understands your repo the same way.
Repo X-ray analyzes a codebase and produces a single, structured architecture artifact (.repox/architecture.json + .repox/architecture.md) that any AI tool can consume — Cursor, Claude Code, Copilot, custom agents, or downstream DevTrust products.
For the full product spec, see ../PRODUCT.md.
v0.0.1 — what works today
repox build [PATH]— walks a repo, classifies files by language, identifies likely entry points, emits botharchitecture.jsonandarchitecture.md.repox version— prints the installed version.- Honors
.gitignorevia pathspec. - Beautiful terminal output via rich.
Roadmap (matches the master plan)
- v0.1 — language coverage extends to TS/JS, Python, Go, Rust; basic dependency graph from manifests; convention extraction (naming patterns, error handling).
- v0.2 — call graph via tree-sitter; module-boundary inference.
- v0.3 — incremental updates (
repox update); MCP server. - v0.5 — public release with CI integration (GitHub Action).
- v1.0 — stable artifact format, language coverage to Java, C#, Ruby.
Install
From the monorepo root:
# uv (recommended) — installs all workspace members
uv sync --all-groups
# pip
pip install -e .
Use
# Analyze the current directory
repox build
# Analyze a specific repo
repox build C:\Users\you\some-repo
# Print version
repox version
Output lands in .repox/architecture.json and .repox/architecture.md at the analyzed repo root.
Layout
code/
├── pyproject.toml
├── README.md
├── src/
│ └── repox/
│ ├── __init__.py
│ ├── __main__.py Allows `python -m repox`
│ ├── cli.py Typer-based CLI entry point
│ ├── models.py Pydantic data models (Architecture, FileInfo, etc.)
│ ├── analyzer.py Tree walk, language detection, entry-point detection
│ └── output.py JSON + Markdown writers
└── tests/
├── __init__.py
├── conftest.py
└── test_smoke.py
License
Apache-2.0. See LICENSE at the monorepo root.
Metadata
Release files for devtrust-repox 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| devtrust_repox-0.4.0.tar.gz | 31.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devtrust_repox-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.2 kB
Release files / devtrust_repox-0.4.0.tar.gz
| Download URL | devtrust_repox-0.4.0.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
667353300e649aa06dad6f729e6bd7644c449d757962eec39085f6dae34c8266
|
|
BLAKE2b-256 checksum How to use checksums |
1a98e2a0fc1eac31004157d5ec79d2232a1ae1c23d4e338f370c46ffa7a9ac73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logRelease files / devtrust_repox-0.4.0-py3-none-any.whl
| Download URL | devtrust_repox-0.4.0-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c77e0447d40388164a52567c3bad70c7a4517b67a760cf60d0e5712dd74bf7d
|
|
BLAKE2b-256 checksum How to use checksums |
7076ca037233d5871d4a2f6150f86ceba3e52dc2271ce400688cf9668c9d19bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency log