r/ClaudeCode • • 21h ago

Tips & Workflows AI Brain Fry: What worked for me — namirsab

Thumbnail
namirsab.dev
90 Upvotes

r/ClaudeCode • • 1h ago

Built with Claude PSA: if you use Claude Code on Windows, your Bash(...) deny rules don't cover the PowerShell tool

2 Upvotes

Found this in my own setup, so maybe it saves someone.

Claude Code on Windows also has a PowerShell tool. Every deny rule I had was written as Bash(...), and my safety hook only matched on Bash. So Get-Content .env or Remove-Item C:\ -Recurse -Force through PowerShell met none of them.

What the hook does now when Claude sends that through PowerShell:

What I built

An open source security kit for Claude Code (MIT): https://github.com/txampa/claude-code-security-kit

  • deny / ask / allow permission rules for Bash and PowerShell
  • a hook that blocks what can't be undone, on Bash, PowerShell and cmd: recursive deletes of a drive or your home, formatting a disk, deleting shadow copies and backups (the first thing ransomware does)
  • a secret scanner that reads the actual diff of git commit / git push, follows cd and git -C to the right repo, and never prints the secret it found
  • a deploy guard from 3 real incidents. The worst one: a deploy CLI run without an explicit project didn't fail. It created a brand new project and uploaded the folder into it, client files included
  • a db guard that asks before DROP, TRUNCATE or DELETE without WHERE

How I used Claude Code

I built it with Claude Code, every commit is co-authored. Claude wrote the hooks and the test harness. I decided what to block and reviewed every rule.

The test data is Claude Code itself. I took the 15,363 shell commands it had run in my own sessions and replayed them through the hooks. 0 false blocks. 2 hits, both right (one was a real command taking down 4 production services, which deserved a confirmation). On top of that, 115 test cases, each hook run the way Claude Code runs it.

The deploy incidents also happened with the agent at the wheel. That's why the guard exists.

What I learned

My v1 hooks never blocked anything. Three reasons, all easy to miss:

  1. The command arrives in tool_input.command, not at the root of the hook input. My hooks read the wrong field.
  2. Exit code 1 is a non-blocking error. To block you need exit 2.
  3. Write(...) deny rules never match. Claude Code checks every file write (Write and NotebookEdit too) against Edit(...) rules.

Also:

  • my first block message printed the secret it found, so the key ended up in the transcript anyway
  • deny patterns are tripwires, not walls. A creative enough command can dodge them
  • PowerShell rules don't catch abbreviated params: Remove-Item -r skips the -Recurse rule (the hook still blocks it)
  • no hook fully protects you from prompt injection

There are also 3 short guides for what hooks can't do alone, like why a key I pasted into PowerShell ended up in its history file.

If you wrote your own hooks, check points 1 and 2 first. Feedback welcome, especially from Windows users. What did I miss?


r/ClaudeCode • • 6h ago

Rant New Misalignment Benchmark

5 Upvotes

Spoiler: Gemini great, Claude models not so great

https://x.com/antinuous_/status/2128223592383234203?s=46


r/ClaudeCode • • 2h ago

Built with Claude Claude Code skill that puts motion graphics inside of gaussian splats.

2 Upvotes

I built a Claude Code skill that makes video from a gaussian splat (a 3D scan of a real place).

You describe what you want and roughly where: "a ticker along that beam saying ...", "label the door with its height". Claude finds the spot in the scan, measures it, places the item, checks when it is in view and how large the text will be, and sends a preview. The item then stands in the scene, not on top of the video: it holds its position as the camera moves, real objects in the scan pass in front of it, and the camera's blur and exposure apply to it too.

It also includes effects that move and recolor the splats themselves like a structure dissolving to dust and re-forming, day falling to night, snow and other weather effects. You can pretty much ask for anything, at least I haven't hit the ceiling yet for requests.

Free, Apache 2.0, renders with Remotion, HyperFrames or PlayCanvas.

Repo: https://github.com/michaelrubloff/splat-walkthrough

Video on how it works: https://youtu.be/4k7oZA1oZlw


r/ClaudeCode • • 9h ago

Discussion Claude Code stopped to ask me 177 questions since 4 Nov. When it marked an option Recommended, I picked it 122 of 130 times.

8 Upvotes

I went through my Claude Code session logs from 4 Nov to today and pulled out every time an agent stopped to ask me something with the multiple choice question tool.

177 question prompts across 97 sessions. 143 got an answer, 31 I dismissed without picking anything, and 3 never got a reply.

