StoicBuilder

HandbookIV the PraetoriumGiving context

IVthe Praetorium, Direct the agent

Giving context

1 min readUpdated 28 November

In plain words

Context is the facts the agent can't find in your code: what you were doing, what happened, what you expected, and what you already tried.

Where you see it

You type "the notes don't save" and the agent rewrites the Save button, when the real problem only appears after a refresh. It can read your files, but it can't see your screen, your users or what you tried an hour ago.

Your promptagent
Before: the notes don't save After: In Quill I type a note and click Save.The toast says "Saved", but after a refresh the note is gone.It started after yesterday's editor change.The notes table in Supabase has no new row.
Steps, result, when it started, what you checked: four facts the agent couldn't have guessed.

What goes wrong

  1. Assuming it remembers the last chat

    In Cursor, Claude Code and Codex, a new chat doesn't include the old one. What you explained on Monday is gone on Tuesday unless it's in a rules file or you say it again.

  2. Pasting everything you have

    A 600-line log or the whole codebase buries the one line that matters. Give the few facts that point at the problem, and offer more if it asks.

  3. Leaving out what you already tried

    The agent will suggest clearing the cache, the first thing you tried. Say what you tried and what happened, so it starts from there.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Before changing anything, tell me in three lines what you understand: where the problem happens, what should happen, and what happens instead. Ask me for anything missing rather than guessing.

Quick check

Sign in to earn +10 XP for it

Your agent keeps suggesting fixes you tried yesterday. What's missing from your prompt?

Got a prompt that touches giving context?

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

Check your own prompt

Free, no sign-up.