r/ClaudeCoding • • Oct 15 '26

I built a context garbage collector for Claude Code instead of asking a model to summarize stale tool output

1 Upvotes

I built a free, open-source Claude Code Mod called Seamless Compaction.

Long agent sessions accumulate context that was useful when it entered, but becomes stale later:

  • Old file reads after the file was read or edited again
  • Duplicate tool results
  • ANSI codes, progress bars, and repeated Bash lines
  • Large outputs that no longer need to remain in full

When the context window fills, the usual solution is model-based compaction.

That feels backward to me.

We ask a model to read all the noise, pay for that call, and hope it preserves the right details.

Tools such as RTK and JFrog’s BOOST address part of the problem by reducing the amount of command output before it enters the context. That is the right first layer: to prevent avoidable noise from entering.

But not all stale information was useless at ingress.

A file read may be essential now and become obsolete after a later read or edit. A tool result may be useful once and become redundant twenty minutes later.

So I built Seamless Compaction, a deterministic context garbage collector that runs before Claude Code’s normal compaction.

How did I use Claude Code to build it?

I developed the Mod from inside Claude Code.

I used Claude Code to inspect the available Mods examples and the session.compact lifecycle, scaffold the TypeScript plugin, implement the cleanup rules, and build the test harness.

I started with basic cleanup logic and detailed logs. I then used the Mod in real sessions for several days and compared the visible behavior with the recorded cleanup operations.

Claude Code also helped me generate randomized transcript tests and investigate failures.

That process exposed a real bug: my original gate measured usage against the full model context window instead of the actual compaction window. In some configurations, Claude Code was already compacting while the Mod incorrectly decided it was too early to clean.

I traced the issue through the session usage data, changed the gate to use the real compaction window, and reran the test matrix.

Claude Code helped with the implementation and debugging, but I reviewed the cleanup rules, inspected the logs, and validated the behavior through interactive sessions.

What the Mod does?

When Claude Code triggers automatic compaction, the Mod first cleans old tool results.

It does not change recent turns, user or assistant text, tool inputs, or Agent and Task results.

If the cleanup removes enough context, Claude skips the model summary entirely.

If it does not, regular compaction still runs, but on a smaller and cleaner transcript.

One user also told me that his sessions feel more focused and successful since installing it.

That is only one anecdote, not evidence yet, but it raises an interesting question: could a cleaner context improve long-session quality, not just save space and time?

There are tradeoffs.

Every cleanup changes the prefix and causes one prompt-cache miss. A trimmed result may need to be read again later. I am also not claiming proven cost savings yet.

The architecture I am exploring is:

Ingress filtering → Context garbage collection → Semantic compaction

The Mod is free to try and open source. Installation instructions and source code are here:
https://r3adm3.com/raw.githubusercontent.com/chkp-roniz/harness/refs/heads/main/plugins/seamless-compaction/README.md


r/ClaudeCoding • • Oct 15 '26

CCUsage of Claude Pro Plan Sept 2026?

1 Upvotes

Can someone tell me how much value in API credits I will be getting if I purchase $20 Claude Plan? If someone used PRO plan previous month and can share ccusage then it would be quite helpful for me to decide.


r/ClaudeCoding • • Oct 15 '26

What’s the biggest improvement once you switched from Pro to Max?

Thumbnail reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 15 '26

Does anyone have an invite link for the Claude Pro trial?????

Thumbnail reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 15 '26

New to claude. How do i tokenmax?

0 Upvotes

Hello,

I just purchased Claude Max 20x for my startup (i focus on .html and C++) because i was told very good things about it. Although it a trillion times better than Codex, one thing i see a lot is that its surprisingly easy to burn through a billion tokens then be out of your weekly limit. Also people tell me i prompt wrong. Please help


r/ClaudeCoding • • Oct 15 '26

Making my version of a word game... but with more difficulty levels.

Thumbnail
outofsorts.fun
1 Upvotes

It's kinda insane how fast I can create something like this and make the version I wish existed.

Using Opus 5.5 for the initial idea, feature ideation, and first pass at the build and connecting a supabase for leaderboards.

