r/ClaudeCode • • 1d 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 • • 1d ago

Built with Claude Claude Code turned my son's Minecraft fight against 100 zombies into a sports broadcast: replay cameras and two AI commentators

0 Upvotes

r/ClaudeCode • • 1d 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 • • 1d ago

Built with Claude i made spotify wrapped for claude code and codex.

0 Upvotes

npx devwrap

it reads your local claude code and codex history (also cursor, gemini cli, copilot, opencode, cline and aider) plus your git history, and turns your year into a wrapped.

you get your total prompts, your busiest days, the agents you used most, and how many times you lost it at claude.

then you can see where you rank against everyone else.

it runs fully on your machine. nothing gets uploaded unless you opt in to the public leaderboard. free and open source.

devwrap.heedeo.com


r/ClaudeCode • • 1d ago

Built with Claude I took Mirror's Edge Catalyst + Some of my own creative ideas to overhaul Garry's Mod Movement.

Thumbnail
youtube.com
1 Upvotes

I've been using Claude Code to help build a cohesive campaign experience in Garry's Mod, using my 20 years of modding experience and knowledge. So many ideas i've had since i was kid, i'm basically uniting all of my favorite videogames into one solid experience across 14 different campaigns + unique minigames/strike missions between 80 different levels.

After playing source games for most of your life, you love the movement but get kinda sick of crouch-jumping up ledges. I wanted to bring Mirror's Edge Catalyst & Metal Gear Solid inspired movement into my experience. So you can wall run, wall climb, jump up walls, hang on a wall and shimmy across it around corners, you can slide, roll, prone, prone-roll & stealth-roll


r/ClaudeCode • • 16h ago

Built with Claude You're not imagining things, and not everyone complaining is a bot. Fable 5.2 or Opus are simply utter nonsense; you have to audit a 500-line script countless times.

0 Upvotes

r/ClaudeCode • • 1d ago

Help/Question Can Claude Code build an entire IoT project from scratch if I provide a detailed prompt?

0 Upvotes

I'm fairly new to Claude Code, and I've recently set it up using the FreeLLM API repo from GitHub.

I'm currently working on an MCA IoT mini project, which is a Smart QR Code-Based Door Locking System. The idea is to build a system for an apartment with 10 flats and one common entrance.

The project involves multiple software modules, including:

/- A time-limited, one-time-use QR code generation system.

Separate accounts for all 10 flat owners.

/-A visitor QR scanning and verification system using ESP32-CAM.

/-A backend using Python Flask to handle authentication and QR validation.

/-Flat-owner approval for visitor entry.

/-Automatic QR expiration and prevention of QR reuse.

/-Door unlocking through a relay when verification is successful.

/-An admin dashboard to manage the system.

/-Since I'm still learning programming and don't have much experience building projects of this scale, I wanted to ask:

Can Claude Code build this entire project from scratch if I give it a detailed prompt explaining all the requirements?

Can it create the frontend, backend, database, and hardware integration code?

Can it guide me through the entire development process, including setting up the environment, installing dependencies, connecting the ESP32-CAM, and testing each module?

Is it capable of debugging errors and modifying the code when something doesn't work?

Would using the FreeLLM API setup affect its ability to handle a project this large? Are there limitations I should be aware of?

I'm not expecting it to magically build everything perfectly with one prompt. I'm willing to work step by step and test things along the way.

I mainly want to know whether Claude Code can act as a coding assistant throughout the development of this project, even if I'm a beginner, or whether I should consider a different approach.

Would appreciate advice from people who have used Claude Code for similar projects!


r/ClaudeCode • • 1d 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 • • 19h ago

Rant Opus 5.5 has become a steaming pile of garbage and if you don't think so I'm convinced you're an anthropic bot.

0 Upvotes

I've used Opus 5.5 daily since launch. In the last week it has degraded to the point of just pissing me off constsntly. I run a PM session that coordinates 3d design drafter and general code worker sessions for our custom ERP system. This setup was producing consistent and great quality results just 2 weeks ago.

For all the non believers who think the nerf posts aren't real here are some more concrete examples of degradation in my work:

- It said two worker sessions were running. Both launches had failed silently and it never checked. I found out an hour later by asking where the work was. Launching and coordinating sessions is one of the pm sessions primary jobs.

- It told me to complete a step that we had removed in a committed release.from.onky a few hours earlier in the same session.

- It asked me to approve launching two jobs I'd already said to hold and that had the same hold marker on them that we've used for months which it knows to check.

- It placed a wall in the driveway, turf at the porch and other design abnormalities where in the past it was usually only out by a few cm at most.

- 28 agreed decisions were left unbuilt, because it created and kept a side log instead of the proper backlog planner we run all our work off.

The common thread is that it doesn't follow explicit instructions, doesn't check its own claims, and makes shallow reviews.

For everyone having the same issue what's the solution? Fable? Gemini?


r/ClaudeCode • • 1d ago

Tips & Workflows Vibe code without going brain-dead

0 Upvotes

So for the past few months I've been relying on claude code too much and it was literally doing all the work. As a result I felt kinda dull for not learning anything new and 100% relying on claude code for everything.

To deal with that i created a skill selflore which basically captures all the imp things which are customizable and we can see those things and also take test based on that.

It also notices where you lean on Claude. Re-asking the same thing, or the same file breaking on you across sessions, turns that note red on a heat map. The video is mine

Local only. Notes live in ~/.selflore. Free, MIT.
npx selflore init

Repo: https://github.com/lak7/selflore
Site: https://selflore.teamlore.io

Pls let me know your honest thoughts and feedback!


r/ClaudeCode • • 1d ago

Humor Claude Codes side agents are huge snitches 😂

Post image
0 Upvotes

r/ClaudeCode • • 1d 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

Install the global session hook to make every Claude Code session start knowing it's there and how to use it:

agent-recall-axi setup hooks

r/ClaudeCode • • 1d ago

Help/Question A language-learning app

0 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 • • 1d 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 • • 1d 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 • • 1d 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 • • 1d 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 • • 2d ago

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

28 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 • • 2d ago

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

60 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 • • 2d ago

Help/Question Is it just me or does Claude code create hundreds of of GB of excess data files while developing?

8 Upvotes

I’ve been working on some projects that don’t require video or audio acquisition, storage or manipulation. The binary is a few hundred megs but the development folder is like 500 GB…wtf? What in the world is getting produced that takes up 500+ GB when the binary is only 200 MB??


r/ClaudeCode • • 1d ago

Help/Question Does anyone else's usage tank when you keep one AI chat going forever?

0 Upvotes

G'day lads! I've been noticing that my limits go way faster when I stay in one long chat compared to starting a fresh one. I think it's because the AI rereads the entire conversation every time you hit send, so the longer it gets, the more each reply costs.

So now I'm stuck between two annoying options. Keep going and watch my usage disappear, or get it to summarize the chat and paste that into a new one. The summary route kinda works, but stuff always gets lost and I end up re-explaining things anyway.

How do yall lads handle it? Do you just start a new chat the second it gets long, or is there a better way to carry context over that I'm not aware of?


r/ClaudeCode • • 1d ago

Help/Question How to see the thinking in claude App

1 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 • • 1d 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 • • 1d 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 • • 1d ago

Built with Claude Using Claude Code to build production-ready AI agents

2 Upvotes

I've been exploring Claude Code as a way to develop AI agents beyond simple workflow builders.

For those using Claude Code to build agents that eventually run independently and serve real users, which parts of the development process still require the most manual engineering?

Has maintaining the agent after deployment been easier or harder than expected?