Skip to content
Exchange

The command-line habits card

1 file2 KB

A look inside

The first lines of working-from-the-cli.md. The whole file is in your library once you get it.

# The command-line habits card

A free card from MenFem's Building with agents, lesson 4.3: Working well from the command line.
The lesson, with the picture and the examples: https://menfem.com/courses/building-with-agents/working-from-the-cli

This is what you keep: six habits for every session, on one card.

1. Start each job with the file, the symptom and what done looks like. Hand over logs and files rather than describing them.
2. Watch the first minute, and stop it the moment it drifts. Keep using git, so any change can be undone.
3. Give it a command that passes or fails, and ask for the command and its output as proof.
4. One job per session: clear between unrelated jobs.
5. After two failed corrections, clear and write one better prompt instead of a third.
6. For a job you repeat, script it: one run, a turn limit, only the tools it needs, and a person who reads the result.

**The rule:** Before you walk away from a run, it must know what done looks like, be able to check itself, touch only what it should, and have something that stops it.

## Used once

From the lesson, on a made-up shop: "You type "fix the checkout" and it changes the basket page, which was fine."

Answer: Be specific. Name what is broken and where: "discount codes over 20% are ignored at payment, in src/checkout".

## Your turn
…and 10 more lines.

What is inside

  • working-from-the-cli.md2 KB

How to use it

Open it beside the job and go down the 6 lines in order, then check your answer against the rule at the bottom. It is the card from Building with agents, lesson 4.3 (Working well from the command line), with one worked example from the lesson and a space for your own case.

Run before it was listed

Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.