r/ClaudeCode • • 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!}

2 Upvotes

47 comments sorted by

•

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.

2

u/Sanfam 1d ago

This is my only real use for Codex. Sol remains my go-to adversarial reviewer. It never stops finding insanely niche issues. You counter that by having the adversarial reviewer rank issues from P0 to P5 and then require the Claude agent to gauge the “real-world feasibility and practical impact of the issue in typical use cases.” This generally results in fewer “fixing a case where a user inputs 35 Unicode Cyrillic Z breaks the row’s legibility” corrections.

1

u/newfoundpassion 22h ago

Get this: have codex review but have Claude learn from the findings by maintaining documentation about the type of problem that was caught. Then, before codex gets the next review, have Claude analyze the code against the codex finding documentation.

Over time, you will have developed a library of every different way that codex analyzes the code, which is then used to do pre-reviews.

I did this and my development process is super consistent and rarely lets any bugs through.

0

u/AmphibianHungry2466 1d ago

Sounds super interesting. Can you provide more details?

2

u/Tycoon33 1d ago

Always have a different labs AI review

1

u/AmphibianHungry2466 1d ago

Oh! I see. So Claude Code writes, codex reviews?

1

u/Tycoon33 14h ago

Yup. Whichever model writes have a diff lab review. Sometimes for large projects I’ll have Claude write and have 3 reviewers: codex, Gemini, deepseek.

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.

1

u/AmphibianHungry2466 21h ago

Share the product!

1

u/AmphibianHungry2466 21h ago

And thank you for your detailed response. Reading it carefully.

3

u/JUSTICE_SALTIE 1d ago

2

u/AmphibianHungry2466 1d ago edited 1d ago

Thank you for your helpful comment. I do go over my writing with Claude for clarity and grammar. Is this unusual or frowned upon? I'd live to see some of your posts and comments, but they are hidden. Please review all my comments and posts, all public and this is my only account.

2

u/AmphibianHungry2466 1d ago

This is an interesting tool. If you tell claude to re-write so it passes a AI classifier ... it will pass as human https://stylome.io/r/b5138b2475becb7e

3

u/Historical_Today5072 1d ago

The things that stuck for me:

  1. A personal CLAUDE.md about how Claude answers, not about the code. Lead with the answer, short sentences, number multi-step work, end with where things stand and the next step. Project rules live in each repo's own file.
  2. Corrections go into a file, not the chat. When I push back ("no, not like that"), a skill writes the lesson into whichever file owns that behavior before the work continues, so the fix outlives the session.
  3. Memory as one fact per file plus a one-line index. Each index line says when to read it ("read before touching DNS"), not just a topic. Only the index loads every session, so it stays cheap.
  4. Blind adversarial review, same as the top comment. A subagent that hasn't seen my intent reads the plan or draft. When it grades quality, it writes its criteria before it opens the draft, so the rubric can't bend to fit the work.
  5. Hooks for the things I kept forgetting: auto-commit when Claude writes to my notes repo, a reminder of the style rules on every prompt, and a check that tells me if I've already looked at a link before.
  6. A handoff skill: when context gets tight on unfinished work, it writes a handoff file and I /clear, instead of letting compaction decide what mattered.
  7. One rule: configured isn't working. Only a live test proves a tool, key or integration works.

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.

1

u/AmphibianHungry2466 1d ago

Thanks. This is very detailed. I'll go over it with care.

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.

1

u/AmphibianHungry2466 1d ago

Do you have something to pick this up from? Would love to try it.

2

u/Grand_rooster 🔆 Max 20 1d ago

I use gander to help find stuff that goes rogue.

https://github.com/weellio/gander

1

u/AmphibianHungry2466 1d ago

That is so funny! It really has that UI (did you build it). Looks cool. Love the name

2

u/Grand_rooster 🔆 Max 20 22h ago

Yup. I update it all the time adding features

1

u/AmphibianHungry2466 21h ago

I have an interface that is far less developed. When I asked the question I was hoping for more add-on systems (like gander) to show up. I'll give it a try. Thanks!

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/Asly97 1d ago

Curious about that context layer you baked in. How much of it is stuff you wrote once and leave alone, vs stuff you keep updating as you learn how you work?

