A practical first course in working with your own AI agent. Start small, inspect the result, and ship with intention.
6 lessons24 small stepsYour own agent
LESSON 0430 min · AT YOUR PACE
Build a Real Tool
STEP 4 OF 4
Watch a check fail
A check that never goes red might not be checking what you think.
Your task
Back up count-tasks.mjs after my approval. Temporarily replace its result with a constant zero. Run the tool checker and show the failing case. Restore the original implementation and rerun it.
MAKE THIS
A recorded failing check, followed by a passing restored implementation.
REVIEW BEFORE YOU ACT
Keep the deliberate defect local. Restore only this experiment, preserving unrelated changes.
✓
How to check it
The broken counter must exit nonzero under node check.mjs tool count-tasks.mjs. The restored counter must exit 0.