For people who build with AI coding agents

Your AI wrote it. Can you explain it?

Paste the code your agent wrote, explain it back in your own words, and get a line-by-line map of what you actually understand — before it ships.

Preview · Token-bucket rate limiter0/4 explained
1import type { Request, Response, NextFunction } from "express";
2
3interface Bucket {
4 tokens: number;
5 lastRefill: number;
6}
7
8export function createRateLimiter(capacity = 10, refillPerSecond = 1) {
9 const buckets = new Map<string, Bucket>();
10
11 function refill(bucket: Bucket, now: number) {
12 const elapsed = (now - bucket.lastRefill) / 1000;
13 bucket.tokens = Math.min(capacity, bucket.tokens + elapsed * refillPerSecond);
14 bucket.lastRefill = now;
15 }
16
17 return function rateLimit(req: Request, res: Response, next: NextFunction) {
18 const key = req.ip ?? "anonymous";
19 const now = Date.now();
20 let bucket = buckets.get(key);
21
22 if (!bucket) {
23 bucket = { tokens: capacity, lastRefill: now };
24 buckets.set(key, bucket);
25 }
26
27 refill(bucket, now);
28
29 if (bucket.tokens < 1) {
30 const retryAfter = Math.ceil((1 - bucket.tokens) / refillPerSecond);
31 res.setHeader("Retry-After", String(retryAfter));
32 return res.status(429).json({ error: "Too many requests" });
33 }
34
35 bucket.tokens -= 1;
36 next();
37 };
38}
1

Bring the code

Paste a function, component or script your agent wrote. TeachBack splits it into the few chunks that carry the real decisions.

2

Explain it back

One review-style question per chunk. Answer in plain words. The AI grades the understanding, not your vocabulary, and tells you what you missed.

3

See your Ownership Map

Every line painted owned, shaky or blind spot — plus a prompt that turns your gaps into a lesson from your own coding agent.

The problem

"It works" isn't the same as "I get it."

Agents hand back code that runs but that you couldn't defend in a code review, debug at 2 a.m., or safely change next week. Asking the AI to "explain this" gives you a wall of text you read passively and forget.

The method

Teach-back, from medicine to code.

Nurses confirm a patient understood instructions by asking them to explain it back. Retrieval beats re-reading. TeachBack applies that to AI pair programming — and then flips it: your blind spots become a prompt that has your agent quiz you.

Built for Devpost Learn's Build With AI: Basics with the Devpost Learn Skill Pack. Sessions stay in your browser.