StoicBuilder

HandbookIV the PraetoriumPointing at the right files

IVthe Praetorium, Direct the agent

Pointing at the right files

1 min readUpdated 28 November

In plain words

When you name the file that holds the thing you want changed, the agent edits that file instead of guessing and changing the wrong one.

Where you see it

Typing @ in Cursor or Claude Code attaches a file; in Lovable you can click an element in the preview to point at it. Ask Quill's agent for "a bigger Save button" without either, and it may resize the one in Settings instead of the one in the editor.

Your promptagent
Before: make the save button bigger After: In src/components/NoteEditor.tsx, make the Savebutton the same size as the Cancel button next to it.Ask before editing any other file.
A file name turns a search into a direct instruction.

What goes wrong

  1. Letting the agent guess between look-alike files

    Many apps have two of something: an old Header and a new one, a mobile nav and a desktop nav. The agent picks one, and it may be the one nobody sees.

  2. Attaching half the project

    Twenty files in the chat bury the one that matters and fill up the agent's working memory. Attach the file to change and the one or two it depends on.

  3. Naming a file you haven't checked

    If you're not sure where something lives, say so. Ask the agent to find it and report back before it edits anything.

    Which file renders the pricing table? Don't change anything yet.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Before editing, tell me which file renders this and how you know. Change only that file unless you ask me first.

Quick check

Sign in to earn +10 XP for it

You asked for a new logo in the header. The agent says it's done, but nothing changed on screen. Likely cause?

Got a prompt that touches pointing at the right files?

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

Check your own prompt

Free, no sign-up.