Use Codex on a small repository
Give Codex clear project instructions and review a focused change in Git.
Orient the agent
Open a small repository you control and confirm which directory is in scope. In AGENTS.md, describe which runtime and package manager the project uses, where to find relevant code, and how to run its existing checks.
How it works
Start by pointing to a small file and a concrete outcome. Review the files included in the proposed diff and any command before granting unrelated access. A good first task has a visible result that you can check without opening additional accounts or production systems.
Verify one change end to end
Ask for an empty-state message in an existing reading list. Request acceptance criteria for an empty list and a nonempty list. Read the changed view, test both states yourself, and check that no unrelated layout changes enter the diff.
Promote a repeatable skill
Once the review follows a stable procedure, put the steps into a focused skill with a SKILL.md file. Test the skill on a small example and confirm the tool discovers it in your intended scope before using it on a larger project.
Further reading
Check your understanding
Name one fact to put in AGENTS.md and one change-specific requirement to give Codex in the request.
See the example and explanation
- Example 1
- Given
Record the existing type-check command - Answer
AGENTS.md - Example 2
- Given
An empty list shows "Add your first book" - Answer
Feature request
The repository’s existing check command remains relevant across work. A requirement about what to display when the list is empty belongs to this feature’s acceptance criteria.