Practice coding
without AI.
Get graded by AI.
A single-file Bash CLI that hands you a Python challenge, drops you into your editor with no autocomplete, no chat, no Copilot β then has Copilot review your hand-written solution like a strict-but-fair senior engineer.
$ curl -fsSLo detox https://raw.githubusercontent.com/sanjumsanthosh/Copilot-Detox/main/detox && chmod +x detox && sudo mv detox /usr/local/bin/
the problem
The muscle you stop using
AI is great at shipping code and quietly terrible for your fundamentals. Reach for completion every time and the part of you that turns a fuzzy problem into a working function atrophies β you find out in an interview, or in an outage, with a blank file and no tab key.
β Every other day
Copilot writes it. You skim it. Nobody checks whether you could have. Progress is throughput, not skill.
β A detox session
AI sets the exercise, you write it alone, AI grades the result β edge cases, style, and one concrete fix. 15 minutes.
commands
Five verbs, no config files
Everything lives under ~/.copilot-detox/ as plain files β no daemon, no database, no runtime.
| Command | What it does |
|---|---|
detox start | Generates a fresh challenge and opens it in $EDITOR β raw mode |
detox submit | Sends your saved solution to Copilot for review and a score |
detox last | Summary of the most recent session |
detox last --open | Re-open the last solution in your editor |
detox last --review | Read the full review in less |
detox stats | Total sessions, completed count, average score, last five |
detox clean 30 --yes | Delete sessions older than 30 days |
under the hood
Plain files, start to score
A question goes in, an attempt snapshot and a review come out. Every submission is kept, so attempt 3 sits next to attempt 1.
detox start β ββ gh copilot suggest β question.md ββ starter code β solution.py ββ $EDITOR opensβ¦ no AI in sight detox submit β ββ solution + question β gh copilot suggest ββ attempt_N.py + attempt_N_review.md + score
~/.copilot-detox/
βββ last_session
βββ sessions/
βββ 2026-11-15T14-30-00/
βββ question.md challenge
βββ solution.py your working file
βββ meta.json attempts, status, score
βββ attempt_1.py snapshot per submit
βββ attempt_1_review.md the full review
requirements
What you need
- Bash 4.0+ and GNU coreutils (Linux, WSL)
- GitHub CLI with the
gh copilotextension - An active Copilot subscription
- Any editor β
nvim,vim,nano, or$EDITOR
Heads up on macOS
macOS ships Bash 3.2 and BSD grep/sed/date, so a handful of
commands need portability fixes. Linux and WSL are the tested path; the port is on the roadmap.