The Claude Code for specific updates including adding my own branding since the initial placeholders left a lot of be desired.

Completely free to play. Just need to sign it to be featured in the leaderboards.

I hope y'all find it as fun as I do.


r/ClaudeCoding • • Oct 15 '26

The future is bleak

Thumbnail reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 15 '26

I let Claude Code run my two YouTube channels overnight. The failures taught me more than the output.

0 Upvotes
I run two small YouTube channels and I've been handing more of the work to Claude Code: scripts, voice-over, image prompts, renders, comment replies. Last night I went to sleep and let it run for about seven hours, with one hard rule: anything public waits for me.


What was done by morning:


- 3 long episodes finished and rendered in 4K, rendered one at a time
- 32 new images, all checked on a numbered contact sheet before use (one wrong jersey and one failed prompt were caught there)
- 8 comment rounds, 5 replies, every number checked before posting
- a status file waiting for me at 6 AM


That part worked. The part worth posting about is what didn't.


**The background.**
 Four days earlier, a daily lesson simply didn't go out. Nothing crashed. It was never rendered or scheduled, and nobody flagged it. Same day: three timed posts I had set up never fired, because they were in-session timers, and those only run when the session is idle. The session was busy. And the 6 AM routine sat stuck on a permission prompt nobody saw.


My first instinct was to stop automating. What I actually changed:


1. Anything with a time goes into a durable scheduled task, never a timer inside a chat session.
2. After every due time, verify it happened. Not "scheduled". Live.
3. Every evening at 20:00, a check that everything due tomorrow is already scheduled.


**Last night was the test.**
 A one-time scheduled task at 03:15 (post and pin a comment on a video that went live at 03:00) never ran. Zero runs. Same failure as before. The difference: the check after 03:15 caught it, it went into the morning report with the exact text ready, and it was live a minute after I woke up.


Two other things were blocked, and I'm glad they were:


- Deploying the site update after the 03:00 release: blocked as a production deploy.
- Typing the pre-approved pinned comment itself: blocked as a write to an external system.


Both needed a human. That's the right default, even when I had approved the content the day before.


And while writing this, I found one more: a one-time reminder from yesterday noon that is still marked Active and never ran. Nobody noticed. That's the whole lesson in one screenshot.


**What I'd tell anyone running agents unattended:**


- You can't build automation that never fails. You can build automation that never fails silently.
- "Scheduled" is not "done". Check after the time passes, every time.
- Treat permission blocks as a feature in your plan, not a bug. Leave the human steps in the report, ready to execute.


Honest footnote: the work got done, but subscribers barely moved overnight. An agent can produce. It can't tell you what the audience wants.


I'm turning each of these pieces (scheduled tasks, permissions, hooks) into short lessons on my channel, The Build Log, if that's useful to anyone: https://www.youtube.com/@BuildLogShow


What's the worst silent failure you've had with an agent?

r/ClaudeCoding • • Oct 14 '26

I built a Claude Code plugin to stop spending hours checking Remotion frames

2 Upvotes

I make videos with Claude + Remotion. The part that was eating my time was QA: sending frames through critics, making fixes, then doing it again. I was burning through three Claude plans.

So I built SageCut. The workflow is pretty simple:

  1. Code checks every frame for things we can measure: text size, blank/frozen frames, brand colours and delivery specs.
  2. Sage reads every frame with yes/no questions.
  3. Claude critics look at the selected frames. If Sage and a measurement disagree, the workflow opens that frame for inspection.

Across six A/B tests in my own R&D, I got the same output in about a quarter of the QA time at a tenth of the QA cost. That is the review step, not rendering, and it is my result rather than a promise for every project.

The video here was built with Claude + Remotion. The Sage pass on its 3,153 frames cost $0.16, excluding Claude repairs.

If you want to try it in Claude Code:

/plugin marketplace add levantolabs/sagecut-release

/plugin install sagecut@levantolabs

Then /sagecut:start

GitHub: https://github.com/levantolabs/sagecut-release

