Give Me 14 Mins and I'll Save You Millions of Claude Tokens — Transcript
Full transcript
- 0:00Everybody says you need GitHub repos,
- 0:02extra add-ons, or a long list of hacks
- 0:04to save tokens, but really you don't.
- 0:07Anthropic already built Claude code to
- 0:09save you tokens, and Claude code gets
- 0:11better at cutting your costs with each
- 0:13new release. But, there are four things
- 0:16that are quietly costing you money, and
- 0:18you're probably doing them right now.
- 0:20I'll show you all four and the best ways
- 0:23to get the most out of your Claude plan
- 0:25or your API usage. And at the end, I'll
- 0:27show you the one number that tells you
- 0:29if any of it is actually working. First,
- 0:32one word because it matters for this
- 0:34whole video. That word is tokens. A
- 0:37token is the unit Claude charges you
- 0:39for, and it's about the size of a short
- 0:41word. On a monthly plan, tokens use up
- 0:44your limit. If you pay per use with an
- 0:45API key, tokens are dollars. So, when I
- 0:48say cost, I mean tokens. So, here's what
- 0:51actually saves you money. If you
- 0:53understand one concept from this video,
- 0:55make it this because it's the base for
- 0:57everything else. The longer your chat
- 1:00runs, the more every new message costs.
- 1:03So, the fix is to start a fresh chat for
- 1:05each new job. Type /clear, and Claude
- 1:08code wipes your chat so you start at
- 1:10zero. Clearing costs you nothing. If you
- 1:13want [snorts] your old chat back later,
- 1:14just rename it by typing /rename. Then
- 1:17you can find it in the sidebar and open
- 1:19it up again. So, here's how Claude code
- 1:22actually works and why a fresh chat
- 1:24saves you money. It comes down to one
- 1:27fact about Claude. Claude is like a
- 1:29brilliant contractor with total amnesia.
- 1:32It doesn't remember anything between
- 1:34messages. So, every time you send a
- 1:36message, you're really sending the whole
- 1:38thread from your first message to your
- 1:40newest one. Claude reads the whole
- 1:42thread, answers, and forgets it all
- 1:44again. Everything Claude reads on each
- 1:47message is called the context, and that
- 1:49reading is what you pay for. So, a
- 1:51longer thread means more reading and
- 1:54more tokens on every message. That's why
- 1:56your chat gets more expensive the longer
- 1:58it runs. And a file Claude reads early
- 2:02stays in the thread, so you pay for it
- 2:04again on every message after. That's why
- 2:06you clear your chat or make a new one
- 2:08when you start a new job. All that
- 2:10reading sounds expensive, but Claude
- 2:13Code has a trick to keep that reading
- 2:14cheap, and it's called the cache. A
- 2:17cache is just short-term memory. Most of
- 2:19your chat hasn't changed since your last
- 2:21message. So, the cache remembers what
- 2:24Claude Code already read, and it only
- 2:26has to read your new message. Reading
- 2:29from the cache costs a tenth of the
- 2:31normal price or less. But, here's the
- 2:34catch. The cache only remembers your
- 2:37chat as long as nothing changes. Change
- 2:40something like switching to a different
- 2:42model, and Claude Code has to read your
- 2:44whole chat from scratch again at full
- 2:47price. And the cache doesn't last
- 2:49forever. On a monthly plan, it forgets
- 2:52after about an hour. If you pay per use
- 2:55or you're using extra credits you
- 2:57bought, it forgets after 5 minutes.
- 3:00Anthropic cares about this a lot. In
- 3:03their own write-up on building Claude
- 3:05Code, they say their engineers get an
- 3:07alert when the cache isn't being used
- 3:10enough, and they treat that alert as an
- 3:12emergency the same way they would if
- 3:14Claude Code went down. But, the cache
- 3:17isn't the only way Claude Code keeps
- 3:19your reading light. Here are the other
- 3:20tricks one at a time. The first trick is
- 3:23connectors. A connector is how Claude
- 3:26plugs into an app like Slack or GitHub.
- 3:29Each connector comes with a long list of
- 3:31instructions for how to use it. Claude
- 3:33Code doesn't load all of that at the
- 3:35start. It loads just the connector's
- 3:37name, and it pulls in the rest only when
- 3:40Claude actually uses it. So, click the
- 3:42plus, then connectors, and browse for
- 3:44existing connectors to your most
- 3:46frequently used platforms. There's a lot
- 3:48of them. The second trick is how Claude
- 3:51handles really long results. Sometimes
- 3:54Claude gets back a giant wall of text
- 3:56like when it checks its own work. Claude
- 3:58code cuts off the long ones and saves
- 4:00the full thing in a separate file that
- 4:03Claude can open if it needs it. And the
- 4:05third trick is helper chats called
- 4:08sub-agents. For a big messy job, Claude
- 4:10code can start a helper that does the
- 4:12messy work on its own. Only a short
- 4:15summary comes back to your chat, but
- 4:17helpers cost tokens, too, so they're
- 4:19only worth it for big jobs.
- 4:22So, Claude code is already working to
- 4:24keep your reading cheap. Your job is to
- 4:27stop undoing it. And the first thing
- 4:29that undoes it is a command you've
- 4:31probably typed thinking you were saving
- 4:33money. So, trap one is treating compact
- 4:36like a diet. So, picture one chat.
- 4:39You're building a landing page and 90
- 4:42minutes in you're at message 60 and it's
- 4:44slow. So, you try a command called
- 4:47{slash} compact. Here's what {slash}
- 4:49compact is supposed to do. It takes your
- 4:51whole chat, writes a short summary of
- 4:53it, and replaces the chat with that
- 4:55summary. Everybody says that shrinks the
- 4:57chat, so it must shrink the bill. But
- 4:59does {slash} compact actually save you
- 5:01money? So, here's what happens. To write
- 5:04the summary, Claude has to read the
- 5:06entire chat one more time. And that read
- 5:09is an extra request. Then, the summary
- 5:11replaces your chat. It's like asking
- 5:13your assistant for meeting minutes.
- 5:15Somebody has to read the whole
- 5:17transcript to write them. The minutes
- 5:20are short, but the reading already
- 5:21happened. If the cache is fresh, that
- 5:24extra read is cheap, but if the cache
- 5:26expired, you pay full price for it, and
- 5:28the summary starts a new cache from
- 5:30scratch. So, what is {slash} compact
- 5:33actually good for? Making room. [snorts]
- 5:35There are two times it makes sense. One
- 5:37is when your chat is almost full and
- 5:39you're in the middle of a job you can't
- 5:40restart. Claude can only hold so much at
- 5:43once, so something has to get cut down.
- 5:45The other is when you're deep into a
- 5:46long project and about to move on to the
- 5:49next part of it. You can [snorts]
- 5:50actually tell {slash} compact what to
- 5:52keep, like {slash} compact keep the plan
- 5:55and the file names. If your next job has
- 5:57nothing to do with this one, {slash}
- 5:59clear is the better move. Either way,
- 6:01saving money isn't what compact is for.
- 6:04You pay for one big read right now and
- 6:06the next messages are cheap only if you
- 6:08keep going on the same job. It can also
- 6:11lose small instructions you gave early
- 6:13on, so check that Claude still remember
- 6:15remembers the important ones. Claude
- 6:16Code also compacts on its own when your
- 6:19chat gets close to full, so you don't
- 6:21need to baby sit it. So, if you're done
- 6:23with the job, use {slash} clear. And if
- 6:26Claude takes a wrong turn, don't type
- 6:27that didn't work, type {slash} rewind
- 6:30and Claude Code takes the chat back to
- 6:32before the wrong turn. And when your job
- 6:34isn't done, but your chat is heavy,
- 6:36there's a third option and it's my
- 6:38favorite, a handoff doc. Ask Claude to
- 6:41write a thorough file that covers your
- 6:43goal, what's done, what's left, the
- 6:45decisions you made, and what didn't
- 6:47work. Then run {slash} clear and tell
- 6:50your new chat to read that file. That
- 6:52costs about as much as compact or a
- 6:54little more because Claude has to read
- 6:56your chat and write the doc, but you get
- 6:58to read the doc and fix it first. You
- 7:00decide exactly what survives and you can
- 7:03keep it for next week. But there's a
- 7:04problem. There's actually a clock
- 7:06running behind every chat that can wipe
- 7:09out all of this and you've probably
- 7:11never seen it. Trap number two is the
- 7:13cache expiring. So, that clock is the
- 7:16cache expiring. Let's go back to our
- 7:18landing page example. You've been
- 7:20working on your landing page all morning
- 7:22and you're not finished. So, you go to
- 7:24lunch. When you come back, you ask one
- 7:26tiny question, but what you don't
- 7:29realize is that this message costs more
- 7:31than the last one. But, why? Because the
- 7:34cache expired. So, when it expires, your
- 7:37next message re-reads your entire chat
- 7:40at full price. And after that, the cache
- 7:43is fresh again. Anthropic added a fix
- 7:45for this. Recent versions of Claude code
- 7:48compact a big chat that's been sitting
- 7:49idle for close to an hour right before
- 7:52the cache expires. So, when you come
- 7:53back, Claude code reads the short
- 7:55summary and not the whole chat. That's a
- 7:57good example of Claude code getting
- 7:59better at cutting your costs with each
- 8:01release. But, it's still compact, so it
- 8:04still has to read the whole chat once
- 8:05and it could still lose small details.
- 8:07Another thing that wipes [clears throat]
- 8:09the cache is switching models. So,
- 8:11Claude comes in different models like
- 8:13Opus and Sonnet. Opus is the bigger and
- 8:16more expensive one, and Sonnet handles
- 8:18most jobs for less. The cache is tied to
- 8:21one model, so say you're an hour into a
- 8:23chat on Opus and you switch to Sonnet to
- 8:26save money. Sonnet can't use Opus's
- 8:28cache, so it reads your whole chat from
- 8:30scratch at full price. That's a surprise
- 8:33because switching to a cheaper model
- 8:35sounds like saving. So, pick your model
- 8:37before the job starts and stick with it.
- 8:40There's also a setting that switches
- 8:41models for you. If you type {slash}
- 8:44model Opus plan, all one word, while
- 8:47you're in plan mode, Claude uses Opus,
- 8:49the bigger model, to make the plan. When
- 8:51it's time to build, Claude switches to
- 8:53Sonnet, the cheaper model, to do the
- 8:55building. It's useful, but every switch
- 8:57costs that same one-time read. So, if
- 9:00the job's done when you walk away, clear
- 9:02it, but if the job's not done, a big
- 9:04chat may get compacted or the first
- 9:06message back costs more. The third of
- 9:09the four things quietly costing you
- 9:10money happens before you type a single
- 9:13word. Let me show you what I mean. Trap
- 9:15three is what's already loaded. So, you
- 9:17open a fresh chat and you type "Hi."
- 9:20But, what you don't realize is that a
- 9:21big file just got loaded into your
- 9:23contacts automatically. That file is
- 9:26Claude.md, which is the file Claude
- 9:28reads at the start of every chat. Say
- 9:30yours is 600 lines of rules. Claude code
- 9:33sends Claude.md with every message, so
- 9:36while the cache is fresh, it's cheap.
- 9:38But every time the cache expires, Claude
- 9:40pays full price to read all 600 lines
- 9:43again. So, Anthropic stocks say to keep
- 9:45Claude.md under 200 lines. The way to do
- 9:48that is to use your Claude.md file like
- 9:51an index. Think of it like a tree.
- 9:53Claude.md is the trunk and it holds only
- 9:56your highest level rules. Each branch is
- 9:59a separate file for one kind of job and
- 10:01Claude.md tells Claude which branch to
- 10:04climb. Or it can point to one index file
- 10:07that lists where everything else lives.
- 10:09Either way, Claude only opens a branch
- 10:11when the jobs needs it. Skills work the
- 10:14same way. A skill is a text file of
- 10:16step-by-step instructions that Claude
- 10:18only opens when it needs them. Until
- 10:21then, just a one-line description is
- 10:23loaded. And skills have a much bigger
- 10:26trick. A skill can also carry a script,
- 10:29which is a small program that does one
- 10:31job. So, say every Monday you pull last
- 10:33week's numbers out of a spreadsheet.
- 10:35Instead of Claude reading every row and
- 10:37working out the totals from scratch, a
- 10:39script adds them up on your computer.
- 10:42Never reads the code, it only sees the
- 10:44result like 42 sales up from 38. That's
- 10:47way more efficient than having Claude
- 10:49write new code and new rules every time.
- 10:52So, once you have a process that works,
- 10:54tell Claude, "Turn this into a skill."
- 10:57You create it once and next time you use
- 10:59it for almost free. The same thing
- 11:01happens with connectors and skills. It's
- 11:03easy to end up with too many of both and
- 11:06each one adds a little to every session.
- 11:09So, type {slash}mcp and turn off the
- 11:12connectors you aren't using. Then type
- 11:14{slash}context, which shows you what's
- 11:16taking up space in your chat. And every
- 11:19so often run the {slash}doctor command,
- 11:21which is a checkup for your setup and it
- 11:23flags problems you can clean up. Next up
- 11:26is the text Claude gets back when it
- 11:28checks its own work. When Claude builds
- 11:30something, it runs tests, which are
- 11:32quick checks that your project still
- 11:34works. A test can print hundreds of
- 11:36lines and most of them just say
- 11:38"passed". Claude Code only cuts results
- 11:41that are much longer than that. So,
- 11:43every one of those lines goes into your
- 11:45chat and gets reread on every message
- 11:47after. The fix is something called a
- 11:49hook, which is a little filter that
- 11:51trims those results before Claude sees
- 11:54them. You don't have to build it
- 11:55yourself, just tell Claude, "Write me a
- 11:57hook that trims test results down to
- 11:59just the failures. The last of the four
- 12:02things quietly costing you money is a
- 12:04default. A default is a setting Claude
- 12:06Code chose for you before you ever
- 12:08opened it, and two of them are quietly
- 12:10making every chat cost more. So, trap
- 12:13four is the default. On a paid plan,
- 12:16Claude Code starts on Opus and thinking
- 12:19is on. Thinking is Claude writing out
- 12:21its reasoning before it answers.
- 12:23Everything Claude reads counts as input
- 12:26and everything Claude writes counts as
- 12:27output. That reasoning counts as output,
- 12:30and output costs five times more than
- 12:32what input does. So, running Opus on
- 12:34every job is like sending your best
- 12:36surgeon to take your temperature. It
- 12:38works, but you're paying for skills the
- 12:40job didn't need. So, pick Sonnet for the
- 12:43build. Type {slash} effort, which is how
- 12:46hard Claude thinks, and pick a low for
- 12:48easy jobs like renaming a file. Switch
- 12:51to plan mode so Claude agrees on a plan
- 12:53with you before it touches anything. And
- 12:55be specific. If you type "fix the bug",
- 12:58Claude scans files to find it, and every
- 13:00file it reads gets added to your chat.
- 13:03But if you type "fix the date bug in the
- 13:05checkout file", it goes straight there.
- 13:07The words you type are a tiny part of
- 13:09what Claude reads, so shorter prompts
- 13:11barely matter. What you point Claude at
- 13:14matters far more. So, that's the four
- 13:16things, and here's the whole thing.
- 13:19Every one of these four things comes
- 13:21from the same place, making Claude
- 13:23reread more than it has to. Compact, a
- 13:26model switch, a long Claude MD, and a
- 13:29lunch break all add reading. So, the
- 13:31goal is simple. Keep the cash working
- 13:34for you. Stay on one model for the whole
- 13:37job, keep going while the cash is fresh,
- 13:40and clear your chat when the job is
- 13:42done. If you pay per use, that window is
- 13:44only 5 minutes, so take your breaks
- 13:46between jobs and not in the middle of
- 13:48one. And skip compact unless you really
- 13:50need the room. But, how do you know any
- 13:53of it is actually working? Well, there's
- 13:55one number that tells you, and it's
- 13:57{slash} usage. It shows you what each
- 14:00chat, sub agent, and connector actually
- 14:03used. So, here's what to do this week.
- 14:06Type {slash} usage today and look at
- 14:08where your tokens went. Then, do the
- 14:10four things. A week from now, type
- 14:12{slash} usage again. On a monthly plan,
- 14:15a lower number means more room before
- 14:16your limit. On an API key, a lower
- 14:18number means a lower bill. That's how
- 14:21you know it worked. If you're building
- 14:22with Claude every day, I co-founded the
- 14:25Claude Code Club. It's $9 a month, and
- 14:26the link's in the description. The
- 14:28cheapest message is the one Claude
- 14:30already remembers.
About this transcript
This page contains the full transcript of Give Me 14 Mins and I'll Save You Millions of Claude Tokens by Duncan Rogoff | Learn Claude Code, generated from the public captions YouTube serves with the video. The transcript has 2,720 words across 379 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.