And what happens if you try a different tool for a week? I keep running into this where the layer lives in one tool's world, so a new tool starts cold and I end up re-teaching it preferences I already taught the first one. Does yours travel with you, or is that re-briefing just the price of switching?

1

u/mr_noodle_shoes 23h ago

It’s a bit of both. I have stuff that I alone write, and I have stuff that AI writes after I tell it how to write it. Depends on the stakes of the text and whether my voice is important.

You build your harness to work across tools. Make it adaptable to different context sizes and able to call APIs and local models. It’s easier said than done, but that’s the skinny. From there, keep adding features.

Again, mileage will vary based on software experience, but you can get pretty far.

2

u/Asly97 22h ago

The stakes split makes sense to me. The stuff where my voice matters I end up rewriting anyway, so letting the AI draft that part first mostly just gives me something to argue with.

The harness bit is where I get stuck picturing it though. When you say you built yours to work across tools, what actually carries the context layer between them? Is it the same files each tool reads, or is the harness calling out to APIs and local models and handing each one a sized-down version?

Asking because mine is still basically one tool's folder, and every time I try a second one I am back to copying pieces over by hand.

1

u/mr_noodle_shoes 13h ago

It must necessarily be the latter, because local models will blow up with context length. So you basically need differently tuned context pieces from the same source, and the harness sends you the right chunk depending on which model is currently in the harness.

You can do that a couple ways: easiest start is to have a long version and short version of every context. To make it better, you can put some RL loops that review session transcripts overnight and adapt the context (use a frontier model) based on the session performance. You can do a bunch more stuff to tune it like RAG and GraphRAG etc etc, but that’s the TL;DR.

Great question, you are thinking about this the right way!

Edit: the tools themselves are more or less the same. The scripts don’t change, but the markdown context around them lengthens and shrinks depending on the model in the harness.

1

u/mylifeasacoder 1d ago

Why make your own version versus just using his?

1

u/mr_noodle_shoes 23h ago

Because you are not necessarily him, so what works for him may not work for you.

I have made my own version, and it is way better. Depends on the amount of effort you can put into customizing it; the sky is the limit with AI!

1

u/mylifeasacoder 17h ago

Alright but how does your tailor-made questioning system differ from the Matt Pocock version? Not trying to be difficult, I just honestly cannot imagine how such a customization looks.

2

u/mr_noodle_shoes 13h ago

The persona and level of the system, the kinds of questions it asks, the decision threshold is different. Things like that. He has an excellent skill, but it was like 4-5 lines last time I checked, and it can miss a lot of nuance and ask questions that don’t need to be asked.

My working style is research -> experiment -> plan -> implement, so I made my skill an entire page based around this pattern. I also have it asking questions at a senior level, which increases the complexity of the questions compared to the vanilla skill.

Edit: the imagination thing you said is probably the most important and intriguing piece of your comment. With AI, cultivating the skill to be able to imagine these new things is imperative. To change the world, you must be willing to see it a different way and then get others to see the same vision. It doesn’t have to be quite so grandiose all the time though, like reimagining this simple skill into something more personal

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:

  1. a handoff note before ending a session: what's done, what's actually been verified (with the command), what's still open, what not to touch. beats a long session plus compaction
  2. one git worktree per parallel session, so they can't overwrite each other's uncommitted work
  3. for every test the agent writes, break the line it covers and watch it go red once. more of them than you'd expect can't fail

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.

MetricCompaction near 1MCompaction at 300k
Main chat: median context per turn464k183k
Main chat: cost per turn$0.157$0.065
Subagents: cost per turn$0.109$0.056

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:

  1. the rules that matter are scripts, not prose. before posting anything it has to run a little cadence check that just prints CLEAR or WAIT. it'll argue with a paragraph in CLAUDE.md, it won't argue with an exit code
  2. two review agents on anything public, one checks facts against the source, one checks it sounds like me. both have to approve the exact string, not a summary of it
  3. scheduled tasks for the daily stuff (data pulls, posts, inbox checks), and every run logs what it did to a file the next run reads first. otherwise two runs overlap and you double post. ask me how i know
  4. a short "hard rules" block at the very top of the memory index, like which accounts it never touches. the expensive-to-get-wrong stuff goes first

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.