Idea · Sep 10, 2026
Build Your Own AI Coding Assistant
Students build a VS Code extension backed by a local Ollama model that provides code completion, inline explanation, and refactoring suggestions, then benchmark it against GitHub Copilot on a shared problem set.
What it would do
This multi-week assignment teaches students how AI coding tools work internally by having them build one from scratch. Students implement a VS Code extension that calls a locally running Ollama model to (1) complete code from the cursor position, (2) explain selected code in plain English, and (3) suggest a refactoring improvement for a selected block. The key engineering challenges -- managing context windows, writing effective system prompts, streaming responses without freezing the editor, and surfacing results in VS Code's UI model -- are the same ones that underlie Copilot, Cursor, and Cline. The capstone is a structured benchmark week: each student's extension is evaluated on a shared set of completion and explanation tasks alongside GitHub Copilot, making the quality gap (or lack thereof) concrete and attributable to prompt and context decisions, not just model capability.
Key features
- VS Code Extension API with TypeScript: code lens, inline completion, webview settings panel
- Ollama integration for local inference (no API key required, no cost)
- Context window management: students decide what to include with each request
- Streaming completion with abort control to keep the editor responsive
- Shared benchmark suite: 20 completion tasks + 10 explanation tasks scored automatically
- Comparison report: student assistant vs Copilot across benchmark dimensions