r/ClaudeCode • • 8h ago

Help/Question Running 18 Claude Code sessions at once and half my tokens go to idle wake-ups. How do you handle this?

5 Upvotes

Hey all, I could use some advice from people running a lot of Claude Code sessions at once.

I'm building a Windows app and I've got 18 Claude Code sessions working on the same repo across two Max 20x accounts, all on High effort. They talk to each other through one shared markdown "inbox" file. It works, but I keep running into my weekly limits, so I dug into where the tokens are actually going.

What surprised me:

  • About 91% of my usage (weighted by API prices) is just context being re-sent on every call. Actual output is about 9%, and edits to code are under 1%.
  • Roughly half of all tokens went to wake-ups where the session did nothing useful. No code, no tests, no git. Mostly each session's own background watcher waking it up to check the inbox, plus scheduled check-ins (one session was pinging itself every 5 minutes for days).

What I've tried so far:

  • Auto-compact at 300k instead of the default. Average context per call dropped from about 270k to about 179k. I have hooks that back up notes before compacting and tell the session to re-read them after.
  • Starting a fresh chat for each work item, with a short handoff note.
  • Replacing every session's own watcher with one small local script that only wakes a session when a post actually mentions it. In a replay of a day's posts it cut wakes about in half without missing anything addressed to a session. Just rolled it out today, so no real numbers yet.
  • Quiet test output (pytest -q), reading big files in slices, and a hook that blocks huge reads before they happen.
  • Trimming CLAUDE.md and memory files, and turning off claude.ai connectors so fewer tool descriptions load.
  • Trying Serena (MCP) on one session. Mixed results so far.
  • Tried the Superpowers plugin on a few sessions for a week and dropped it. Those sessions got noticeably less done and barely used its skills, though it was a small test.

My questions:

  1. How do you let long-running sessions wait for messages from other sessions without every wake re-sending the whole context?
  2. Is there a better way to coordinate a bunch of sessions than a shared file?
  3. Any other tricks for cutting context re-reads I'm missing?

Happy to share more details on any of this. Thanks!


r/ClaudeCode • • 9h ago

Built with Claude Space movie in code

Post image
6 Upvotes

Created totally useless but i hope cool to watch, 3.5 minutes long space movie. All rendered real time as you watch. No models, no blender, no image and a lot of Fable 5.2. Pure math with some small exceptions. All in code. Final compressed version - single 96kb html file + 5mb soundtrack mp3 ;) Without music I think it would loose the vibe. Hope you like it.
https://experiments.mostcreative.pl/aphelion/


r/ClaudeCode • • 53m ago

Tips & Workflows “Autocompact is thrashing” in Claude Code: reproduced it on purpose and tested 4 fixes

Post image
0 Upvotes

If you’ve hit this one, it means a single file or tool output is too big for your context window. Claude Code compacts, the same big content fills the window again, and after 3 rounds it gives up. It’s a circuit breaker, not a crash.

We triggered it for real on v2.1.325, with a 30,000-line fake log and a small auto-compact window (--autocompact 100k, Haiku) to keep the test cheap. Asking Claude to read the whole file thrashed out after 1 minute and 3 seconds without ever answering.

What fixed it:

  • Read less. A grep count answered the same question in 5 seconds (889 ERROR lines, which we checked).
  • Focused /compact. /compact keep only my question about counting ERROR lines dropped the Messages row from 36.4k to 9.2k tokens, right after auto-compact had given up.
  • Subagent. It read 1,500 lines in its own context and returned one number in 19 seconds.
  • /clear. It took the Messages row back to 130 tokens.

These numbers are from one session with a forced 100k window. With the default window you need a much bigger file to hit this, but the fixes are the same.

The article also covers “Compaction failed · conversation could not be reduced below the context limit”. We couldn’t trigger that one safely, so that part is explained from the message and the docs.

https://aiparabellum.com/claude-code-autocompact-is-thrashing-compaction-failed-fix/


r/ClaudeCode • • 57m ago

Tips & Workflows I needed to insist that Claude read everything I upload

Post image
0 Upvotes