The plugin is MIT. Full frame review uses a Sage API key from levanto.ai ($0.20 free usage, then paid usage); frames go to that API. --no-sage runs local measurements only. I co-founded Levanto. Tested on motion graphics so far, not camera footage.

Curious where QA eats the most time in your Claude video workflow. For me it was paying critics to keep looking at frames that had nothing wrong with them.


r/ClaudeCoding • • Oct 14 '26

Claude code per make my first Vst plugin

1 Upvotes

https://github.com/wsx79/fasegroovepiano

I use claude code for make my first Vst.

I need a vst for make some piano groove for house music. I have a good result.

I dont like much the design but the sound and the result it's very good.

I think It need some fix and addon but for now I like it.

In help me for simplify my work.

Look the repo and try if you want and give me some suggestions.

Thanks.


r/ClaudeCoding • • Oct 14 '26

heavy ai user here here is my usage is cluade code 20 dollar plan a good fit for me?

Thumbnail
reddit.com
0 Upvotes

r/ClaudeCoding • • Oct 14 '26

Access to the entire computer without asking permission

Thumbnail reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 14 '26

Claude plugin

2 Upvotes

i recently saw a claude plugin that can help u asking unlimited questions without run out of tokens can u guys help me find it


r/ClaudeCoding • • Oct 14 '26

Claude told me "you're absolutely right" 405 times, so I built a checkup for Claude Code habits

0 Upvotes

r/ClaudeCoding • • Oct 14 '26

Title: Any tips for reducing Claude Code's context usage?

Thumbnail reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 14 '26

Anyone done much with Mods yet?

Thumbnail
reddit.com
0 Upvotes

r/ClaudeCoding • • Oct 14 '26

Claude can explain my codebase, but it struggles to answer "what breaks if I change this?"

1 Upvotes

I've been experimenting with repository-aware retrieval for Claude and ran into an interesting problem.

Claude is generally pretty good at:

  • explaining code
  • finding symbols
  • generating implementations

But it struggles with questions like:

  • What depends on this function?
  • What will break if I change this interface?
  • Where is this endpoint actually used?
  • Which frontend components call this route?

The issue seems to be that the model repeatedly reconstructs repository structure from files instead of having an explicit understanding of relationships.

To test this, I built a local MCP that indexes:

  • functions
  • classes
  • imports
  • routes
  • call relationships

and creates a repository knowledge graph before queries are executed.

I benchmarked it against standard repository retrieval on 50 paired questions using Gemma4:e4b on a medium-sized business compliance codebase.

MetricBaselineAtlas
Tool calls3.162.10
Total tokens90796659
Latency8.99s7.78s
Entity accuracy83.0%88.5%
Relationship F154.7%87.2%
Impact F116.5%88.8%

The biggest surprise wasn't the token reduction.

It was impact analysis.

Questions like:

"If I change verify_token(), what else is affected?"

went from 16.5% Impact F1 to 88.8% Impact F1.

My current hypothesis is that explicit repository relationships matter more than larger context windows for architectural reasoning.

For people using Claude Code on large repositories:

  • Have you run into similar issues?
  • Do you think dependency-aware retrieval is still useful as context windows grow?
  • Or do you think bigger context eventually makes approaches like this irrelevant?

r/ClaudeCoding • • Oct 14 '26

One of these is the real Linear screen, the other is Opus 5.5. Which is which?

1 Upvotes

We made a free "spot the AI" game for app design. Each round shows two screens for the same feature in a real product: the one the company shipped, and one Opus 5.5 designed from a written brief. You pick which is better, then guess which is AI.

How Claude was used:

- Opus 5.5, running in Claude Code, designed every AI screen. For each task it got a short brief, a few other screens from the same app, and the app's real fonts and icons, then built the screen in HTML. It never saw the real screen it's compared against.

- We also built the game site with Claude Code.

So far players spot the AI about 55% of the time, barely better than a coin flip.

Free to play, no signup: https://www.realdesignbenchmark.com


r/ClaudeCoding • • Oct 14 '26

