Skip to content
Exchange

The four tools card

1 file1 KB

A look inside

The first lines of four-core-agent-tools.md. The whole file is in your library once you get it.

# The four tools card

A free card from MenFem's Building with agents, lesson 1.2: The core tools, and how a task flows through them.
The lesson, with the picture and the examples: https://menfem.com/courses/building-with-agents/four-core-agent-tools

This is what you keep: the four tools on one card, the order a task flows through them, and the rule for when a fix is done.

1. Search finds where to look: files by name, lines by the words in them.
2. Read shows a file and changes nothing. Read before you edit.
3. Edit swaps exact old text for new. If the old text is not there, it fails rather than guesses.
4. Run does anything a terminal can: tests, the app, git. The most useful tool, and the riskiest.
5. The flow: gather context, take action, check the result, and go round until it passes.

**The rule:** No fix is done until a run has checked it: the tests pass, or the app does what was asked.

## Used once

From the lesson, on a made-up shop: "It has found the file that handles discount codes and needs to see how codes are compared."

Answer: Read. It knows where to look. Now it has to look, before it can change anything.

## Your turn

Write one case from your own work here, then go down the card line by line.
…and 8 more lines.

What is inside

  • four-core-agent-tools.md1 KB

How to use it

Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Building with agents, lesson 1.2 (The core tools, and how a task flows through them), 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.