StoicBuilder

HandbookIV the PraetoriumStarting a fresh context

IVthe Praetorium, Direct the agent

Starting a fresh context

1 min readUpdated 28 November

In plain words

A long chat makes the agent lose track of early details, so you open a new one and bring a short summary of what matters.

Where you see it

Two hours into a Cursor chat, the agent offers to create the notes table you made in the first ten minutes. Everything it can see at once (your messages, its replies, the files it read) is its context, and it has a size limit. In Claude Code, /clear starts over and /compact shrinks the chat to a summary.

Your promptagent
Before (message 214): it's still not working After, in a new chat: Guildhall, Next.js + Supabase.Goal: members can RSVP to events. We changedEventCard.tsx and rsvp.ts. Still failing: the countstays at 0. Ruled out: the button (it fires).
Five facts in a new chat beat five hundred messages in an old one.

What goes wrong

  1. Staying in a chat that has gone off the rails

    Once a long chat is full of failed attempts, the agent keeps building on them. A clean start with a summary often solves in one reply what forty messages couldn't.

  2. Starting fresh with nothing

    A new chat knows nothing about your app. Bring the summary, the stack and the files that matter, or keep them in a rules file.

  3. Pasting the summary without reading it

    If the summary says the bug is fixed when it isn't, the new chat inherits the mistake. Correct it before you paste it.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Summarise this session for a fresh chat in under 150 words: the goal, what we changed and in which files, what still fails with the exact error, and what we tried that didn't work.

Quick check

Sign in to earn +10 XP for it

After three hours in one chat, the agent has started undoing fixes it made earlier. Best move?

Got a prompt that touches starting a fresh context?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.