Idea · Sep 28, 2026

Build Your Own Code Search Engine

Students build, in stages, a tool that answers 'where does this codebase do X?' starting from grep and BM25 over identifiers, then adding embeddings and call-graph expansion, and measure each stage on a shared benchmark of real queries.

What it would do

Coding agents now spend much of their effort just finding the right files, and tools like jevgrep sell 'find code by asking what it does.' This assignment makes students build that capability themselves and measure whether each layer actually helps. Milestone 1 tokenizes a repo into functions and splits camelCase and snake_case identifiers for a BM25 index. Milestone 2 adds docstring and comment fields and query expansion. Milestone 3 adds chunk embeddings (a small local model or an embedding API) and hybrid rank fusion. Milestone 4 builds a call graph with tree-sitter and propagates relevance to callers and callees. Every milestone is scored against a course-provided benchmark of natural-language queries with labeled target functions from two or three open-source repos, reporting recall@5 and MRR, and a final write-up asks students to explain where lexical search beats embeddings and vice versa.

Key features

  • Staged milestones (BM25, field boosting, embeddings with hybrid fusion, call-graph propagation) each with a runnable CLI
  • Instructor-provided benchmark of 100 or more labeled queries and an autograder that reports recall@5 and MRR per stage
  • tree-sitter parsing so the same pipeline works for Python, Java, and C++ repos
  • Optional agent integration: expose the search as an MCP tool and compare an agent's task success with and without it
  • Error-analysis report template that forces students to categorize failed queries

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

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.

Developer ToolingClass assignmentLargeSep 10, 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

All 131 ideas in Developer Tooling →