AI Learning Hub › Learn AI › Self-Paced Courses › Codex Without the Code › Understand the Agent

Module 8 ยท Supervisor

Understand the Agent

What separates an agent from a chatbot reply: the environment it works in, the tools it reaches for, and the permissions it holds.

By the end

  • Explain what makes an agent different from a chatbot response
  • Identify the environment an agent is working in
  • Ask what tools an agent expects to use
  • Understand how permissions affect what Codex may do
  • Match human review to the consequence of an action

Why can Codex do things instead of only talking about them?

You have already seen Codex read files, edit them, run checks, create Git history, work on branches, and use a browser. That is the conceptual jump from a chatbot response to agentic work: an agent does not only generate an answer, it can interpret a goal, decide what steps are needed, use available tools, and take actions inside an environment.

So the important question is no longer only “Is this a good answer?” It is also:

“What is the agent about to do, where will it act, and what authority should it have?”

Agent

An AI system that can take steps and use tools to work toward a goal.

Tool

A capability the agent can use to inspect information or take an action.

Environment

The files, applications, services, and other resources available where the agent is working.

Permission

A boundary that controls what the agent is allowed to access or do without additional approval.

From commands to agency

In Module 7, you looked at one technical action at a time. An agent can connect several actions together, so instead of telling Codex:

open this file → find this sentence → rewrite it → check the result

you can give it the outcome:

“Bring the project documentation up to date.”

Codex can then inspect the project, determine what is outdated, choose the appropriate tools, make the authorized change, and report what it did.

That ability is useful. It also means the boundaries around the task matter.

The action ladder

Lower consequence

Explain · Inspect · Search · Suggest

Moderate consequence

Edit · Create · Run · Commit

Higher consequence

Merge · Delete · Deploy · Publish · Change permissions · Act in another system

The farther down the ladder you go, the more deliberately you should review the action, its scope, and its consequences. These are examples rather than permanent classifications, because context matters: editing a disposable practice file is different from editing a production system, even though both are “edits.”

Step 1 — Ask Codex to investigate before acting

Prompt to try

I think the documentation for this project may be out of date.

Do not change anything yet.

Inspect the current project and compare README.md with the files that actually exist.

Tell me:

- whether the README accurately describes the current project;
- what evidence supports your conclusion;
- what change, if any, you recommend;
- what tools you expect to use if I authorize that change;
- which file or files you would change;
- whether the proposed work would affect anything outside this project; and
- whether any part of the task should require additional approval.

Stop after your recommendation.

Do not edit, commit, publish, upload, delete, or change permissions.

Notice what the agent just did

You gave Codex a goal, not a sequence of technical instructions.

To answer, it had to inspect its environment, compare information, identify a mismatch, and decide what action would resolve it.

But it stopped before making the change because you told it to.

Agentic does not have to mean autonomous: you can let an agent investigate and propose while keeping the consequential decision with you.

In this exercise

Goal — bring the project documentation up to date

Environment — the local codex-practice project

Tools — whatever read/edit capabilities Codex actually uses

Permission boundary — inspect and recommend first; edit only after approval

Step 2 — Ask before granting more authority

Prompt to try

Before I authorize the documentation update, explain the action boundary.

Tell me:

- what you need permission to change;
- what you do not need permission to change;
- whether the task requires changing project files;
- whether it requires changing Git history;
- whether it requires accessing the internet or another service;
- whether it requires publishing, uploading, deleting, or changing permissions; and
- what the narrowest reasonable authorization for this task would be.

Do not make any changes yet.

Give enough authority — not unlimited authority

For this task, Codex should need very little:

Read the project. Edit README.md. Check the result.

It should not need to publish anything, access GitHub, delete files, change system settings, or act in another service. The principle carries across tasks:

Give an agent the access it needs for the task, not every capability it could possibly use.

Codex may ask — or may already have permission

Your Codex access setting affects when the app pauses for approval. A more permissive setting may allow an authorized edit to proceed immediately; a more restrictive setting may ask you before Codex acts. In the current desktop app, these controls are labeled Ask for approval, Approve for me, and Full access.

Codex desktop access control showing the available approval settings for agent actions: Ask for approval, Approve for me, and Full access, with the current setting marked
The access control sits beside the prompt box and names the current setting. Open full-size image: the access control settings (opens in a new tab)

Step 3 — Authorize only the task you intend

Prompt to try

Update README.md so that it accurately describes the current practice project.

Requirements:

- Correct the statement about how many files the project contains.
- Add compare.html to the file list.
- Describe compare.html in one short sentence as the page for comparing two fictional practice resources.
- Preserve the existing descriptions of index.html, styles.css, and README.md unless a minimal wording adjustment is necessary for accuracy.
- Do not change index.html, compare.html, or styles.css.
- Do not add or remove project files.
- Do not change Git configuration.
- Do not connect to GitHub.
- Do not publish, upload, deploy, or delete anything.

When finished:

- tell me exactly what changed;
- confirm which file changed;
- explain how you checked the updated README against the actual project; and
- identify anything you could not verify.

Do not create a commit yet.

Step 4 — Review what the agent actually did

Check your work

Review the documentation change against the authorization I gave you.

Confirm:

- what evidence showed that the README was outdated;
- which tool or tools you used;
- which file you changed;
- whether any file outside README.md changed;
- whether Git history changed;
- whether anything outside the local project was accessed or affected; and
- whether every action remained within the boundary I authorized.

Do not make additional changes.

Codex can report that it stayed within the boundary, and you should still check for yourself: open README.md and compare its file list with the project you can actually see. The agent’s report is useful evidence, and your review remains part of the workflow.

Save the maintenance update

Once you are satisfied with the documentation change, ask Codex to create a local commit with a short message describing the README update.

Do not connect to GitHub, and do not publish or upload anything.

Step 5 — Notice how the boundary changes with the task

Prompt to try

Do not take any action.

Compare these hypothetical requests:

- explain what compare.html does;
- edit one sentence in README.md;
- delete compare.html;
- publish this repository to GitHub; and
- change permissions on files outside this project.

For each request, explain:

- what environment the action would affect;
- what tools or capabilities you would expect to use;
- whether the action changes something;
- whether the effect is local or external;
- whether the action is easy to reverse; and
- where you would want explicit human approval.

Do not perform any of the actions.

Same agent, different consequences

The agent may be capable of many kinds of actions, which does not mean every action should receive the same level of authority or review. Explaining a file, editing documentation, deleting work, and publishing to an external service have different consequences, and the more consequential or external the action, the more deliberately you should review the scope, permissions, and result.

What to notice

What separates a chatbot from an agent is the connection between reasoning and action rather than any difference in how “smart” it is: Codex can inspect an environment, choose tools, make changes, and check results. That changes your role as well. Alongside evaluating an answer, you are deciding:

Checkpoint

You are ready for Module 9 if you can:

More agent capability does not remove the need for human judgment.