КАК ЭКОНОМИТЬ ТОКЕНЫ в Claude Code и ChatGPT — контекстное окно и промпты с нуля (2026) — Transcript
Full transcript
- 0:00Yeah. Hello, AI entrepreneurs. In
- 0:04general, today I'd like to talk about a
- 0:06very important topic. And, by the way,
- 0:08surprisingly few people talk about this
- 0:10, even though there are so many videos
- 0:12on the internet. But nobody talks about
- 0:15what tokens actually are. Tokens in
- 0:18Claude, tokens in ChatGPT, and any
- 0:21other artificial intelligence. So let's
- 0:25finally figure out what they really are
- 0:27. Because without understanding the
- 0:31unit economics, it will be impossible
- 0:32to get any effective responses to our
- 0:34requests later. And to avoid beating
- 0:37around the bush, let's start from the
- 0:39very beginning. Let's imagine that one
- 0:41token is one piece of LEGO. They can
- 0:44even be different colors; it doesn't
- 0:45matter. For us, the most important
- 0:47thing is understanding the analogy of
- 0:49how this happens. It turns out that
- 0:51when we type a certain prompt into a
- 0:53dialog box, we are filling in specific
- 0:55characters that our artificial
- 0:57intelligence will later have to break
- 0:59down into those very small LEGO bricks.
- 1:02This is called tokenization. To better
- 1:05understand this process, I made this
- 1:07special widget for this video. Let's
- 1:10take a look at it. This widget clearly
- 1:12shows what tokenization is. So, let's
- 1:15type in the following text as an
- 1:17example. Hello, world. My name is Vlad
- 1:22Vugan. What did we just see? It turns
- 1:27out that it broke our words down into
- 1:30those small cubes, the very same LEGO
- 1:32pieces. And we ended up with exactly 11
- 1:35of them. An interesting point. It turns
- 1:39out that since our Russian language has
- 1:41very complex words for programming, and
- 1:44since developers most often use English
- 1:46, our language is the most expensive
- 1:49and uses the most tokens. The same
- 1:53thing probably happens for the French,
- 1:55because they have some words where
- 1:57letters repeat up to four times, which
- 1:59is why these languages are not entirely
- 2:01cost-effective for this program. After
- 2:05our words have turned into blocks, now
- 2:08they need to be turned into a language
- 2:10that the Anthropic processor
- 2:12understands. To do this, we click on
- 2:15this button, which is called "in
- 2:16numbers". This is that very language.
- 2:19This is the second stage that the
- 2:21processor understands. After the
- 2:23processor has analyzed your entire
- 2:26prompt, it provides an answer in these
- 2:28exact same numbers. And now these
- 2:30numbers just need to be decoded back
- 2:33into our words. So now we click "decode
- 2:36". And this is the third stage, where
- 2:40the words are reassembled. And this is
- 2:44what we get. Hello, world, exclamation
- 2:46mark. My name is, etc., Vlad Vugan, and
- 2:50exclamation mark. That is how
- 2:54tokenization happens. Our dialog window
- 2:57, where we enter our prompt, we will
- 2:59represent it as an empty box. It turns
- 3:02out that when we write some text, we
- 3:04are putting words into this box. After
- 3:06we have filled it, we now have to send
- 3:08it to the artificial intelligence to be
- 3:10understood. But, but, but there are
- 3:14limits. Where do these limits come from
- 3:16? To understand this, let's represent
- 3:19our chat as an ordinary room that has a
- 3:22door on your side and a door opposite
- 3:24where the artificial intelligence
- 3:27enters. Inside this room, uh, there is
- 3:30a certain limit from floor to ceiling,
- 3:33from one wall to the other. Exactly
- 3:36200,000 tokens. That is, it is
- 3:39impossible to load anything more than
- 3:42200,000 tokens here. And so it turns
- 3:45out that our chat is indeed that very
- 3:48limiter, in effect, as a room in which
- 3:51you cannot put more than 200,000 of
- 3:53these tokens, these LEGO bricks. And
- 3:57each time, the larger the box of
- 3:59various tokens you send, the more space
- 4:02you occupy. What happens now? After you
- 4:07have written a prompt, come to the
- 4:10middle of the room, and placed this box
- 4:12with ready-made LEGO pieces, the
- 4:15artificial intelligence comes in from
- 4:17the other side, accepts the box, reads
- 4:20it, and brings you a similar box in
- 4:22response. And thereby, it also fills up
- 4:27the space. What does this mean? That
- 4:30for effective action, you need to
- 4:33create such high-quality prompts that
- 4:37the number of tokens doesn't end up
- 4:40clogging all this space. And the
- 4:44quality of the prompt should be such
- 4:46that it immediately provides steps
- 4:48ahead for what you wish to do, rather
- 4:51than saying, "Oh, do this for me now,
- 4:53and then when you've done that, I'll
- 4:56order some more actions from you." For
- 4:59this, it is better to consistently
- 5:01describe, step by step, what you expect
- 5:03from the artificial intelligence. In
- 5:06doing so, in its response, it will
- 5:07bring a box of the same size in which
- 5:09you will receive almost everything at
- 5:11once. Later on, by filling this space
- 5:15further, you can detail any nuances
- 5:18that you would like to improve in its
- 5:22answers. I would like to pause here. In
- 5:26this room, there is such a concept as
- 5:28understanding context. Everyone talks
- 5:31about it, and they somehow try to link
- 5:34them—contexts, tokens, everything.
- 5:36What is this context? Every time you
- 5:39ask the next question, you have brought
- 5:41the first box, brought the second box,
- 5:43brought the third box. And now you are
- 5:46bringing the fourth box. And before
- 5:50giving any answer, the artificial
- 5:52intelligence begins to analyze all
- 5:54those previous three boxes. It
- 5:57literally goes into every box, looking
- 5:59through every piece of LEGO to
- 6:00understand what is being discussed. And
- 6:04then suddenly, after four boxes talking
- 6:06about the topic of nature, for example,
- 6:09you come along and say, "Bring in a box
- 6:11.""And how do you pickle cucumbers?"
- 6:14You bring in a completely different
- 6:16type of box, for instance, a red one.
- 6:19Well, now the artificial intelligence
- 6:21starts to study all these points, but
- 6:22it goes through all those four boxes.
- 6:25We were talking about nature, and then
- 6:26suddenly there's a question about
- 6:28pickled or perhaps salted cucumbers.
- 6:29What is it supposed to do now? And
- 6:32because of this, the artificial
- 6:33intelligence starts to hallucinate
- 6:35because it doesn't understand what is
- 6:37being discussed, since you were just
- 6:39talking about nature, but it might give
- 6:41you an answer in the context of what
- 6:42you were talking about in those four
- 6:44boxes. If it’s nature and cucumbers
- 6:47are involved here, then it might link
- 6:49something together like: "What if you
- 6:51sprinkle salt on the cucumber beds so
- 6:53they are pickled right away?" It can
- 6:56come up with nonsense like that because
- 6:57it might have read something similar
- 6:59somewhere in one of the blocks. What
- 7:01comes of this? That it is impossible to
- 7:04work with 200,000 tokens while setting
- 7:08certain different topics or different
- 7:11contexts. Therefore, if you are looking
- 7:15into, if you are trying to figure out a
- 7:17specific point, try to set the exact
- 7:20pace, rhythm, context, and topic that
- 7:22you need to break down from start to
- 7:25finish, all while tracking your tokens
- 7:27so you don't exceed the 200,000 token
- 7:29limit. But there are certain nuances,
- 7:34such as, for example, with OpenAI, with
- 7:36ChatGPT, this room has windows. If
- 7:40Claude doesn't have these windows,
- 7:42meaning it’s 200,000 tokens and
- 7:43that's it, the limit is reached, it
- 7:45just says: "That's it, nothing more is
- 7:47possible, I won't answer you anything,
- 7:49start a new chat." Then ChatGPT does
- 7:52have windows. This means that every
- 7:56time you load a new box, the topic that
- 7:58was there before might fall out of the
- 8:01windows. And the next time, thinking
- 8:03that, well, I already told it about
- 8:05this, you ask the question, but it’s
- 8:07as if it doesn’t know it because it
- 8:09just automatically deleted it. What
- 8:11should you do in such cases now? And
- 8:14for this, if you are using Cursor—
- 8:17which is likely why you are watching
- 8:20this video—you should enter the
- 8:23following prompt, which I recommend
- 8:26adding to your Cursor settings. This
- 8:30prompt will help you track your tokens
- 8:32in every window, in every chat. That is
- 8:35, it will show you the number of tokens
- 8:38that have already been used. So you can
- 8:40always monitor these moments. But I
- 8:43want to add some more interesting
- 8:45nuances regarding Cursor. Cursor code.
- 8:49While the web version gives us 200,000
- 8:53tokens, Cursor has a context limit of
- 8:56up to a million tokens. What does that
- 9:00mean? It means a larger room, more
- 9:02space where you can maintain a much
- 9:04longer contextual dialogue. But there
- 9:08is another interesting point, because
- 9:11if you are programming, working on
- 9:14certain web designs for webpages, or
- 9:17other tasks related to repositories or
- 9:20actions that might involve creating
- 9:23applications, then you should pay
- 9:26attention to the fact that Cursor has a
- 9:29command called "compact." Once you
- 9:34realize that your chat, let's say, is
- 9:36getting too full and you need to free
- 9:39up some space, you can enter the "
- 9:41compact" command, and it will discard
- 9:44half of those message boxes itself. It
- 9:48goes through each box, takes the most
- 9:51essential part of each dialogue box—
- 9:54the main theme—and discards the rest.
- 9:59By doing so, it frees up space so you
- 10:01can continue loading more of your own
- 10:03messages. By the way, this function
- 10:06only exists in Cursor. That is why I
- 10:08recommend using this function more
- 10:10often than you might, because different
- 10:12cases arise. It might seem like you
- 10:15managed to create a webpage in two
- 10:17prompts, but in the end, it turns out
- 10:19that a client might say they are
- 10:24unhappy with the text, the format, the
- 10:26colors, or perhaps the infographics.
- 10:29And as a result, you have to refine or
- 10:32rework certain elements. And since you
- 10:35wouldn't want to open a new chat and
- 10:37explain other topics all over again, it
- 10:39is advisable to use this "compact"
- 10:41function more frequently. So, it works
- 10:45out that every six or seven request
- 10:47boxes, you just press "compact." You
- 10:50already understand that you won't be
- 10:52returning to certain specific actions,
- 10:53for example. But you need this chat to
- 10:55be able to understand you in the future
- 10:58within the framework of this context.
- 11:00There you go. And by using this
- 11:02function, it simply takes a part,
- 11:04removes these LEGO pieces, and frees up
- 11:06space so that you can continue chatting
- 11:08and keep going. working with code. Now
- 11:11let's summarize. Understanding what
- 11:15context is, what tokens are, and
- 11:17understanding all the specific elements
- 11:19regarding limits, we should now
- 11:21consider the factors of prompt
- 11:23engineering. For this, I will
- 11:27definitely leave a link so that you can
- 11:30use these prompts to approach these
- 11:32limits more effectively. Since right
- 11:35now, at this moment, I can show you one
- 11:37of our accounts. With the Max
- 11:40subscription, as you can see, we have
- 11:41already reached those limits. And it
- 11:44turns out that only next week, that is,
- 11:47in 2 days, yes, we will be able to use
- 11:50our subscription again. In general,
- 11:54even with the Max subscription, you can
- 11:57reach certain limits, so be careful.
- 12:00Well, I hope it is now clear to you how
- 12:03the economy of this artificial
- 12:04intelligence, like Claude, works, so
- 12:06that you understand how to use it, what
- 12:09tokens are, and can navigate all these
- 12:11limits, because if you don't know this
- 12:13basic foundation, your limits will burn
- 12:16out very quickly. Yes, I would also
- 12:20like to add that every time you use any
- 12:23additional third-party services, such
- 12:25as MCP, or perhaps you have certain
- 12:28other integrations where Claude tries
- 12:30to analyze the work, everything comes
- 12:33at a price. So take this into account
- 12:36as well. And always keep it in mind,
- 12:39every time you add it to certain
- 12:41Telegram bots or some other cognitive
- 12:43actions that it must perform. and watch
- 12:47that ceiling. To avoid hitting those
- 12:51ceilings, I recommend learning Prompt
- 12:53Engineering, which you can find on our
- 12:55Telegram channel; the link will be in
- 12:57the description. These prompt examples
- 13:01will help you save your tokens very
- 13:04effectively and not waste them the way
- 13:06we wasted ours in the beginning. So, I
- 13:11wish you success in this new era. After
- 13:15all, AI entrepreneurs are only just
- 13:17beginning to emerge. This is a new
- 13:19generation of people, new actions that
- 13:22can be performed, let's say, by any
- 13:24amateur who does not have any
- 13:26programming education. Therefore, we
- 13:28are trying to figure things out and
- 13:30understand them in simple language. I
- 13:32think this episode turned out to be
- 13:33interesting. I will be glad to see you
- 13:35in the next episode. Bye everyone. M.
About this transcript
This page contains the full transcript of КАК ЭКОНОМИТЬ ТОКЕНЫ в Claude Code и ChatGPT — контекстное окно и промпты с нуля (2026) by AI MAYAK, generated from the public captions YouTube serves with the video. The transcript has 2,054 words across 311 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.