Idea · Aug 29, 2026

Bug Witness Investigation

An interrogation-style debugging game where CS students question AI witness characters to deduce a bug's root cause, building systematic diagnostic thinking through narrative gameplay.

What it would do

Inspired by the voice-driven murder mystery genre trending on Hacker News, Bug Witness Investigation casts each debugging scenario as a case. Three AI witness characters hold partial, non-overlapping knowledge: the function body knows what values it received and what execution path it took; the caller knows what it passed in and what it expected back; the test harness knows only what it observed externally. Students ask questions in natural language and each character answers truthfully within its knowledge scope while refusing to speculate beyond it. When students correctly identify the bug type and location and write the fix, a postmortem screen maps the error to a named CS1 or CS2 misconception. Instructors add new scenarios by pasting buggy and correct code into a guided form; the system generates the witness personas automatically from the code diff.

Key features

  • Three witness archetypes per scenario (function body, caller, test harness) with disjoint knowledge scopes enforced by separate system prompts
  • 25+ pre-built scenarios covering off-by-one errors, null dereference, mutation aliasing, type confusion, and missing base cases
  • Postmortem screen linking the discovered bug to a named misconception with a suggested follow-up exercise
  • Instructor scenario builder: paste buggy and correct code, answer three questions, and the tool generates the witness personas and scenario metadata

More in Developer Tooling

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

Whiteboard-to-Code Studio

Students photograph or upload hand-drawn flowcharts, pseudocode, or UML sketches; a Gemini vision model converts them into runnable Python or Java function stubs with docstrings; a second pass flags potential logic gaps and emits structured design feedback before any implementation begins.

Developer ToolingClass assignmentLargeAug 27, 2026

Bug Olympics

A competitive in-class game where students race to fix a live queue of seeded buggy code snippets, with a real-time Supabase leaderboard, per-bug time tracking, and a post-round heat map showing which error types slowed the whole class down.

Developer ToolingTeaching toolMediumAug 27, 2026

Type-Safe API Contract Lab

Students design a REST API in OpenAPI 3.1, generate a TypeScript server via codegen, write a Python client with Pydantic runtime validation, and build a Hypothesis fuzz test suite, learning contract-first development in an era where AI can write implementation but not specifications.

Developer ToolingClass assignmentLargeAug 26, 2026

All 131 ideas in Developer Tooling →