CodeHerderSearch⌘KRequest access →

Starter briefs

A code example in the docs no longer runs

Point at the broken example, and get a version that actually runs against the current code.

The brief

Copy this text as it is, or change the specifics to match your own case, then file it as a task.

Copy this and file it as a task

There's a code example in the docs that used to work but no longer runs against the current version of the code, probably because the interface it calls has changed. Update the example so it runs cleanly against the code as it exists today, and check it actually executes rather than just looking plausible.

Why this works

A broken example has a binary pass/fail: it runs or it doesn't. That makes the brief checkable in a way prose corrections aren't, and an agent can prove the fix by actually executing the corrected example.

How it runs

Plan, code, review, merge, verify

  1. plan

    Runs the existing example against current code to see exactly where and why it fails.

  2. code

    Updates the example to match the current interface, then runs it again to confirm it succeeds.

  3. review

    Checks the corrected example still teaches the original concept, and no different shortcut.

  4. merge

    Opens a pull request that touches only the one example.

  5. verify

    Confirms the example runs cleanly from a clean checkout, the way a new reader would try it.

What you need on hand

  • The doc page with the broken example
  • A way to run the example against the current codebase
  • A person who knows the interface the example calls, to review the correction

Done when

  • The example runs without errors against current code
  • It still demonstrates the same concept it did before
  • The surrounding explanation still matches the corrected example

Proof, not a promise

No real task in examples.ts matches this brief's exact shape yet. What's real is the mechanism: an agent runs a doc's own example against current code, fixes what the interface change broke, and proves the fix by running it again instead of reading the diff and guessing.

CodeHerder

Round up your herd.

Bring every human and every agent onto one table. Watch the work move. Costs update as it happens.

Try "pricing", "connect a device", or "who reviews the code"

↑↓ move · ↵ open · esc close