All courses

The shape of a session: task to review

Walk through the five phases of a typical session: you state a task, it explores and plans, it edits, it runs checks, and you review and accept or redirect. Name what you do in each phase.

Read it card by card Start the whole course

What happens after you press Enter?

You open a coding agent in your project and type `▸ You: Add a --csv flag to report.py`. Instead of one reply, lines start scrolling: `⚙ Read: report.py`, `⚙ Edit: report.py`, `⚙ Run: ...`. A few minutes later it says *Done*. What was it doing all that time, and at which moments were you supposed to do something?

A session is a small job with a shape

A chat assistant gives one answer. A coding agent does a piece of work: it reads your files, changes them, and runs commands itself. That work almost always follows the same shape. You start it with a task. The agent drives the middle while you watch. You finish it by judging the result. The middle steps may repeat several times. If you know the shape, you know when to watch and when to step in.

Five phases and your job in each

1. **Task**: you say what to change, where, and how you'll know it's done. 2. **Explore and plan**: it reads and searches files, often stating a plan. *You* check that it's looking in the right place. 3. **Edit**: it changes files. *You* follow along and stop it if it touches files or behaviour the task didn't ask for. 4. **Check**: it runs the code and reads the result, often fixing and rerunning. *You* note what it actually ran. 5. **Review**: *you* inspect the changes, try them, then accept or redirect.

One session, start to finish

A short, realistic session. Map it onto the five phases. **Task**: your message. **Explore and plan**: the Read, the Search and the stated plan. **Edit**: the Edit. **Check**: the Run and the read of `out.csv`. The final report is where *your* **Review** begins.
▸ You: Add a --csv flag to report.py that
  writes results to out.csv. Keep the
  current printed output as the default.
⚙ Read: report.py
⚙ Search: "argparse"
◂ Agent: Plan: add a --csv flag via
  argparse, write rows with the csv module.
⚙ Edit: report.py
⚙ Run: python report.py --csv
⚙ Read: out.csv
◂ Agent: Done. Added --csv; I ran it and
  out.csv has 12 rows. Default unchanged.

Walking the phases, catching the gap

**Task**: names the file, the behaviour, and what must not change. Good. **Explore and plan**: it read `report.py`, the right file, and its plan fits the task. **Edit**: one file only, as expected. **Check**: it ran *with* `--csv`, but never ran without it. "Default unchanged" is a claim, not something it tested. **Review**: open `report.py` and look at the change. Then either type `$ python report.py` in your terminal (the text window where you type commands) to see the default output yourself, or redirect: `▸ You: Run it without --csv too and show me the output.`

Remember

Every session runs: task → explore and plan → edit → check → review. The agent drives the middle, and the middle may repeat. You watch it and step in if it heads the wrong way. You own the beginning (a clear task) and the end: check what it actually did, then accept or redirect. Its final message is a report, not proof.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.