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 5 of 6

Handoff note, then a clean start

builds on: Why long sessions degrade, Cost and usage limits, Project instruction files: purpose and contents
Keep the note short and specific. Exact names, values and the reason something failed are what a fresh session cannot work out on its own.
▸ You: Write a handoff note, max 8 lines:
goal, done, failed + why, open issues, next, files.
◂ Agent: Goal: export orders as CSV.
Done: export_csv() in src/export.py, uses csv.writer
Failed: joining with commas broke names containing commas
Open: dates print 2024-1-5, need ISO 2024-01-05
Next: fix dates, then run pytest
Files: src/export.py, tests/test_export.py
▸ You: /clear
▸ You: <pasted note> Continue from Next.
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.
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.
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