1 / 2+1
Scope

Specify a line range

Select the relevant range instead of attaching the entire file: make a selection in Cursor and press Cmd+L, or use @file.ts#L120-160. Every line the model reads counts toward your input; if the bug is in a 30-line function, the other 1,170 lines are pure waste.

context ▼▼▼accuracy ▼▼
Scope

Reference it—don't paste it

When you paste terminal output or code into chat, it becomes part of the conversation and is resent on every later turn. An @file reference lets the agent read it only when needed and leaves just a small trace in the history afterward.

context ▼▼accuracy ▲
Scope

Search first, then read

Instead of asking the agent to wander through directories to find a function, have it locate the target with grep or glob. Search results cost a few hundred tokens; exploring a folder can cost thousands. If you already know the location, provide the exact path.

context ▼▼▼accuracy ▲
Scope

Use the exact path

Semantic search can return several file fragments on every call. If you know where the file is, say src/lib/auth/session.ts directly. It is both cheaper and more precise.

context ▼▼accuracy ▲
Scope

Use text for errors

A screenshot of an error can cost several times more tokens than the same information as text, and it is harder for the model to read reliably. Reserve images for visual or layout issues; copy the text for errors.

context ▼▼accuracy ▲
Session

Combine related turns

Group three related fixes into one message. Every additional turn rebills all the context accumulated up to that point.

turn ▼accuracy ▼
Session

Skip filler turns

Even a one-word message resends the entire conversation history. Skip empty approval and thank-you turns; send messages that carry useful information.

turn ▼
Prompts

Constrain the output format

Output tokens usually cost more than input tokens. Ask only for the changed section, file names, or final decision. Otherwise, the model may explain in prose everything it just did in code.

output ▼▼▼accuracy ▼