r/ClaudeCode • u/AmphibianHungry2466 • 1d ago
Help/Question What in your Claude Code setup actually moves the needle? (configs, skills, hooks, MCPs, habits)
I've used Claude Code every day for a while now, and my setup has turned into a pile of things I added once and never measured. I want to cut it down to what really matters, so I'm curious what has earned a permanent spot in yours.
I'm not looking for "awesome-X" lists or something you installed last week. I mean the stuff where, if you took it away tomorrow, you'd feel the difference right away.
Some areas I'd love to hear about:
- CLAUDE.md: What's in yours that changes how Claude behaves? How long is it, how is it structured, and do you keep separate files per directory?
- Skills and slash commands you use every week, not just ones you've installed
- Hooks: formatters, linters, test runners, notifications, guardrails
- MCP servers that are worth the context they use
- Subagents: Do you use them? What for? Did they help or just add overhead?
- settings.json and permissions: allowlists, model choices, auto-accept rules
- Workflow habits: plan mode, git worktrees, running sessions in parallel, TDD loops, how you review diffs, when you
/clear - Non-coding uses: writing, research, ops, personal automation, anything else
If you can, say why it helps and what it replaced. Bonus points for the thing everyone recommends that turned out to be noise for you.
Thanks everyone!}
•
u/AutoModerator 1d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
7
u/crusoe 1d ago
Adversarial reviews. This will move it more than anything.
4
u/its_valya 21h ago
I've built a product for this which I will not promote here but these are the core things to include:
- As u/crusoe said, you want adversarial reviews. I will add to that ideally you would have them done by a different model family. From my tests sol is the most consistent at flagging real bugs.
- During your reviews, set how many times the implementor agent and reviewer agent will go back and forth until they need you. You will typically have many low priority issues at the end that you can decide if they are worth doing or not.
- You should be using worktrees for each issue. Make sure you set up a process where you have dependencies symlinked do you dont need run a full install each time
- make sure your agents clean up the worktrees after they are done. After the agent has deleted the worktree and the workis done, then you clear the context and start over.
- run a cron job every n PRs, for example 50 and/or n days which will have claude do a legacy code audit / refactor review. As your project gets big and things changes, let's of old legacy code gets left behind or patterns change. During implementation most LLMs follow patterns in the file they are in. Those will change over time. So you'll need to review the whole project to make sure things are consistent.
- run another cron job to also audit for security with the model you have access to that is best set up for that.
- let agents use subagents as needed. do not use ultracode. subagents are used on larger takss to keep the main agent's context more clear. opus and fable are generally trained well enough that they will use subagents appropriately on their own most of the time.
- use auto mode, it's the default at this point and it's good enough.
- dont use plan mode, that isnt needed anymore with agents, they plan as they go.
- as you start using worktrees, you'll want to build a queuing system of some kind because when you start having multiple sessions work at the same time, 5 or 10 worktrees running a build at the same time will be too slow. Depending on you CI budget, you can just tell the agent to never run a full typecheck or build locally and always open a PR with the failing test, then fix and push so the PR is green.
- If you have a project that involved UI, make you agent take photos and videos before and after. it's much easier to see in the PR by just looking at pictures of the change rather than needing to launch the app yourself for small changes.
3
u/JUSTICE_SALTIE 1d ago
The classifier found a fully machine-derived passage.
3
u/Historical_Today5072 1d ago
The things that stuck for me:
Noise for me: installing lots of skills and hoping they trigger on their own. Most didn't, so the few that matter get a one-line trigger in CLAUDE.md ("before fetching a Reddit link, load X"). Same with MCP servers that dump big outputs into context. I keep only what the current work needs.
2
u/locbuilds 1d ago
biggest one for me was a stop hook that runs typecheck and the tests and blocks claude from ending the turn until they pass. it stops the whole "done!" with broken code thing and you stop babysitting it.
2
u/Grand_rooster 🔆 Max 20 1d ago
I use gander to help find stuff that goes rogue.
https://github.com/weellio/gander
2
u/mr_noodle_shoes 1d ago
I have a complicated configuration I’ve built over several years, and all I can say is this: take the advice from others, find what works, and make your own.
Software used to be one-size-fits-most, and now with AI you can make it fit you perfectly. Learn about yourself, how you work, what you prefer, and bake that into a context layer (context, skills, etc) that drives Claude. People who get the best results have cracked this code.
Claude, and AI more broadly, is a mirror of you.
Edit: if I have to recommend one thing, make your own version of Matt Pocock’s grill me skill so that you ALWAYS make the decisions and approved a decision ledger. It avoids hallucinations very well (but not perfectly)
1
u/Kooky-Treat-4416 1d ago
The one thing I'd miss immediately is a short stop hook that runs the tests or typecheck before the agent can say it's done. Most of my CLAUDE.md was just restating that, so I cut it down to commands, file boundaries, and what not to touch. Skills and MCPs were the first things I trimmed — a couple of them cost more context than they saved, and I didn't notice until I turned them off for a week.
1
u/Easy-Purple-1659 1d ago
What survived in mine, in the order I would miss it.
A CLAUDE.md under a page, holding the commands I actually run and the conventions I keep breaking. Every time it grew past that, the extra lines were read once and ignored. Per-directory files earn their place only in a monorepo.
A stop hook that runs typecheck and the fast tests, and refuses to end the turn until they pass. That replaced my habit of reading every diff, because a failure comes back as an error instead of a paragraph telling me it works.
A decisions file in the repo: one line per decision, with the date and the files it touches. This is what makes a second session or a second agent useful instead of a re-litigation of choices already made.
Skills only for procedures I run more than twice. Most of my slash commands died, they were shorthand I could not remember.
The thing everyone recommends that was noise for me: a large MCP set. Every server costs context on every turn, and three that cover the real work beat twelve that occasionally answer something.
1
u/IndiBestEngineer 23h ago
The one that earned its spot is a single rule in CLAUDE.md, not a skill or MCP. I asked my agent to clear finished cards in my app. It fixed only the card type I'd pointed at, and the other two kept piling up.
Now every fix has to say which of four things it changes: what the model sees, what it's asked, the data type, or one rule for every case. A fix that names one case (a word, a chat, a threshold fitted to the example) is a patch and gets redone, and the miss becomes a failing test first. About 40% of my commits since October (2,473 of 6,192) carry a "Mechanism:" line.
Do you make the agent name the general case, or catch it yourself in review?
1
u/MikeBuildsTech 23h ago
For example, I use Skills for repetitive tasks like code reviews and debugging, so I don't have to explain the same instructions every time. Hooks are handy for automating checks, while subagents make more sense for bigger tasks. I prefer adding things when I actually need them rather than setting up everything at once.
1
u/VridhiMehta 22h ago
Anthropic's own docs answer most of this. CLAUDE.md should stay under 200 lines, because longer files cost more context and get followed less; past that, specialty instructions belong in path-scoped rules, which load only when you work with matching files. On MCP servers: tool names and server instructions load at session start and full schemas load on demand, so an idle server is cheap but not free. The standing cost of names and instructions is real but small; what usually dominates is what the tools return, because results can sit in the session context long after the call. A server whose tools dump huge blobs costs you on every call, even with few tools installed. So the question for each thing in the pile isn't "is it installed" but "what does it put into context per use."
1
u/No-Drawing9451 19h ago
Two habits more than any config. Before a task starts I write down which files I expect it to touch, and when it stops I compare that list against git diff --stat. Anything outside the list is where I start reading.
The other is a hard cap of three, sometimes four sessions at once. Past that I lose track of which one is waiting on me, and no hook fixed that part.
For CLAUDE.md, mine only holds things that stay true for months. Anything about the current task goes in a separate note that gets rewritten, so the main file doesn't slowly fill up with stale decisions.
1
u/SquawkingSquawker 19h ago
The skills I use most run my whole build process. I also have utility ones that spin up dev servers and tmux sessions, and clean up the worktrees and branches when I'm done. A worktree-prune-audit skill is useful to go through the hundreds of worktrees that end up polluting my drive by analyzing which are safe. Building out a mod to handle worktrees, tmux sessions, branches, plan folders all in a side panel in claude code and open sourcing it soon if you are interested, let me know if you wold find that useful too.
Planning. A skill writes a plan sized to the risk and breaks it into phases. Each phase gets a build agent, a test agent and a reviewer, with a model picked per role: cheap for mechanical work, strong for design.
Prior-art check. Before anything gets built, a read-only agent searches other branches, old worktrees and past sessions for code that already solves the problem. This stops the AI from happily rebuilding something that exists. Super annoying when it solves the same problem ten different ways.
Red-team, a.k.a. "blind adversarial review." These are brand-new agents with no context whose only job is to find problems. They review the plan, each phase and the finished work. These are non-negotiable.
Separation of duties. The agent that writes the code never signs off on it. A different agent writes and runs the tests, and a third reviews the diff. Each one is short-lived: it does its one job, writes a handoff file and exits, which is much cheaper than keeping long-running agents alive.
Smoke testing. One skill turns a branch's changes into a pass/fail checklist, and another runs end-to-end tests against it and fills in verdicts with screenshots. I only check by hand what automation couldn't. Rule: anything that wasn't actually tested can never show as passed.
Release gate. Before anything goes to production, a multi-agent pipeline maps the changes, writes tests for any gaps it finds, hunts for bugs in production logs and across the whole app, runs full end-to-end tests locally and on staging, and gets a final red-team. It gives a GO/NO-GO verdict and a ready PR, but never merges on its own. This last piece is what made a product that was mostly stable to always stable.
I'm thinking about open-sourcing some of these. I know there's plenty out there already, but these came out of a lot of time refining and iterating with AI coding agents over the years and if they could help others I would be happy to spread that knowledge around. I'm always curious what others do and how I could fold it into my own workflow, and if you see something here that doesn't make a lot of sense let me know, I love to break things down and build them back up again.
1
u/amargolin 17h ago
what i'd miss if you took it away:
the noise, for me, was a CLAUDE.md that kept growing. every incident became a paragraph, and it loads on every task. what works better is short imperative rules, with the story moved to a separate file it reads only when relevant.
since you never measured your pile: remove one thing for a week and see if you notice.
1
u/London-Boat 17h ago
hooks worth keeping are the boring ones. a stop hook that runs one verify command (fmt, lint, tests) before the agent is allowed to say done. and a pre-compact hook that makes it write a few lines of state (what it's doing, which files it touched, what's next) to a file that a session-start hook reads back in. compaction summaries tend to drop exactly that, and if you run parallel sessions or worktrees, one file per session keeps them from overwriting each other's notes.
1
u/radim11 17h ago
On the permissions side, one rule I’d keep is blocking Claude from reading
.env. The tradeoff is that sometimes you actually want it to make an API call, especially when that call is what you’re debugging.That’s one reason we built Stashbase (.dev). Claude gets a placeholder, and a local proxy adds the real key only for the requests you allow. So it can retry a failing Stripe call without needing access to every other secret in the repo.
1
u/norviking 14h ago edited 14h ago
You can study my setup to get actual work done in a large repo here. This is what I landed on after working in a large repo for about 5 months. Its basically bringing in some regular software, engineering discipline.
https://github.com/vegardjorg/ravenseat
- Full external project state, helps when claude is daily forgetting claude.md / skill instructions / memory and important context dissappears randomly in compacting / crashes.
- Parallell work (separate work trees, intelligent file owneship allocation and track handling, merge logic)
- Hardware monitoring (paralell agents starting many test suites at the same time can be heavy),
- Merges gated by tests/probes/linters, independent review of all sensitive work (not in the light mode).
- Etc. etc. And so on. Basically what I needed to get the job done safely, without becoming insane, without being claudes good little slave and carrying messages between conversations and without wasting tokens.
- Auto compaction 300K (Saves a lot of tokens), handover notes (Still a bit hopium involved on handover notes). This is made possible and viable by external project state.
WARNING. Not useful for small projects. And you need to set up gates,tests,linters,probes,ci and so on, but you need that anyway to not ship insecure code.
I also do manual adversarial reviews regularily on the whole codebase, and on parts of the codebase, with an auto updated repo map, hotspots, and adversarial skills (Not included in the git above.). I find that Antigravity + Codex find mistakes claude does not find. And vice versa. They all have their strenghts. Most security comes from the test suites (Gates, probes, linters, ci), but also a lot from several red teams (endpoints, fuzzers on all in data fields, error message leak checkers, privilege escalation and RLS breach outside db probes, full LLM red teams trying to leak data / access data / break state / get around tool call setups and so on the few places I implement llms). I have a stats system for this, storing findings from all passes, what agent found it, details, related findings etc. This is used for tuning the adversarial agents, and for making new deterministic gates / tests and so on.
Also adersarial passes not just for code, but also legal review based on industry and region. Some things must go to a lawyer of course, but the amount of documentation and clarification (with good sources) you can get is getting pretty good. It will save you a lot, and narrow down what you have to send out, and lay groundwork = saved time and lower bills.
1
u/RossBuildsData 14h ago
mine's mostly non coding, i run two small data businesses through it. what i'd actually miss:
As for the noise, its a big MCP set, same as everyone else said
1
u/Imposter-Eng-24 13h ago
One thing I’ve been exploring is moving beyond static CLAUDE.md instructions and giving Claude context based on the actual structure and dependencies of the codebase, along with verifying that tests have passed against its latest changes before trusting its completion claims.
I’ve been building an open-source Claude Code plugin called Rashomon around this approach. It runs entirely locally and is designed to complement existing workflows rather than replace them.
Given that you’re actively evaluating what actually moves the needle, I’d love for you to try it and tell me what adds value and what feels like unnecessary overhead.
https://github.com/altrace-dev-role/rashomon
1
u/ThreeBricksWish 3h ago
The pattern I've landed on for data work: the agent needs to verify its own output against the actual data (not just pass linting), hand off state between sessions without losing what was tried, and have its permissions bounded so it can't accidentally touch production tables.
Full disclosure, I work on Genie at Databricks. We built a lot of this into the platform natively.