🧠 Copilot Detox
raw mode for developers

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/
one file, zero dependencies scored 1–10 every session Linux & WSL MIT
~/practice β€” detox

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.

CommandWhat it does
detox startGenerates a fresh challenge and opens it in $EDITOR β€” raw mode
detox submitSends your saved solution to Copilot for review and a score
detox lastSummary of the most recent session
detox last --openRe-open the last solution in your editor
detox last --reviewRead the full review in less
detox statsTotal sessions, completed count, average score, last five
detox clean 30 --yesDelete 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 copilot extension
  • 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.