Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
When and how to start a fresh session card 4 of 6

Restarting the CSV task in five steps

builds on: Why long sessions degrade, Cost and usage limits, Project instruction files: purpose and contents
1. **Ask** the agent for a short handoff note. 2. **Check** each line against what you saw yourself. The note can be wrong too. 3. **Move lasting rules** to the instruction file. Here: "build CSV rows with `csv.writer`, never by joining strings with commas." 4. **Clear**: `/clear` in some tools, a "New chat" button in others. 5. **Paste** the note and say what to do next. The new session starts focused, and each message is cheaper.
Terms on this card
session
One continuous conversation with the agent. Everything said and done in it stays in its context until you clear it or start a new one.
instruction file
A project file such as CLAUDE.md or AGENTS.md that the agent reads automatically at the start of every session.
handoff note
A short summary of the goal, what's done, what failed and why, and the next step. You paste it into a fresh session.
/clear
In some agents, a command typed in the chat that empties the conversation and starts fresh. Other tools use a 'New chat' button instead.
CSV
Comma-Separated Values: a plain text table format where each line is a row and commas separate the columns.
Learn this step by step on Bytewise
Lesson goal: Decide when to clear or restart: a new task, a polluted or stuck conversation, nearly full context, or rising cost. Carry over what matters in a short handoff note or the instruction file instead of the whole history. · the whole lesson