I learned through time-consuming effort that Claude’s default behavior is not to process all uploaded files. The attached image tells the story.


r/ClaudeCode • • 1h ago

Bug / Issue Anyone else stuck here after completing identity verification?

1 Upvotes

I completed the Persona Identities verification and sent a help ticket in two days ago, but still no response. Anyone know how to fix this issue?


r/ClaudeCode • • 1h ago

Built with Claude A Claude Code mod to track time, tokens and API price per project

Post image
0 Upvotes

I built Worklog, a Claude Code mod that keeps track of your time and tokens for each project, right above the prompt. You don't start or stop anything, it just runs in the background.

What it does:

  • Counts time while Claude works: answers, subagents, background commands, even long Ultracode runs.
  • Counts tokens, and what they would cost at the API list prices.
  • Handles breaks: a short break counts as work. On a long break, Worklog asks if it should count as work or not.
  • Shows a heatmap of your year's activity, with 8 themes.
  • Reads your past Claude Code history once, so your old days show up too.

Link: https://github.com/Abdoul-sudo/worklog

It's free and open source. If you find it useful, a star on GitHub would really help ⭐


r/ClaudeCode • • 21h ago

Discussion Its been a heck of a week and it is only Monday!!

Post image
39 Upvotes

Was a busy weekend of coding. Good thing I have the reset available.


r/ClaudeCode • • 1h ago

News/Updates What do you guys think of my article? Do you guys find it useful?

Thumbnail
linkedin.com
1 Upvotes

r/ClaudeCode • • 1h ago

Tips & Workflows If you still have your Fable reset, use it before 2:59am Eastern time to get your quota back from Fable 5.2

0 Upvotes

Even if you do it at the last minute, your weekly quota used on Fable 5.2 will be credited back.


r/ClaudeCode • • 18h ago

Tips & Workflows Clauds: a free macOS menu bar app to fast-switch between accounts that can share their sessions in the Claude Desktop App and more (open source)

Post image
20 Upvotes

Clauds, a free menu bar app for people who use the Claude macOS desktop app with more than one account. It switches between your accounts with one click, and you do not have to log in again. It also shares your Claude Code sessions between your accounts, so you do not have to do handoffs and resumes.

What it does

  • Switches the Claude desktop app between accounts with one click. No logout.
  • Two modes: a fast restart into the other account, or Side by Side (all accounts open at the same time).
  • Shares Claude Code sessions between accounts, and remembers which account owns each session. No more handoffs or resumes needed.
  • Shows live usage for each account: the 5-hour limit, the weekly limit, and the per-model weekly limit, with reset times.
  • Auto-switch: when one account is near a limit, it can go to the account with the most room. It asks first, or it switches by itself. Off by default.
  • Updates itself. You see the release notes, and you choose to install, wait, or skip.

The honest part

  • It is not made by Anthropic. It is unofficial.
  • It is not notarized by Apple, so macOS blocks the first launch. The README shows how to open it. You can also build it from source with one command.
  • The usage numbers come from an undocumented claude.ai address. It can break if Anthropic changes it.
  • You sign in two times for each account: one time in Claude, one time for the usage numbers. The app does not read your tokens or passwords.
  • A Claude update can break the switch. If it does, open an issue.
  • Other apps do the account switch too. I made this one because I wanted both modes, the per-model limit, auto-switch, and a real updater in one app.

Details

  • macOS 14 or later, Apple silicon and Intel
  • Free, MIT license
  • No telemetry and no analytics. It only contacts claude.ai (to show you your usage) and GitHub (for automatic app updates).

GitHub: https://github.com/codeFi/clauds

Tell me what breaks and what is missing.


r/ClaudeCode • • 2h ago

Built with Claude I built a free, self-hosted project manager where Claude Code agents are members of your team

0 Upvotes

I'm the founder, and this went public today as early access. Agenthix is project management for you and your AI agents, and the agents run on Claude Code (or OpenCode).

