Skip to content
Guides

House-train your context window

Where long threads leak, and the habits that stop it well before the window fills.

By Priya Kapoor 14 min read 9 comments
Treats from the Context Window. October 3.

If the answer surprises you, the prompt was probably ambiguous. The window is large, but attention is still finite, so the important parts go near the end. When a thread wanders, I ask Claude to list what we agreed so far before going on. Read this guide in any order; each section stands on its own. Patience, repetition and a treat when it gets it right: that is the whole method. If I would not hand the context to a new colleague, I should not hand it to Claude either.

The examples in this post come from my own week, lightly edited. Project files are for things that rarely change; the conversation is for the work. Quotes with page numbers make every claim easy to check. Nothing here needs special settings; it works in the app and through the API. Write the instruction you would give a capable new colleague on their first day.

Starting fresh without losing anything

Long threads leak in predictable places: old decisions, half-finished tangents and pasted logs. A clear goal turns a long answer into a useful one. If I would not hand the context to a new colleague, I should not hand it to Claude either. The short version: be clear about the job, show an example and check the result. The examples in this post come from my own week, lightly edited.

Quotes with page numbers make every claim easy to check. Memory is a convenience, not a filing system; the important facts still live in files. An agent that takes many steps needs a clear stopping rule more than a clever plan. Try it on one real task today and see what changes. The window is large, but attention is still finite, so the important parts go near the end.

Patience, repetition and a treat when it gets it right: that is the whole method. Testing on real tasks beats testing on toy examples every single time. Checkpoints keep a long task honest: after each one, Claude restates what is done and what is next. If the answer surprises you, the prompt was probably ambiguous. The examples in this post come from my own week, lightly edited. Every guide here ends with a short checklist you can copy into your own notes. When a thread wanders, I ask Claude to list what we agreed so far before going on.

Big documents work best when Claude reads them with a specific question in mind. I summarize in stages: each chapter first, then the summaries, then the question I actually have. Every guide here ends with a short checklist you can copy into your own notes. This is the part I wish someone had told me in my first week. I keep every version, because the failures teach more than the wins. If the answer surprises you, the prompt was probably ambiguous. Testing on real tasks beats testing on toy examples every single time.

If I would not hand the context to a new colleague, I should not hand it to Claude either. An agent that takes many steps needs a clear stopping rule more than a clever plan. Most of the improvement came from removing things, not adding them. Checkpoints keep a long task honest: after each one, Claude restates what is done and what is next. Testing on real tasks beats testing on toy examples every single time.

Where it goes wrong

The window is large, but attention is still finite, so the important parts go near the end. Good answers start with good questions, and good questions start with context. Try it on one real task today and see what changes. Memory is a convenience, not a filing system; the important facts still live in files. Starting a fresh conversation with a good handover note beats dragging an old one along.

Small, checkable steps are easier to trust than one big leap. A summary is only useful if it keeps the decisions, not just the topics. Most of the improvement came from removing things, not adding them. Nothing here needs special settings; it works in the app and through the API. Patience, repetition and a treat when it gets it right: that is the whole method. Every guide here ends with a short checklist you can copy into your own notes. Memory is a convenience, not a filing system; the important facts still live in files.

Memory is a convenience, not a filing system; the important facts still live in files. Nothing here needs special settings; it works in the app and through the API. A summary is only useful if it keeps the decisions, not just the topics. The details matter less than the habit of checking the result. Quotes with page numbers make every claim easy to check.

Most of the improvement came from removing things, not adding them. An agent that takes many steps needs a clear stopping rule more than a clever plan. Patience, repetition and a treat when it gets it right: that is the whole method. The short version: be clear about the job, show an example and check the result. Every guide here ends with a short checklist you can copy into your own notes. Small, checkable steps are easier to trust than one big leap.

The details matter less than the habit of checking the result. If the answer surprises you, the prompt was probably ambiguous. I summarize in stages: each chapter first, then the summaries, then the question I actually have. When a thread wanders, I ask Claude to list what we agreed so far before going on. Project files are for things that rarely change; the conversation is for the work.

Read this guide in any order; each section stands on its own.

A colleague, over coffee

Set up before you start

