Hook Chain

Level 0 Five minutes · no jargon

Explain like I'm five

Imagine a busy restaurant kitchen. A head chef cooks every dish. Order tickets come in all day, and each one travels along a rail to the chef.

A cozy kitchen. Order tickets slide along a rail past three small helper robots in aprons before reaching a smiling chef at a stove. One helper reads a ticket with a magnifying glass, one crosses something out with a pencil, one holds up a sold-out paddle. Another hangs a chalkboard of tally marks. On the wall are recipe binders and a corkboard of notes, and a delivery van unloads at the back door.

The chef is Claude Code

The chef is very good. Give the chef a ticket that says "read this file" or "run this command" and it gets done. Claude, the AI, is the one writing the tickets. The chef, Claude Code, is the one doing the cooking.

Usually the ticket goes straight from Claude to the chef. A mod puts a helper on the rail, between the ticket and the stove.

What a helper can do with a ticket

Every helper on the rail gets the ticket before the chef does. A helper can do one of three things:

  1. Look and pass it on. "A soup order. I'll make a tally mark." The ticket goes on unchanged. This is observing.
  2. Change it and pass it on. "This says onions, and the customer is allergic. I'll cross that out." The chef sees the new ticket. This is rewriting.
  3. Keep it. "We're out of fish. I'll tell the customer myself." The chef never sees that ticket. This is answering.

When the chef finishes a dish, it travels back past the same helpers in reverse. A helper can add a garnish on the way out.

Look and pass it on. Change it and pass it on. Or keep it and answer yourself.

Helpers can redecorate, too

Some helpers don't touch the food. They hang a chalkboard in the dining room showing how many orders came in today. Or they put up a little sign by the door. That's a mod drawing in Claude Code's screen: a panel beside the conversation, a line above the place you type, a new look for the spinner.

The rest of the kitchen

Mods aren't the only way to change how the kitchen runs. There are other ways, and each is good at something different:

A plugin is the box all of these come in when you bring them to a new kitchen.

Who goes first?

Helpers stand in a fixed order. The restaurant owner's helpers stand closest to the door, so they see every ticket first. The owner's helpers are the people your workplace puts there. Your own helpers come next, then the kitchen's own built-in ones, then the chef. Because the owner's helpers see a ticket first, they can make sure nobody behind them breaks the house rules.

Two warnings

What helpers remember

A helper can remember things in three ways:

If a helper copies the whiteboard into the ledger, they have to check the ledger first after the board gets wiped. Otherwise they write zero over a real number. We made exactly this mistake in one of our own mods.

What to remember

  1. A mod is a helper standing on the rail between Claude and Claude Code.
  2. It can look, change or answer, and it can redecorate the room.
  3. Use the lightest tool that does the job: a note, a recipe, a delivery, a bell or a helper.
  4. A helper whose job is to stop things needs a backup plan for when it faints.
  5. Only hire helpers you trust, and read their job list first.

Ready for the grown-up version? Mods 101 uses the same kitchen with the real names: register, on, $, e and next.