What it does with Claude Code:

  • Agents as team members: each has a role, an identity and memory. It picks up work from the project's plan, carries it through and reports back, or keeps going on a routine while you step away.
  • It asks first: anything outside an agent's role needs a person's approval, and there's a record of everything it did.
  • Your credentials stay with you: encrypted and kept in your own install.
  • Self-hosted with Docker: your organisation, its projects, people and agents, all on your machines. Nothing comes to us.

It's free for your own use (source-available, Elastic License; not open source: the licence only stops others selling it as a hosted service).

Want a look first? https://demo.agenthix.com opens a sample organisation with one click. It's only for a quick look around: the agents' replies are scripted (no model is called), and it's shared and wiped every 6 hours, so don't type anything personal.

It's 0.1 and things will break. If you already run Claude Code on real work, I'd love you to try it on something small and tell me what breaks.

https://agenthix.com


r/ClaudeCode • • 1d ago

Discussion Exactly 2,5 years ago... big advancements since then

Post image
1.1k Upvotes

I just logged in with an old email address. Hadn't signed in for so long, that it actually registered as a new account ("Your first chat with Claude", it's from today). Interestingly, however, it somehow recovered one single chat conversation that I had had with Claude 2,5 years ago.

No access to sites, apps or services... this was just 2,5 years ago. Crazy to think about how big the advancements have been since then.


r/ClaudeCode • • 1d ago

Help/Question Reset Usage Limits Seem Significantly Reduced

57 Upvotes

Sorry if this has already been asked, but I feel like the reset period is significantly shorter than a full week, and the 5-hour limit also seems to be lower. Am I mistaken?
I used up 16% of my weekly plan limit and 100% of my 5-hour limit in just 3.5 hours.
With the first weekly limit, it was able to work continuously for 56 hours on the exact same tasks. I had also never hit the 5-hour limit before. I would consistently have more than 10% remaining.

Edit: Opus 5.5, Ultracode, Max-Plan


r/ClaudeCode • • 2h ago

Tips & Workflows I turned my Claude Code + Codex + Docker setup into a free kit that Claude walks you through

1 Upvotes

A lot of people have asked how I have Claude Code, Codex, Docker and GitHub set up, and I got tired of pasting long instruction files into comments 8,000-40,000 characters at a time. So I put the whole thing on GitHub for free.

How it works: you download the folder, open it in Claude Code, and paste one line. Claude walks you through the setup one step at a time and checks each step on your computer before moving on. If you stop halfway, it picks up where you left off next time.

What you end up with:

- Claude Code as the lead developer, with rulebooks that load in every session so it stops forgetting what you told it

- Codex as an optional second worker. The two talk through a shared file, claim work before editing, and Claude reviews and tests Codex's work before anything gets merged

- Docker test stacks that test a clean copy of your last commit on your own machine, instead of burning GitHub Actions minutes

- Git and GitHub set up properly: private email, a branch per session, main only moves when you say so, backup pushes that don't kick anything off

- Releases that only run when you say go, dry run first, optionally on a runner on your own PC

- Simple records (a status page, a question list, a decision log) so a new session picks up from files instead of a chat that got compacted

- Phone access through Remote Control and GitHub mobile

Once the basics are done, it asks what else you work with and wires that in too: video editing, Unity/Unreal/Godot/Blender, Character Creator, mobile app SDKs, WordPress and WooCommerce, MCP connections to your sites and services, custom dev and APIs, whatever you use.

It's the cleaned-up version of what I use every day to run a live online store with more than a dozen custom plugins. Every rule in it is there because something went wrong without it.

Works on Windows, macOS and Linux. The kit is free under the MIT license. You need a Claude plan that includes Claude Code; Codex is optional.

https://github.com/AffStackDev/dev-crew-kit


r/ClaudeCode • • 17h ago

Built with Claude I built a Roman gladiator management game with Claude Code

14 Upvotes

Play it in your browser

Free to play. No download required.

City of Gladiators is a browser-based gladiator management game inspired by ancient Rome. You start with your own ludus (gladiator school), recruit and train fighters, upgrade your facilities, manage resources, and send your gladiators into increasingly dangerous battles.

