{
 "url": "https://claude.com/blog/maximizing-the-value-of-your-claude-code-sessions",
 "source": "claude-blog",
 "slug": "claude-blog-2026-08-14-maximizing-the-value-of-your-claude-code-sessions",
 "title": "Maximizing the value of your Claude Code sessions",
 "subtitle": "Practical tips for how to run efficient sessions that get the most value from every token.",
 "date": "2026-08-14T16:00:00+00:00",
 "authors": [],
 "category": "",
 "hero": "https://cdn.prod.website-files.com/68a44d4040f98a4adf2207b6/6a7f1f51730ca89a4d571062_og_maximizing-the-value-of-your-claude-code-sessions.jpg",
 "blocks": [
  {
   "type": "heading",
   "level": 2,
   "text": "TL;DR",
   "html": "TL;DR"
  },
  {
   "type": "list",
   "ordered": false,
   "items": [
    {
     "text": "Run /clear between tasks. This prevents prior irrelevant context from being sent back to the model, which can reduce token usage.",
     "html": "<strong>Run <code>/clear </code>between tasks.</strong> This prevents prior irrelevant context from being sent back to the model, which can reduce token usage."
    },
    {
     "text": "Set your model and effort level before you start. Changing either one mid-conversation can bust your prompt cache, which can increase token cost.",
     "html": "<strong>Set your model and effort level before you start. </strong>Changing either one mid-conversation can bust your prompt cache, which can increase token cost."
    },
    {
     "text": "@-mention files instead of naming them. The file gets attached to your message directly, which saves a Read call, or a search if Claude has to go find it.",
     "html": "<strong>@-mention files instead of naming them. </strong>The file gets attached to your message directly, which saves a Read call, or a search if Claude has to go find it. "
    },
    {
     "text": "Add quiet flags to noisy commands, or run them in a subagent. Command output is added to the conversation just like a file, and stays there for the rest of the session.",
     "html": "<strong>Add quiet flags to noisy commands, or run them in a subagent. </strong>Command output is added to the conversation just like a file, and stays there for the rest of the session."
    },
    {
     "text": "Run /context once in a fresh session. It shows what's loaded ( CLAUDE.md , MCP tool definitions), so you can cut out anything unnecessary.",
     "html": "<strong>Run </strong><strong><code>/context</code></strong><strong> once in a fresh session. </strong>It shows what&#x27;s loaded (<code>CLAUDE.md</code>, MCP tool definitions), so you can cut out anything unnecessary."
    },
    {
     "text": "/compact before you take a break from your keyboard. The prompt cache expires after an hour, and summarizing a conversation is much cheaper while it's still cached.",
     "html": "<strong><code>/compact</code></strong><strong> before you take a break from your keyboard. </strong>The prompt cache expires after an hour, and summarizing a conversation is much cheaper while it&#x27;s still cached."
    }
   ]
  },
  {
   "type": "heading",
   "level": 2,
   "text": "Maximizing value",
   "html": "Maximizing value"
  },
  {
   "type": "paragraph",
   "text": "Until pretty recently, the tools you wrote code with were a flat fee (or free). Your editor cost the same whether you fixed one test or fifty that afternoon, so an individual task didn't really have a price of its own.",
   "html": "Until pretty recently, the tools you wrote code with were a flat fee (or free). Your editor cost the same whether you fixed one test or fifty that afternoon, so an individual task didn&#x27;t really have a price of its own. "
  },
  {
   "type": "paragraph",
   "text": "With agentic coding tools like Claude Code, it does. The same completed task can also cost different amounts depending on how you use it.",
   "html": "With agentic coding tools like Claude Code, it does. The same completed task can also cost different amounts depending on how you use it. "
  },
  {
   "type": "paragraph",
   "text": "In one session, Claude reads the test and the file it covers, makes the edit, and is done in a handful of turns. In another, it greps around the repo first, reads a dozen files on its way to the same two, and every one of those turns also drags along everything else that's been read into the conversation since this morning.",
   "html": "In one session, Claude reads the test and the file it covers, makes the edit, and is done in a handful of turns. In another, it greps around the repo first, reads a dozen files on its way to the same two, and every one of those turns also drags along everything else that&#x27;s been read into the conversation since this morning."
  },
  {
   "type": "image",
   "src": "https://cdn.prod.website-files.com/68a44d4040f98a4adf2207b6/6a7f1946bc7cd69c4c8919db_be236b0d.png",
   "alt": "",
   "caption": "",
   "local": "img/01.png"
  },
  {
   "type": "paragraph",
   "text": "It's the same fix, but you spent a different number of tokens on it, and the whole time the model was also having to think about ten files it didn't need.",
   "html": "It&#x27;s the same fix, but you spent a different number of tokens on it, and the whole time the model was also having to think about ten files it didn&#x27;t need."
  },
  {
   "type": "paragraph",
   "text": "Being efficient with tokens doesn't mean using fewer of them overall. It means making sure the ones you do use go towards the thing you actually asked for.",
   "html": "Being efficient with tokens doesn&#x27;t mean using fewer of them overall. It means making sure the ones you do use go towards the thing you actually asked for."
  },
  {
   "type": "paragraph",
   "text": "So let's look at what decides the price of a token, then what decides how many of them a session sends, and along the way, what that means for how you run a session.",
   "html": "So let&#x27;s look at what decides the price of a token, then what decides how many of them a session sends, and along the way, what that means for how you run a session."
  },
  {
   "type": "heading",
   "level": 2,
   "text": "What decides the price of a token",
   "html": "<strong>What decides the price of a token</strong>"
  },
  {
   "type": "paragraph",
   "text": "You're billed per token, but what you're actually paying for is inference: the time it takes a GPU (or a TPU, or whatever the model happens to be running on) to run the model over your tokens.",
   "html": "You&#x27;re billed per token, but what you&#x27;re actually paying for is inference: the time it takes a GPU (or a TPU, or whatever the model happens to be running on) to run the model over your tokens. "
  },
  {
   "type": "paragraph",
   "text": "Three things decide how much of that time a token takes: which model you're running, whether it's an input token (going in) or an output token (coming out), and whether it was cached.",
   "html": "Three things decide how much of that time a token takes: which model you&#x27;re running, whether it&#x27;s an input token (going in) or an output token (coming out), and whether it was cached."
  },
  {
   "type": "heading",
   "level": 3,
   "text": "Model",
   "html": "Model"
  },
  {
   "type": "paragraph",
   "text": "A bigger model does more work on both input and output tokens. Which model is worth it for which kind of work is a topic on its own, and we covered it in Choosing a Claude model and effort level in Claude Code .",
   "html": "A bigger model does more work on both input and output tokens. Which model is worth it for which kind of work is a topic on its own, and we covered it in <a href=\"https://claude.com/blog/claude-model-and-effort-level-in-claude-code\"><em>Choosing a Claude model and effort level in Claude Code</em></a>. "
  },
  {
   "type": "paragraph",
   "text": "For this post, all you need to know is that everything else we're about to cover gets multiplied by the model's price: use a larger model when the problem is genuinely hard or ambiguous, and a smaller one when the work is routine.",
   "html": "For this post, all you need to know is that everything else we&#x27;re about to cover gets multiplied by the model&#x27;s price: use a larger model when the problem is genuinely hard or ambiguous, and a smaller one when the work is routine."
  },
  {
   "type": "image",
   "src": "https://cdn.prod.website-files.com/68a44d4040f98a4adf2207b6/6a7f1946bc7cd69c4c8919de_da980737.png",
   "alt": "",
   "caption": "Curves are for illustration purposes only. They do not represent real benchmark data.",
   "local": "img/02.png"
  }
 ],
 "links": [
  {
   "text": "Choosing a Claude model and effort level in Claude Code",
   "href": "https://claude.com/blog/claude-model-and-effort-level-in-claude-code"
  }
 ],
 "word_count": 544,
 "fetched_at": "2026-08-21T13:35:51+00:00"
}