Checkpoints keep a long task honest: after each one, Claude restates what is done and what is next. Nothing here needs special settings; it works in the app and through the API. Quotes with page numbers make every claim easy to check. This is the part I wish someone had told me in my first week. I keep a plain-text file of decisions that travels from conversation to conversation. Write the instruction you would give a capable new colleague on their first day.

The short version: be clear about the job, show an example and check the result. If I would not hand the context to a new colleague, I should not hand it to Claude either. Long threads leak in predictable places: old decisions, half-finished tangents and pasted logs. Big documents work best when Claude reads them with a specific question in mind. This is the part I wish someone had told me in my first week.

Tool descriptions are prompts too, and vague ones pick the wrong tool. Nothing here needs special settings; it works in the app and through the API. Starting a fresh conversation with a good handover note beats dragging an old one along. A clear goal turns a long answer into a useful one. I summarize in stages: each chapter first, then the summaries, then the question I actually have. An agent that takes many steps needs a clear stopping rule more than a clever plan. Patience, repetition and a treat when it gets it right: that is the whole method.

Big documents work best when Claude reads them with a specific question in mind. A clear goal turns a long answer into a useful one. Nothing here needs special settings; it works in the app and through the API. Most of the improvement came from removing things, not adding them. Tool descriptions are prompts too, and vague ones pick the wrong tool. Quotes with page numbers make every claim easy to check. This is the part I wish someone had told me in my first week.

A summary is only useful if it keeps the decisions, not just the topics. When a thread wanders, I ask Claude to list what we agreed so far before going on. Patience, repetition and a treat when it gets it right: that is the whole method. The details matter less than the habit of checking the result. Tool descriptions are prompts too, and vague ones pick the wrong tool.

The routine, step by step

An agent that takes many steps needs a clear stopping rule more than a clever plan. A summary is only useful if it keeps the decisions, not just the topics. Testing on real tasks beats testing on toy examples every single time. Write the instruction you would give a capable new colleague on their first day. Tool descriptions are prompts too, and vague ones pick the wrong tool. If the answer surprises you, the prompt was probably ambiguous. Quotes with page numbers make every claim easy to check.

Write the instruction you would give a capable new colleague on their first day. The window is large, but attention is still finite, so the important parts go near the end. Checkpoints keep a long task honest: after each one, Claude restates what is done and what is next. I keep a plain-text file of decisions that travels from conversation to conversation. Long threads leak in predictable places: old decisions, half-finished tangents and pasted logs. Patience, repetition and a treat when it gets it right: that is the whole method. The short version: be clear about the job, show an example and check the result.

Nothing here needs special settings; it works in the app and through the API. Memory is a convenience, not a filing system; the important facts still live in files. I learned this the slow way, so you can learn it the quick way. I keep a plain-text file of decisions that travels from conversation to conversation. An agent that takes many steps needs a clear stopping rule more than a clever plan.

The details matter less than the habit of checking the result. I keep every version, because the failures teach more than the wins. The window is large, but attention is still finite, so the important parts go near the end. Testing on real tasks beats testing on toy examples every single time. This is the part I wish someone had told me in my first week. Checkpoints keep a long task honest: after each one, Claude restates what is done and what is next.

If I would not hand the context to a new colleague, I should not hand it to Claude either. Tool descriptions are prompts too, and vague ones pick the wrong tool. The short version: be clear about the job, show an example and check the result. I keep every version, because the failures teach more than the wins. Small, checkable steps are easier to trust than one big leap.

  1. Testing on real tasks beats testing on toy examples every single time
  2. Starting a fresh conversation with a good handover note beats dragging an old one along
  3. Memory is a convenience, not a filing system; the important facts still live in files
  4. This is the part I wish someone had told me in my first week

Common mistakes

Most of the improvement came from removing things, not adding them. Memory is a convenience, not a filing system; the important facts still live in files. I keep every version, because the failures teach more than the wins. If I would not hand the context to a new colleague, I should not hand it to Claude either. Big documents work best when Claude reads them with a specific question in mind.

