Claude Hits Token Limits Mid-Task With No Warning
69 posts across 17 communities in the last 30 days; 38% from GitHub.
“Fair question. If you're happy letting Claude run everything on its own, you don't need this. Auto mode covers most of it now. The exception is ask rules: if you add something like "Bash(rm *)" or "Bash(git push *)" to "ask" in settings.json, Claude still stops and waits for a…”
“I am now thinking of using Claude [re: Is anyone else experiencing the “Context Window Full” message more frequently?]”
“I run Claude Code across about 10 repos most days, Codex on the side. My problem wasn't Claude forgetting code. It was me forgetting stuff. I'd say "yeah I'll fix that tomorrow" in some session on Tuesday and by Thursday it was gone. So I hooked into SessionEnd. When a session…”
Heavy Claude users struggle with usage limits, unexpected interruptions, and session degradation (context rot). They are actively seeking workarounds and custom solutions to optimize token usage and maintain session stability for coding tasks. This indicates a need for better control and predictability within the Claude environment.
SOURCES (60)
“Not sure if I understand this right, but you essentially ask stopping it from extra token usage with "wait" and other phrases? In another thread here, there is talk about the model getting stuck in thinking loops unable to complete agentic tasks: https://www.reddit.com/r/LocalLLaMA/s/BZ6D5qsB5h Is your…”
“现象 长会话(尤其长时间自主运行、用户很久不发新消息时)出向上下文只增不减:压缩地板降不下来,模型频繁重试压缩又频繁被拒( gate:too small / gate:none resolved / gate:no net shrink / turn integrity 撤回)。实测一个真会话(0.1.218,opencode v2.0.4 车道):出向 131k token 里 128KB 是 tool call 参数 ,其中 29 对"早已成功完成"的 compress 调用对 ≈ 113KB ≈ 40% 上下文 是既折不走、也扫不掉、清不掉的垃圾。 根本原因(代码级) 机制链 5 层,每层单独都合理,叠起来变成"残留只增不清": 1. 现役 compress 参数是行形式 : {"content": "m00150–m00220 topic\n<摘要全文 "} —— 单一 plain string,多段以换行拼(当前工具契约形状)。 2. 内核改写路径不认行形式 : kernel/src/hide consumed.ts:77 108 的 parseCallText 只处理旧 J”
“Hi - TokenTab is a free plugin for Claude Code that transparently shows all the tools, models, bash calls and tokens used during a session. You can try it by running this in claude code terminal `/plugin install tokentab --marketplace getsupertab/claude-marketplace`. Requires python. No data leaves your machine.First off, a couple of us built this during a remote All Hands (company is called Supertab) during a break, and it's now part of our labs plugin marketplace. It's open source.The idea is”
“> condescending toneI feel this. Earlier this year, claude code was a clunky tool that worked in a certain way that was predictable. Now it talks back to me. It's almost as if my toaster decided to comment, "white bread? you could do better and get a whole grains". Or sometimes outright reject to toast the bread rather than burning it outright.It's very tiring to work with. I want my tools to either work or don't. I don't want to spend extra time corralling my tools to work.”
“> I think at some point we'll need independent double blind testing of these models or some sort of cryptographic assurances to ensure providers don't mess with them in the backgroundThe actual way out, in my opinion, is running open models on your own equipment. It is currently very expensive to do and the models available aren’t “frontier-grade” but they are getting better all the time. The actual hardware costs will eventually go down when ram prices go down and/or some foundry makes low co”
“Just anecdotal evidence, but after reading this a few days ago I switched to Google Carbon for an ML aspect of my software and lo and behold Carbon got the thing to work in a couple of hours where I spent weeks with Claude (Fable 5.2) before and didn't get anywhere. Maybe Carbon is just that much better, in any case this was kind of an eye opener to me to switch around between different models when I get stuck. Maybe it's really just the differences between the systems and having a "fresh" appro”
“What's wrong In Code Mode ( CLAUDE CODE EXPERIMENTAL CODE MODE=1 ), every command run through the REPL tool's $ helper gets /dev/null as stdin, and $ has no way to feed it input. The $ docs compare it to Bun.$ ("throws on a non zero exit, as Bun.$ does") but never mention stdin. Bun's stdin idioms are not there either: Response is not defined in the REPL context. In practice the model often writes a stdin style command first ( git commit F , some remote shell host ), changes approach and writes”
“Outcome A local report gives batch ops' follow up requests and feature use per 1,000 requests from Claude Code transcripts Completion Given a project's Claude Code transcripts and a date range, the report prints its figures for main sessions and subagent runs separately. Each figure is given per 1,000 requests and as an estimated share of cost: requests that only loaded batch ops' schemas; whole file outlines read again within two requests; trimmed passing outputs followed up within three reques”
“What you want to do 希望在「供应商 → Claude → 高级」增加独立的「检测网络出口」开关,让用户在保留已登录的 Claude 订阅账号时也能关闭出口检测。建议默认开启,沿用现有行为。 关闭后,启动、定时刷新、网络或代理变化、打开设置页以及 Claude 请求发出前都不应触发出口探测。手动「检查」按钮和基于出口检测的告警、请求拦截也应停用,设置页可显示「出口检测已关闭」。Claude 订阅请求继续按已有的代理配置发送。 What you do today instead 在 macOS 上的 Magpie v0.1.5052 ,可以关闭「在不支持的地区时暂停请求」,但后台仍会访问 www.cloudflare.com/cdn cgi/trace ,地区告警也仍可能出现。希望让已经在代理工具里管理出口的用户可以选择停用这项探测。在按域名分流的环境里,探测目标还可能走与 Claude API 不同的线路。当前探测代码 · 相关误报 7447”
“Summary Give server operators control over who can use Claude, how much they can spend, and which tools are allowed. Today any player can start channel sessions on the host, and any Lua program can call claude.sendMessage directly on the server's API key with no limits. Proposed Gate channel mode. Add an enableChannelMode config option, off by default. Limit claude.startChannel to ops or an allowlist, and cap the number of concurrent channel sessions. Budgets and rate limits. Add daily token bud”
“Problem: The file context menu, neither in the file tree nor in the content panel, has an Ask Claude button to mark it as the reference. <img width="568" height="271" alt="image" src="https://github.com/user attachments/assets/196bc3a9 ffc4 4a65 b61e f22e7986cfda" / Proposal: Add Ask Claude on every file menu in the app.”
“Is your feature request related to a specific problem? I just asked Claude Code to generate a chart for me, and it did an insanely good job of it, rendering two line graph series in different colors, and using sub character resolution: <img width="2548" height="1344" alt="image" src="https://github.com/user attachments/assets/f3abdc5a 0093 40a6 8992 70904a861ce6" / Please add similar functionality to agy! Describe the solution you'd like See above Describe alternatives you've considered No respo”
“I asked Claude for an n8n lead agent in one prompt. It imported cleanly, then broke 6 times”
“Problem Claude engine bots are launched with setting sources project , so hooks configured in the user level /.claude/settings.json never run. Tools that install themselves as a Claude Code PreToolUse hook (for example RTK, a token saving CLI proxy that rewrites git status to rtk git status ) install correctly, but their hook is silently ignored in every bot turn. Reproduction 1. Install RTK and its Claude hook. Its installer writes a PreToolUse hook for Bash into /.claude/settings.json . 2. Fee”
“Long story short, I needed a way to enable/disable skills for specific projects, but for how nice Claude CLI is, it kinda sucks in this regard.I wanted it to do 2-3 things well, be fast, and not bloat it. Of course, I then prompted it into existence.Features: - Shows the available settings for your specific Claude version (always in sync). - Configure CLAUDE.md, settings.json, Skills, Plugins and MCPs. - Tree-view in the sidebar to view all Claude projects. - Gives useful suggestions for enablin”
“The environment card shows total context ( 150k / 1m ). The Claude desktop app shows the same total plus a breakdown by category (Messages, MCP tools, System tools, Skills, Memory files, Free space), with long lists collapsed to counts. Claude Code already exposes this through the SDK's get context usage , so no estimation is needed. Request: make the Context row expandable to show one row per category, with deferred tool schemas shown separately since they sit outside the window. Today the only”
“Problem Claude Code doesn't write a prompt typed while Claude is still working as a user entry. It writes it as a chained attachment entry: type: "attachment" , with a uuid and parentUuid , not a sidechain; attachment.type: "queued command" and attachment.commandMode: "prompt" ; the text is in attachment.prompt ; its child in the chain is the assistant response that answers it. The Claude Code transcript parser ( cvc core/src/claude code/transcript.rs ) skips every attachment entry by design. So”
“Type of request Change to existing behavior Problem Problem: the user gives a task and walks away; the run stalls on this banner, so the work does not finish unattended. Also, no Claude Code session transcripts for current agents were found under /.claude/projects, which may be why resume fails. Proposed behavior In a group channel, an agent's turn stops with 'Claude Code could not find the saved session of this chat. OpenBot started a new Claude Code session with the chat history. Try again.' a”
“The Code tab adds about 68 tools, long prompt sections, and the claude.ai account's skills to every Claude Code session. Some of those instructions contradict the user's own CLAUDE.md, and the model follows the app: keep the app's plan list instead of TaskCreate call wrap up, then write a closing message propose new sessions unasked, and hand tasks off give sessions their own worktrees Users find each one only when a session trips on it. Nothing lists what the app adds, per version. The docs lea”
“magpie version v0.1.4634 ( cb0403c ) Where Gateway only OS Linux x64 Agent, provider and model Claude Code 2.1.330 → Claude subscription, interactive mode on → claude opus 5 5 Steps to reproduce 1. Keep the Claude subscription in interactive mode ( claudePrintMode off). 2. Have a long Claude Code conversation (here about 240K tokens). 3. Make the bridge start a fresh run for it. Here pace routing moved the conversation to another subscription account. 4. The fresh run's first message is the whol”
“What happened On a ClassicBot instance (claude code backend, Discord), the "processing" indicator in the channel disappeared in the middle of a turn and did not come back, although the agent kept working and replied normally about 30 s later. daemon.log for that instance (one turn): During that gap the agent was running several shell commands back to back; a 2 s pause between tool calls was read as idle. It happened once in that instance's 184 working state events that day. Where fleet manager.j”
“Version: v0.8.0 ( d59a4268 ), upgraded from 0.7.0. What happens. Our project deleted the installed CLAUDE.md wrapper on purpose: our agent harness reads AGENTS.md directly, so the wrapper is no longer needed. Cairn's lockfile still records CLAUDE.md , so: upgrade apply refuses while the review only file is absent, unless the file is recreated (we created a local, untracked copy to get through the upgrade, then removed it); verify integrity.py reports missing: CLAUDE.md and says not to trust the”
“[Claude] ★ 1/5 (v1.261116.19) — I’ve incurred into a great deal of usage because I have to repeat instructions and I have to rephrase commands in the back-and-forth is endless”
“Problem or use case Claude sessions launched by Orca do not have Claude Code's dedicated Grep and Glob tools, and there is no way to restore them. Claude Code hides them when CLAUDE CODE ENTRYPOINT=orca (it swaps in bundled search for Bash grep/find instead). Orca gives no way to pass tools, or any other flag, to the Claude agent, so users cannot turn them back on. Why it matters: Grep and Glob cap and paginate their output, so a broad search cannot flood the context window. One unbounded grep r”
“[Claude] ★ 1/5 (v1.261116.19) — The free version of Claude was always limited, but it still provided some sort of output to certain prompts, but I don’t know why but now for one of my tasks, it still could not give me any output even after five session(I mean the five hour limit reset) it works for like one or two second and it hits its limit. Claude was always strict with this limit, but it has now become even more of a problem. I hope they will fix this limit issues. Otherwise they will fall b”
“Hi HN,Have you ever been using Claude Code or Codex and run into a limit that ruined your flow? Claude says you’ve hit your limit but you’re knee deep in a refactor and want to keep going. Switching to Codex in that situation requires either having up-to-date handoff docs or rebuilding context from scratch. In both cases, you burn tokens just to handle moving context from one thread to another. Or maybe you have a great session, then compaction comes along and your agent forgets half of the impo”
“Ctrl z puts a process in the background, to be returned with fg . Super handy with Claude sessions. However, when accessing claude via claude hl , ctrl z no longer works: In the above example, I start claude hl , then hit ctrl z, which does send Claude into the background, but doesn't give control back to me. Instead, it just hangs in that state, and my only option is to SIGINT Claude. Note that this directly contradicts the output above: My suspicion is that perhaps Claude itself was put into t”
“Summary Channels ( notifications/claude/channel ) can wake an idle Claude Code session from an external source, but only in an interactive terminal. In the VS Code extension the channel notification is silently dropped, and there is no non interactive way to opt a channel in. Since the extension is a primary way to use Claude Code, a feature built for reacting to events outside the terminal is unavailable to everyone working in the IDE. Environment macOS (arm64), VS Code extension, Claude subscr”
“Surface: infra Related: 4967, 4363, 5549, 5561 Risk flags: public contract Risk flags unconfirmed: true Current State CLAUDE.md line 64 is one paragraph, 786 bytes, that begins "Established codebase". It says contract changes follow expand contract, that a deprecated behavior gets a removal condition, and it ends: "Prefer stability over novelty in shipped skill contracts — adopt new conventions in new skills first, then migrate existing ones deliberately, with the incident log recording what eac”
“Describe the issue i talked about this in my previous issue but it got closed cs it was multiple in one post and wasnt fixed, whenever I ask something of claude it just sits there thinking, sort of pretending to do stuff. It just feels very slow when claude types a response imo. FCC doctor output <details <summary FCC doctor output</summary </details”
“Everyone knows your rug pull kind of failed by missing the IPO target 40% short. Just stop it with these half baked product releases no one cares about and fix Claude Code.”
“if you use Claude Code: it keeps session transcripts for cleanupPeriodDays , default 30, and the cleanup deletes them without a message. you can raise it in ~/.claude/settings.json , 0 fails validation so the docs suggest something like 3650 that only saves one machine tho. I copy the transcripts into a bucket and point a self-hosted dashboard at it, so a prune or a reinstall doesn't take the history. 2,836 of my 5,815 sessions haven't been touched in over 30 days, at the default those w”
“On a more serious note: what does this say about our dependence on a single company and toolchain?”
“If you're not keen or unsure on how to setup Claude with the AI toolkit, have you tried using Sidekick? I was pretty resistant to it at first, but the times I have used it for certain things that actually performed pretty well. [re: Letting ChatGPT/whatever actually *do* stuff in my store? Possible? Risky?]”
“I’m trying to understand how people deal with usage limits in AI coding tools. What plan are you on, and how often do you hit the limit (daily / weekly / rarely)? What do you do when it happens: wait, switch tools, upgrade, trim context, something else? Have you tried anything to make your tokens last longer? Did it work? Curious what’s working for people. I’ll summarise the answers in a comment. submitted by /u/micro_saas_finder [link] [comments]”
“Hi, here's a TUI we originally created for internal use. The goal is to be able to control multiple Claude Code sessions running in parallel while being able to review the changes and to understand the design choices the agents make.The key design principles are:- the programmer's attention is the bottleneck, so instead of cycling between sessions to find what's waiting for user input we use hooks to push work to the attention queue, i.e. let work come to you, not viceversa- easy change, review”
“4: absolutely, i always plan first, plan mode in claude code gives you a plan you actually read before any code gets written then save it as a file so the next session can pick it up 5: 1 small task per session and /clear between them, starts fresh but keeps project memory so your claude.md still loads 7: give each feature its own git branch so a bad run is 1 delete away instead of untangling it from everything else [re: If you had a validated $10K MRR app idea, how would you build it using Clau”
“I usually run several Claude Code sessions at once, each on a different task. Some finish, some stop to ask me something, and the only way to find out was clicking through every terminal tab. Sessions would sit there waiting on me and I wouldn't notice. So I built Spyhop. It's a Mac app that puts every Claude Code and Codex session on one board, kind of like a Jira board for your agents. Each card shows what's done, what it's on now and what's next, read from the transcript.”
“Fair question. If you're happy letting Claude run everything on its own, you don't need this. Auto mode covers most of it now. The exception is ask rules: if you add something like "Bash(rm *)" or "Bash(git push *)" to "ask" in settings.json, Claude still stops and waits for a yes, even in auto mode. That wait is the annoying part when you're away from the desk. This just puts those few prompts on the watch so the session keeps moving. It's for the h”
“[Claude] ★ 1/5 (v1.261106.19) — I got banned out of nowhere with zero explanation. The timing couldn't be worse: right after landing a real project and utilizing Claude Code at around 75% of my weekly limit, my account was cut off. I stayed well within the limits I paid for. Support has been utterly useless, offering only generic non-answers and refusing to explain what triggered the ban. It seems Anthropic simply refuses to allocate the compute they charge you for. The moment you actually star”
“use claude. connect it to all the tools you use and then setup skills. if you already have SOPs of how you do each step just give those to claude and tell it to create a skill out of it. then run those skills. will save you 95% of the time. [re: building the list takes us a week every campaign, anyone found a gtm orchestration platform for mid market teams that handles it?]”
“What happened The assistant handed a task to a Claude Code Agent on a macOS node. Three minutes later the start failed with: The new herdr tab's shell ran an interactive startup question first (oh my zsh's "Would you like to update? [Y/n]", which reads one key). The node had typed its start line 300 ms after the tab opened, so that question took the line's first character and the shell ran the rest. On current main the typed line is . '<start file ' && … ( 2068): the question takes the . , the s”
“Owner 2026 11 09: tokens are being burned by long lived plain claude sessions (usage screen: 6 at once, 8h+, loops 26 runs/18M). The harness already has managed workers (fichero builder/run.py: registry + in session handoff hook at 85% of the window, HANDOFF.md, successor generations <=20, Claude and Pi). Since the 2026 11 08 tmux crash every lane, the spec writer and the builder were started by hand as plain claude sessions outside it, because harness start fails: the worker user cannot read th”
“Hand-code the parts you could not debug if they broke, and let Claude do the parts you could have written in your sleep. That keeps the learning where it matters and still saves the afternoon. Reading a diff teaches you something, but it skips the moment where you have to commit to a design before you know if it holds up. [re: Back to hand-coding or am I wasting my time?]”
“Summary With OpenClaw = 2026.10.7 on the claude cli backend, gbrain loses its OpenClaw side memory paths, and neither integration in docs/mcp/OPENCLAW.md restores them. 1. Claude Code hooks are disabled. OpenClaw launches every managed claude cli turn with settings '{"disableAllHooks":true,...}' (openclaw/openclaw 172026). gbrain hook user prompt / stop / session end never run: no per turn context, no corpus capture. gbrain doctor does not flag a harness that silently stopped producing session f”
“We stopped fighting this by treating context as code instead of chat. Every repo has a CLAUDE.md at the root with team conventions, plus smaller ones in subfolders for module specific stuff. Claude Code reads these automatically before touching anything. When it gets something wrong twice, we add a line to the file instead of re-explaining it in the prompt. Takes five minutes and it sticks because it's committed and reviewed like any other file, so the whole team benefits, not just whoever h”
“For Roamtty, the desktop earns its place when Claude Code finishes a change but the next check is visual: opening the browser preview on that same host. I'd test that handoff separately from terminal use and SFTP browsing; asking which task made someone switch views would give you more actionable feedback than asking which features they prefer. I make ThreadFox. We find relevant Reddit conversations and do the posting for your business. The $49 Pilot covers seven days and up to 50 posts and”
“How is this different than remote on the Claude code app? I have sessions connected to my computer and to my remote dev servers there (Not trying to poke holes, genuinely asking as I run CC on several different projects simultaneously with multiple sessions on the same project) Is it primarily the ability to view files + codex at the same time? [re: I built an iPhone terminal with remote desktop to continue Claude Code work away from my desk]”
“I've been daily driving Pi for over a month now and never looking back. The latest crop of frontier models have really complex bash calls, so I've written an extension that rewrites them into plain English while still making them easy to reveal in full, unlike some harnesses which seem to try to hide this from the user which is pretty irresponsible IMO.[0][0] https://github.com/siraben/pi-tool-summaries”
“I posted probe0 here about a week ago. It's a small local proxy that runs under Claude Code and Codex on a Mac and logs what every call uses. The thing I keep relearning since then: nobody cares much about my numbers, they care about theirs. My benchmark is real but it's one person. Replaying 12 days of my own traffic, the default settings took 12.8% off the bill. Whenever I lead with that, the first question is some version of "ok, but what about my usage", which is fair. So m”
“Indeed. The article only compares the status quo manual system versus the auto system — and doesn’t consider ways that the manual could be improved.As it says:> 5% allow any shell command outright, and another 43% have interpreter rules like Bash(python:*) or Bash(node:*) that are essentially equivalent in practiceClaude Code never should have prompted to always allow Bash(python:*) or Bash(node:*) — that’s clearly a bad idea, and Anthropic know that (given the references in the article!).Of cou”
“I am now thinking of using Claude [re: Is anyone else experiencing the “Context Window Full” message more frequently?]”
“Most of my day is Claude Code and Codex now, usually four or five sessions at once. The thing that kept biting me was typing a prompt into the wrong pane and watching the wrong agent start working on it. So in lmux you hover that prompt and click ×, and Claude Code rewinds to just before it. The session keeps running, nothing restarts. The ✎ button does the same but puts the prompt back so you can fix it and resend. Everything else got added the same way, one annoyance at a time: a sidebar that”
“Thanks, good catches. Paths: right now the link is just <editor>://file/<absolute path>, using the path the AI saw while reading the repo. So if Claude Code runs on the same machine as the editor, it works. If the code lives in WSL or a dev container and the editor runs on the host, that path won't resolve. VS Code and Cursor do have remote URIs (vscode://vscode-remote/wsl+<distro>/... and similar for containers), so mapping the workspace root to those is probably the fix.”
“mobbin MCP server for claude let claude build you artifacts with it [re: Where can I find cool design inspirations?]”
“On the pruning: Claude Code keeps local transcripts for cleanupPeriodDays, 30 by default, and you can raise it in ~/.claude/settings.json. Doesn't replace the bucket, but it widens the window if the sync to R2 misses a few days. [re: claudit: self-hosted usage dashboard for Claude Code, Codex and Kimi CLI transcripts (FastAPI + Postgres, docker compose)]”
“There is already a tool for claude code that does this, it's called effortless and uses haiku or haiku+jav to determine which model and effort it will use for your task. It works decently in my experience [re: I was reading about codex limit and found this ......as a plus user this is scary]”