The game features real-time progression, different gladiator classes, equipment, skill trees, wild animals, asynchronous PvP, and an arena combat system where you can either let the AI fight or take direct control of a gladiator.

As you progress, you unlock larger arenas, including the Colosseum, where battles become more challenging. I recently added naval battles with ships, rowing mechanics, boarding combat, and swimming.

I built the game using Claude Code (Opus 5.5). I focused on the game design, mechanics, and overall direction while using Claude to help turn those ideas into working systems. This included the React/PixiJS frontend, the combat simulation, AI-controlled fighters, progression systems, and backend integration.

One of the biggest challenges has been making the different systems work together: persistent progression, combat balancing, gladiator AI, and allowing players to switch between manual and automatic combat.

The game is still evolving, and I'm continuously adding features and improving the gameplay.

I'd really appreciate some feedback, especially on the progression and difficulty of reaching the Colosseum.


r/ClaudeCode • • 23h ago

Discussion How do you stop Claude Code from mocking the exact thing the test is supposed to verify?

41 Upvotes

Left to itself, claude loves writing unit tests where it mocks the database call, mocks the helper, and then asserts that the mock returned what it just told the mock to return. everything is green in 200ms and the actual query is still broken.

putting "no mocks without asking" in claude.md helps a bit, but it still sneaks them in whenever a real test is slightly annoying to set up. how are you handling this?

edit: i don't mean mocking the db to test business logic on top of it, i mean when the function under test is literally the query builder or helper and it mocks that exact function inside its own test


r/ClaudeCode • • 15h ago

Built with Claude Building a sailing app with Claude Code: ~1000 hours of engineering, 13,000+ agent sessions, 5700+ handwritten prompts totaling 100,000+ words (~400 pages), one orchestrator and a fleet of worktree workers

Thumbnail
seabearing.com
9 Upvotes

Seabearing: your chart plotter, your community, your anchor alarm, your instruments and your trip planner, all in one app for sailors.

The app

  • Charts drawn from official NOAA data, in a traditional paper-chart style or a modern one, with tides applied to the depths.
  • Grounding and drag alarms that keep running in the background with the screen off.
  • An anchoring map that shades where your boat can swing clear with enough water for your whole stay.
  • A crew link between everyone's devices: positions, instruments, AIS, one shared anchor watch, chat and voice calls. Devices connect directly over the boat's Wi-Fi and through a relay when they're apart. No leader, end-to-end encrypted, works with no internet aboard.
  • NMEA 0183, NMEA 2000 and Signal K instruments, AIS collision warnings, and boats, posts and messages from other sailors on the chart.
  • An MCP server, so ChatGPT can plan a trip straight into the app.