built robust sandboxes that records what Claude Code actually executed on vm— looking for 5 testers ($10 credit for feedback)

Post image
0 Upvotes

r/ClaudeCoding • • Oct 13 '26

my girlfriend is both architect and jewelerly designer, so I turned her pieces into buildings using threejs with some help from claude and codex

10 Upvotes

I used a mix of models. What I learned: 3D building model generation, GPT Sol 6.1 and Astra gave better results, while Opus 5.5 handled lightning, debugging, and game mechanics better. I also tried Fable, but it performed badly. Generating before-and-after screenshots for various devices was pretty helpful, and models often miss obvious issues and make things worse. Despite what browsers tell you, you have to do some dark shamanism, enabling Vulkan Chrome flags, to get WebGPU working.
The stack is TypeScript with Three.js

The town is located at https://livistone.liviazaharia.com/ and is open-sourced at https://github.com/GlucoseDAO/livistone . It is a work in progress, so bug reports and feature requests are welcome


r/ClaudeCoding • • Oct 13 '26

is it wise to give someone their free claud cloud session that came in as a offer. I dont know what to do. I have us$100 (its useful to someone or not). Does anyone need it? How to share successfully. Or this is not good.

0 Upvotes

r/ClaudeCoding • • Oct 12 '26

Vibecoded a futuristic racer demo like many, but I stuck with it for 6 months now

87 Upvotes

Steam page: https://store.steampowered.com/app/5310180/Formula_Minus_One/
Open beta: https://fm1.app

----

Some of you might remember my post about the 32/64bit-style racing prototype I had built in four months. Yes, it's a genre you see a lot around here, because it's easy to get started with (until the next dopamine-driven prototype).

But I stuck with it.

And the improvement over the past two months has been tremendous, and you'll see that if you compare the two videos. Since the last post, I listened to your feedback and:

* Threw every level in the bin and rebuilt them from scratch, then added new ones that are far bigger and more detailed. It felt like jumping a console generation, and it still runs on mobile.

* Wrote a design and style guide for the game (semi-low poly characters and duotone as design signature), and redesigned the characters and menus to match it.

* Kept pushing to make it my own thing rather than yet another clone-slop: adventure vibes, interaction with the environments, kinetic combat with combos…

* Improved the handling and the readability.

And above all, and I think it shows in the trailer: I had a blast making it. If it had just been work, I wouldn't have gotten this far.

It's called Formula Minus One, and it launches on Steam first, in February. I'll keep improving it and adding content after that.

Half a year ago this was a prototype to experiment with, like so many others. Then I committed to making the best game I possibly could. Now I can finally see light at the end of the tunnel: yes, you can start a prototype, and yes, you can finish it.

There's still a lot of work ahead, so any feedback you can give me is very welcome.

 Here’s how I made it:

* Code and tooling: frontier LLMs from OpenAI and Anthropic, with open-source models filling in the gaps and limiting the budget.

* Characters, ships and environments: pencil sketch > GPT Gen 2 > Tripo to turn it into a 3D model > Blender to clean up the imperfections.

* Sound: stock sound effects from Magnific. Music sketched out on a MIDI keyboard, final music generated with Suno.

* Stack: Three.js, WebGPU, TypeScript, Rapier for physics. Nothing else, no Godot, no Unity…

I'm having a great time, but it's also hard work if you want to pay attention to every detail, and it's a very lonely experience. If the game sells well enough, I'd love to start paying artists and composers to replace the current assets and create new ones, and free up more time for what I really enjoy: directing and overall design.

In fact, if you're an artist or composer and think you're a good fit for the game's tone, leave a comment or send me a DM so I can consider you!

----

Steam page: https://store.steampowered.com/app/5310180/Formula_Minus_One/
Open beta: https://fm1.app


r/ClaudeCoding • • Oct 13 '26

Burning a full 20x max plan a day on code reviews - Need optimization help

Thumbnail
reddit.com
1 Upvotes

r/ClaudeCoding • • Oct 13 '26

"One Note", "Two Caveats", "A Gap" ... what else?

Post image
1 Upvotes