From chat to the terminal|INEMA.CLUB-PRO

Lesson 4 · 18 min

First the agent reads, then it makes changes

“Fix the project” mixes diagnosis and changes: if something goes wrong, you won’t know which part caused it. Separating reading from changes, giving the minimum permission needed, and asking for a wrap-up that says what was checked turns the agent into someone you can manage.

Start the lesson
Person checking a printed sheet with a pen beside a laptop showing the terminal.

In this lesson, you will

  1. 1Ask the agent to read without editing, then check which files it used
  2. 2Allow one small, clearly named change
  3. 3Write an authorization in five parts
  4. 4Require a wrap-up: done, checked, pending

Objective: give the agent a task with a clear scope, check what it read and changed, and ask for at least one correction.

01Inspection before renovation

The order of the first task, in four steps.

Scroll down: each step below lights up its part of the diagram.

  1. 1/5

    Inspect

    No files change in this step. Be explicit: don’t edit. Ask it to say which files it read so you can compare that with dir /b.

  2. 2/5

    Plan

    The list of what’s missing is your reference. If it said it didn’t open a file, the plan doesn’t know what’s in it yet: tell it in your next request what to use as its basis.

  3. 3/5

    Make changes

    Say which file can be created or changed. If the agent asks before editing, check that it’s only that file and approve. If it’s another file, decline.

  4. 4/5

    Validate

    The final decision is yours. Open the result and compare it with what you asked for. Ask for at least one correction: assigning the task, checking, and deciding is management.

  5. 5/5

    Using × managing

    A user asks and accepts. A manager separates reading from changing, authorizes a specific scope, and checks before approving. The difference is in the habit, not the tool.

It works the same in Claude Code and Codex: both read AGENTS.md and work in the folder where they were opened.

02Autonomy means authorization with a clear scope

Five parts that fit on a sticky note.

1. Goal and files

Say what to produce and what it can read. "Draft the September report, using only the September spreadsheet."

A small folder with only the task materials already limits what it can access.

ExampleGoal: index.html about me. Files: AGENTS.md only.

03The requests, in order

Open the agent inside the folder (claude or codex) and paste one request at a time.

Request 1 · read only
Read AGENTS.md and README.md. Explain the project's purpose and list what's missing, without editing anything. At the end, say which files you used.
Request 2 · change with a name and a stopping point
Read AGENTS.md. Create only index.html with a simple page about me, using what's there. Don't change or delete any other files.
At the end, say: what you did, how you checked it, and what is still pending.
cmd · check the change
dir /b
start index.html
Request 3 · the correction
Change the title to "<your title>" and add a contact section. In index.html only.
Request 4 · the agent reads your files
Read the .txt files in the entradas folder and write saidas/resumo.md with 5 decisions and 5 pending items, citing which file each one came from.
cmd · a restore point before Git (lesson 6)
cd %USERPROFILE%\projetos
xcopy /e /i meu-primeiro-agente meu-primeiro-agente-antes
rem after the change, compare:
fc /n meu-primeiro-agente-antes\*.md meu-primeiro-agente\*.md
Simulation: illustrative example

Request 1: "The goal is a page about Ana. Missing: the index.html, the format, and how to check it. Files read: AGENTS.md and README.md. I also checked the file listing. Nothing was edited."

It explained, listed what was missing, said what it read and what it didn’t read. No files changed.

04Practice

With the agent open inside meu-primeiro-agente.

E7 · The first task

20 min

Make request 1 (read only), then request 2. Open the page with start index.html and ask for a change.

Done when: the page opens in the browser, and you asked the agent for at least one correction.

E8 · The agent reads your files

20 min

Put three of your texts in entradas (notes, meeting minutes, a long email) and make request 4. Check two quotes against the original file.

Done when: you found at least two of the quoted phrases in the original. If any are missing, add the missing rule to AGENTS.md.

05Test what you learned

The explanation appears after your answer.

Question 1 of 3

What’s the best first request in a new folder?competency

To learn more

Previous lessonNext lesson