AI Learning Hub › Learn AI › Self-Paced Courses › Codex Without the Code › Direct the Work

Module 3 · Beginner

Direct the Work

Turn a vague request into a bounded assignment: describe the result rather than the code, and say what Codex must preserve.

By the end

  • Recognize why a vague request creates unnecessary choices
  • Turn a vague request into a bounded assignment
  • Describe the result without describing code
  • Define what Codex should preserve and how it should check its work

Better instructions mean less guessing

Asking Codex to “make this better” gives it enormous freedom to decide what better means, so it may have to guess what you want changed, what should stay the same, what matters most, and how far it is allowed to go. Strong instructions make those choices clear, which is a different thing from sounding technical.

Scope

The part of the project and work included in the task.

Constraint

Something Codex should preserve, avoid, or not change.

Success criteria

The conditions you will use to decide whether the task was completed correctly.

Step 1 — See what a vague request leaves undecided

Prompt to try

The practice page has a resource card called Student Programs.

Make the Student Programs card better.

Do not make any changes yet.

Instead, tell me what decisions you would have to make for me before you could act on this request.
Codex response identifying decisions left unresolved by the vague request to make a resource card better, listing goal, audience, content, and tone as questions it would have to answer first
Codex answered with eight decisions before touching anything. These are the first four. Open full-size image: the decisions a vague request left to Codex (opens in a new tab)

A request like “make this better” sounds simple, but it leaves important questions unanswered. Codex may need to decide:

Those are choices you may want to make yourself.

Vague request

Make the Student Programs card better.

Codex must guess what “better” means.

The Codex prompt recipe

Reusable prompt

I want:
[the outcome]

Context:
[what Codex should understand]

Change only:
[the part of the project included in this task]

Preserve:
[things that should remain unchanged]

Do not:
[important boundaries]

When finished:
[how Codex should check the result]

Explain:
[anything you want Codex to teach you]

You do not have to keep these headings forever. They are training wheels for learning how to give Codex enough direction without describing the code yourself.

Step 2 — Make the important choices yourself

Prompt to try

I want:

Improve the Student Programs resource card so a first-time visitor understands more clearly what kind of help it represents.

Context:

This is a fictional practice website used only for learning Codex. Do not add real Stanford programs, offices, links, contact information, or claims.

Change only:

The short descriptive text inside the Student Programs card.

Preserve:

- the card title Student Programs;
- the other two resource cards;
- the page heading;
- the existing layout and visual styling.

Do not:

- add links;
- add new cards;
- change CSS;
- change the page structure;
- modify any other file unless you first explain why it is necessary.

When finished:

Confirm which file changed and whether anything outside the Student Programs description was modified.

Explain:

Briefly explain why the revised description is clearer for a first-time visitor.

Step 3 — Check the assignment, not just the sentence

After Codex finishes, inspect the changes using the same change-review workflow introduced in Module 2.

Then ask:

Check your work

Compare the result with my instructions.

Confirm:

- what part of the Student Programs card changed;
- whether the card title remained unchanged;
- whether the other two resource cards remained unchanged;
- whether the layout or styling changed;
- whether any other files changed; and
- whether the result introduced any real Stanford information.

Do not make additional changes.

What to notice

What the second prompt bought you was less guessing rather than more technical language. In the first, Codex had to decide what “better” meant; in the second, you decided the goal, the part of the page that could change, what had to stay the same, what Codex must not invent, and how the result should be checked. Throughout, you are defining the assignment rather than describing how to write the code.

Checkpoint

You are ready for Module 4 if you can:

The goal is not a longer prompt. The goal is a clearer assignment.