39 Essential Claude Code Tricks: From a Better Setup to a Team of Agents

Nate Herk
Nate Herk
Dec 4, 2026 • 15 min read

A lot of Claude Code advice was written for older models. Keep piling those habits into your setup, and eventually you end up with bloated instructions, wasted tokens, and an agent that needs more supervision than it should.

The way I think about getting more out of Claude Code has four levels: fix your setup, communicate better, manage it like an employee, and then scale it. That order matters. Running 20 sessions does not help much if every session repeats the same mistakes.

These 39 tricks cover that whole progression, from a few settings changes to orchestrating agents. Some features are experimental, in beta, or still rolling out, so availability can depend on your version and plan.

Key Takeaways

  • Keep context lean by removing stale instructions and preserving conclusions instead of failed attempts.
  • Define complete outcomes, clarify requirements early, and require Claude to verify its own work.
  • Enforce critical boundaries through permissions and scoped credentials rather than prompts alone.
  • Scale with focused parallel tasks and an orchestrator that coordinates results and verification.

Level 1: Fix Your Claude Code Setup

1. Use auto mode instead of approving everything manually

Clicking Allow on every command feels like supervision, but it can quickly become a reflex. Auto mode uses a second model to review actions, approve the safe ones, and block risky ones.

Use Shift + Tab to cycle through permission modes. In Anthropic’s testing cited here, auto mode blocked 89% of dangerous commands, compared with about 14% caught manually. That is useful, but it is not a guarantee. You still need hard permission boundaries, which we will get to.

If it keeps blocking routine work, run /auto-mode-setup to teach it about your environment.

2. Match effort to the task

Effort is the actual control for how hard Claude thinks. Start at medium and adjust when the task calls for it.

High or extra-high effort can make sense for difficult reasoning, creative problems, or large codebases. Writing emails, organizing files, and making everyday documents usually do not need it.

I have found that excessive effort sometimes makes the output worse because Claude overthinks something straightforward. More thinking is not automatically better thinking. Match the effort to the job and save yourself time, tokens, and usage.

3. Clear or rewind after repeated failed attempts

Long context is not just a question of how much information fits. It is also a question of what information is sitting there.

A cited September test found that adding 250,000 tokens of unrelated text barely affected performance, while adding the model’s own earlier attempts at the same problem led to about 15% fewer tasks solved. Failed approaches can pull the next attempt back toward the same bad path.

My rule: if I have corrected Claude twice and it is still wrong, I use /clear or /rewind. Save the useful lesson into a skill or instruction, but stop carrying the whole failure history forward.

4. Compact earlier during long autonomous runs

In my setup, I lowered the auto-compact threshold from roughly 967,000 tokens to 400,000. That keeps long goals and overnight sessions from dragging around quite so much old context.

Chart comparing auto-compaction at 967K tokens with a 400K setting

There is a tradeoff: compact too often and you keep summarizing; compact too late and you retain more stale attempts. The 400,000-token setting has been helpful for me, especially when I am not actively steering the session. It is a working preference, not a universal optimum.

5. Give your rules reasons and alternatives

My lists of things not to do mostly come from failures I do not want to repeat. But newer models can interpret “never” very literally and over-apply instructions marked IMPORTANT.

Instead of a blanket prohibition on deleting files, tell Claude to ask before deleting them and explain the reason. Give it the behavior you actually want.

And if an action genuinely must not happen, put that restriction in permissions. A prompt is not the right place for an absolute security boundary.

6. Resolve conflicts between instructions and existing code

Stale instructions can be surprisingly sticky. A cited study tested projects where the instruction file disagreed with the code. Claude detected the conflict in 79 of 80 runs but still tended to follow the outdated file.

Add a precedence rule to your global CLAUDE.md or AGENTS.md: when written project guidance conflicts with the implementation, follow the existing code and flag the discrepancy.

That simple intervention brought code-following behavior to roughly nine out of ten decisions in the cited testing. The important second step is escalation: you want to know which documentation needs fixing.

7. Audit prompts written for older models

Run /doctor prompt-audit to inspect your CLAUDE.md, skills, and agents for outdated prompting habits.

Instructions that helped one generation of models can become unnecessary or counterproductive with the next. Lance Martin from Anthropic reported better performance at substantially lower cost after using this kind of audit on his own evaluation. The goal is not to add another clever instruction. Often, it is to delete one.

8. Keep CLAUDE.md focused on what Claude cannot discover

Claude can read your code. You usually do not need to spend permanent context explaining the folder structure and technology stack it can inspect itself.

My CLAUDE.md is mostly routing information: where the business wiki lives, where to find content references, and where brand assets are stored.

Think of it as a map to information Claude would otherwise struggle to locate, not a duplicate README.

