Idea · Aug 8, 2026
Lint-to-Learn
A VS Code extension that intercepts ESLint and Pylint diagnostics and, instead of surfacing only the terse rule name, fires a micro-lesson — a plain-English explanation of the rule, why the student's specific line triggered it, and one corrected rewrite — directly in the editor hover panel.
What it would do
Lint-to-Learn wraps the VS Code diagnostic API: whenever a new lint diagnostic appears after a save, the extension sends the surrounding code snippet and the error message to a configurable LLM backend (Ollama for offline use, or any OpenAI-compatible endpoint including Claude) and streams a three-part micro-lesson into a webview hover above the squiggly. Part 1 explains what the lint rule means in plain English. Part 2 explains precisely why this student's code triggered it — referencing the actual variable name, line, and construct involved. Part 3 shows a minimal corrected rewrite that preserves the student's apparent intent. A dismiss-until-edit mode suppresses repeat firings on consecutive saves of the same error so students are not interrupted mid-thought. An interaction log (stored only locally) counts how often each rule fires a lesson, producing a personal rule-frequency chart that shows students which lint rules they still trigger most across a project, giving them a learning signal alongside the code signal. Config options cover: ESLint vs. Pylint vs. both, minimum severity threshold, and LLM backend selection.
Key features
- Diagnostic API hook: fires a micro-lesson on every new lint error not present at the previous save
- Three-part lesson: rule meaning, why this code triggered it, corrected rewrite preserving student intent
- Configurable LLM backend: Ollama (offline), OpenAI-compatible endpoint, or Claude API
- Dismiss-until-edit mode: suppresses repeated micro-lessons on consecutive saves of the same unchanged error
- Personal rule-frequency chart: per-project count of which lint rules triggered lessons most across session