200–300K Sessions: The Discipline That Saves Your Quota

Experienced agent users keep a session within 200–300 thousand tokens and never let it sprawl. This is not paranoia but engineering: past that boundary the thread of the work is lost, the price climbs, and the cache dies. Here is how to organize sessions so that the discipline runs by itself.

Why exactly 200–300 thousand

Practitioner observations: up to this boundary the model holds on to tasks, rules, and the connections between steps; beyond it, it starts repeating itself, forgetting instructions, and mixing up classes. The cost of a session grows linearly with length, while quality falls nonlinearly. The intersection of these curves is the operating point.

The second reason is the cache: the cache lives for about five hours from the last touch. Long sessions outgrow the cache window and are billed at full price. Short sessions inside the cache window are the cheapest mode of working with any platform.

Organizing sessions: three rules

  1. One session = one task. Spreading tasks across a single session blends contexts: the model confuses requirements, and the answer for one task contains junk from another. Field cases: “1 chat = 1 video”, “one video at a time” — the same discipline.
  2. Outcomes go into files, not into the context. At the end of a session: “update CLAUDE.md with what we have learned” — the accumulated knowledge moves into the rules file, and the next session starts clean but smart.
  3. A briefing before each new session. A new session receives not the whole history but a digest: the goal, the constraints, the current status. Three paragraphs instead of a hundred thousand tokens.

How to tell that a session has overgrown

  • The model asks again about things already agreed in the same session.
  • Rules from the start of the session stop being followed — a marker of loss.
  • Response speed has dropped and the cost per iteration has grown — the context has swollen.
  • Answers become generic and polite instead of concrete — the model is “drifting”.

A community lifehack is loss markers: a marker greeting at the start and at the end of every answer. If the marker disappears, the agent has lost context instantly, with no need to analyze the text. Cheap diagnostics for an expensive problem.

The standing template of a project’s day

Morning: a new session. The head = [CLAUDE.md + relevant files] — stable all day.
Midday: one task per session; outcomes go into the rules files. The cache stays alive, the cost is minimal.
Evening: the last session of the day — "collect the day's outcomes into CLAUDE.md".
Tomorrow: new sessions with a clean head and accumulated rules.

This rhythm keeps sessions within their bounds, keeps the cache alive, and lets the project’s memory accumulate. The memory architecture (files, skills, hooks) is described in the guide on CLAUDE.md and skills.

Common questions

Is 300K a lot or a little? It is roughly a hundred pages of text. For a single task that is more than enough; if the task does not fit, it is not a session but a project: split it into tasks.

What about giant tasks (parsing a million tokens)? That is not an agent session but a request with a large context: a separate one-off call on a 1M model, with no accumulation of iterations.

How do you count a session’s tokens? The usage field of each iteration is summed; in Claude Code and its analogues the session context is visible in the status line. The alarm threshold is 70% of the limit.

Does compaction solve the problem? Partially: automatic compaction squeezes the history but loses details. Session discipline is more reliable — compaction may become obsolete in new architectures.

How do you move to a new session in the middle of a big task? Finish the current step and ask the agent to produce a digest: the goal, what has been done, open questions, the next step. The digest goes into the opening message of the new session, and the task continues without losing the thread. The old session’s context is discarded entirely — the knowledge has already moved into files.

Do you need to keep the history of old sessions? Instead of context, keep a log file with day-by-day digests: kilobytes instead of hundreds of thousands of tokens, and the fragment you need is loaded selectively. There is no reason to keep the conversation itself — if a detail suddenly becomes necessary, it will be found in the log. Knowledge is not lost in the process: it already lives in the rules files and in the digests.

How is CLAUDE.md different from ordinary project notes? CLAUDE.md is read automatically at the start of every session, so it holds the rules, the conventions, and the current status. Ordinary files are loaded on request — they are a good place for large materials you do not need every day. Do not overload the rules file with details: it should remain a compact head.

Does session length only affect price? No: as the context grows, both speed and accuracy fall — the model takes longer to read the prompt and more often loses the instructions from the beginning. Context that has outgrown the cache window also pays the full rate on every repeated request. A short session wins on all three axes at once: price, speed, quality.

Signals and actions: a response plan

The list of symptoms above becomes a response plan once each signal is paired with a cause and a concrete action. Such a pairing removes the main practical question — “continue the session or start over” — and replaces it with a formal check. The decision is made in seconds and does not depend on mood or on the amount of effort invested in the current session.

SignalDiagnosisAction
The model asks again about something already settled in this sessionThe start of the discussion has been crowded out by volumeClose the session with a digest and start a new one with a briefing
Rules from the start have stopped being followedInstructions lost in the long historyMove the rules into the rules file and restart the session
Answers have become generic and polite instead of concreteThe model is “drifting” without grip on the contextNarrow the task and move it into a separate session
The cost per iteration has grown noticeably at the same volume of tasksThe session has outgrown the cache windowFinish the task; start the next one with a clean head
The context has reached the alarm threshold of 70% of the limitThe working zone is running outCollect the outcomes into files and close the session early
The marker greeting has disappeared from the answerContext lost instantlyDo not analyze the text; start a new session at once

The table also works in reverse: if none of the signals has fired, the session continues — a premature restart also costs briefing effort. Keep the “signal — action” pairs in the rules file next to the day template, and the discipline stops depending on one person’s memory. On a team a shared criterion is especially valuable: a new member immediately works by the same markers and does not stretch sessions “by feel”.

Sessions of 200–300K with memory files instead of a bloated context are the operating point for agents in 2026. The three rules above are the whole system. Practice current as of autumn 2026.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: