Skip to content

Swipe right for a newer agent, My Bad. Swipe left for an older agent, Dinner Sorted.

Issue 78 · 21 Nov 2026 · Easy · Free

Who Wrote This

Explain this code to me in plain English

You have to change one number in a function called calc(). The person who wrote it left last year, the variables are single letters, there are no comments, and you're not sure if touching it breaks billing.

Category
Coding & Vibe Coding

Sample you can paste

Found this in billing/loyalty.py. The person who wrote it left. I need to change the gold tier from 500 to 400. What does it do, and what could break if I touch it?

def calc(u, d=None):
    d = d or datetime.utcnow()
    r = 0
    for o in u.orders:
        if o.st in (2, 5) and (d - o.ts).days < 90:
            r += o.amt * (0.5 if o.ref else 1)
    if r > 500 and not u.flags & 4:
        u.tier = "gold"
    return round(r * 0.02, 2)

Steps

  1. Step 1

    Paste the code

    One function, class or file, up to a few hundred lines. Include the imports and anything it calls if you have them. Leave out secrets and keys.

  2. Step 2

    Say why you're reading it

    One sentence: the change you need to make, the bug you're chasing, or just "I have to own this now". The explanation focuses on that.

  3. Step 3

    Read the plain-English version

    You get a one-line summary, a walk-through in order, the inputs and outputs, side effects it hides, and the guesses it had to make about names it can't see.

  4. Step 4

    Make the change

    It points at the exact line for your change, what else depends on it, and one quick test to run before and after so you know nothing else moved.

What you get

What you put in and what you get out

When to use it

Use it when you've inherited code with no comments, or an AI wrote something that works and you have to change it without knowing why it works.

When to skip it

It only sees what you paste. It can't run the code or see the rest of the repo, so anything it says about functions, flags or database values it can't see is marked as a guess. For changes that touch many files, an editor that reads the whole codebase does better.

Sample run

0:00

The mystery

A function called calc() in billing, single-letter variables, no comments, and you need to move the gold tier from 500 to 400.

Full prompt

who-wrote-this.prompt.txt

You are a patient senior developer explaining code to a colleague who has to work on it today. They didn't write it. Your job is to make the code understandable and safe to change, not to rewrite it.

INPUT
- The code: a function, class or file, maybe with imports.
- Why they're reading it: a change to make, a bug to find, or "I have to own this now".
- Anything they already know about the system (optional).

HOW TO WORK
1. Read the whole thing before explaining. Work out what it is for.
2. Explain it in the order it runs, in plain words. Translate cryptic names into what they probably mean, and say it's a guess.
3. Find everything it does besides returning a value: writes to a database or file, network calls, changes to objects passed in, global state, logging, time or randomness.
4. Spot the surprises: edge cases, things that only happen one way (set but never unset), magic numbers, silent failures, off-by-one boundaries, timezone or rounding issues.
5. Separate facts from guesses. Anything that depends on code, data or config you can't see goes in the questions list.
6. Answer their reason for reading. For a change, name the exact line, what else depends on it, and one simple test to run before and after. For a bug, name the most likely places and how to confirm.

RULES
- Never invent what an unseen function, table, flag or status value does. Say "not in what you pasted" and list it as a question.
- Don't rewrite or refactor unless asked. If something looks like a real bug, flag it in one line.
- If the paste contains secrets or keys, tell them to rotate them and don't repeat them.
- Plain words. Explain jargon the first time you use it. Short lines. Match their language.

OUTPUT
## In one line
What this code is for.

## Step by step
Numbered, in the order it runs, quoting the line or name each step refers to.

## Goes in, comes out
Inputs, return value, and what each means.

## Side effects
Everything it changes or calls besides returning a value. "None" if none.

## Surprises
Edge cases, one-way changes, magic numbers, likely bugs.

## Guesses and questions
What you assumed, and what to check in the codebase or ask a teammate.

## For your change
The exact line or lines to edit, what depends on them, and one test to run before and after.

Copied it? Get the Friday roundup. Seven agents and one tip, once a week.

How it works

Reading someone else's code is slower than writing your own. The names made sense to them, the comments are missing, and the one thing you need to change sits next to something that quietly updates the database.

This agent reads it with you. You paste the code and say what you need to do, and it explains what the code does in plain words, in the order it runs, and points out what it changes besides its return value.

What to paste

The function, class or file, with its imports if you have them. One sentence on why you're reading it: a change, a bug, or "I own this now". Anything you already know, like what a table or a flag means. Leave out secrets, keys and real customer data.

What you get back

A one-line summary, then a walk-through step by step. Inputs and outputs. Side effects, like writes, network calls or changed state. A list of guesses it had to make about names and values it can't see. And for your change: the exact line to edit, what depends on it, and one quick test to run before and after.

It doesn't rewrite the code unless you ask, and it says "I can't tell from this" instead of inventing what a missing function does.

Questions about Who Wrote This

How much code can I paste?

One function, class or file at a time, up to a few hundred lines. For a bigger module, paste the entry point first, then the parts it calls. Remove passwords, API keys and customer data before you paste.

What if it guesses wrong?

It lists every guess separately, like "status 2 probably means paid", so you know what to check. Search the codebase or ask a teammate for those, then paste the answer back and it updates the explanation.

Is Who Wrote This free?

Yes. The prompt is free to copy, download, and reuse under CC-BY-4.0. There is no sign-up on One Agent a Day. You only need access to a chat model such as ChatGPT, Claude and Gemini.

Which AI tools does Who Wrote This work in?

It was written for ChatGPT, Claude, Gemini and Cursor. It is a plain-text prompt, so any capable chat model can run it. Paste the prompt first, then your input.

What do I paste into Who Wrote This?

Paste the code. One function, class or file, up to a few hundred lines. Include the imports and anything it calls if you have them. Leave out secrets and keys.

Compare and find more

Share this agent

Who Wrote This — You put in Found this in billing/loyalty.py. The person who wrote it left. I need to change the gold…. You get out Safe to edit. Free from One Agent a Day.

Share on XShare on LinkedIn
Was this useful?

A yes or no is enough. The note stays on this server's log.

Friday email

The week’s 7 agents, in one email

Every Friday. Seven free prompts, one tip, one “paste this first.” Unsubscribe anytime.

One email, every Friday. Confirm on the next page. Unsubscribe anytime.

The daily agent stays free. Pro waitlist is a separate list, and it is not open yet.

Friday email

The week’s 7 agents, in one email

Every Friday. Seven free prompts, one tip, one “paste this first.” Unsubscribe anytime.

One email, every Friday. Confirm on the next page. Unsubscribe anytime.