Idea · Jul 5, 2026
Copilot Critical Lens
A browser-based playground that presents the same programming problem with three AI-generated solutions side-by-side, each annotated with a 'what could go wrong' callout; students vote on the best solution and see a live class-wide tally, training critical evaluation of AI code instead of blind acceptance.
What it would do
The instructor pastes a short programming prompt (e.g., 'write a function that returns the second-largest element in a list') and clicks Generate. The app calls the Claude API three times with slightly varied temperatures and system prompts to produce three distinct solutions, each placed in a syntax-highlighted code panel. Alongside each panel, Claude generates a 2-3 bullet 'risk annotation': edge cases the code mishandles, readability issues, off-by-one risks, or assumptions baked into the implementation. Students (joined via a shareable URL, no login required) read the three solutions and their annotations, then cast a single vote for which they consider most trustworthy. A live bar chart below updates in real time via Supabase subscriptions so the class sees the vote distribution form. After the instructor closes voting, a reveal panel shows the 'instructor verdict' explaining what actually matters most in this specific case and why naive trust in any one AI output is risky. Sessions are ephemeral by default; instructors can optionally save a session to a Supabase-backed library for reuse in future classes. A dozen seed prompts (sorting, recursion, string parsing, pointer arithmetic) are bundled so the tool is immediately usable without any prompt authoring.
Key features
- One-click generation of three stylistically distinct AI solutions from a single prompt, using varied temperatures and system-prompt framing
- Per-solution 'risk annotation' panel generated by Claude: edge cases, readability gaps, hidden assumptions, and failure scenarios
- Anonymous real-time voting with live bar chart updated via Supabase subscriptions, shareable via URL with no student login
- Instructor reveal panel explaining the authoritative verdict and what critical evaluation of AI code means in context
- Bundled seed prompt library (sorting, recursion, string parsing, pointer arithmetic) for immediate classroom use