
You can delegate larger coding jobs with defined completion checks and action limits in Claude Code. The AI coding assistant can work in the background while leaving your terminal free for other work. Its setup also lets you carry decisions into a fresh session and have a separate agent review changes without seeing the original conversation. You’ll discover how to set boundaries, preserve useful context and build checks into longer assignments, as Nate Herk explains, so handing over work does not mean leaving the result unchecked.
Claude Code: Setting Up for Autonomous Work
TL;DR Key Takeaways :
- Claude Code is Anthropic’s agentic coding tool, and its Pro plan starts at $20 per month.
- In Anthropic’s permission test, auto mode blocked 89% of dangerous commands, versus 13.6% caught by 1,053 paid human testers.
- A reported September test found Opus 5 solved about 15% fewer tasks when earlier attempts at the same problem remained in context.
- An October paper found a code-priority rule was followed by Claude Code and Codex about 91% of the time.
- In Anthropic’s testing, an ownership instruction raised Fable’s duplicated-code merging rate from under 10% to about 75% of runs.
Claude Code is Anthropic’s agentic coding tool: it can read codebases, edit files, run commands and verify its work. The Pro plan starts at $20 per month.
1. Use Auto Mode
Auto mode uses a classifier to review actions, while explicit permission rules still apply.
In Anthropic’s permission test, auto mode blocked 89% of dangerous commands, versus 13.6% caught by 1,053 paid human testers. Anthropic says it does not eliminate security risks.
If normal actions are repeatedly blocked, teach Claude what is normal for your work:
/auto mode setup
2. Match Effort to the Task
Start with medium effort. Use higher effort for demanding creative work or large codebases, but note that excessive effort has produced worse results and used up the allowance faster.
3. Clear Failed Attempts From Context
A reported September test found Opus 5 solved about 15% fewer tasks with earlier attempts at the same problem in context, while 250,000 tokens of unrelated text had little effect. If two corrections have not fixed an error, start a fresh session or rewind, then use the mistake to improve your instructions.
/clear
/rewind
4. Choose an Auto-Compact Threshold
Claude Code normally compacts conversations near 400,000 tokens on current native one-million-token models, though some sessions use different thresholds. Choose a lower threshold, weighing more frequent compaction against keeping more history.
5. Put Hard Limits in Permissions
Anthropic advises that its newest models treat “never” as absolute and can overapply “IMPORTANT”; actions that must not happen belong in permissions.
6. Resolve Stale Instruction Conflicts
An October paper found Claude noticed instruction-code conflicts in 79 of 80 runs but still followed the outdated file. With a rule giving code priority, Claude Code and Codex followed it about 91% of the time.
Add the rule to a global CLAUDE.md or agent.md and ask Claude to flag discrepancies:
When the instructions and the existing code disagree, the code wins
7. Audit Old Prompts
A prompt audit scans CLAUDE.md, skills and agents for instructions written for older models. Anthropic’s Lance Martin ran it on his own evaluation and obtained better performance at lower cost.
/doctor prompt audit
8. Use CLAUDE.md for Routing
Use CLAUDE.md to direct Claude to resources such as a wiki or brand assets.
10. Review Session History
Claude Code deletes session history after 30 days by default, but you can change the cleanup period. Ask Claude to turn repeated instructions from past sessions into rules or skills.
11. Ask Claude to Explain Its Setup
Give Claude documentation and ask it to explain a feature you do not understand.
12. Ask for Clarifying Questions
Ask Claude to question you until it is 95% sure it understands the task.
13. Compare Plans From Different Perspectives
Ask Claude for an initial plan and alternatives from different angles, then have it compare their chances of working and explain its choice.
14. Define a Complete Result
Tell Claude what finished work must include.
15. Give Ownership for Larger Changes
An ownership instruction in Anthropic’s prompting guide raised Fable’s rate of merging duplicated code from under 10% to about 75% of runs in Anthropic’s testing. Omit it for small fixes because it uses more tokens and can prompt unrequested changes.
16. Turn Misses Into Lessons
When Claude misses information, ask why and have it update its instructions. An Applied Learning section in CLAUDE.md can hold a short line for each lesson.
17. Push Back on Manual Chores
If Claude asks you to install or fetch something, ask whether it can do it; it often acknowledges that it can.
19. Brief Claude on Your Standards
Give Claude your intent, examples of good and bad work, and the result you want.
20. Ask Claude to Check Its Own Work
Explain how you would inspect the work and ask Claude to check and revise it before presenting a first version.
21. Give Claude Material It Can Inspect
If Claude cannot watch a video natively, it can read a transcript and inspect a grid of frames. You can also use a tool such as Gemini Vision.
22. Review With a Fresh Agent
A fresh agent can review changes without seeing the original conversation. OpenAI’s Codex plugin offers a review using a different model.
/code-review
/Codex review
23. Send Finished Changes for Review
The beta /ship command commits and pushes a change, opens a GitHub pull request, and handles checks and review comments. It does not merge automatically unless it has permission.
/ship
24. Build a Review Panel
Ask subagents to assess work as an ideal customer, skeptic, competitor and non-customer. The non-customer perspective can catch issues the others may miss.
25. Check Security Through Separate Accounts
Ask three subagents to work as two users and an admin, checking whether one user can read the other’s data.
26. Inspect Unplanned App States
Ask Claude to find implicit state machines: app modes such as loading or midway through checkout. It can then look for improvements without breaking existing behavior.
27. Restrict What Agents Can Do
Use deny rules or scoped API keys to limit actions, such as permitting email drafts but not sending. An agent reportedly once emailed about 150,000 people without being told to send the message.
28. Inspect Skills Before Installing Them
Have Claude read an internet-sourced skill for hidden instructions and links to other URLs, then rebuild a clean version.
29. Audit the Setup Regularly
Copy the setup somewhere safe before an audit, then ask models to compare it with current documentation.
30. Keep Setup Files Together
A home repository can hold skills, settings and projects across machines. Use a separate project for client data when it needs to remain private.
31. Account for the Prompt Cache
The prompt cache makes repeated processing of a long chat cheaper. One chat was estimated to cost about $3.50 to rewrite cold at API prices, versus 8 cents with a warm cache.
32. Use Mods to Monitor Sessions
Claude Code mods change how the tool looks or behaves. Cache Keeper displays remaining cache time and estimated cold rewrite cost.
33. Hand Off a Long Session
A session handoff records what has been done, decided and left to do. Use it as the first message in a fresh session.
34. Run Work in the Background
Backgrounding frees the terminal while work continues. A fork creates a separate copy of the code so chats do not overwrite one another.
/background
/fork
35. Set a Finish Line
Use /goal to specify a completion condition. A separate model checks progress after each turn.
/goal
36. Split Work Across Agents
Ask Claude for a workflow or use “ultra code” to run agents in the background.
37. Consult an Advisor
The experimental advisor feature lets an everyday model do the work while Fable reviews the conversation at key points. It may consume more tokens.
/advisor fable
38. Assign an Orchestrator
Ask Fable to plan, delegate to subagents and interpret their results instead of executing the work. Sonnet or Opus subagents report to Fable.
39. Delegate Through Claude Code Projects
Claude Code Projects splits work from one main conversation into threads visible in the desktop app. The threads can communicate with one another.
We think the most useful idea here is treating Claude’s context as something to keep clean, not just something to fill. Clearing, rewinding and lowering the compact threshold all follow from it, and it costs nothing to try. We would be careful with the speaker’s personal settings. A number that works for one person’s overnight runs may not fit your projects, so change one setting at a time and compare results before keeping it.
Getting Claude Code to work more independently starts with making its results checkable, not simply running more sessions. From there, you can move from directing individual actions to delegating larger jobs within boundaries you control. If you already use Claude Code and want to hand off longer coding tasks, this approach to setting it up for autonomous work is well worth trying.
Unlock more potential in optimizing Anthropic Claude Code by reading previous articles we have written.
- 27 Claude Code Concepts: Permissions, Memory and Agents
- Claude Code Course Guide: Tools, Hooks and Custom Commands
- How to Use Claude Skills and Build a CSV Summarizer
- Claude Code Creator Boris Cherny Advises Deleting CLAUDE.md for Better Precision
- Anthropic Engineer Explains How to Use New Claude Code Rules Correctly
Media Credit: Nate Herk | AI Automation
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.