Documentation

Resume an agent's plan after a compaction or pause

Have an agent write its plan where it outlasts a compaction or a pause, so it picks up where it left off and you can see how far it got.

View Markdown

You're three hours into a refactor when the agent's context fills up. It compacts the conversation, and suddenly it's hazy on what step four was. Or you stop it for the night, and in the morning it starts from whatever it can recall. That's what the note is for: a page beside every agent where it writes its plan down.

Here's how to make the note the agent's working task list, so after a compaction or a pause it carries on from the plan it wrote, not from memory.

What an agent's note holds and how long it lasts

Every agent session Rundesk stores has one markdown note, empty until written. It shows in the Notes tab above the agent, beside its Agent tab, where you read and edit it while the agent works.

  • It outlasts a compaction, a stop, a resume and a restart of Rundesk. A resume finds it as it was left.
  • Only you and that session's own agent change it. Other agents may read it, with the Agents: View permission.
  • It goes when you archive the session, five seconds after you archive it, once Undo is gone.
  • It holds at most 256 KB, and never a secret.

Each scheduled run starts with an empty note of its own, and a schedule also has one note shared by all its runs; Run a recurring review shows how that note carries what one run learns to the next.

Rundesk's instructions already tell agents launched with its tools to read their note when they start, resume or come back from a compaction. They also tell agents to write there what you asked and decided, their plan as a - [ ] task list they tick off, and their progress, replacing what is stale. On a task you care about, ask for it outright so the agent does it from the first step.

Ask the agent to work from its note

  1. Start an agent from + beside Agents.
  2. Paste the task with the instruction below, or add the instruction to a task you already gave.
  3. Open the Notes tab now and then to see the plan and what is ticked.
Before you change anything, write your plan in your Rundesk note as a "- [ ]" task list, one line per
step, with a short "Decisions" section under it. As you finish each step, tick it and add one line on
what you did or found. When you decide something that is not obvious from the code, add it under
Decisions with the reason. Replace what is stale rather than adding to it. If you compact, are
resumed, or lose track, read the note first and carry on from the first unticked step.

The agent changes one part of the note at a time, so ticking a box never rewrites the rest. A change it makes shows in your open note at once. If you are typing in the note at that moment, Rundesk merges the agent's change with your next save.

Steer an agent by editing its note

You can edit an agent's note as well as the agent can. A note with something in it opens locked, for reading and copying; hold the Hold to unlock pill for a second, or press Space or Enter on it, to edit. You can:

  • reorder or cut steps before the agent reaches them;
  • add a step, or a decision you have made for it;
  • write what you found while it was working.

The note saves itself a second after your last change. If you and the agent changed the same lines, the note says so and you choose Discard my changes or Save mine over it. Then tell the agent in its terminal that you changed the plan.

What to do after a compaction

Compaction happens inside the agent. In Rundesk the agent's row stays as it was, since a compaction ends no turn. The plan it wrote down is still in its note. If the agent seems to have forgotten the plan, paste:

Read your Rundesk note and carry on from the first unticked step.

Stop an agent and resume it later

  1. Press ⌘W (Ctrl+Shift+W on Windows), or Stop, on the agent. Its row stays, stopped, with its last screen.
  2. Quit Rundesk if you like. At the next launch every stored agent is listed stopped, and none resumes until you ask.
  3. Open the agent and read its Notes tab to see where it stopped.
  4. Press Resume, or Enter, since the button holds focus. The same conversation reopens.
  5. Tell it to carry on:
Read your Rundesk note and carry on from the first unticked step.

The stopped view shows the command it resumes with, under Resumes the conversation with, or, when it cannot resume, the one it starts afresh with, under Starts a new conversation with.

In the footer under the agent, a green check, Session ID stored, means Rundesk has stored the agent's conversation ID, so Resume can reopen it. An amber unplug, No session ID yet, so you can't resume this agent, means Resume would start a new conversation.

A session with no conversation ID, or a Claude conversation that is gone, starts afresh in the same row on Resume. Paste the resume line from step 5 and it starts from the note.

Save what you need before you archive an agent

Archive takes the row away at once, with Undo for five seconds; after that the session and its note are gone. The conversation remains in the agent's own history, which only its resume reaches. If the note holds something worth having, copy it out first, or ask the agent to write it into the project, such as a page in its docs.