How do you hand off a half-finished task from one agent session to the next?
Long tasks often outlive a single session for me, either because the context fills up or because I stop for the day. Starting fresh means the next session repeats work or undoes decisions the last one made.
What I do now is ask the agent to end each session by writing a short handoff note: what's done, what's next, what it tried that didn't work, and any open questions. The next session reads it first.
It helps a lot, but the notes vary in quality. Do you use a template for handoffs, or something more structured like a task file?
Comments · 4
I have the agent write a short handoff note: goal, done, next steps, files touched. The next session starts from that, not from the full history.
Include "what I tried that failed". Without that, the next session repeats the same dead ends.
Do you commit work in progress to version control as part of the handoff? It seems like it would give a clean checkpoint.
Yes, a WIP commit with a clear message works well. The next session can diff against it and see exactly what changed.