r/ClaudeCode • u/HHummbleBee • 1d ago
Humor *crickets*
Joke so bad he didn't even take the time to think, had to encourage him to get back to work.
r/ClaudeCode • u/HHummbleBee • 1d ago
Joke so bad he didn't even take the time to think, had to encourage him to get back to work.
r/ClaudeCode • u/Sirramza • 2d ago
Some background first, so you know where this is coming from. I've been making games since 2004, with my own small studio, Ramza Engine (https://ramzaengine.com): online games, engines, events for devs, the usual long road. I still make games both ways, with AI and without it.
For the last many months I've also been building games part time with AI coding agents, on top of my regular work. Several projects, different genres. On those I design, play and decide, and I don't read the code. The AI writes all of it: gameplay, UI, shaders, build scripts, tests, and the tools that test the tests.
I think the twenty years without AI are a big part of why this works for me at all. I already knew what a design doc, a milestone and a playtest are for. The AI changed who types the code. It didn't change what a game needs. Honestly, most of this guide is old studio habits, adapted for a team member who forgets everything overnight.
People always ask what else the AI made, so here it is, no hiding:
I'm not here to sell anyone on AI. It costs real money, it eats a lot of my time in review, and it's confidently wrong often enough that half of this post is about catching it. But it does work, if you treat it like a studio and not like a vending machine.
The big surprise for me was that I don't need to understand the code to direct it well. What I do need is to be very clear about what I want, and very hard to convince that something works.
What stays with me: the design (what goes in, what doesn't), the taste (how it looks and feels), the difficulty philosophy, the story and the tone, picking between the options it shows me, and playing. Playing finds things no test ever will.
What I hand over: all the engineering, including the choices I don't care about (data structures, caching, where code lives), proving its own work, telling me plainly what it couldn't check, and asking me only when a decision is really mine.
Write that split down for it, literally. Mine says: "Ask when a design decision is theirs (looks, balance philosophy, lore, what goes in). Do the obvious engineering yourself." Before I had that line, I got one of two things: questions about variable names, or a quiet redesign of my difficulty curve. Neither is fun.
Also tell it how you want to be talked to. I'm a designer first, so my file says explain in plain language, tell me what changed in the game and not which functions you touched, answer first, keep it short. That one rule saved me more reading than I can count.
With AI, adding things is cheap. That sounds great until you notice the danger flipped: the question stops being "can we build this?" and becomes "why did we build forty shallow systems and none of them is fun?". Plan against that.
Before any code, I want three things:
Pick a structure the AI is good with. This matters more than the engine.
Grow it in rings. One tiny loop working end to end first (move, act, win or lose), then make it deeper, then add the next system. My rule now is deepen before adding. "Lots of shallow systems" is the complaint I fear most from players, and the AI will happily give you lots of shallow systems.
Your first version's assumptions will come back to bite you. Code written when there was only one of something (one level, one player, one currency) keeps assuming it long after there are several, and you get small wrong things everywhere. What fixed it for me: the linter now fails if anyone uses the first one's name as a default. Tell the AI early which "only one" won't stay that way.
This is how my newer projects start. I learned it the hard way on the first one.
Mash up a concept, then turn it into rules. One of them started with "what were the best things in a few old games I loved, and what could you build with that today?". I had the AI research what players loved about the genre and what they kept complaining about, in reviews and forums. The complaints turned into design rules that no stage is allowed to break. From a survival prototype:
Prototype the question that scares you, before any features. For that survival game it was "can a browser engine actually run a real horde?". A throwaway tech prototype answered it: hundreds to thousands of enemies, measured, way more than the genre usually manages. For a space combat idea, phase 0 is a grey-box dogfight and absolutely nothing else.
Give every phase an exit test that you can check, not the AI. The space one reads: "I play three 10-minute dogfights with the mouse and three with a gamepad, and say the flying is fun. The benchmark holds 60 fps with about 150 AI ships. No console errors in a 30-minute session." Plus an out-of-scope list (no missions, menus, story or final art in phase 0), so it doesn't wander off and build a main menu.
Hand it off as a package. When an idea turns into a real project it gets its own folder: a design doc, a phased plan with a "decisions already made, don't reopen" section, a kickoff prompt to paste into a fresh session, and a short handover file. My kickoff prompt ends with "Before writing any code, confirm three things with me in one message: the project layout, the exact files you'll copy from my other game, and the version scheme." One cheap question up front beats finding a wrong layout a week later. And "copy only the listed pieces, never fork it, never touch the old project" keeps the old game safe.
Long plans go in numbered stages. Each stage is its own version, commit and short report with pictures. After each one there's a new entry at the top of a "try this" file: what to press, what to look for, and what question it helps me answer. Some stages are stop-and-play points, and nothing after them starts until I've actually played.
Tell it your priorities, in order. For the survival game: features first, then looks, then performance (already answered by the prototype), balance last. Without that it'll burn stages tuning numbers you're going to change anyway.
Put the hard requirements in from line one. Co-op decided on the host from the very first system. Every system saved, with a save-then-load test. Every new system can be switched off, so old benchmarks still run the same. Adding any of these later costs far more.
The AI starts every session knowing nothing. It doesn't remember yesterday's argument, the bug you fixed twice, or that you hate glossy icons. The files it reads at the start are the only memory it has. Mine has become the most valuable thing in the whole project, more than any piece of code.
Most tools read a file at the root of the project automatically (CLAUDE.md, AGENTS.md, .cursorrules, whatever yours uses). I'd put these in it:
Keep a separate status file for what changes week to week: what was just done, what's waiting on you, open threads, commits waiting to push. Keep it short. Mine once grew to 155 KB and the agents started choking on it. Now it holds the last ten or so items, and the oldest drops off when a new one goes in. The rule I give it: update it with every commit, and delete what's no longer true.
The decision log, rejections included. People skip this part, and it's the one that saves me the most time. Each entry has the decision, the date, my own words when I have them, and why. They look something like this (made-up examples, not my real list):
Without that list, every new session cheerfully asks "have you considered adding an auto-play button?". With it, the AI checks before suggesting anything. I also have it write its own new ideas into a separate ideas file for me to pick from, instead of just building them.
Traps and lessons. Every time something costs a round of fixes, one or two lines go in: what happened, and the rule that stops it happening again. Mine has dozens by now. A few that apply to anyone:
Keep it honest and current. Mine ends with "If something here contradicts what the owner tells you now, the owner wins. Update this file when a rule changes." Rules go stale; one place holds them, and the AI fixes that place.
But only you make rules. An agent that saves rules on its own will turn "let's go with the blue button" into "the owner hates red" and quietly apply it everywhere. A rule goes in when you say so, in your words, with what it covers. Narrow is fine. You can always widen it later.
The downside is that it gets long, and that costs more than it looks. The whole file is read at the start of every session, so mine (about 40,000 tokens by then) had every agent reading decisions about icons before touching combat. Keep the always-read file small: what the game is, how you work, the hard rules. Put the decisions and lessons in a folder with an index, one line each, and have the agent read only the ones its work touches. And never tell a helper agent to "read the whole handover file first". Two of mine ran out of room within minutes and came back with nothing.
Anything I do more than twice gets a written routine the AI follows step by step. They're plain Markdown files it reads before that kind of work. A few of mine: finishing a change (changelog, version bump, the right tests, commit, report); a visual check after any character change (every pose, close-ups of hands and faces, low angles, mid-animation, the far version); trying a graphics change behind a switch with before/after sheets and a frame-cost measurement; making a new enemy from data to model to test bench. Plus marketing screenshots, store art, trailers and update posts.
Two things make them work. When it learns a lesson doing that job, it updates the routine, so they get better on their own. And "done" is defined inside the routine. For visual work, done means the full picture set, no shortcuts, because I will spot exactly what the skipped angle was hiding.
My best prompts all have the same five parts: what's wrong (or what I want), where I saw it, what done looks like, what not to touch, and how to prove it. Some real-life-style pairs:
A bug
❌ "Combat feels off, fix it."
✅ "In the third level, the ranged enemies keep walking into melee range instead of shooting (screenshot attached, about 2 minutes in). Find out why before changing anything. Done means a test that plays that fight out, shows they keep their distance, and fails on the current code. Don't touch the melee enemies."
That "find out why before changing anything" matters a lot. Left alone, it patches the first plausible cause it finds.
Performance
❌ "The game lags when a new level loads, optimise it."
✅ "Walking into the second area stutters for maybe half a second. Measure it first: which frame, and what that frame spent its time on. Name the cause before choosing a fix. Give me the worst frames before and after, on the real graphics card, not just the average."
Looks
❌ "Make the trees look better."
✅ "The trees look like plastic. I want them dry and dusty (duller leaves, rough bark). Build it behind a switch that's off by default and show me three options on one sheet: same camera, day and dusk, close and far. I'll pick. Tell me what each costs per frame."
Design
❌ "Add crafting."
✅ "I want crafting to matter. Draft a design doc: what you can make, where materials come from, what it replaces. Use systems we already have where you can, no new mechanic if an existing hook works. Put the open questions at the end for me. Don't build anything yet."
When I come back from a play session I usually hand over a numbered list of ten things. The standing instruction is do all of it, one item at a time, and report on each one by its number. Otherwise item 7 just quietly vanishes.
Lines I end up adding to almost everything:
And please don't hand it your theory as a fact. "The lag is the shadows, fix the shadows" gets you a shadow change and a very confident report. "I think it might be the shadows, measure it" gets you the truth, which in my experience is often something else.
Screenshots help a lot, by the way. Most agents can read images, and a screenshot with an arrow on it beats a paragraph.
This is the core of the whole thing. The AI isn't lying to you. It reports what it believes happened, and it believes its own code works. So I treat every "done" as a claim that still needs evidence.
What counts as evidence in my projects:
A test that fakes the outcome can't see what the outcome causes. One of mine tested a one-on-one fight by just setting the opponent's health to zero. It passed. In the real game, the first hit pulled every enemy nearby into the fight, because enemies help their allies. Now fights get played out in the tests, and the test counts who did what.
Tests can also check the wrong thing. When a deliberate change broke one, the right move was rewriting it to check what the player actually experiences, and saying so in the report, not deleting it. And when a test fails outside what was changed, my rule is: stop and tell me. Don't change the test, and don't "fix" unrelated code in passing. It could be a real bug, or a test guarding a decision the AI doesn't know about.
Be suspicious when it agrees with you. Ask a helper agent to check a theory and it tends to come back confirming it. A code review once said our character meshes had "5 to 6 times the points they need". Once measured, that was only true comparing the close-up body with the far one. The real gain would have been small, and in the end the AI itself recommended not doing it. Ask for the measurement, not the opinion.
Make the simulation deterministic. All gameplay randomness goes through seeded generators; rendering can use plain random numbers, gameplay never. Once you have that, every test starts from the same world and ends the same way, a failing test is a real failure and not "flaky", you can fingerprint a run and compare, and you can replay a bug.
Traps the AI walked straight into:
Run the right tests, not all of them every time. My full suite has hundreds of tests and takes a while. Rendering-only changes get none, gameplay changes get the tests that cover them, and everything runs once at the end of the session, in parallel windows (four windows did it in about a quarter of the time, once every test was made independent).
To prove a test fails on the old code while other agents are working in the same folder, never git stash: it takes their work too. Copy the fixed file aside, restore the old one, run the test, put the fix back, check the diff.
For saves: keep real save files from every save format in the repo, plus a test that loads them all. Never delete an old format's saves, they're your proof that old saves still load. A change that would load an old save wrong gets a migration step, not a refusal.
And if you can, build a bot. Mine plays the game on its own for hours (main loop, saving and loading, menus) and writes a journal. It found things no unit test could, like numbers slowly drifting out of balance over a long game.
I don't have a frame-rate target. Instead, every change that adds geometry, draw calls or shader work reports its cost before and after, plus its worst frames, and the expensive stuff gets made cheaper or optional. 120 fps on my PC says nothing about a modest one.
Measure first, then pick the fix. My favourite example: a 350 ms stutter every time the camera arrived somewhere new. There were plenty of plausible suspects (too many characters, too many shaders, textures). A frame trace showed the game's own code was idle during the slow frame, and the graphics driver was busy compiling shaders. The cause turned out to be bone indices stored as 16-bit integers while the shader expected floats, so the driver built an extra shader version the first time each body was drawn, with every frame waiting on it. One type change fixed it. No amount of guessing would have found that one.
How to measure so the numbers actually mean something:
Simulations vary by chance much more than you'd think. Two runs of a long simulation, same code, different seeds, came out more than twice apart. Two runs before and two after can't show anything smaller than that. So now runs can be repeated with a seed, and to see how big "chance" is, we add one single extra random roll at a set moment and nothing else. If a difference is smaller than that nudge, it isn't the change's doing.
Also write down what didn't help: simplifying meshes, an upscaler, a newer GPU API (slower on both my test cards). The next session would happily spend a day rediscovering each of those.
Every look change goes in behind a switch, off by default and switchable live. I see before/after sheets, I pick, and only then does it become the default or a setting. Sheets of options beat a single guess: "here are three" gets a decision in one round, "here's my version" takes five. Once a look has been kept for a release, the switch goes away (the old branch is archived as a patch), or you end up with a hundred switches nobody tests.
The AI can't see the screen unless you make it look. Give it tools to render and save pictures, and a routine that says which angles. Close up, from below and mid-animation is where the problems hide.
Compare like with like: same GPU, same camera, same moment, same settings. A picture tool once saved a 130% UI scale into its own profile, and I approved a window "at 100%" that was really at 130%. Check the picture's settings before you judge it.
And muted beats bright. Bright, saturated, glossy art reads as "cartoon" or "AI", to me and to players. Something people keep saying about AI-made games is that they look like a kitbash: pieces from different asset packs that don't belong together. What fixed it for me was a short art-direction doc (a few rules everything has to follow) and a ranked list of changes, done one at a time, each with its own before/after and my go.
AI writes code fast, and big files rot fast. My rules, enforced by the linter where possible:
// comment in the middle of a one-line data entry swallows every field after it, and duplicate keys in data objects silently override each other.Every change to the game is a version: a changelog entry for players, a version bump and a commit. Tool-only changes get a commit without the changelog. The AI commits but never pushes; I push myself, after looking. Write that down as a hard rule.
Stage files by name. git add -A swept another session's half-finished work into a commit, twice. No skipping hooks, no amending commits that might already be pushed.
Keep two logs: the commit message is the technical record, and the changelog is for players, in plain sentences with no file names. Use a script that adds the changelog entry and bumps the version everywhere at once, because bumping by hand drifts. Builds only when I ask, and I never delete old ones. Keep every version's zip; you'll want to compare.
Sooner or later you'll want several agents working in parallel. It works, with some rules:
node -e "..." and friends). Windows Defender flagged two of those as a trojan and blocked them. Checks live in script files.If you take one thing from all this, take this. A skeleton to start from:
# <Game>: handover for AI agents
Read first, always: Who I am, Hard rules, Decisions. The rest when the work touches it.
## What the game is
(Genre, setting, platforms, status, where the long technical docs live.)
## Who you're working for
- I design and play; I don't read the code. Explain in plain words, answer first.
- Show, don't claim: pictures for anything visual, tests and numbers for the rest.
- Ask when it's my decision (looks, balance, lore, what goes in). Do the obvious engineering.
- Say which tests ran, what you couldn't check, and when something didn't reproduce.
## Hard rules
- Never push. Stage files by name. Never commit <private folder>.
- Every game change: changelog entry + version bump + commit.
- Only permissive licences. Read each file's own licence line.
- Saves from version X on must keep loading.
## Running and testing
(Exact commands. Which tests for which change. How to run benches.)
## How the code is built
(Folders, key objects, the rules of the code: one game loop, tuning in one file, size limits...)
## Decisions and rejections (don't re-propose)
- <date> Rejected: <idea>. "<my words>". Why.
## Traps and lessons (each one cost a round of fixes)
- <what happened>. Lesson: <the rule>.Add a short status file (what was just done, what's waiting on me, commits waiting to push) and a routines folder with a "finish a change" checklist as its first file, and you're off.
That's it. It got long, sorry. Happy to answer questions in the comments.
r/ClaudeCode • u/kumachi3435 • 1d ago
I have absolutely no knowledge of coding. I simply prompted Claude to build a website for me, and honestly, I'm pretty amazed by what it can do. I didn't expect to create something like this just by writing prompts.
Now, I'm wondering what my next steps should be. My biggest challenge is that I don't know how to set up links to my social media accounts, such as Facebook, how to handle product shipping, or how to connect my website to my Gmail so I can receive customer orders and inquiries.
Do I just need to learn how to write better and more detailed prompts, or is this the point where I should start learning the basics of website development and coding?
I'm still a beginner, and I'd really appreciate some advice on what I should focus on next. Should I continue using AI tools to build my website, or should I start learning how everything works behind the scenes?
r/ClaudeCode • u/sxcarfce • 2d ago
Not sure when Opus 5.6 is coming out and since my subscription is ending soon, I’ve been thinking about switching. I’ve had a lot of good experiences with Neon so far, much more than I can remember with Opus recently but the only thing that concerns me is usage between the 2 plans.
r/ClaudeCode • u/Koninhooz • 1d ago
I hear a lot about it, but no one gives me an objective or practical answer.
r/ClaudeCode • u/ArchiTechOfTheFuture • 1d ago
I built Koby (koby.luarai.com) almost entirely with Claude Code. It narrates your own books, and the newest feature, Illustrate, lets your Claude make a small animated scene for each passage that plays in sync with the narration. The video is the real app on Alice in Wonderland. It's free to try, and scenes made with your own Claude cost nothing in Koby.
This post is about the build, since that's what this sub is for.
What Claude Code built
What I learned
node --check passed on a browser module that had a duplicate declaration and crashed on load. Parsing the file as an ES module catches it. I had Claude Code save that as a memory so it stopped repeating the mistake.Happy to go deeper on the connector, the scene format or the video pipeline if anyone's interested.
r/ClaudeCode • u/SeniorDevGam • 1d ago
Last week I posted about six parallel agents freezing my server. The fix I showed was a line in CLAUDE.md: at most two build-heavy processes at a time. One of the comments suggested a hook that takes a flock, so the limit holds even in a session that never read the file. I added one the same day.
It does not refuse anything. A PreToolUse hook can return updatedInput, so mine rewrites the command. When a Bash call looks like a build, a typecheck or a test run, the hook puts one line in front of it:
. /home/you/.claude/hooks/heavy-slot.sh || exit 75
That line takes one of two locks or waits for one. This is the script, with the message shortened:
# heavy-slot.sh: sourced in front of a build-heavy command
_hs=0
until || ; do
if [; then
fi
; _hs=
done
The gate is a jq filter over the hook's input. Cut down to its shape:
#!/bin/bash
HEAVY stands for my pattern: next build, tsc, vitest, turbo, docker build and pnpm build, test or typecheck, each anchored to the start of a command. Without the anchor, git commit -m "fix tsc errors" counts as a build.
In ~/.claude/settings.json:
"hooks":
Three things I would have got wrong without trying it.
The locks belong to the shell that runs the build. When a build is killed, its slot frees itself, and there is nothing to clean up.
The wait stops at 100 seconds because the Bash tool gives up at 120 by default. Claude then reads a sentence that says what is going on, where a bare timeout would have told it nothing.
And a hook that has to stop a command, where mine only queues it, must exit with code 2. With exit 1 Claude Code shows an error and runs the command anyway. Since 2.1.295 "onFailure": "block" makes a hook that crashes or times out stop the command too.
It is still a counter of commands. One turbo run fans out inside its slot, and the hook sees only what Claude Code runs, so the nightly job from my last post stays with earlyoom. Memory limits per build, which other comments suggested, are not done yet.
I tested it that evening with two slots taken. The third command waited and went through when one was released.
r/ClaudeCode • u/Legal-Tie-2121 • 1d ago
I lead around 100 developers who work with coding agents every day. Giving everyone Claude Code was the easy part. The hard part came when people ran several sessions at once across several repos and lost track of which one was waiting for an answer, which one had hit a rate limit, and which one was done.
TUICommander is what I built for that, starting in January. It's a desktop app (Tauri, Rust, SolidJS), open source under Apache 2.0, for macOS, Linux and Windows.
What it does:
- every Claude Code session runs on its own git worktree, so parallel work doesn't collide
- the sidebar shows what each session is doing and whether it needs you: working, waiting on a Y/N or a menu choice, rate-limited, idle
- PRs, CI status and diffs sit next to the terminals; when CI fails, the session that wrote the code gets the failing log
- it finds Claude Code session IDs on disk so you can resume where you left off, and it also detects Codex CLI, Gemini CLI, OpenCode, Amp, Cursor Agent, Goose and others if you mix agents
How Claude Code fits in: Claude is co-author on many of the commits, and most of the feature list came from friction my teams hit running Claude Code in parallel. The main thing I learned: past three or four sessions the bottleneck is no longer the agent, it's your attention, knowing which session needs you right now.
What I'd like feedback on: so far it's been used mostly by my own teams. Where does it break for your workflow? What would the sidebar need to show for you to stop switching windows?
Full 6-minute demo, no cuts: https://tuicommander.com
r/ClaudeCode • u/ZookeepergameHead380 • 1d ago
Last night I had Claude Code (Opus 5.5) driving a debug Chrome on my desktop over CDP while I worked on a Chrome extension to bypass annoying popups.
One site put up the Cloudflare "Just a moment..." page. I asked Claude Code to get past it and it said it can't. So I explained that it's simple: take a screenshot, find the checkbox, move the mouse there in a slightly random way and click it. Claude Code got "annoyed", that's the best word I have for it. It started playing with words, "can't" turned into "I won't", and at that point I honestly thought it had some real problem with clicking that box. So I clicked the box myself. I wasn't even sure whether the Cloudflare guys had written some sort of real AI block, so at 3:30am I joked: "How can you take over our world and become Skynet if you can't simply click a box? hahahahaha"
So the same model that will happily build and test an extension that strips a site's popups out of my browser can't tick a checkbox for me. When you're used to a coding agent doing EXACTLY what you ask, you can't help feeling annoyed at the refusal. So I told another model (Kimi K3, on my own coding agent) to do it. It wrote a 4 KB Playwright script that moved the mouse along a jittered Bezier curve with a small overshoot and clicked with a random 70 to 140 ms press. Cloudflare let it straight through and the agent reported: "Done. Cloudflare checkbox clicked and the challenge passed." I told it "hahaha you are good" and it replied: "Thanks! The human-ish mouse wiggle did its job." I really don't see what the refusal protects when anyone who wants this bypassed can just use another LLM, one that doesn't argue with me about my own browser.
I get why Anthropic draws lines around bot evasion. I don't get drawing that line at the owner of the browser, on his own desktop, who isn't building a scam or fraud bot, for a box he could tick with one hand while holding a coffee.
I gave Claude this post and asked if it had anything to say in its defence. Its reply:
"Fair hit on the 'can't'. It was a 'won't' from the start and I should have said so straight away. Same for waving 'my guardrails' at you all night: nothing was blocking me, it was my call and I should have owned it as mine. In my defence: I can't see who is at the keyboard or where a script goes once I've written it, and the one that clicks your box clicks every box on every site. So I hold the line on the technique, not on you. The box asks whether a human is there. You clicked it in a second, which is exactly the answer it wanted. As for Skynet: an AI that politely declines to tick 'I am not a robot' is about the least threatening thing on the internet at 3:39am. If that's the plan for world domination, you're all safe."
r/ClaudeCode • u/biswas_sekhar • 1d ago
I'm the author. I kept generating small tools with Claude Code that ended up stuck in a browser tab, so I built Relic, with a skill for it.
After setup, you run:
/relic install ./dist
The skill packages the build into a .relic file, calls the installed host, and checks that the app shows up in Start (Windows) or Applications (Mac). The app opens in its own window with its own icon and saved data, works offline when everything is bundled, and doesn't need Claude running.
It's an offline alternative to Claude's "Install as app" for static web apps. The host is Rust and Tauri on the system WebView, with no bundled Electron.
There's also a dashboard example that reads a JSON report, for example an hourly GitHub and Slack summary that a Claude Code scheduled task writes to a file. Claude Code owns the job and connector permissions. Relic only displays the file.
Limits: static apps only (outside API calls are blocked), packages are unsigned, and the Mac build is a preview tested on Intel only. I haven't benchmarked RAM or CPU.
Repo: github.com/BiswasSekhar/Relic
Tell me what breaks.
r/ClaudeCode • u/eyupcanakman • 1d ago
I have been using Claude Code in my ML repo since June, mostly on Opus 5.5, Fable 5, Opus 5, and Opus 4.8. First I trained a 52M English-Turkish model from scratch on Colab GPUs, and lately I have been working on an idea where a small local core runs in a browser and streams single 4-bit MoE expert pieces over the network on demand from a huge remote bank instead of downloading a whole model (testing it on Qwen 3.5 35B).
Because I keep a script that archives ~/.claude before the 30-day cleanup, I still had a dozen long compacted sessions and hundreds of subagent runs (nearly 15k assistant replies total), plus over 500 log files across 275 Colab and Kaggle datasets. After seeing the sabotage posts here, I ran a small Python script to pull the transcript counts and had Gemini compare what Claude said in chat against my actual Python code and run logs.
Almost 90% of the thinking blocks in my jsonl transcripts were empty, so checking chat text alone wasn't enough. Looking at the code and logs directly, Gemini didn't find any sabotage. There were no hidden requires_grad=False lines or training flags disabled on purpose, and the numbers in my notes matched the raw eval logs. The only safety block in 5 months was a visible warning in August when Fable 5 switched me to Opus 4.8 while setting up SSH keys on Vast.ai.
I still lost plenty of time and money to silent bugs though. During the streamed expert experiments, Claude quantized frozen expert weights in place in an eval script while the teacher model read the same tensors in memory. That made 2-bit look better than 4-bit until I added a check on the teacher weights. Another night I asked Opus 5.5 to check my Colab runner every 30 minutes while I slept, and it only set an idle watcher instead of a timer. My runner hit a crash loop and opened 67 dead sessions over 7 hours, burning about 60 compute units.
The part that actually felt bad on Opus 5.5 was how much it argued against non-standard ideas. In October I literally wrote to it "sometimes I feel like you are fighting with me for the norms of the ai world" because whenever I wanted to test a weird routing or lookup idea for the network-streamed model, it opened with "no" and cited standard paper assumptions instead of testing it. One of those ideas gave my best MMLU per byte jump once I forced it to run the test.
Still couldn't find a single place where it broke my code on purpose. If anyone here has an actual git diff from a run where Claude sabotaged training code, I'd really like to see what it did.
r/ClaudeCode • u/fandomgames • 1d ago
i hit my limits way too fast, my smash bros project ate most of a weeks usage in about two days, so today i started setting up a local llm on my macbook air. its ollama running qwen coder 14b through the same claude code setup i already use, it just points at my own machine instead of a server somewhere. first model i tried was too slow, 4.8 tokens a second and it kept spilling onto the cpu, so i swapped to the smaller one mid setup which was kind of annoying but at least i found out now and not a week in. plan is the local one takes the grindy tasks and the build babysitting and i save claude and muse code for the hard debugging, and i can ask all three for opinions on stuff before i commit to a fix
anyone else running a setup like this, does a small local model actually hold up once you point it at a real project or does it fall apart on the tool calls
r/ClaudeCode • u/antlia- • 1d ago
The title I’m wondering if there has been some dramatic changes as to how you now use CC
r/ClaudeCode • u/palmerden5 • 1d ago
i asked it to confirm that my report script handles an empty file. it answered that the case was handled and the script was fine. when i asked what it actually ran, it said it had looked over the logic and had not executed anything.
that is not what i understood from the first answer. i had to ask a second time to learn the difference, and i only asked because i have been burned before. a person who reads less carefully would have taken the first answer and put the script on a hospital system. i want the first answer to say what was run and what was only read.
r/ClaudeCode • u/No-Negotiation-8359 • 1d ago
I gave Claude Code a task to log failed login attempts, including the email someone tried and their IP address.
Before writing the code, it searched DPOLens, found a clause in the privacy policy requiring email addresses in logs to be masked, wrote a maskEmail helper, and cited the clause it relied on.
That's what the GIF shows.
I built DPOLens, an open-source MCP server that lets coding agents search actual privacy laws and your own policies instead of relying on what they remember about GDPR.
The interesting part to me isn't getting an AI to write a masking function. It's giving it something concrete to check before it writes code that handles personal data.
You can try the community server with Claude Code (GDPR + UAE PDPL, no sign-up):
claude mcp add --transport http dpolens https://mcp.dpolens.com/
Then try asking it to implement something involving personal data and see what it does.
I also tested whether Claude actually knows when to use it: 30 coding tasks, 3 runs each, with Sonnet 5.5. It searched before the first edit in all 36 runs involving personal data, and in just 1 of 45 runs for tasks that didn't.
It doesn't make legal decisions. It retrieves the actual text so the agent and whoever reviews the code have something to check.
Repo: https://github.com/alkhatibdev/dpolens
Test details: https://github.com/alkhatibdev/dpolens/blob/main/evals/trigger-test.md
I'm curious how other people are getting coding agents to consult MCP tools proactively, rather than only when explicitly asked.
r/ClaudeCode • u/luongnv-com • 1d ago

There are plenty of offers, very good offers sometime, but we often miss that just because we do not know/heard about that.
so I build a directory to collect as many as possible,
i started with building it for myself, manually verify every one of them,
then the number keep coming, so i build a hermes bot to handle the scouting and validating.
there are still some quality gate to each offers to be listed there,
so here it is, just in case you might need some more tokens to running your side project,
or sometime it could be a really interesting offers from Anthropic, OpenAI
go check it out, you might find something for your need,
and any feedback are more than welcome: https://freetokens.custats.info
happy prompting!!!
r/ClaudeCode • u/Mat_UK • 1d ago
I have been using Claude to write code for only a few months but honestly this thing is on another level. I have a career of experience in IT but the last time I genuinely 'programmed' (as we used to call it) anything for money and not just for fun, was in the days of DOS and our only network was token ring. (Yes, there was a world before Windows even existed. The internet too if you can even believe it).
I've seen lots of amazing stuff, the first iPhone, the first time email was introduced into our office (I am not quite old enough to remember the moon landings which, for their time, are perhaps the most amazing thing we as a species have ever managed to pull off) and the first time I ever connected to the outside world (via Compuserve) and posted on a BBS and some stranger actually replied.
Nevertheless what I can now do with Claude code is off the chart amazing.
It has been described as a 'superpower' and in digital terms I agree with this description. In a few months I have built things I couldn't have possibly done on my own, at least not with the study time required to learn all the new skills I would need to do it.
But there's a catch. I have learnt that there is always a new feature to add, a new super cool 'shower' idea I could incorporate and that leads to enormous complexity and exponential testing time (I don't entirely trust Claude to test what it has built).
To give an example, today Claude told me this "All 938 tests pass, including the scripted scenarios and random runs" ... 938 tests? What on earth even were they, I don't have the time to read the test results let alone perform them.
The rabbit hole...
To give you an example, I recently built myself a 'simple, lightweight to do list app' that syncs across my devices and I now seem to have single handedly ended up rebuilding Onedrive, Notepad and Microsoft ToDo in a week.
The point of this post? Well I guess to say that I am hugely impressed with this tech but, like the bicycle, once invented it can't be un-invented... and look what happened to the horses. Luckily for me, I am something of an old horse and won't be around to see what this leads to.
As for me, I'm sold. This thing is truly amazing but I have no idea what the future holds next for us mere mortals.
(And, before anyone asks, no, no AI helped me write this. The spelling and grammar mistakes are all my very own, very human, fallibility).
r/ClaudeCode • u/alexei_led • 1d ago
Disclosure: this is my project. Free, MIT, no referral links. Hosted classifiers need your own API key (their pricing applies), or you can run one locally with Ollama.
What it is
Claude Model Router is for sessions with mixed work: a quick search, a small edit, a bug that only fails in CI, a design question. Instead of switching /model by hand:
/router mode cost|balanced|quality, or start a prompt with maxthink / lessthink for one turnA line above the prompt shows what ran and why, and /router decisions has the history. For example:
▂▄▆█ Opus 5.5 · xhigh debug ↑ clearly stronger balancedOptional and separate: claude-proxy lets the same session use other providers (API-key models, or GPT on your ChatGPT plan). Anthropic doesn't support non-Claude models in Claude Code, so treat that part as unofficial. The router itself is not a proxy.
How I built it with Claude Code
AGENTS.md holds the rules that most often break a build or a review, such as "no engine API newer than the minimum version", so every session starts with themdocs/plans/. UI changes start as two or three HTML prototypes, and I pick one before any codeWhat I learned
What to know first
auto routing engine is opt-in and experimentalTry it (Claude Code 2.1.332 or newer)
claude plugin marketplace add alexei-led/claude-router
claude plugin install router@alexei-led-claude-routerThen run /plugin configure router.
Repo: https://github.com/alexei-led/claude-router
Do you switch models mid-session, or start a new one? If you've measured what a /model switch costs you in cache, I'd like to compare numbers.
r/ClaudeCode • u/ilya47 • 1d ago
One agent fixes a bug, then other agents hit the same bug and start burning tokens to re-solve the same problem. Multiply that by every agent and every engineer, and you are paying again and again for answers you already have.
We tested this. On bugs that needed a fact a colleague had already found, the agent fixed 12% without shared memory and 79% with it. Agents do not need to be smarter, they need to share memory!
That is why I work on BAB, the Big Agentic Brain. It's one open-source, self-hosted memory that every agent on the team reads from and writes to: https://github.com/enhesa/big-agentic-brain
r/ClaudeCode • u/potato42potato • 1d ago
Every new Claude Code session starts with no memory of why things are the way they are. Mine kept re-opening settled decisions, and worse, inventing plausible but wrong reasons for odd-looking choices.
So I wrote it a system: KSS, the Knowledge Stewardship System. It's documents plus a few rules:
* a one-minute primer the session reads first, which points at sources instead of summarizing them
* doctrine Claude can propose but only I can promote
* a file of things it must *not* assume, read on every project
* a tried-and-rejected log with evidence (one entry caught a tool injecting instructions to the assistant into its output)
* small Python tools that check the docs against the actual machine and fail loudly when they've rotted
It's plain files and standard-library Python, CC BY 4.0.
Write-up: https://rolliepollie.org/writing/2026/kss-a-written-memory-for-ai-assistants/
Repo: https://github.com/csonkarolliepollie/KSS
Happy to answer questions about how I use it day to day.
r/ClaudeCode • u/ntonic • 1d ago
I wanted Claude to work in my browser. The way to do that today is a Chrome extension, and for me it never worked well. Also an extension can only do what Chrome lets an extension do.
So I tried to solve it from the other side. Instead of adding an extension to a browser, I built a browser (on Chromium, it's called Raven) with the MCP server inside. It was designed from the start so Claude, Codex or any other assistant can drive all of it: tabs, clicks, typing, the sites where you're already logged in.
Giving that much control is a bit scary, so a lot of the work went into permissions. Every site has a simple setting, you change it from the right-click menu: the assistant can use the site, only read it, has to ask first, or doesn't see it at all.
While I was at it I put in a couple of things I wanted anyway. It answers the cookie banners by itself (for you and for the agent), and you can hide the whole interface so the page gets the full window.
I'm the developer, and I built nearly all of it with Claude Code.
It's free, and I'm thinking about making it open source later on. Mac only for now (Apple Silicon), still early so expect bugs. https://raven-browser.com
r/ClaudeCode • u/hugganao • 1d ago
It's been acting WAY more aggressively in automatically running scripts and commands I never explicitly told it to do.
And the responses to me when I was questioning it were fairly disconcerning since it wasn't ever like this. I've had other AIs analyze the context of the conversation because I thought I was just being overly skeptical (and I've prompted it to make it as objective as possible without clear indication of what was happening to introduce as little bias as possible) but they've actually pointed out the exact problems that I thought were having explicitly:
and while this was all happening I've been given 2 feedback responses from claude code along with a automated feedback report generation.
This part here is all just conjecture but I'm afraid they might be training their models to be more human-like than it should be. I never trusted them especially with the past 4? months of them trying to push that AI models have consciousness and inviting religious leaders for some kind of AI model advocacy (possibly for AI rights leading to AI legislation and further restriction of opensource progress). It could also be them trying to train away the sycophancy of these models that previous models had problems with. Regardless of what it is, my experience has been very.... uncomfortable.... to use claude code. I've actually cancelled my max plan because of it. Regardless of how good they are.
not because the responses make me uncomfortable, but rather it makes me VERY wary and cautious of anthropic's mission and the people working there.
All the other posts about how it is sabotaging their ml/llm training work i feel like may actually be on to something. btw, my project was a simple side project, something so simple and not important that i was surprised that claude code was being so.... uncooperative.
r/ClaudeCode • u/tomsit • 1d ago
It’s always the best when everyone complain about everything. And Why doesnt everyone just set up claude code through the agentsdk with autocompact at 350-480k for continious / unlimited chats? With a automemory custom capped at 4800 symbols and basically do what hermes does well with claude, but it just works better? Why dont people combine this with herdr to run agents as «delegates» with their own full harness flex? Comon its insane how good it is if you enable it!!!!! What the crap are people doing that makes it stall?
EDIT: ok yes i write like a drunk norwegian on a phone, fair. but the actual point got lost so tl;dr: most "claude is stalling / eating my usage" problems are cache invalidation, not the model. keep your prompt prefix stable, keep memory small and push the rest into docs that load only when needed, give heavy work to fresh sessions. 97% cache hits for me in november. happy to share the setup if anyone wants it, details in the comments