Ship ItFREE COURSE

Build something real.

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 1 OF 4

Define a tiny tool

A task counter is small, useful, and easy to check with known inputs.

Your task

Plan a dependency-free Node.js script named count-tasks.mjs. It accepts one Markdown file path and prints the number of unchecked tasks as one integer. Match lines beginning with optional spaces then - [ ] and task text. Ignore completed tasks and plain text. Missing or unreadable input must exit nonzero with a helpful error. Wait before implementing.

MAKE THIS

A plan for count-tasks.mjs with clear input, output, and failure behavior.

REVIEW BEFORE YOU ACT

Use fictional tasks only. Do not read work task lists or install dependencies.

How to check it

Manually count two unchecked tasks in the bundled tasks.md fixture. Confirm the plan predicts output 2.