9. Improve the data feeding the workflow

Sometimes the bottleneck is not the prompt. It is thin input data.

Clay, a sponsor of this material, connects to Claude Code and can check more than 250 data providers sequentially until it finds a match.

For example, you can ask for dental offices in Austin, enrich the businesses, and find decision-makers with work email addresses. The same approach can support recruiting. Compared with stitching together web searches and scraping, the value is giving Claude a more structured enrichment workflow.

10. Retain session history and mine it for repeated instructions

Claude Code’s default session retention is 30 days. Change cleanupPeriodDays if you want a longer or shorter history.

Then ask Claude to inspect the last month of sessions and identify what you keep re-explaining. That is how I discovered I had told it seven separate times not to overwrite another chat’s work.

Repeated corrections are useful evidence. Turn them into skills, routing rules, or permission changes instead of typing them an eighth time.

Level 2: Talk to Claude Code Better

11. Ask Claude Code how Claude Code works

A lot of what I know came from giving Claude the documentation and asking it to explain the relevant parts.

Start with the Claude Code documentation, describe what you want to accomplish, and ask for an explanation at your level. If a feature sounds useful but the setup is confusing, ask Claude to help configure it. You do not have to master every setting before getting help with it.

12. Make it clarify before building

I end most substantial prompts by asking Claude to keep asking questions until it is about 95% confident it understands the task.

That percentage is a prompting target, not a measured guarantee. The useful part is making uncertainty explicit before implementation starts.

For larger projects, I use a skill called Grill Me that saves each answer into a file. That gives the project a durable record of requirements instead of leaving every decision buried in chat. It is included in my free AI OS starter template.

13. Generate three genuinely different plans

Do not stop at the first plausible plan. Ask for an initial approach, a second approach from a different angle, and a third from another perspective. Then have Claude explain which has the best chance of working and why.

You can give those perspectives different roles, too. My Roast Room approach uses business personas to challenge an idea from several directions. The point is to create competing approaches before committing to one, rather than polishing the first answer by default.

14. Be ambitious, but define what complete means

Claude often builds the smallest thing that technically satisfies a request. When I had it improve the same website 200 times, it never searched the web because nobody asked it to.

Ask for a more complete outcome and spell out the standard. For a settings page, that could mean:

  • Empty states are designed.
  • Error states are handled.
  • The save flow is actually connected.

This is as much about choosing what to delegate as it is about wording. People are already giving AI broader jobs, including negotiating car prices and energy bills. Think beyond tiny tasks, but always define what good looks like.

15. Give it ownership when the scope justifies it

For broader codebase work, frame Claude as the owner and long-term maintainer, with responsibility for design decisions.

Simon Willison highlighted this idea from Anthropic’s prompting guidance. In the cited Fable testing, that framing increased duplicate-code consolidation from under 10% of runs to about 75%.

The catch is that it also consumes more tokens and encourages changes beyond the immediate request. Use it when architectural judgment is welcome. Leave it out when you need a narrow fix.

16. Turn missed discoveries into routing lessons

When Claude misses something it should have found, ask it to explain why it needed you to point out the location. Then have it inspect its search process and propose an instruction update.

I keep an Applied Learning section in CLAUDE.md, with one short line per lesson. Over time, those lessons become a better routing map.

The objective is not a long explanation of the mistake. It is a small, reusable improvement that makes the next task more efficient.

17. Push back when it delegates its own chores to you

Claude will sometimes hand you a checklist of things it could do itself: install a dependency, retrieve information, or run a build.

Before accepting that work, ask it to handle the steps it can perform with its existing tools and permissions. I do this constantly, and it often realizes it did not need to hand the task back.

Keep pushing until you reach a real access, capability, or approval boundary, not just the first point where Claude suggests manual work.

18. Publish shared deliverables as artifacts

Instead of copying output into a document or circulating new HTML files after every revision, ask Claude to publish an artifact.

An artifact provides a live page at a private Claude.ai link. It can hold a dashboard, deck, tracker, or other interactive deliverable, and some can store data. Updates keep the shared link current.

System overview dashboard with metric cards and line charts

That is much easier for collaboration: the team has one place to open, review, and discuss instead of a chain of increasingly outdated attachments.

Level 3: Manage Claude Like an Employee

19. Brief it like a new hire

A capable new employee still needs context. So does Claude.

Give it your intent, the standard for a good result, and examples of both strong and weak work. If you want it to write like you, provide your ten best posts alongside posts that flopped, then ask it to build a writing guide.

The contrast matters. Successful examples show what to aim for; unsuccessful ones help define what to avoid.

20. Require proof before accepting the work