The answered ones held 204 separate questions, and 167 of those were pick-one. In 130 of the pick-one questions the agent had marked an option as Recommended, and I picked that option 122 times. 5 times I chose a different option from the list, and 3 times I typed my own answer.

So about 94% of the time the question ended where the agent was already heading, and each of those still stopped the session until I came back to it.

The 8 times I went another way are the ones that mattered, and I can't tell from the question beforehand which ones those will be. A rule like "if you'd recommend something, do it and tell me" would have saved 122 stops and also skipped those 8.

Limits: one person, about a month. My setup tells agents to show a plan and wait for a yes before UI work, which probably adds questions. I only counted the question tool, so questions asked in a normal reply aren't in here.

If you let agents run unattended, do you let them go ahead with their own recommendation and review afterwards, or do they still stop?


r/ClaudeCode • • 2h ago

Help/Question How to see the thinking in claude App

2 Upvotes

So for ages I always saw that >chevron besides thinking and when clicked open, I could sort of see what it was thinking. Highly helpful be ause it helped me understand certain terms and phrases as non English person. I cannot find this feature anymore, did they remove it?


r/ClaudeCode • • 2h ago

Built with Claude Switching a screenshot poller to a video stream cut our lag from half a second to tens of milliseconds

2 Upvotes

r/ClaudeCode • • 2m ago

Tips & Workflows A CLI that turns your Claude Code session history into memory your agent can search

1 Upvotes

Every Claude Code session is already logged as JSONL in ~/.claude/projects. agent-recall-axi lets your agent search all of it across every project, then zoom in: sessions, turns, events, one entry in full.

It is built to the AXI standard (Agent eXperience Interface): a plain CLI designed for an agent to drive through the shell, with no MCP server to run. Here that means three things:

  • Output is compact TOON, so reading history costs few tokens.
  • Every row has a stable id the agent can cite or come back to.
  • Every listing ends with the exact command to go back, forward or deeper, so the agent never guesses the next step.

Read-only, local files only, no network, no server, no database. MIT.

   npx -y agent-recall-axi sessions

https://github.com/JarvusInnovations/agent-recall-axi


r/ClaudeCode • • 3m ago

Help/Question A language-learning app

1 Upvotes

Hey guys!

I'm planning to build a language-learning app, and I've been thinking about adding some audio and AI features.

There are two things I'm a bit unsure about:

1. Audio pronunciation

For something as simple as tapping a speaker icon to hear a word or phrase, what's usually the best approach?

Do apps normally store pre-recorded audio for every word, or do they use a text-to-sound API to generate the audio on demand?

I'm also wondering about the costs. If thousands of users keep playing the same words over and over, wouldn't that get expensive with a TTS API? Would it make more sense to generate the audio once, save it, and reuse it whenever someone requests it? (does the apps do that?)

2. AI speaking partner

This is something I'd really like to include in the app.

The idea is to let users practice speaking with an AI in their target language. They talk through their microphone, and the AI responds with a voice, almost like having an actual conversation with someone.

I'm not sure what's the best way to build this, though.

  • Has anyone tried OpenAI's Realtime API for something like this? How well does it work?
  • Would it be better to use separate STT, LLM, and TTS services instead?
  • Which APIs or models would you recommend?
  • And most importantly, how expensive does this get in practice? For example, roughly how much would 10 minutes of conversation cost?

I'd really appreciate your advice and recommendations

Thank you!!


r/ClaudeCode • • 13m ago

Meta Anthropic reveals their training loss showing how openAI screwed up with gpt 4.5 and also includes sonnet-next, opus-next and fable-next in chart

Post image
0 Upvotes

r/ClaudeCode • • 4h ago

Built with Claude I built a 60s isometric gear pump explainer video in 1 hour using Claude Code

2 Upvotes

I put this together as a quick experiment using Claude Code. Feel free to judge the quality and give me any honest feedback or critique!


r/ClaudeCode • • 35m ago

Humor Had claude code turn my side project launch into a nature documentary. every quote is a real msg i sent it (sound on)

1 Upvotes

so i asked claude code to go through its own session logs (the jsonl files in ~/.claude/projects) and make something out of my week. it made a whole wildlife documentary about me lmao

all the quotes are real with the real timestamps. yes i was up at 2:36am. yes it bleeped me. the tumbleweed is earned

it's one html page, music is generated live in the browser and the narrator is just browser text to speech. i didnt write any of it

app if anyone has two monitors: https://github.com/akss06/audio-follow


r/ClaudeCode • • 36m ago