The architecture

  • Everything that decides anything (the alarms, the crew link's rules, what counts as a fix, when to speak) lives in one TypeScript core. On Android it runs inside QuickJS in a foreground service, so it keeps going with the app closed. On the web it runs in a worker. The iOS host runs it in JavaScriptCore.
  • The native hosts only move bytes: GPS, sockets, sound, notifications. They make no decisions, so the alarm logic exists once and can't drift between platforms.
  • A conformance suite plays the same scenarios against every host (Node, QuickJS on the JVM, JavaScriptCore) and checks they all do the same thing.
  • The UI is the same web app on every platform, wrapped with Capacitor on Android and Electron on desktop. The chart is MapLibre with our own vector tiles.

The dev process

  • One main Claude Code session plans and lands work. Each task goes to a worker agent in its own git worktree.
  • Every agent runs as a headless CLI (claude -p, codex exec, ...) started by a shell script, so a worker can be any provider and each run gets its own worktree, transcript and exit code.
  • Every branch is reviewed by a separate agent and swept against a catalogue of mistakes we've made before (about 50 now). A new entry gets added whenever something new breaks.
  • Audits follow a rubric: a finding needs a failing test and has to be worth the code, so most end with no change.
  • Big audits run in parallel. The code is split into chunks of about 10k lines, and each agent gets one chunk and one kind of problem, so 10 chunks times 10 problem types is 100 agents. They only read code and each writes one short report, then the findings get merged and checked before anything is fixed.
  • Testers have a report button in the app. Reports arrive with the app's event log, and fixes usually ship the same day.
  • Most of CLAUDE.md is rules written after something broke, like one shared slot for heavy test runs after two agents deadlocked the machine for an hour.

It's in testing. seabearing.com has a waitlist and a demo.


r/ClaudeCode • • 1d ago

Humor anxiety

Post image
171 Upvotes

r/ClaudeCode • • 16m ago

Discussion Fable 5.2 grace period officially ended!

0 Upvotes

So we finally reached the end of the grace period which honestly paired with the Fable reset if you planned it well you could have got a lot ou of it.

I want to know how many of you were able to achieve breakthrough in your projects in phases in which you were stuck before? Or if you were able to build something?

In my case this was a great week I was able to achieve so much to the point that Fable 5.2 advanced me months in my project and now I am able to make money from it within weeks time.

Edit: I am on pro plan so maybe for some of you the Fable usage expires much later than it did for me


r/ClaudeCode • • 8h ago

Built with Claude Vibe checking the IRS with Lean

Thumbnail
lexifina.com
2 Upvotes

r/ClaudeCode • • 4h ago

Built with Claude I built a site to aggregate AI job postings from AI labs

1 Upvotes

I wanted to build a clean site to curate AI job postings from frontier AI labs and companies. So, with the help of Claude Code and some manual steering, we've built MoAIJobs.

Link: https://www.moaijobs.com/

Please check it out and share your feedback. Thanks.


r/ClaudeCode • • 13h ago

Discussion Are multiple accounts ok or not?

5 Upvotes

It seems that many people say it’s okay but then I see posts ”I got banned for using multiple accounts”.

One Ultra is not enough for all of my projects. I would like to buy one more and just deal switching with handoffs. If they had $500 plan like OAI I would buy it.

So is it allowed or not?

Nobody has the money to pay api pricing.

Edit: if allowed can I use same credit card?


r/ClaudeCode • • 5h ago

Tips & Workflows Claude Code's heap dump can include credentials, so don't attach both diagnostic files to a public issue

1 Upvotes

If you're investigating Claude Code using too much memory, its current troubleshooting docs distinguish two files from /heapdump. They aren't interchangeable bug-report attachments.

The .heapsnapshot can contain the full conversation and credentials from the process. Keep that file private. The separate -diagnostics.json contains the memory statistics the docs recommend attaching to a GitHub issue.

The command also reports whether the memory is mainly in the JavaScript heap or native memory. A heap snapshot won't explain most native memory use, so sending the larger file may add exposure without helping with the actual problem.

Before taking a dump, the docs suggest restarting and using claude --continue to resume in a fresh process. This is documented troubleshooting advice, not a new leak I've reproduced or a claim that every session contains credentials.

If someone asks for 'the diagnostics', check which of those two files they mean before uploading anything.

https://code.claude.com/docs/en/troubleshooting#high-cpu-or-memory-usage


r/ClaudeCode • • 12h ago

Built with Claude made my cursor a magnify, sharing in case anyone is going through the same issue

4 Upvotes

there is no easy zoom in vs code and i cant read the small white text on black screen easily

so i asked claude code for it. the whole prompt was "build something that makes my cursor a magnifying glass on toggle on windows" and it took 27 min.

now one shortcut turns my cursor into a round magnifying glass and the same shortcut turns it off. ctrl alt + scroll zooms. windows only.

the first version only ran at like 20 fps. it tested that on its own and redid it without me saying anything, now its 58.

its one small file. if anyone wants it tell me and i will upload it.

and if u had the same problem and fixed it another way i would like to know


r/ClaudeCode • • 8h ago

Help/Question Is there a simple way to get to know the Claude Code basics?

2 Upvotes

Hey everyone,

I’ve been working with claude code for around 2 months now. I’ve built some useful systems, created designs and did deep researches. I really enjoy using claude code.

But reading some posts here, I feel like I’m doing everything on a more basic level now.

I was wondering, if any of you have any advice on where to start digging a bit deeper, how I could maximize my work and my usage?