Keep many coding agents moving with local context cache
A developer ran several Claude Code sessions at once on local RTX 3090 hardware and avoided reloading long contexts after idle periods.
- What they did
- Roark66 paired Claude Code with local models on RTX 3090 cards that each had 24GB of memory. They kept as many as 10 sessions open, though only about 5 were doing work at any moment. Since they controlled the inference stack, they preserved entire contexts in RAM and could write them out to disk, so an idle session did not need to start over from scratch.
- How it went
- They said keeping roughly 15 complete contexts in memory drove cache usage to 95% or higher. They also estimated that their weekly usage of about 1.3B input tokens would run into thousands of USD if billed at API rates.
- Tips
- This approach depends on having enough RAM to hold multiple long-running sessions. It also sidesteps cloud cache expiry, which can make an idle long context expensive to resume.
Try it yourself with Claude Code
I need to handle [N] independent coding jobs in [path] at once. Split them into separate git worktrees and branches, keep each one isolated, run the needed tests, and give me a brief status update for each task: [task 1], [task 2], [task 3]. If you reach a step that would delete files, send changes, merge branches, or otherwise commit to something I may not want, pause first and ask for my approval. Do not combine the branches unless I explicitly say so.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Automate a self-hosted stack on your own hardware
Jordan Fulghum let Claude Code configure and run several home services on a Beelink mini PC.
Move WordPress posts into MDX files
Pauline used Claude Code to pull a WordPress archive into MDX and sort it into year folders.
Control Claude Code by voice while you work hands-free
A developer built a local spoken-command setup around Claude Code and used it to fix a WhatsApp integration without touching the keyboard.
Flag coding conflicts before agents edit
They set up a local layer that makes coding agents announce planned changes so overlapping architecture work gets caught early.
Hand web browsing tasks from Claude Code to Comet
A developer wired Claude Code to Perplexity Comet so it could browse, log in, and research while coding continued separately.
Try a local search layer for code lookup
ColGrep-Agent-2B runs locally and helps Claude Code sift search hits and open files to find code with less effort.