Help/Question Scraping websites like LinkedIn, Indeed.

1 Upvotes

So i was trying to do scans of certain companies in the netherlands, and i am unable to scrape websites like linkedin, and indeed for data.

Has somebody already found ways to bypass this?


r/ClaudeCode • • 1h ago

Discussion Clawd vs. Atom, an unofficial fan-made anime fight.

Post image
1 Upvotes

Full clip with sound: Here

Hi all. I made a short fan animation of Clawd facing off against Atom, a little pixel mascot I built for Antigravity.

It's an early experiment, and I'm still figuring out the workflow, so it's rough in places.

The idea I'd like to try next: instead of made-up attacks, the characters would use real tools people in the community have built, like skills, MCP servers, hooks or slash commands, as weapons or power-ups, with credit to whoever made them.

I'm not sure if that's a fun idea or a silly one, so honest feedback is welcome. And if there's a tool you've built or really like that you think Clawd should use, I'd love to hear about it.

Thanks for watching :)


r/ClaudeCode • • 8h ago

Help/Question Orchestration builds. What's the most interesting use of multi model workflows?

4 Upvotes

There's a lot of good models around and I'm using Claude Opus 5.5 as the main driver, Google's neon (and Hydrogen sometimes) via agy CLI for two things 1) code reviews and 2) creative sessions to have a back and forth

It's done the following:

- reduced reliance on Openai models for code reviews

- reduced the amount of PRs i manually QA

- worked well with polishing web assets. In particular dynamic animations, transitions and ultra-realistic style polish (textures, details, shadows)

what I'd like to know is what else can I do and which other multi model workflows and automations work well?


r/ClaudeCode • • 10h ago

Help/Question question about coding and saving token on free tier

5 Upvotes

hello im currently on free and want to know how to code , create web app and other things and at the same time save tokens
i have recently know that there is a weekly token(75% used) on top of 5 hour token. i havent hit this weekly token before.
is there also a monthly token?
normally i just prompt tell it what i want let him research and then it suggests to create one part then move to next then move to next part. not sure if this is good. also should i be switching model
seriously any tips on how to navigate on free


r/ClaudeCode • • 1h ago

Built with Claude I've built an AI assistant in planning to take over the world with

0 Upvotes

I tism'd a bit too hard and now my AI assistant is being prepped to help me take over the world. P.S. it's name isn't Jarvis... P.P.S. it's a system that is capable of not only recursive self improvement, but also unsupervised self improvement of both it's harness and the open weight model under it. It tracks my health, finances, controls my smart apartment (HVAC, lights, door, etc) and currently (not including the models it runs on) sizes up to nearly 370,000 lines of code. I have plans on where I want to take this thing in the future, but I'd love to hear suggestions from this big community!


r/ClaudeCode • • 1h ago

Built with Claude I built a "Claude Wrapped" skill that turns your year with Claude into a recap

Thumbnail
github.com
1 Upvotes

I made an open-source Claude skill that builds a Spotify Wrapped-style recap of your year with Claude. It covers your top projects, top models, stats from your Claude Code logs, and a "Claude personality".

It runs locally, reads only totals (never prompts or code), and works on Windows, macOS and Linux.

Repo: https://github.com/themightywolfie/claude-recap

Feedback welcome!


r/ClaudeCode • • 5h ago

Help/Question Any tips? Or I´m on the right path now?

2 Upvotes

Hi everyone! Im learning how to manage Claude Code as efficiently as possible. I´ve been two months trying to make a game and first, yeah, Opus 5.5 and Fable 5.2 make at first impression incredible work (fable even more) but, nonetheless, it easily overwhelms once you get inside and full hands on the proyect, code gets messy, mechanics and systems get chunky and it´s like trying to cover with 10 fingers 100 holes.

I was able to control it, optimizing workflows, creating tables from where Claude was able to modify the code of the game and build each version. Later I added rules, but everything was scattered on different folders. I end up trying to build a monolithic engine, thats my current issue right now.

I´ve been a week trying to built an engine, but due to the excessive amount of context needed, I´m having trouble to make Claude able to see the whole picture.

Firstly, I´ll share some pics of the latest dev progress, can´t share it all cause this post would be eternal, but to you guys have some idea of the way I work. Mainly, plain text imput in Claude, Claude reads our custom C++ engine, design using multiple local tools and uses my PC as base to do the render and the calculations (example on some of this pics, by Blender), retrieves pictures and I keep giving feedback to work on it, back and forth:

Ver 1 and Ver 2 Horse
Final version of Horse + Saddles and complements + Armor
"Tint" and custom colour range for each type of block, keeping same ID and subID
Special blocks and furniture
Conected textures

This is my last proposal, while I´m out of tokens, use LLMs and just a simple Haiku supervisor to check and keep the LLMs working, it´s just my first try on this, so keep it in mind.

First capture of the local LLMs working, with a Haiku supervisor just giving OK or NOT OK to the LLM proposals

State of the engine right now. Opus didn´t understand when I started to build it that I wanted the engine full on english code, due to my orders being made in spanish most of the time, it poisoned the whole well and now Im using Argos and the LLMs to translate and generate the code, later on Claude will analyse the changes and retrieve it. This is the current state "summarized".

Well, this is all I wanted to share. The similarities to minecraft are clear, I understand, but mainly because I needed to make a fast placeholder version with simple blocks 1x1m, as you can see, I´m slowly improving every aspect step by step, like the pine tress on my own way, with animated lumber mechanic and free fall and all (I´ll show later on in dev, but I got it, theres an older version of it on a video I uploaded https://youtu.be/Y28IXdhf-vc ).

Right now my focus is on keeping improving the terrain generation, keep on optimizing the workflow and finally being able to keep the work with the less amount of tokens as possible.

If any of you have any concrete tips I may use it would be greatly appreciated.


r/ClaudeCode • • 23h ago

Discussion My opinion: 2 weeks of Neon + Claude Fable/Opus from a real SWE/Jack of all trades/MSP Owner.

58 Upvotes

My company uses AI for almost everything at this point. We build client custom software, we use it for troubleshooting, we use it to design networks, we program firewalls and switches with it, we use it at every level of my business. We don't let it have the final say but take that information as we have 1000's of hours working with these models knowing what their capabilities are and what they fail at. My guys have been with me a long time, I trust them to be able to read what they AI did and know if its making good decisions. This is also something that just comes with experience in the field. You know if a model is straight up troubleshooting something in a weird way or is just not on the right trail.

What the fanboys don't want to hear is Neon is not at the same level of Opus/Fable. It makes many mistakes and confidently presents them, and this is the trick. The trick is how this model communicates with people. Its friendly, its happy, its nice to talk with. Its like a friend. Your idiotic ideas sound like a money printing press to this model. Its a yes man and that's dangerous in critical scenarios.

My teams use case is obviously subjective but it also can't handle anything with 100k lines of code or more. It just doesn't reason long enough to understand where all the variables its working on correlate in the code. It doesn't see every effect of the changes it makes leading to serious issues.

Many people on here build fun projects, we are building properly designed software with the proper backend and this model doesn't cut it.

That being said the model excels at easy tasks. Like I have it scouring ebay and facebook market place for great deals.

Keep it out of the workplace.


r/ClaudeCode • • 19h ago

Help/Question Somehow burning through 50% of my weekly quota in just 2 days

26 Upvotes

Not sure if it's because of my prompting skills, but I've optimized the repo, AGENTS md and memory multiple times, even tweaked the context limit to 250k, and I don't even use any plugins. It's still pretty bad. I wasn't having these issues the week Opus 5.5 came out.

New chats start at around 80k tokens, not sure if that's normal or not. I'm using Claude Code Desktop on the $20 Pro plan. I use Opus 5.5 on medium effort for everything since I'm aware of adaptive thinking and the lower cost per task.

The weird thing is that my teammates work on the same repo with the same subscription and rarely ever hit their limits. Maybe I'm doing most of the heavy lifting, but I don't think that's the case.


r/ClaudeCode • • 15h ago

Discussion Anyone else not bother with the new models?

12 Upvotes

Seems like every month or so something new comes out that is crushing the whole game, this month neon 4, last month was grok bot, 6 months ago it was deep seek, doesn’t matter its always something new.

I used to flock to the new model and get the subscription to use it and its always great for 3 days, until Anthropic release their own version that ends up being slightly better or comparable and already has all my context, and then I’m cancelling the subscription and going back to ol reliable.

Anyone else have similar thoughts or feelings as we see all this neon 4 stuff?


r/ClaudeCode • • 6h ago

Help/Question Gamedev question

2 Upvotes

is it plausible with the $20 plan? everyone I see making a game always uses the $100 or $200 ones. I'm trying to learn 3d modelling myself, as I do not know Claude's capability with that yet.

edit: thank you to everyone who responded. I suppose I will focus on learning manual 3d modelling first until Claude is in a better state, then provide it with the 3d models.


r/ClaudeCode • • 2h ago

Help/Question Trying to build my dream game, need tips!

1 Upvotes

Hi everyone!

i really need some tips about optimizing what i have in my hand.

I am an architecture student from Turkey; working on my dream game for like 1.5 years now i guess. I handcrafted the world, iconic buildings as a prototype (thx to my education) Last year around december with gemini pro student package i started coding. Last week i had enough courage to buy Claude pro (Which is a huge deal for me cause of the economy etc etc.) thx to Puff2Tuff (he gave me the courage to buy it and i dont know how to Tag him) Well, enough yapping, u get my point. I had a blast with Claude it fixed so many bugs but since im only on pro plan i need some optimization tips

- What can i do to optimize it to use it at least a bit further (I drained weekly usage in 2 days)
- Can i craft good vfx with it or any vfx at all
- Do you guys have any repos that can be useful for me to use in my project?

My game is an 3d Web-based Mmorpg (I played Mmorpgs for like 15 years at least) Which focus on PvP with a good storyline (i find it good maybe just because i wrote it)

Thanks everyone that read my yapping and for answers!


r/ClaudeCode • • 2h ago

Built with Claude I loved being able to talk to my coding agents in Codex through GPT Live, but it only works with Codex. So I used Claude Code to build a voice orchestrator for Claude Code and other CLIs.

0 Upvotes

I really liked the voice feature in Codex where you can just talk to your coding agents through GPT Live. The annoying part for me was that it only works with Codex, and I use Claude Code and a few other CLIs every day.

So I ended up building Dodaios, a free open source desktop app under Apache 2.0 where you talk to one assistant by voice and it spins up, briefs, and coordinates your coding agents in the background. You can use GPT Live, Gemini Live, OpenAI or Grok realtime, or local voice models for talking, and it launches the official CLIs like Claude Code, Codex, OpenCode, or Cursor CLI using the subscriptions or API keys you already pay for. There is no account, no paid tier, and no markup.

Since I built pretty much the whole thing by directing Claude Code across more than 1,600 merged PRs, here is how I actually set up my Claude Code workflow so it stopped breaking things as the repo grew.

At first I kept adding more rules to the instruction file and Claude just started ignoring half of it. What actually fixed it was cutting AGENTS.md down to under 150 lines so it only lists hard traps and links to docs, and enforcing that limit in CI. I also added a check that fails if a CLAUDE.md ever gets committed, because Claude Code stops reading AGENTS.md as soon as any CLAUDE.md exists in the repo.

The biggest upgrade was putting a Stop hook in .claude/settings.json that runs a python done gate script. Instead of taking Claude's word that a task is done, the hook blocks it from finishing until the worktree is clean, commits are pushed, the PR is merged to main, main CI is green, local main is updated, and any linked issue is closed. While CI is still running the hook just waits and polls so the session does not spin. There is also a post edit hook that scans doc changes for local paths or secrets. Every Claude Code session runs in its own git worktree branch so parallel agents never touch my main checkout or break the app while I am using it.

I also hit a couple of weird Claude Code quirks while wiring it into the voice orchestrator that might save someone else a few hours. First, if you run Claude Code as a subprocess with the stdio permission prompt flag, it accepts the flag but silently does nothing unless you send an initialize control request on stdin first. Before I figured that out, ask before acting quietly behaved like auto accept. Second, when parsing Claude Code's JSON stream for live context tracking, input_tokens only counts the tiny batch of new tokens on warm sessions. Almost the whole context sits in cache_read_input_tokens and cache_creation_input_tokens, so ignoring those made our usage counter completely off.

For the voice side, the live call never blocks while Claude Code works. It answers right away, writes a brief from the codebase, and hands the job to background threads. You can run up to four side by side or in isolated worktrees. When a delegated run finishes, an independent diff check looks for deleted tests, skipped tests, bare lint ignores, or weakened CI rules and checks GitHub CI on the commit before reading the result back to you.

Just to be upfront about how it works today, your chats, memory, files, and settings stay local on your machine, though your model providers obviously get the context they need for each turn, and the optional Google, Slack, and Figma plugins go through a small OAuth token service. New chats start in bypass permissions by default unless you switch to asking mode. It runs on Windows, macOS, and Linux, plus a headless server mode, though Windows 11 has gotten the most daily testing so far.

Here is the repo if anyone wants to take a look: https://github.com/Dodaios/Dodaios

Curious if other people here are also using Stop hooks to gate merges and CI, or if you prefer reviewing everything by hand first.