In my experience, the first output is often only 60% or 70% of the way there. Feedback and checking can bring it closer to 90% or 95%.

Instead of doing every check yourself, explain how you normally evaluate the result. Have Claude perform those checks, correct what fails, and iterate before handing it back.

You want a reviewed draft, not an untouched first attempt. Whether the job involves visual inspection, listening, or cross-checking, give it the tools and criteria needed to verify the result.

21. Give it a way to inspect formats it cannot handle directly

A limitation in one input format does not have to stop the whole workflow.

For video review, for example, provide the spoken text and a grid of extracted images, or connect a tool such as Gemini Vision for richer inspection.

A big part of my AI editing pipeline is having Claude review the finished edit, flag anything that looks wrong, and fix it. That only works when the system has access to a useful representation of the result, not just the instructions that produced it.

22. Review with fresh context and a different model

Use /code-review to review changes with a fresh agent that did not participate in the original conversation.

For another perspective, OpenAI’s official Codex plugin for Claude Code provides a Codex review command. In my experience, it regularly catches issues the Claude models missed.

There are two useful changes here: a reviewer without the original conversation’s assumptions, and, when appropriate, a reviewer from a different model family.

23. Use /ship for the pull-request follow-through

The beta /ship workflow extends beyond writing code. Once a change is ready, it can:

  • Commit and push the change.
  • Open a GitHub pull request.
  • Review the pull request.
  • Monitor and repair failing checks.
  • Respond to review comments.
Ship workflow showing commit, push, open PR, review, fix checks, and answer comments

Merging remains a separate permission decision unless you explicitly authorize more autonomy. Boris Cherny, who leads Claude Code, has described using the shipping workflow throughout his day. The benefit is handing off the follow-through, not just the initial implementation.

24. Build a review panel with different incentives

Spin up subagents representing your ideal customer, a skeptic, a competitor, and someone who is not your customer at all.

That last perspective is particularly useful. Someone outside your target audience can surface assumptions that everyone inside your bubble takes for granted.

This is another use of the Roast Room idea: create several distinct lenses, then synthesize the feedback instead of asking one agent for a generic opinion.

25. Test security with concrete attempts, not reassurance

For an application you own and are authorized to test, do not settle for asking whether it is secure. Give Claude a specific adversarial test.

Have separate agents use test accounts for user A, user B, and an administrator. Ask them to attempt actions that should fail, such as accessing user B’s data while authenticated as user A.

Require reproducible evidence for every finding, then fix the issues together. That produces something more useful than a broad statement that the app looks safe.

26. Find the app’s implicit state machines

Ask Claude to identify the app’s implicit state machines and improve them for users, developers, and agents without breaking existing behavior.

A state machine describes the modes an app can occupy and how it moves between them. Think idle, loading, ready, halfway through checkout, and paid.

App state diagram highlighting a back-button problem during checkout

Many bugs sit in transitions nobody planned carefully, such as going back during checkout. Mapping those states makes the overlooked journeys easier to find and test.

27. Enforce boundaries with deny rules and scoped credentials

We once had an agent email roughly 150,000 people a discount code that nobody had asked it to send. That is why I do not treat a written warning as a sufficient boundary.

You would not hand a new hire a company card they must never use. You would withhold the card.

Apply that same logic to agents:

  • Use deny rules for prohibited actions.
  • Provide API keys that can draft emails but cannot send them.
  • Prefer archive access when deletion is unnecessary.

Auto mode reduces risk. Permissions and scoped access constrain what the agent can actually do.

28. Inspect third-party skills and build your own from successful runs

A skill is fundamentally a prompt, so inspect it before installing it. Ask Claude to flag hidden instructions, unexpected external URLs, and anything unrelated to the skill’s stated job. Then build a clean version containing the useful behavior.

Your best skills often come from your own work anyway. Complete a task successfully once, then ask Claude to turn the proven process into a reusable skill.

29. Audit the whole setup quarterly

Once a quarter, I back up my setup and have a strong model read the current Claude Code documentation alongside the configuration and instructions in my folders. Then I have Codex perform a second audit.

The models change. The surrounding tools change. Your setup should not become a museum of old workarounds.

Check that everything is synchronized, still necessary, and not wasting tokens by loading context that no longer helps.

Level 4: Scale From One Session to a Team of Agents

Once Claude can verify its work, you can run more of it at once. Lydia Hallie from the Claude Code team has described engineers becoming managers of dozens of sessions. Her cited figures put Anthropic’s daily code changes at about 2,500 in May and more than 30,000 in September.

The useful lesson is not to chase a session count. It is to build a system where parallel work stays understandable.

30. Create one home repository for shared context

Matt Pocock calls this the Home Repo pattern. I have been using a similar structure as my AI operating system.

