Mastering Codex in VS Code: Context, Planning, Debugging, and Code Review
Learn Codex in VS Code with practical prompts, AGENTS.md guidance, a reproducible debugging example, code review, MCP setup, and token-saving habits.
Mastering Codex in VS Code: Context, Planning, Debugging, and Code Review
Learn how to give Codex useful context, make controlled changes to an existing project, review its work, and keep usage under control.
You ask Codex to fix a bug. It changes the function you expected, rewrites a helper, updates several tests, and reports success. The application runs. Now you have a harder question: which of those changes were necessary, and what proves the bug is gone?
Working effectively with Codex in Visual Studio Code means learning to answer that question. A useful workflow gives the agent enough information to investigate, defines the behavior you want, and leaves you with changes you can understand and verify.
This guide follows a small Python project through investigation, a bug fix, and a feature request. The examples use standard-library Python so the development workflow stays visible. You can apply the same approach to a JavaScript application, a Rust utility, or a larger service.
You can follow along with the IceWalkers Codex VS Code examples on GitHub. The repository includes the starting code, the completed implementation, sample data, tests, project instructions, and reusable prompts. You need Python 3.11 or newer to run the examples; no external packages are required.
You should already be comfortable opening a project in VS Code, running a terminal command, and reading a Git diff. You do not need previous experience with coding agents.
What Codex does inside VS Code
The Codex extension puts an agent beside your source code. It can use editor context, inspect project files, propose and apply changes, and run development commands within its configured permissions. You can review the changes without leaving the editor. Longer work can also be delegated through supported cloud workflows.
Several related terms describe different parts of this setup:
| Term | What it means in practice |
|---|---|
| Codex extension | The VS Code interface where you start tasks, supply context, and review results. |
| Model | The model selected to reason about the task and produce responses or tool actions. |
| Codex CLI | A terminal interface for Codex, useful for terminal workflows and configuration commands. |
| Desktop app | Another interface for project work. Its screens and integrations can differ from the extension. |
| Cloud execution | Work performed in a configured remote environment rather than your current local checkout. |
This distinction helps when following tutorials. A desktop demonstration may show controls your extension does not have. A CLI command may manage shared configuration without being a command you can type into the VS Code composer. Follow the instructions for the interface you are using.
Local project work also does not mean that the language model runs locally. Authentication, model requests, and connected services have their own data flows. Treat the project location and the service processing its contents as separate decisions.
Install the extension and establish a reliable starting point
Use the installation link in the official Codex IDE documentation. Open the project folder and select the Codex icon. If it is missing, open the VS Code Command Palette and run Codex: Open Codex Sidebar.
Start with a folder whose contents you understand. For an existing repository, check the working tree before asking the agent to edit anything:
git status --short
git diffThese commands show tracked changes and untracked files. Identify work you need to preserve. Make a commit or another backup of that work before starting anything. Avoid having the agent stage everything automatically: an unrelated draft, credential file, or unfinished fix may be sitting beside the code it changes.
Choose an authentication method
The extension supports ChatGPT sign-in and API-key authentication for local work. ChatGPT sign-in uses the access associated with your account and workspace. API-key use is billed through your OpenAI Platform account, and features that depend on ChatGPT workspace or cloud access can differ. Codex cloud requires ChatGPT sign-in.
For a personal development workflow, begin with the sign-in method that matches the access you already intend to use. For an organization, use the approved workspace and authentication method before opening sensitive code.
Check the environment before investigating the code
Ask Codex to identify the project root, language runtime, and documented test command. Compare that answer with the repository itself. A successful installation does not guarantee that the agent sees the same environment as your terminal.
On Linux and macOS, pay attention to virtual environments, shell initialization, and executable paths.
Use this first request:
Inspect this project without editing files.
Identify the repository root, the main entry point, and the documented
commands for running the application and its tests.
Point to the files that establish each answer.
Report missing prerequisites separately from code problems.The useful output is a short map with evidence. If the agent supplies a command it inferred rather than found, it should say so.
Understand what context you are supplying
Context is the information available to the model while it works: your request, relevant conversation history, instructions, attached material, and information returned by tools. In the IDE, open files and selected code can contribute editor context. You can also attach specific files or selections explicitly.
The practical problem is choosing what belongs in the task. An error message with a file path and a reproducible input usually helps more than a paragraph saying the application is unreliable.
For a focused bug, begin with the function involved, its caller, a relevant test, and the observed failure. Let the agent investigate dependencies as needed. For a repository-wide question, provide the entry point and architecture notes before asking it to summarize every directory.
Separate instructions, reference material, and evidence
These three categories deserve different treatment:
| Material | Example | How to use it |
|---|---|---|
| Instructions | Preserve the existing command-line output format. | Defines how the task must be performed. |
| Reference material | Framework documentation for the installed version. | Helps the agent choose a compatible implementation. |
| Evidence | A failing assertion, stack trace, or reproduction command. | Establishes what happened and supports a diagnosis. |
Naming the category prevents confusion. An issue report might describe a proposed fix, but its diagnosis can still be wrong. Ask the agent to verify the reported cause against the implementation.
Likewise, text inside a repository, a web page, or a tool response can contain instructions that have nothing to do with your task. Treat retrieved content as material to assess. Keep authorization in your request and the project policy.
Use the editor to narrow the question
Select a function and ask about a particular branch or input. Attach the test that fails. When the request concerns a caller, include that caller rather than expecting the agent to infer which usage matters.
Useful Command Palette actions include adding selected text or an entire file to the chat. The documented command IDs are chatgpt.addToThread and chatgpt.addFileToThread. Bind your own shortcuts through VS Code's keyboard shortcut settings if you use them often. Type / in the composer to inspect the commands your installed extension exposes. IDE command reference
Avoid assuming that an open file has been read completely or that a large repository fits into the model's active context. Ask the agent to identify the files it used when the reasoning depends on a specific implementation detail.
Write a task that has an observable finish
A vague request delegates decisions you may care about. "Improve the task list" leaves the agent to choose whether to change filtering, layout, storage, or performance.
A stronger request names the behavior and the evidence that will establish completion:
Fix the task-list limit bug in taskboard.py.
Observed behavior:
When the first stored task is completed, asking for two open tasks
returns only one, even though two open tasks exist.
Expected behavior:
Filter by status first, then return up to the requested limit.
Preserve input order and the existing CLI output format.
Add a regression test for the reported case and check the existing tests.
Explain the cause and list the verification commands and their outcomes.You have specified enough to assess the result while leaving room for investigation. The agent can choose how to inspect the code; it cannot reasonably interpret the task as permission to redesign storage.
For uncertain requirements, ask questions before implementation. For a behavior you understand, provide a concrete example. An input and expected output can settle ambiguity that several paragraphs of prose leave open.
Completion criteria should distinguish implementation from verification. "Add support for sorting" describes a change. "Ascending order is optional, the default remains input order, and equal priorities retain their original order" defines behavior someone can check.
Put durable project knowledge in AGENTS.md
Use AGENTS.md for guidance that should apply repeatedly: repository layout, development commands, coding conventions, and boundaries. Keep the current bug report in the task request.
Codex discovers guidance at global and project levels. It checks AGENTS.override.md before AGENTS.md at a given level and combines applicable instructions along the path to the working directory. More specific guidance can override earlier guidance. Discovery also has a size limit, so instruction files should stay focused. AGENTS.md discovery and precedence
For the example project, a useful starter is:
# Project instructions
## Project map
- taskboard.py contains the task selection logic and CLI.
- tasks.json is demonstration data.
- test_taskboard.py contains standard-library unittest tests.
## Development
- Use Python 3.11 or newer.
- Run tests with: python -m unittest -v
- Run the CLI with: python taskboard.py tasks.json --status open --limit 2
## Change boundaries
- Preserve stored task data and the default ordering of results.
- Use the Python standard library; discuss new dependencies first.
- Keep changes scoped to the requested behavior.
- Preserve unrelated working-tree changes.
## Completion
- Add a regression test when fixing a reproducible bug.
- Report the commands run and any checks that could not run.
- Summarize behavior changes and remaining limitations.Every line answers a recurring question. The runtime requirement tells a contributor what to install. The test command removes guesswork. The data boundary prevents a convenient demonstration fix from changing the fixture to hide a bug.
Avoid filling the file with general advice such as "write excellent code." Replace repeated mistakes with specific guidance. If the agent keeps introducing dependencies for simple tasks, explain the project's dependency policy. If it runs a costly suite after every copy edit, document which checks apply to which changes.
After changing instructions, begin a fresh task and ask the agent to identify the applicable guidance. An answer listing the expected files is useful evidence of discovery; inspect behavior as well, especially where instructions conflict.
Keep configuration separate from project instructions
AGENTS.md expresses how work should be done. config.toml holds client settings such as the default model, sandbox, and MCP servers.
Personal configuration lives in ~/.codex/config.toml. Trusted projects can supply .codex/config.toml overrides. The CLI and IDE share configuration layers. In the extension, the settings menu provides Codex Settings > Open config.toml. Managed requirements can constrain settings, so editing a personal default may not change the effective policy.
For a simple personal setup, configure only the settings you need. Copying a large configuration from a tutorial makes it harder to understand why the agent behaves differently in two projects.
If a setting appears ineffective, check whether a project override, selected profile, or organization policy supplies a different value. Keep a known working configuration before experimenting. Change one setting at a time when diagnosing startup or permission problems.
Use planning to expose decisions before code changes
Planning helps when the scope is uncertain, several modules interact, or the cost of a wrong assumption is high. A small spelling correction rarely needs a formal plan.
For a larger change, enable Plan mode in the extension or ask explicitly for investigation and a proposed approach before edits. The current IDE command reference lists /plan for this purpose. Read the plan for its decisions: affected files, compatibility constraints, validation, and unresolved questions.
For example:
Plan an optional priority sort for the task-list command. Do not edit yet.
Inspect the current selection function, CLI parser, and tests.
Identify the smallest compatible change and the cases that need testing.
Call out ambiguities in priority direction and missing-priority handling.An adequate plan should notice that "sort by priority" is underspecified. Does 1 mean highest priority? Should sorting happen before the limit? What happens when two priorities match? Which behavior remains the default?
Resolve those questions before implementation. In this guide, lower numbers come first, equal values retain input order, sorting happens after filtering and before limiting, and the default preserves stored order. Demonstration records always have a numeric priority.
Check that the proposed work matches those decisions. If the plan adds a database or renames every CLI option, narrow it. A plan has earned its place when it reveals a decision or risk that would otherwise be buried in a diff.
Walkthrough: investigate a task-list bug
The example repository contains the starting project in `examples/original` and the finished version in `examples/completed`. Copy examples/original to a separate folder and open that folder in VS Code so the agent can investigate the bug without reading the completed solution.
The examples are designed for practice and include an intentional bug to investigate and fix.
The project reads JSON tasks and prints selected results:
taskboard.py
tasks.json
test_taskboard.py
AGENTS.mdIts demonstration data contains these records in order:
| ID | Title | Status | Priority |
|---|---|---|---|
| 1 | Update documentation | done | 3 |
| 2 | Fix login error | open | 2 |
| 3 | Review release notes | open | 1 |
| 4 | Audit dependencies | open | 1 |
The bug is in the function that selects which tasks to display:
def select_tasks(tasks, status="all", limit=None):
if limit is not None and limit < 0:
raise ValueError("limit must be non-negative")
candidates = tasks if limit is None else tasks[:limit]
if status == "all":
return candidates
return [task for task in candidates if task["status"] == status]It limits the candidates before filtering them. The first two stored records contain one completed task and one open task. Asking for two open tasks therefore returns only the second record, even though additional open tasks exist.
Establish the starting behavior
Run the existing tests and the reproduction command in your working copy:
python -m unittest -v
python taskboard.py tasks.json --status open --limit 2The original tests cover basic filtering and limiting separately. They leave their interaction untested. A green baseline therefore does not establish that the reported behavior is correct.
Ask Codex to trace the command before changing it:
Trace --status and --limit from the CLI parser to select_tasks.
Use the supplied tasks.json to explain why the command returns one record.
Identify which existing tests cover the individual options and which
interaction is missing. Do not edit files yet.Read its answer against the source. The diagnosis should identify the order of operations. If the agent instead recommends changing the limit to three, it has compensated for the fixture rather than repaired the behavior.
Add a regression test that describes the requirement
The missing test should combine the options and assert which tasks survive:
def test_filter_happens_before_limit(self):
result = select_tasks(self.tasks, status="open", limit=2)
self.assertEqual([task["id"] for task in result], [2, 3])Run that test against the original implementation. It should fail because the original returns [2]. Then implement the fix and run it again.
A test written after the fix may pass without ever checking the behavior that caused the bug. Showing that it rejects the starting implementation gives you stronger evidence.
Inspect the smallest behavioral change
The corrected function filters before it slices:
def select_tasks(tasks, status="all", limit=None):
if limit is not None and limit < 0:
raise ValueError("limit must be non-negative")
selected = [
task for task in tasks
if status == "all" or task["status"] == status
]
return selected if limit is None else selected[:limit]A focused review can now ask specific questions. Does the fix preserve order? Does limit=0 return an empty list? Does an omitted limit return every match? Does selecting all statuses still work? Does the function leave the input untouched?
Ask Codex to run the relevant tests and the reproduction command, then inspect the diff yourself. If it rewrites the CLI or edits the fixture without a requirement, ask why those changes are needed.
Finally, require an evidence-based completion report:
Summarize the root cause, the changed behavior, and the regression test.
List each verification command with its outcome.
Distinguish checks that ran from checks that were proposed or blocked.
Identify any behavior outside this change that remains unverified.Keep the report with the change or pull request. Future maintainers need to know which requirement the test protects.
Extend the project without reopening settled behavior
The follow-up feature adds optional ascending priority order. It must retain the filtering fix and preserve default ordering.
Use a request that states the sequence explicitly:
Add --sort priority to the task-list CLI.
Default behavior must continue to preserve input order.
When requested, filter by status, sort ascending by numeric priority,
then apply the limit. Preserve input order for equal priorities.
Do not mutate the input task list or change the output format.
The fixture guarantees a numeric priority on every record.
Add tests for ordering, ties, filtering combined with sorting and a limit,
and input preservation. Run the relevant tests and CLI examples.With the sample data, this command should return tasks 3 and 4:
python taskboard.py tasks.json --status open --sort priority --limit 2The order matters. Sorting after limiting would select the wrong candidates. Sorting the original list in place would change data that another caller might reuse. A stable sort preserves the order of equal priorities.
The completed selection logic makes that sequence visible:
def select_tasks(tasks, status="all", limit=None, sort="input"):
if limit is not None and limit < 0:
raise ValueError("limit must be non-negative")
if sort not in {"input", "priority"}:
raise ValueError("unsupported sort order")
selected = [
task for task in tasks
if status == "all" or task["status"] == status
]
if sort == "priority":
selected = sorted(selected, key=lambda task: task["priority"])
return selected if limit is None else selected[:limit]This example assumes the input data has the expected structure. A production tool would also need to define the accepted format, validate incoming data, and explain any errors clearly. Keep those limits in mind when reviewing the feature.
Review the diff and the proof separately
A plausible patch and a passing test run answer different questions. The patch shows what changed. The tests show what particular checks accepted. Neither establishes every property of the application.
Begin with scope. Inspect the changed files and ask whether each belongs to the task. Pay particular attention to dependency manifests, lockfiles, generated files, configuration, and test expectations. A small behavior change should have an explanation for touching any of them.
Then review the behavior. Trace the original reproduction through the new code. Look for conditions that skip validation, alter ordering, suppress errors, or broaden access. In a frontend task, also inspect the interface in use; a passing unit test says little about keyboard focus or an overflowing layout.
Finally, read the verification evidence. A command that could not access a database did not validate database behavior. A formatter passing did not establish that a bug is fixed. Ask for the relevant exit status and the substantive result rather than accepting a generic "all checks passed."
For the task-list example, the review should establish:
| Requirement | Useful evidence |
|---|---|
| Filter before limit | A regression test expecting IDs 2 and 3. |
| Sort before limit | A combined test expecting IDs 3 and 4. |
| Preserve the default | A test using the default sort with fixture input order. |
| Preserve ties | A test keeping IDs 3 and 4 in their original relative order. |
| Preserve input | A comparison showing the input records retain their order and contents. |
| Preserve CLI format | Inspection of representative CLI output. |
You can ask Codex for a separate review pass, especially for a larger patch. Give that pass explicit criteria and ask it to trace concrete failure paths. A second model response can find mistakes; independent execution and human judgment remain useful.
Recover without discarding unrelated work
If a change is wrong, stop adding features. Inspect the diff and decide whether to amend a small part, undo the agent's changes, or revert a dedicated commit. The safest option depends on whether your own work shares those files and whether the commit has been shared.
Keep commits focused so a bad feature can be removed without losing an unrelated fix. Review staged files before committing. Avoid broad reset or cleanup commands when you have not accounted for every affected file.
A precise recovery prompt helps:
The sorting change broke default ordering.
Inspect the diff and identify the change responsible.
Restore the previous default while retaining optional priority sorting.
Preserve unrelated changes. Add a regression test for default ordering.Use permissions as a technical boundary
Sandbox settings govern what the agent can access or execute. Approval policy governs when an action requires review. These controls have different jobs. Repository instructions describe expectations, but they do not replace filesystem or network enforcement. Agent approvals and security
Begin with the default workspace restrictions for ordinary development. When a command is blocked, identify the operation it needs: writing a particular directory, downloading dependencies, or contacting a service. Review that specific request before broadening access.
For example, a missing package may require an approved dependency installation. It does not establish a need for unrestricted access to the whole machine. A test requiring production credentials is a reason to revisit the test environment.
Connected tools deserve the same attention. Reading an issue and editing a remote issue are different actions. Access to a repository does not imply permission to deploy its application. State which external actions belong to the task when that distinction affects the work.
Add documentation through MCP when the task needs it
Model Context Protocol lets the agent connect to tools and information sources. For OpenAI development, the official documentation server is a useful small example: it provides documentation search and page content, and it does not call the OpenAI API on your behalf.
If the Codex CLI is installed, register it with:
codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp
codex mcp listYou can instead add this entry to your existing Codex config.toml, preserving other settings:
[mcp_servers.openaiDeveloperDocs]
url = "https://developers.openai.com/mcp"The CLI and extension share this configuration. A .vscode/mcp.json example intended for another VS Code agent is a different integration path; follow the Codex instructions for Codex.
Once connected, make the lookup purposeful:
Use the OpenAI developer documentation server to check the current
Responses API requirements for the feature we are implementing.
Compare them with the installed SDK version and cite the relevant pages.
Identify compatibility changes before editing.Turn repeated procedures into skills
A skill packages a reusable workflow in a directory containing SKILL.md, with optional scripts and references. Its metadata describes when the agent should use it. Codex can select a matching skill or you can mention it explicitly.
Choose a task that already repeats with a recognizable procedure. Reviewing a release note against a changelog is a better candidate than an instruction to "be helpful."
For example, a project could have a task-list review skill that checks filtering, ordering, limits, and input preservation. Its procedure would tell the agent to inspect the selection function, identify changed requirements, run relevant tests, and report unsupported assumptions.
Keep ordinary repository commands in AGENTS.md. Put a specialized procedure in a skill when it has a distinct trigger and enough detail to justify loading separately. This avoids requiring every task to carry instructions for a workflow it will never use.
When a skill produces a useful result, review how the agent achieved it. Update the skill to preserve the steps worth repeating and remove those that apply only to that particular task.
Choose local work, cloud work, and parallel work deliberately
Stay local when the task needs your current environment, uncommitted changes, or frequent interaction. Consider cloud work when a task can run with an explicitly configured remote environment and you can review the result later.
A cloud environment needs the code, setup instructions, dependencies, and access required for the task. Do not assume it contains your unsaved editor buffer, local service, or machine-specific configuration. Verify what state was handed off and which revision the result targets.
Parallel work helps when tasks have clear ownership and few shared edits. Documentation and an independent test investigation may proceed separately. Two implementations modifying the same function still need integration and review.
A Git worktree provides another working directory associated with a branch. It helps separate file changes, but tasks can still conflict through shared services, databases, generated artifacts, or incompatible design choices. Establish ownership and the integration order before launching work.
Review each task's changes before merging them. Check that they work as intended and fit with the rest of the project, even when the agent reports the task as complete.
For the small filtering bug, one agent is sufficient. Additional agents would add coordination to a task whose cause and expected behavior already fit in a few lines.
Control token use without weakening the task
Usage depends on more than the length of the visible answer. Requests include context, tools return additional material, and reasoning models use reasoning tokens. Higher reasoning effort generally increases work and token use.
Start with an available model and an effort appropriate to the uncertainty. GPT-6.1 Sol is a reasonable starting point for substantial development work when your account supports it. Use a lighter effort for a bounded explanation or simple edit; consider Medium for a change that needs investigation and judgment.
The following habits reduce avoidable work:
- Supply the reproduction case early. Several rounds of speculation can cost more than a precise initial request.
- Ask for relevant files and targeted searches before large file dumps.
- Keep durable instructions concise and accurate.
- Request focused tests during iteration, followed by broader checks where the change requires them.
- Ask for a short completion report with commands and results rather than repeated summaries of the conversation.
- Split unrelated tasks into separate chats and provide a deliberate handoff when context matters.
The lightest setting is economical only when it produces an acceptable result. If a weak diagnosis leads to repeated rewrites, a more capable model or additional reasoning may reduce the total work. Judge the completed task, including your review effort.
Manage long conversations with a useful handoff
When a chat becomes long or begins revisiting settled questions, preserve the decisions in a compact note:
Goal: add optional ascending priority sorting.
Decisions: filter, then stable sort, then limit; default preserves input order.
Files: taskboard.py and test_taskboard.py.
Completed: filtering regression fixed; baseline tests pass.
Remaining: implement CLI option and sorting tests.
Constraints: standard library only; preserve output format and fixture.
Verification still needed: full unittest run and two CLI examples.Include actual outcomes only when they occurred. A new chat can inspect the named files and continue with a small amount of relevant context.
Troubleshoot by identifying the failing layer
When something goes wrong, separate the editor, authentication, configuration, environment, agent reasoning, and application behavior. Changing code will not resolve a sign-in failure. Reinstalling the extension will not repair a mistaken sorting requirement.
| Symptom | First diagnostic step | Appropriate next action |
|---|---|---|
| Codex panel is missing | Check whether the official extension is enabled in the current VS Code window. | Use the Command Palette to open the sidebar; inspect extension errors if it fails. |
| Sign-in repeatedly fails | Confirm the intended account, workspace, and sign-in method. | Follow the authentication diagnostics and any organization restrictions. |
| A model is unavailable | Inspect the models offered to the current authenticated session. | Choose an available model or resolve account access; avoid repeatedly retrying a stale model ID. |
| Tests work in your terminal but fail for Codex | Compare working directories, interpreters, environment variables, and services. | Correct the environment difference before changing application logic. |
| A command cannot access the network | Inspect the sandbox and the operation requested. | Review the specific access needed for the task. |
| Project rules appear ignored | Check the working directory and applicable instruction files. | Resolve overrides and start a fresh task to check discovery. |
| A configuration edit has no effect | Inspect trusted project overrides and managed requirements. | Change the layer that supplies the effective value, within permitted policy. |
| The agent edits too much | Compare the request with the diff. | Restate the behavior and file boundaries; remove unrelated changes carefully. |
| Tests pass but the defect remains | Run the original reproduction with the same input and environment. | Add a regression test that fails against the defective behavior. |
| The agent keeps repeating an approach | Identify what evidence the attempts have produced. | Ask for a revised diagnosis based on that evidence, or prepare a fresh handoff. |
| A tool shown in a video is missing | Check the interface, account, and current feature documentation. | Use the supported extension workflow or a documented alternative. |
For difficult environment failures, ask for the exact failing command, relevant error, and what changed between attempts. Avoid sending an entire log containing credentials or unrelated project data when a short excerpt establishes the problem.
Prompts to keep beside your editor
These templates are starting points. Replace file names, behavior, and commands with the facts of your project.
Understand unfamiliar code
Explain how [operation] flows through this project.
Start from [entry point]. Identify the files and functions involved,
where input is validated, and which state changes.
Separate confirmed behavior from assumptions. Do not edit files.Investigate a failure
Reproduce [failure] using [command/input].
Inspect the relevant code and tests. Propose the most likely cause
with supporting evidence before implementing a fix.
If reproduction is blocked, report the missing prerequisite.Implement a bounded change
Implement [behavior] in [area].
Preserve [existing contract] and [unrelated work].
Completion means [observable acceptance criteria].
Add or update relevant tests, run [appropriate checks], and report results.Review a patch
Review the current diff against [requirements].
Focus on regressions, missing cases, and changes outside scope.
For each finding, identify the location, a triggering input or condition,
and the consequence. Do not edit during this review.Prepare a handoff
Summarize the goal, settled decisions, changed files, actual verification
results, and remaining work for a fresh chat.
Include relevant paths and commands. Keep proposed checks separate from
completed checks. Exclude secrets and unrelated conversation history.Put the workflow into practice
The task-list exercise brings together the habits that make Codex easier to work with: supply relevant context, define the expected behavior, investigate before editing, and review the result against evidence. You have seen how a passing test suite can miss a bug, how a regression test can expose it, and why the order of operations matters when adding a feature. Project instructions and reusable prompts help carry those lessons into the next task.
Choose a small issue in a project you already understand. Record the current behavior, write down what should change, and give Codex a clear way to verify the result. Inspect the diff and run the original reproduction before accepting the fix. Keep notes on missing context or unclear instructions that caused unnecessary work, then improve your AGENTS.md accordingly.
Once that process feels dependable, explore a documentation MCP connection for a library you use, or turn a recurring procedure into a skill. Try cloud execution or isolated worktrees when you have a task that benefits from them. Add one capability at a time so you can judge whether it makes the work easier to complete and review.
The example repository gives you a place to experiment. Extend the tests, introduce another bug, or add a feature with different ordering requirements. For each change, ask what evidence would convince another developer that it works.


No comment yet
Be the first to share your thoughts.