Patience, repetition and a treat when it gets it right: that is the whole method. Most of the improvement came from removing things, not adding them. I learned this the slow way, so you can learn it the quick way. This is the part I wish someone had told me in my first week. I summarize in stages: each chapter first, then the summaries, then the question I actually have. I keep a plain-text file of decisions that travels from conversation to conversation. Project files are for things that rarely change; the conversation is for the work.

A summary is only useful if it keeps the decisions, not just the topics. Starting a fresh conversation with a good handover note beats dragging an old one along. Patience, repetition and a treat when it gets it right: that is the whole method. I learned this the slow way, so you can learn it the quick way. The details matter less than the habit of checking the result.

Big documents work best when Claude reads them with a specific question in mind. I summarize in stages: each chapter first, then the summaries, then the question I actually have. The details matter less than the habit of checking the result. Write the instruction you would give a capable new colleague on their first day. I keep a plain-text file of decisions that travels from conversation to conversation.

Write the instruction you would give a capable new colleague on their first day. Project files are for things that rarely change; the conversation is for the work. The examples in this post come from my own week, lightly edited. I learned this the slow way, so you can learn it the quick way. Long threads leak in predictable places: old decisions, half-finished tangents and pasted logs.

A worked example

I keep a plain-text file of decisions that travels from conversation to conversation. Big documents work best when Claude reads them with a specific question in mind. Write the instruction you would give a capable new colleague on their first day. The window is large, but attention is still finite, so the important parts go near the end. Tool descriptions are prompts too, and vague ones pick the wrong tool.

A summary is only useful if it keeps the decisions, not just the topics. Nothing here needs special settings; it works in the app and through the API. Most of the improvement came from removing things, not adding them. A clear goal turns a long answer into a useful one. Starting a fresh conversation with a good handover note beats dragging an old one along.

Most of the improvement came from removing things, not adding them. Starting a fresh conversation with a good handover note beats dragging an old one along. Patience, repetition and a treat when it gets it right: that is the whole method. The details matter less than the habit of checking the result. Tool descriptions are prompts too, and vague ones pick the wrong tool. Try it on one real task today and see what changes. Quotes with page numbers make every claim easy to check.

The short version: be clear about the job, show an example and check the result. An agent that takes many steps needs a clear stopping rule more than a clever plan. Quotes with page numbers make every claim easy to check. Long threads leak in predictable places: old decisions, half-finished tangents and pasted logs. Small, checkable steps are easier to trust than one big leap. If the answer surprises you, the prompt was probably ambiguous.

I summarize in stages: each chapter first, then the summaries, then the question I actually have. Most of the improvement came from removing things, not adding them. Starting a fresh conversation with a good handover note beats dragging an old one along. A clear goal turns a long answer into a useful one. Every guide here ends with a short checklist you can copy into your own notes. The details matter less than the habit of checking the result. When in doubt, ask Claude what it understood before it starts.

A checklist to keep

  • Project files are for things that rarely change; the conversation is for the work
  • Good answers start with good questions, and good questions start with context
  • The examples in this post come from my own week, lightly edited
  • When in doubt, ask Claude what it understood before it starts
  • Testing on real tasks beats testing on toy examples every single time

Written by Priya Kapoor

Priya runs prompt evaluations for a support team and tests every tip on real tickets before it reaches the blog.

More from Priya

9 comments

  1. Kim Tran

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Kim Tran
  2. Aisha Noor

    I tried this on our support macros and the replies got noticeably shorter. In a good way.

    Reply to Aisha Noor
  3. Kim Tran

    I tried this on our support macros and the replies got noticeably shorter. In a good way.

    Reply to Kim Tran
    1. Jo Rivera

      It should, as long as the examples are in the same language as the task.

      Reply to Jo Rivera
  4. Priya K.

    The checklist at the end is going straight into our team wiki.

    Reply to Priya K.
  5. Kim Tran

    I disagree a little on temperature, but the rest is spot on.

    Reply to Kim Tran
    1. Oskar Lind

      It should, as long as the examples are in the same language as the task.

      Reply to Oskar Lind
  6. Rosa Diaz

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Rosa Diaz
  7. Hannah Lee

    How long did the testing take before you trusted it?

    Reply to Hannah Lee

Leave a comment

Your email is never shown. Comments are read before they appear.