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

More in Developer Tooling

Git Broken-State Gym

An in-browser Git practice gym where instructors author broken repositories (detached HEAD, merge conflict, committed secret, lost commit) and students repair them with real Git commands, auto-checked against a goal commit graph.

Developer ToolingTeaching toolMediumSep 24, 2026

Legacy Code Expedition

Students receive an aged open-source codebase, use AI agents to map its architecture, identify modernization opportunities, implement one improvement, and write a critical retrospective on where AI helped and where it failed.

Developer ToolingClass assignmentLargeSep 14, 2026

Live Refactor Wall

Classroom projection tool that connects to the teacher's VS Code, shows student code alongside an AI-generated refactor, and lets the class vote in real time whether to accept each suggestion.

Developer ToolingTeaching toolMediumSep 8, 2026

Refactor Rungs

A web tool that takes a working-but-messy student code submission and generates a step-by-step guided refactoring ladder. Students climb one rung at a time with AI hints when stuck and a structural autograder that confirms each improvement without revealing the final answer.

Developer ToolingTeaching toolMediumSep 1, 2026

All 131 ideas in Developer Tooling →