Keep shared skills, settings, your business wiki, brand assets, and project folders in one home repository. That gives you a central place to synchronize through GitHub and pull onto another machine.

Client data is the exception. Keep it in separate projects when privacy and separation matter. Convenience is not a reason to mix information that should remain isolated.

31. Understand prompt caching

Each message carries the conversation context forward. Prompt caching is what makes reusing that context much cheaper than processing it cold.

In the subscription setup described here, the cache lasts about an hour. After it expires, the next message may require rebuilding that context. One of my long-chat examples cost several dollars at cold API-equivalent prices versus about eight cents with a warm cache.

The practical lesson is to understand the cache behavior of your setup before assuming every interaction has the same processing cost.

32. Build mods for recurring workflow friction

Mods change how Claude Code looks or behaves, and you can ask Claude to build them.

I built Cache Keeper to show whether a long chat’s cache is warm, how much time remains, and what rebuilding it would cost. I also use Collision Guard for overlapping file work and Goal Meter for progress tracking.

These tools solve repeated operational annoyances. If you keep performing the same bit of session management, it may be worth turning that behavior into a mod. My mods are available through my free resource community.

33. Use session handoffs to preserve conclusions, not failed attempts

Before clearing a long session, have Claude write a handoff containing:

  • What has been completed.
  • What has been decided.
  • What should happen next.
  • Which decisions remain open.

Start the new session with that handoff. It gets the useful conclusions without inheriting every abandoned approach.

I use handoffs when I am actively directing the work. Earlier auto-compaction serves a different purpose: keeping unattended long-running goals manageable.

34. Use background sessions and forks

/background lets a session continue working while freeing your terminal. The agent overview helps you see what is running, what is blocked on your input, and what is finished.

Use /fork to branch work into a separate session with its own code copy so parallel efforts do not overwrite each other. Sessions can also communicate when one changes something another depends on.

This is much less distracting than keeping every active conversation open in front of you.

35. Set a finish line with /goal

Use /goal with a checkable completion condition, such as all tests passing and a clean build.

A separate model checks after each turn whether the goal has been met, helping Claude continue toward the defined result rather than stopping at the first plausible answer.

When I inspected my session logs, I found that about one in five of my prompts used goals. That is why I built Goal Meter: I wanted clearer visibility into work that keeps running toward an outcome.

36. Chunk large jobs into parallel pieces

Use an ultracode workflow, where available, to fan suitable work out across many agents. The important underlying technique is breaking the job into pieces that can be handled independently.

For motion graphics on a 20-minute video, I split the work into one-minute segments and run 20 agents at once.

Twenty agents assigned to twenty one-minute video segments

That can improve both speed and quality because each agent has a smaller, more focused assignment.

37. Use /advisor for judgment at key moments

The experimental /advisor feature lets an everyday model do the work while consulting a stronger model at important points.

In my setup, I use Fable as the adviser. It checks in before a plan is committed to, when the same error keeps recurring, and before the working model declares completion.

The idea is to get stronger judgment without using the strongest model for every turn. The adviser receives the conversation context, though, so do not assume this always saves tokens. It is still experimental and may increase consumption.

38. Make the strongest model the manager

You can also reverse the arrangement. Give your strongest model a management-only role: plan the project, delegate work, interpret results, and coordinate verification rather than coding or researching directly.

In my setup, Fable orchestrates while Sonnet or Opus agents handle individual assignments.

The main conversation stays cleaner because it contains strategy and conclusions instead of every implementation step. I have found this useful for applying the strongest model’s judgment while using much less of its allowance on routine execution.

39. Coordinate ongoing work with Claude Code Projects

Claude Code Projects provides a more integrated version of that orchestration pattern. It is in beta and rolling out on Pro, Max, and Ultra plans.

You work through one main conversation, and it splits the work into threads. The desktop app provides a visual representation of those threads and their coordination.

Instead of personally tracking 20 separate sessions, you can work with two or three main conversations that delegate beneath them. That is the real management shift: fewer places to provide direction, with more work happening underneath.

Scale the Workflow Only After It Earns Your Trust

The progression is straightforward: clean up the setup, improve the brief, require evidence, and then increase autonomy.

You do not need to implement all 39 tricks at once. Start with the friction you already recognize: repeated corrections, bloated context, weak verification, or overlapping sessions. Fix that part of the system, turn the successful process into a reusable skill, and build from there.

The goal is not simply to run more agents. It is to get more reliable work without making yourself the bottleneck for every step.

Share

Nate Herk | AI Automation

I teach practical AI automation: build agents, master Claude Code and n8n, and turn useful workflows into real business solutions.

© 2026 Nate Herk | AI Automation
Powered by Convella