Buckets:
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| .codex-plugin | 1 items | ||
| .github | 13 items | ||
| assets | 3 items | ||
| docs | 9 items | ||
| examples | 31 items | ||
| scripts | 4 items | ||
| site | 7 items | ||
| skills | 7 items | ||
| src | 15 items | ||
| templates | 36 items | ||
| tests | 20 items | ||
| tools | 3 items | ||
| .gitattributes | 19 Bytes xet | 11f6928e | |
| .gitignore | 104 Bytes xet | 716a7498 | |
| .pre-commit-config.yaml | 531 Bytes xet | f4464eff | |
| .pre-commit-hooks.yaml | 334 Bytes xet | e2c2550c | |
| .python-version | 5 Bytes xet | 5c5cf047 | |
| AGENTS.md | 1.81 kB xet | cfb294a8 | |
| AGENTS.md._index.json | 1.6 kB xet | 620e47ed | |
| CHANGELOG.md | 5.1 kB xet | 5d897c15 | |
| CODE_OF_CONDUCT.md | 785 Bytes xet | 70a7af58 | |
| CONTRIBUTING.md | 2.25 kB xet | f5f2808c | |
| LICENSE | 1.08 kB xet | c7de2781 | |
| README.md | 4.12 kB xet | 1ac2b416 | |
| SECURITY.md | 535 Bytes xet | df2d3408 | |
| _index.codex-plugin.json | 1.1 kB xet | df8ee5e9 | |
| _index.plugin.json | 309 Bytes xet | 0d31a3ec | |
| _source.codex-plugin.json | 538 Bytes xet | b3c78fbc | |
| action.yml | 2.89 kB xet | e6d766f2 | |
| pyproject.toml | 963 Bytes xet | 11c0a10a | |
| uv.lock | 32.9 kB xet | 210cdda4 |
Repro Lens
Your refactor runs twice. Did it keep the same results?
Explore Demo ยท Examples ยท Contribute
Catch reproducibility risks before a commit, replay an experiment, and compare outputs before and after a change. Built for ML developers and AI coding agents.
๐ See it in action
Check for reproducibility risks, verify runs, and compare outputs instantly.
โจ Why Repro Lens?
Machine Learning code is notorious for silent reproducibility failures. Repro Lens statically analyzes your ML code to find non-deterministic behavior and verifies that refactors preserve your exact outputs.
- Zero overhead: Static analysis takes milliseconds. No ML dependencies or API keys required.
- Broad support: Native rules for
scikit-learn,XGBoost,LightGBM,PyTorch,TensorFlow, andLightning. - Agent ready: Out-of-the-box skills to let your AI coding assistant audit and fix reproducibility issues autonomously.
๐ ๏ธ Core Commands
| Command | Question it answers | Evidence |
|---|---|---|
repro-lens check |
Is there a known reproducibility risk in this code? | Static findings with file locations |
repro-lens verify |
Do two runs produce matching declared outputs? | Metrics, artifact hashes, logs |
repro-lens compare |
Did the edit preserve the baseline outputs? | Output differences (ideal for refactors) |
repro-lens agent-review |
What should an agent do with the before/after evidence? | Machine-readable verdict and risk assessment |
repro-lens lsp |
Can I see reproducibility findings while editing? | Standard LSP diagnostics for Python documents |
๐ฆ Quickstart
Install using uv (or pip):
uv tool install 'git+https://github.com/00200200/repro-lens.git@v0.3.1'
Scan your project instantly:
repro-lens check --root /path/to/project
Example output:
train_test_split(X, y) # โ R101: no explicit random_state
Preview automated fixes or apply them in-place:
repro-lens check --diff # preview unified diff with suggested seeds
repro-lens check --fix # apply suggested seeds in-place
Try a complete experiment validation:
repro-lens init repro-demo --name repro_demo # or --template pytorch
cd repro-demo
uv sync --locked
repro-lens verify
๐ค AI Coding Agents & pre-commit
Pre-commit hook: Prevent reproducibility issues from being committed.
repos:
- repo: https://github.com/00200200/repro-lens
rev: v0.3.1
hooks:
- id: repro-lens
Coding Agents: Equip your LLMs with the Reproducibility Skill to automatically fix non-deterministic ML code.
"Use the reproducibility skill to refactor this training script while preserving its declared outputs."
๐ Learn More
- Total size
- 37 GB
- Files
- 4,042,753
- Last updated
- Oct 24
- Pre-warmed CDN
- US EU US EU