freshclone
Run your README so a new contributor doesn't have to.
The problem
Onboarding docs rot silently. A README says "just run these 4 commands," but step 3 quietly assumes an env var, a global install, or a Node version nobody wrote down. Nobody finds out until a new hire or contributor gets stuck. Today the only fix is manual: ask a friend to try it fresh, or re-trace it yourself in a clean VM.
freshclone automates that fresh-eyes trace. It clones your repo into a
disposable Docker container, extracts every bash/sh code block from your
README in order, runs them exactly as written, and tells you precisely which
step breaks and why.
Quickstart
pip install freshclone
freshclone facebook/react
Freshclone → facebook/react
Detected: Node.js (package.json found, no Dockerfile)
Building container... done (12s)
README steps:
✅ npm install (18.2s)
✅ npm run build (34.1s)
❌ npm test -- --ci (2.1s)
exit code 1
Error: Cannot find module 'react-test-env'
...last 12 lines of output...
1/3 steps failed. Report written to freshclone-report.md
Works on a GitHub URL, an owner/repo shorthand, or a local path:
freshclone https://github.com/owner/repo
freshclone owner/repo
freshclone ./path/to/local/repo
How it works
- Clone — a single, real
git cloneinto a temp dir (to read the README and detect the stack), then copied into the container as-is. Because it's an actual clone rather than a bind-mount of your working directory, gitignored or untracked files on your machine can't leak in and give a false pass — and the repo is only ever fetched once. - Detect — uses the repo's own
Dockerfileif it has one; otherwise picks an official slim base image frompackage.json,requirements.txt/pyproject.toml,go.mod,Cargo.toml, orGemfile. Falls back to plainubuntu:24.04(and says so) if nothing matches. - Extract — pulls every
```bash,```sh,```shell,```console, and prompt-preceded bare```block out ofREADME.md, in order, stripping leading$/>prompt characters. - Run — executes each step inside the container, streaming output live, with a per-step timeout so a hanging install can't stall things forever.
- Report — a colored pass/fail summary in your terminal, plus optional
--report markdown/--report htmloutput you can paste straight into a GitHub issue.
CLI reference
freshclone <repo-url-or-path> [options]
--skip <n> Skip step n (repeatable: --skip 2 --skip 5)
--continue-on-error Run every step even after one fails
--timeout <seconds> Per-step timeout (default: 120)
--report markdown|html Write a shareable report
--report-path <path> Report output path
-v, --verbose Stream raw command output live
GitHub Action
Catch broken onboarding steps before they land, on every PR that touches
README.md:
# .github/workflows/freshclone.yml
name: README onboarding check
on:
pull_request:
paths: ["README.md"]
permissions:
contents: read
pull-requests: write
jobs:
freshclone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: freshclone/freshclone@v1
with:
comment-on-success: "false"
On failure, it posts the markdown report as a PR comment using the built-in
GITHUB_TOKEN — no separate API key needed. See
examples/github-workflow.yml for the full
example.
vs. the alternatives
| freshclone | Manually testing in a VM | Sentry Suspect Commits-style tools | |
|---|---|---|---|
| Catches broken README steps | ✅ | ✅ (if you remember to) | ❌ (catches runtime errors, not docs drift) |
| Runs on every PR | ✅ (GitHub Action) | ❌ | ✅ |
| Zero manual re-tracing | ✅ | ❌ | N/A |
| Shareable pass/fail report | ✅ (md/html) | ❌ | Varies |
| Setup cost | pip install |
Recurring manual effort | Instrumentation in your app |
Non-goals (v1)
- Non-bash README languages (PowerShell, etc.)
- Auto-fixing or auto-PRing broken docs — detection and reporting only
- A hosted dashboard — this is CLI + GitHub Action only
Contributing
See CONTRIBUTING.md. Good first issues are labeled
good first issue.
License
MIT — see LICENSE.
Metadata
Release files for freshclone 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| freshclone-0.1.0.tar.gz | 19.1 kB | Without provenance | Details for freshclone-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freshclone-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for freshclone-0.1.0-py3-none-any.whl |
Total release size: 35.8 kB
Release files / freshclone-0.1.0.tar.gz
| Download URL | freshclone-0.1.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51f57ab15418e7697d3ed7cd7b591c983de9fc321a7685153da43b6fca22c262
|
|
BLAKE2b-256 checksum How to use checksums |
5b55ea3bf4553c0b9a03bf452ae7fe986fbcb0dba7caff32341172e025e75d37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / freshclone-0.1.0-py3-none-any.whl
| Download URL | freshclone-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c43c7c0fb4f92b2b3621496cda2048357d998602efbafd1393af670623e2c02
|
|
BLAKE2b-256 checksum How to use checksums |
9aef937b79051957afd3ed172797f72bbd080cc17fd13e4a748f0c2dcda19e8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for freshclone 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.