LearnLoop: learn from the code AI writes
AI assistants write code fast, but you only learn by understanding it and writing it yourself.
LearnLoop reads what your AI assistant just changed in your project and turns it into memory cards: a question, the explanation, and an exercise with its correction.
What you get
- A short lesson on the 1–2 concepts worth learning from the change, explained with your own code.
- A quiz of 3 questions per concept.
- An exercise where you write the concept yourself, then compare your answer with the correction.
- A daily review. Concepts come back on a spaced-repetition schedule: the ones you miss come back tomorrow, the ones you know come back later and later.
- A companion web page at
http://127.0.0.1:4747 with your memory cards, every concept, your exercises and your notes.
Getting started
- Let your AI assistant (Copilot, Claude, Cursor…) change some code in a project that uses git.
- Open the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P) and run LearnLoop: Learn from my latest changes.
You can also select code and choose Learn from selected code from the right-click menu.
- Read the lesson, take the quiz, and try the exercise.
- Come back each day: the status bar shows how many concepts are due. Review them in VS Code, or on the web page under Memory cards.
Which AI writes the lessons
- GitHub Copilot, no setup: if you're signed in to Copilot (the free plan works), LearnLoop uses Copilot's models through VS Code.
- Your own Claude key: run LearnLoop: Set Anthropic API key. The key is kept in VS Code's secret storage. The default model is Claude Haiku 5.5, which is fast and cheap. Set
learnloop.anthropicModel to claude-opus-5-5 for the most thorough lessons.
In editors without Copilot (Cursor, VSCodium, Windsurf…), use your own Claude key.
Privacy
- To write a lesson, LearnLoop sends the code you choose to the AI provider you use: GitHub Copilot or Anthropic. By default that is your uncommitted changes, or your last commit if there are none; with Learn from selected code, only your selection. Files that may hold secrets (
.env*, *.pem, *.key, id_rsa*, .npmrc) and lock files are never sent. Nothing is sent at any other time.
- Lessons, notes, exercises and review history stay on your computer, in VS Code's storage.
- The companion web page is served by VS Code itself on
127.0.0.1 (your own machine only), and it accepts changes only from its own page. It runs only while VS Code is open.
The companion web page
Open it with LearnLoop: Open notes app, the 📒 Notes & exercises button on the dashboard, or go to http://127.0.0.1:4747.
- Memory cards: the daily review as cards. Answer with the mouse or keys 1–4 to see the explanation, your notes and the exercise correction. Practice all goes through every card without changing your schedule.
- Concepts & exercises: each concept with its exercise, explanation and your notes. Write the exercise on the page and press Done, show the correction to see your answer next to the correction.
Or press Open in editor to write it in VS Code, then run LearnLoop: Save exercise as done.
Commands
| Command |
What it does |
| LearnLoop: Learn from my latest changes |
Reads your uncommitted changes (or your last commit if there are none) and writes a lesson |
| LearnLoop: Learn from selected code |
Same, for the code you selected. Also in the right-click menu |
| LearnLoop: Open dashboard |
Your concepts and what's due. The status bar item opens it too |
| LearnLoop: Start daily review |
Quizzes you on the concepts due today |
| LearnLoop: Open notes app |
Opens the companion web page in your browser |
| LearnLoop: Save exercise as done |
Saves the exercise in the current editor tab as finished |
| LearnLoop: Set / Remove Anthropic API key |
Stores or removes your Claude key |
Settings
| Setting |
Default |
|
learnloop.provider |
auto |
auto uses your Claude key if one is set, otherwise Copilot. Or force copilot / anthropic |
learnloop.anthropicModel |
claude-haiku-5-5 |
Claude model for lessons |
learnloop.level |
junior |
beginner, junior or intermediate: how deep the explanations go |
learnloop.maxDiffChars |
60000 |
Largest change sent to the AI. Bigger changes are cut, and LearnLoop tells you |
learnloop.dailyReminder |
true |
A reminder once a day when concepts are due |
learnloop.webPort |
4747 |
Port of the companion web page. Reload the window after changing it |
Known limits
- With several VS Code windows open, the first one serves the web page.
- Open in editor opens the exercise in VS Code, but your browser stays in front: switch to VS Code to see it.
Feedback
LearnLoop is in preview. Report bugs and share ideas on GitHub.
| |