Q&A · Answers from real-world tests on X

How do you save quota and tokens in Claude Code?

Not in your language? Paste the link or the text into your AI and let it read it for you.

5 source posts · 4 creatorsLast updated Nov 3
Short answerBased on these hands-on tests, there are three ways to save. First, have the agent write less unnecessary code: after the Vercel Next.js team burned through about 60 billion tokens, they distilled 8 rules. The core is to build only the simplest implementation and prefer mature libraries, and they work once placed in AGENTS.md in the project root directory. Second, control tool output in the context: some people save long logs to disk and keep only the file path in context, and others use a plugin to clear unused content from the terminal. Third, judgment tasks like classification and scoring can be handed to cheaper specialized models. In addition, one team automatically resumes after quota resets to use up their subscription quota.

How to do it

Click an avatar to see the source post
  1. 1

    Put the Vercel team's 8 rules into AGENTS.md in the project root directory, requiring the simplest implementation, no premature abstraction, and preferring mature libraries, so the agent doesn't reinvent the wheel.

  2. 2

    When tool output is too long, follow Pi's approach: keep only a short snippet in context, save the full result to disk, keep only the file path and offset position, and read it when needed.

  3. 3

    Cutting out the middle content directly is risky, because it can't be recovered after trimming. For example, in a 30K-character test log where the error happens to be at character 12,000, it would be lost once trimmed.

  4. 4

    When the context is nearly full, the system pauses for about 10 seconds to write a summary. One developer open-sourced a plugin that uses scoring to clear useless terminal logs while keeping core code and state.

  5. 5

    For judgment tasks like selection, classification, and scoring, some people use dedicated models, saying they are cheaper and faster than having Codex or Claude act as judges, and that they make concurrency easier.

  6. 6

    One team hosted Claude Code so that after hitting a limit it automatically waits for the reset before continuing, claiming they used nearly $10K worth of quota from a $200 subscription.

What people on X saySorted by usefulness

01AYi08-04ZH8 coding rules the Vercel team distilled from heavy token usage#1简直就是省Token焚决!!! Vercel Next.js团队的老哥,烧了大约60B tokens,总结出一份AGENTS.md,核心就8条规则。 60B tokens什么概念?大概六位数美元。Claude CodeImageOriginal post369KLikes 2.8K
02Max For AI08-22ZHPi's approach: save long tool output to disk and keep only the path in context#2爆了,Pi 居然在他们新的开发笔记里把其他家的Agent都锐评了一下🤣 @pidotdev 官方表示,DSH、Claude Code、OpenCode 这一类方案,它关注的已经不是谁多几个 Tool、谁的 Demo 更炫,而是一个更麻烦的问题:Claude CodeImageOriginal post291KLikes 2.7K
03梭哈.AI09-18ZHClear useless logs in Claude Code with the JEV plugin#3连 JEV 的联合创始人 @CompleteSkeptic 都亲自下场转发点赞:这是 JEV 正确的打开方式! 大家在 Claude Code 里写长代码,最恶心的就是上下文一满,系统就卡住 10 秒去写总结小作文Claude CodeImageOriginal post330KLikes 2.3K
04SuSu_酥酥👅09-20ZHUsing the Jev skill to make classification and scoring cheaper than using Claude as a judge🔥速码!谁的 Codex 还没装上 Jev 批量必杀技?这波真能起飞 ! Jev 不写长文、不瞎规划,专门干一件事:选择、分类、打分。Agent 给上下文、自己干活。Claude CodeImageOriginal post339KLikes 425
05Max For AI07-27ZHClaude Code auto-resumes after quota reset to use up the subscription一个事实是:200刀的Claude Code订阅可以用出来几乎10000美元/月的额度。 这是我们 @lobehub 内部发生的事情。Claude CodeImageOriginal post210KLikes 325
No matching posts or creators found

Everything here comes from real-world tests by users on X. Rules and products change often, so always check the latest. If you know a better way, we'd love to hear it.

Related questions

How to Use Claude Code's Subagent (Subagent)?5 postsHow to Write CLAUDE.md?6 postsHow do beginners get started with Claude Code?5 postsView all 13 questions