an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js), Google Ads AW-18388216863. Loaded only when Do Not Track is
off, so it follows the same rule as the PostHog block on this site. -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
if (navigator.doNotTrack !== '1') {
var gtagScript = document.createElement('script');
gtagScript.async = true;
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=AW-18388216863';
document.head.appendChild(gtagScript);
gtag('js', new Date());
gtag('config', 'AW-18388216863');
}
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Claude Code Best Practices: 9 Habits From Anthropic's Docs — Munder Difflin Blog</title>
<meta name="description" content="Nine Claude Code best practices from Anthropic's docs, checked 15 Oct 2026: give Claude a check, plan first, keep memory short, clear context, run in parallel." />
<link rel="canonical" href="https://munderdiffl.in/blog/claude-code-best-practices/" />
<link rel="icon" type="image/png" href="https://munderdiffl.in/logo.png" />
<link rel="apple-touch-icon" href="https://munderdiffl.in/logo.png" />
<meta name="theme-color" content="#F5F2E8" />
<!-- Open Graph -->
<meta property="og:site_name" content="Munder Difflin Blog" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Claude Code Best Practices: 9 Habits From Anthropic's Docs — Munder Difflin Blog" />
<meta property="og:description" content="Nine Claude Code best practices from Anthropic's docs, checked 15 Oct 2026: give Claude a check, plan first, keep memory short, clear context, run in parallel." />
<meta property="og:url" content="https://munderdiffl.in/blog/claude-code-best-practices/" />
<meta property="og:image" content="https://munderdiffl.in/blog/assets/media/claude-code-best-practices/hero.png" />
<meta property="og:image:width" content="1600" />
<meta property="og:image:height" content="900" />
<meta property="og:image:alt" content="Title card on white. 'Claude Code Best Practices' in large ink type, the kicker '9 Habits From Anthropic's Docs', a 'Checked 15 Oct 2026' pill, and a small bonsai tree in a blue pot." />
<meta property="og:locale" content="en_US" />
<meta property="article:published_time" content="2026-10-15T00:00:00.000Z" />
<meta property="article:author" content="Chaitanya Giri" />
<meta property="article:tag" content="Guides" />
<meta property="article:tag" content="Claude Code" />
<meta property="article:tag" content="Getting Started" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Claude Code Best Practices: 9 Habits From Anthropic's Docs — Munder Difflin Blog" />
<meta name="twitter:description" content="Nine Claude Code best practices from Anthropic's docs, checked 15 Oct 2026: give Claude a check, plan first, keep memory short, clear context, run in parallel." />
<meta name="twitter:image" content="https://munderdiffl.in/blog/assets/media/claude-code-best-practices/hero.png" />
<meta name="twitter:image:alt" content="Title card on white. 'Claude Code Best Practices' in large ink type, the kicker '9 Habits From Anthropic's Docs', a 'Checked 15 Oct 2026' pill, and a small bonsai tree in a blue pot." />
<link rel="alternate" type="application/atom+xml" title="Munder Difflin Blog" href="https://munderdiffl.in/blog/feed.xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],500;9..144,600;9..144,700;9..144,900&family=Source+Serif+4:opsz,[email protected],400;8..60,600;8..60,700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/blog/assets/blog-press.css" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Claude Code Best Practices: 9 Habits From Anthropic's Docs",
"description": "Nine Claude Code best practices from Anthropic's docs, checked 15 Oct 2026: give Claude a check, plan first, keep memory short, clear context, run in parallel.",
"image": ["https://munderdiffl.in/blog/assets/media/claude-code-best-practices/hero.png"],
"datePublished": "2026-10-15T00:00:00.000Z",
"dateModified": "2026-10-15T00:00:00.000Z",
"author": { "@type": "Person", "name": "Chaitanya Giri" },
"publisher": {
"@type": "Organization",
"name": "Munder Difflin",
"logo": { "@type": "ImageObject", "url": "https://munderdiffl.in/logo.png" }
},
"mainEntityOfPage": { "@type": "WebPage", "@id": "https://munderdiffl.in/blog/claude-code-best-practices/" },
"keywords": "claude code best practices, claude code tips, claude code tips and tricks, how to use claude code effectively, claude code workflow, claude.md best practices",
"articleSection": "Guides",
"inLanguage": "en-US",
"url": "https://munderdiffl.in/blog/claude-code-best-practices/"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://munderdiffl.in/" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://munderdiffl.in/blog/" },
{ "@type": "ListItem", "position": 3, "name": "Claude Code Best Practices: 9 Habits From Anthropic's Docs", "item": "https://munderdiffl.in/blog/claude-code-best-practices/" }
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{ "@type": "Question", "name": "What are the most important Claude Code best practices?", "acceptedAnswer": { "@type": "Answer", "text": "Anthropic's best practices page opens with giving Claude a way to verify its work, then exploring and planning before coding. It says most best practices are based on one constraint: the context window fills up fast and performance degrades as it fills. So keep `CLAUDE.md` short and run /clear between unrelated tasks." } },
{ "@type": "Question", "name": "How long should `CLAUDE.md` be?", "acceptedAnswer": { "@type": "Answer", "text": "Short. Anthropic's memory docs say to target under 200 lines per `CLAUDE.md` file, because longer files consume more context and reduce adherence. The best practices page suggests asking of each line whether removing it would cause Claude to make mistakes, and cutting it if not." } },
{ "@type": "Question", "name": "When should I use plan mode in Claude Code?", "acceptedAnswer": { "@type": "Answer", "text": "Anthropic's best practices page says planning is most useful when you are uncertain about the approach, when the change touches multiple files, or when you are unfamiliar with the code. For small, clear fixes it says to ask Claude directly. Its rule of thumb: if you could describe the diff in one sentence, skip the plan." } },
{ "@type": "Question", "name": "How do I get fewer permission prompts in Claude Code?", "acceptedAnswer": { "@type": "Answer", "text": "Anthropic's best practices page says to pre-approve the tools you trust with /permissions and let sandboxed commands run without asking with /sandbox. With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions, per the permission modes docs." } },
{ "@type": "Question", "name": "Can I run more than one Claude Code session at once?", "acceptedAnswer": { "@type": "Answer", "text": "Yes. Anthropic's best practices page lists worktrees, the desktop app, cloud sessions, agent view (a research preview) and agent teams (experimental and disabled by default). Munder Difflin is free and open source: a desktop app that runs a team of coding agents such as Claude Code, Codex and Gemini CLI on your own computer." } }
]
}
</script>
<script>
// Anonymous blog analytics (PostHog) — same posture as the main site and the
// app's TELEMETRY.md: public write-only token ('' = inert), anonymous-only
// (person_profiles 'never'), no autocapture/recording, DNT respected.
(function () {
var PH_KEY = 'phc_qJzsokwcbtTGHemnvywR3nSqivNNgMjHeNVEWkZNydFB';
if (!PH_KEY || navigator.doNotTrack === '1') return;
var s = document.createElement('script');
s.async = true;
s.src = 'https://us-assets.i.posthog.com/static/array.js';
s.onload = function () {
if (!window.posthog) return;
window.posthog.init(PH_KEY, {
api_host: 'https://us.i.posthog.com',
person_profiles: 'never',
autocapture: false,
before_send: function (event) {
// PostHog fills $ip from the connection unless the event carries one.
// Null it here and disable the GeoIP lookup so no IP, city, postal
// code or lat/long is ever derived or stored for this page view.
if (event && event.properties) {
event.properties.$ip = null;
event.properties.$geoip_disable = true;
}
return event;
},
disable_session_recording: true,
respect_dnt: true
});
};
document.head.appendChild(s);
})();
</script>
</head>
<body class="theme-press">
<a class="skip-link" href="#main">Skip to content</a>
<nav id="nav">
<a class="brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
<img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
</a>
<span class="spacer"></span>
<div class="links">
<a href="/blog/">Latest</a>
<a href="/blog/topics/">Topics</a>
<a href="/blog/about/">About</a>
<a href="https://munderdiffl.in">↗ Product</a>
</div>
<div class="nav-actions">
<a class="btn sm" href="https://munderdiffl.in/blog/feed.xml" aria-label="RSS feed">⤵ RSS</a>
<a class="btn sm primary" href="https://munderdiffl.in/#install">⤓ Download</a>
</div>
</nav>
<main id="main">
<article class="t-guides">
<header class="post-head wrap">
<nav class="crumbs" aria-label="Breadcrumb">
<a href="/blog/">Blog</a>
<span>/</span>
<a href="/blog/topics/guides/">Guides</a>
</nav>
<h1>Claude Code Best Practices: 9 Habits From Anthropic's Docs</h1>
<p class="dek">Nine Claude Code best practices from Anthropic's docs, checked 15 Oct 2026: give Claude a check, plan first, keep memory short, clear context, run in parallel.</p>
<div class="byline">
<span class="av" aria-hidden="true">MD</span>
<strong>Chaitanya Giri</strong>
<span class="dot" aria-hidden="true">·</span>
<time datetime="2026-10-15">Oct 15, 2026</time>
<span class="dot" aria-hidden="true">·</span>
<span>5 min read</span>
<span class="tag kind">Guides</span>
</div>
</header>
<div class="hero-wrap wrap"><figure class="fig fig-hero"><img src="/blog/assets/media/claude-code-best-practices/hero.png" alt="Title card on white. 'Claude Code Best Practices' in large ink type, the kicker '9 Habits From Anthropic's Docs', a 'Checked 15 Oct 2026' pill, and a small bonsai tree in a blue pot." loading="lazy" decoding="async" /></figure></div>
<div class="post-wrap wrap">
<div class="prose">
<p>The core Claude Code best practices, from Anthropic’s own docs, are to give Claude a check it can run, plan before coding, keep <code>CLAUDE.md</code> short and clear context between unrelated tasks. Checked 15 Oct 2026.</p>
<p>To run several sessions at once, you can also use <a href="https://harnessmd.com/download">Munder Difflin</a>, free and open source: a desktop app that runs a team of coding agents such as Claude Code, Codex and Gemini CLI on your own computer. Our <a href="/blog/how-to-install-and-use-munder-difflin/">install guide</a> covers it. New to the tool itself? Read <a href="/blog/how-to-use-claude-code/">how to use Claude Code</a> first, or browse the <a href="/blog/topics/guides/">Guides hub</a>.</p>
<p>Every tip below comes from <a href="https://code.claude.com/docs/en/best-practices">Anthropic’s best practices page</a> unless it names another Anthropic page or says “Our view”.</p>
<h2 id="why-does-the-context-window-shape-every-tip" tabindex="-1">Why does the context window shape every tip? <a class="anchor" href="#why-does-the-context-window-shape-every-tip" aria-hidden="true">#</a></h2>
<p>Because Claude gets worse as its context fills. Anthropic’s best practices page says “Claude’s context window fills up fast, and performance degrades as it fills”, and calls the context window “the most important resource to manage”. Most of the habits below either save context or replace your attention with a check.</p>
<h2 id="1-give-claude-a-way-to-verify-its-work" tabindex="-1">1. Give Claude a way to verify its work <a class="anchor" href="#1-give-claude-a-way-to-verify-its-work" aria-hidden="true">#</a></h2>
<p>Give Claude a check it can run: tests, a build, or a screenshot to compare. Anthropic’s best practices page puts it as “the difference between a session you watch and one you walk away from.” Put the check in the prompt, as in the page’s example:</p>
<pre class="language-txt"><code class="language-txt">write a validateEmail function. example test cases: [email protected] is true, invalid is false, [email protected] is false. run the tests after implementing</code></pre>
<p>For harder gates, the same page lists a <code>/goal</code> condition, a Stop hook that blocks the turn until the check passes, and a verification subagent. It also says to have Claude show evidence, such as test output, rather than assert success.</p>
<figure class="mg" data-scene="sieve"><img src="/blog/assets/media/claude-code-best-practices/sieve.png" width="1600" height="1200" loading="lazy" decoding="async" alt="Animation. A round sieve shakes over a tray. Fine sand falls through, while three pebbles marked failing test, build error and eslint stay caught in the mesh."><figcaption>A check catches the bad pebbles before you do. Anthropic's best practices page, checked 15 Oct 2026.</figcaption></figure>
<h2 id="2-explore-first-then-plan-then-code" tabindex="-1">2. Explore first, then plan, then code <a class="anchor" href="#2-explore-first-then-plan-then-code" aria-hidden="true">#</a></h2>
<p>Separate research and planning from implementation, so Claude does not solve the wrong problem. Anthropic’s best practices page gives four phases: explore, plan, implement, commit. Enter plan mode by pressing <code>Shift+Tab</code> until the status bar shows plan mode on, or start with:</p>
<pre class="language-bash"><code class="language-bash">claude --permission-mode plan</code></pre>
<p>Press <code>Ctrl+G</code> to edit the plan in your text editor before Claude proceeds. The page also says “If you could describe the diff in one sentence, skip the plan.” More in our <a href="/blog/how-to-use-claude-code-plan-mode/">plan mode guide</a>.</p>
<figure class="mg" data-scene="map"><img src="/blog/assets/media/claude-code-best-practices/map.png" width="1600" height="1200" loading="lazy" decoding="async" alt="Animation. A paper treasure map unrolls. A dotted route draws itself from a start mark to a cross, and only then does a solid line follow the dots, step by step."><figcaption>Draw the route, then walk it: explore, plan, implement, commit, from Anthropic's best practices page.</figcaption></figure>
<h2 id="3-be-specific-in-your-prompts" tabindex="-1">3. Be specific in your prompts <a class="anchor" href="#3-be-specific-in-your-prompts" aria-hidden="true">#</a></h2>
<p>Reference specific files, mention constraints and point to example patterns. Anthropic’s best practices page contrasts “fix the login bug” with a prompt that names the symptom, the likely location in <code>src/auth/</code> and a failing test to write first. Use <code>@</code> to reference files, paste screenshots, or pipe data in:</p>
<pre class="language-bash"><code class="language-bash"><span class="token function">cat</span> error.log <span class="token operator">|</span> claude <span class="token parameter variable">-p</span> <span class="token string">"explain this error"</span></code></pre>
<h2 id="4-what-should-go-in-claudemd" tabindex="-1">4. What should go in <code>CLAUDE.md</code>? <a class="anchor" href="#4-what-should-go-in-claudemd" aria-hidden="true">#</a></h2>
<p>Only what Claude can’t infer from code and needs in every session: Bash commands, code style that differs from defaults, testing instructions, repo etiquette. Run <code>/init</code> for a starter file and <code>/context</code> to confirm Claude loaded it. For each line, Anthropic’s best practices page asks “Would removing this cause Claude to make mistakes?” If not, cut it. Anthropic’s <a href="https://code.claude.com/docs/en/memory">memory docs</a> say to target under 200 lines per file. Our view: a <code>CLAUDE.md</code> that reads like a policy manual gets read like one. See <a href="/blog/give-claude-code-long-term-memory/">give Claude Code long term memory</a>. Our <a href="/blog/claude-md-best-practices/">CLAUDE.md best practices</a> page covers where each file lives and how <code>AGENTS.md</code> loads.</p>
<figure class="mg" data-scene="clipboard"><img src="/blog/assets/media/claude-code-best-practices/clipboard.png" width="1600" height="1200" loading="lazy" decoding="async" alt="Animation. A clipboard holds a short checklist of four lines. Each box ticks itself in turn, and a fifth, longer line fades out and is struck through before it can be ticked."><figcaption>Short beats long: Anthropic's memory docs say to target under 200 lines per file.</figcaption></figure>
<h2 id="5-set-permissions-once-not-per-prompt" tabindex="-1">5. Set permissions once, not per prompt <a class="anchor" href="#5-set-permissions-once-not-per-prompt" aria-hidden="true">#</a></h2>
<p>Pre-approve the tools you trust with <code>/permissions</code> and let sandboxed commands run without asking with <code>/sandbox</code>. Anthropic’s best practices page notes that with Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions, where a classifier model blocks only what looks risky. On earlier versions that applies only on Pro, Max and Team plans. See <a href="/blog/why-does-claude-code-keep-asking-for-permission/">why Claude Code keeps asking for permission</a>.</p>
<h2 id="6-use-hooks-for-rules-with-zero-exceptions" tabindex="-1">6. Use hooks for rules with zero exceptions <a class="anchor" href="#6-use-hooks-for-rules-with-zero-exceptions" aria-hidden="true">#</a></h2>
<p>Use hooks for anything that must happen every time. Anthropic’s best practices page says “Unlike <code>CLAUDE.md</code> instructions which are advisory, hooks are deterministic and guarantee the action happens.” Ask Claude to “Write a hook that runs eslint after every file edit”, edit <code>.claude/settings.json</code> by hand, and run <code>/hooks</code> to see what is set. Our <a href="/blog/claude-code-hooks-explained/">hooks explainer</a> goes further.</p>
<h2 id="7-send-research-to-subagents" tabindex="-1">7. Send research to subagents <a class="anchor" href="#7-send-research-to-subagents" aria-hidden="true">#</a></h2>
<p>Delegate investigation to subagents so the reading happens outside your main context. Anthropic’s best practices page says subagents “run in separate context windows and report back summaries”, and suggests prompts like “use subagents to investigate X”. Custom subagents live in <code>.claude/agents/</code>. The same page suggests a subagent review of the diff in a fresh context before you call a task done.</p>
<h2 id="8-clear-context-between-tasks" tabindex="-1">8. Clear context between tasks <a class="anchor" href="#8-clear-context-between-tasks" aria-hidden="true">#</a></h2>
<p>Run <code>/clear</code> between unrelated tasks. Anthropic’s best practices page says that if you have corrected Claude more than twice on the same issue in one session, the context is cluttered with failed approaches, so clear it and write a better prompt. For finer control:</p>
<pre class="language-txt"><code class="language-txt">/compact Focus on the API changes</code></pre>
<p><code>Esc</code> stops Claude mid action, and <code>Esc + Esc</code> or <code>/rewind</code> restores earlier code or conversation. Anthropic’s best practices page warns that checkpoints are not “a replacement for git”.</p>
<h2 id="9-run-several-sessions-side-by-side" tabindex="-1">9. Run several sessions side by side <a class="anchor" href="#9-run-several-sessions-side-by-side" aria-hidden="true">#</a></h2>
<p>Run several sessions in parallel. Anthropic’s best practices page lists worktrees, the desktop app, cloud sessions, agent view (research preview) and agent teams (experimental and disabled by default). It also suggests a Writer and Reviewer pair, because “a fresh context improves code review”. Our <a href="/blog/manage-multiple-claude-code-sessions/">multiple sessions guide</a> covers the setups.</p>
<h2 id="claude-code-best-practices-at-a-glance-from-anthropics-docs-checked-15-oct-2026" tabindex="-1">Claude Code best practices at a glance, from Anthropic’s docs, checked 15 Oct 2026 <a class="anchor" href="#claude-code-best-practices-at-a-glance-from-anthropics-docs-checked-15-oct-2026" aria-hidden="true">#</a></h2>
<div class="table-scroll">
<table>
<thead>
<tr>
<th>Practice</th>
<th>What to do</th>
<th>Where in the docs</th>
</tr>
</thead>
<tbody>
<tr>
<td>Verify</td>
<td>Give a test, build or screenshot check</td>
<td>Give Claude a way to verify its work</td>
</tr>
<tr>
<td>Plan</td>
<td><code>Shift+Tab</code> to plan mode, then implement</td>
<td>Explore first, then plan, then code</td>
</tr>
<tr>
<td>Be specific</td>
<td>Name files, constraints, patterns; use <code>@</code></td>
<td>Provide specific context in your prompts</td>
</tr>
<tr>
<td><code>CLAUDE.md</code></td>
<td><code>/init</code>, then prune; under 200 lines</td>
<td>Write an effective <code>CLAUDE.md</code>; memory docs</td>
</tr>
<tr>
<td>Permissions</td>
<td><code>/permissions</code> and <code>/sandbox</code></td>
<td>Configure permissions</td>
</tr>
<tr>
<td>Hooks</td>
<td>Script what must always happen</td>
<td>Set up hooks</td>
</tr>
<tr>
<td>Subagents</td>
<td>“use subagents to investigate X”</td>
<td>Use subagents for investigation</td>
</tr>
<tr>
<td>Context</td>
<td><code>/clear</code>, <code>/compact</code>, <code>/rewind</code></td>
<td>Manage your session</td>
</tr>
<tr>
<td>Parallel</td>
<td>Worktrees, desktop app, agent view</td>
<td>Run multiple Claude sessions</td>
</tr>
</tbody>
</table>
</div>
<h2 id="what-mistakes-does-anthropic-warn-about" tabindex="-1">What mistakes does Anthropic warn about? <a class="anchor" href="#what-mistakes-does-anthropic-warn-about" aria-hidden="true">#</a></h2>
<p>Anthropic’s best practices page names five failure patterns:</p>
<ul>
<li><strong>The kitchen sink session:</strong> unrelated tasks in one context. Fix: <code>/clear</code>.</li>
<li><strong>Correcting over and over:</strong> after two failed corrections, clear and rewrite the prompt.</li>
<li><strong>The over-specified <code>CLAUDE.md</code>:</strong> prune it, or turn a rule into a hook.</li>
<li><strong>The trust-then-verify gap:</strong> “If you can’t verify it, don’t ship it.”</li>
<li><strong>The infinite exploration:</strong> scope investigations narrowly or use subagents.</li>
</ul>
<link rel="stylesheet" href="/blog/assets/media/claude-code-best-practices/motion.css"><script defer src="/blog/assets/media/claude-code-best-practices/motion.js"></script>
<section class="faq" aria-label="Frequently asked questions">
<h2 id="faq">FAQ</h2>
<div class="qa">
<p class="q">What are the most important Claude Code best practices?</p>
<p class="a">Anthropic's best practices page opens with giving Claude a way to verify its work, then exploring and planning before coding. It says most best practices are based on one constraint: the context window fills up fast and performance degrades as it fills. So keep `CLAUDE.md` short and run /clear between unrelated tasks.</p>
</div>
<div class="qa">
<p class="q">How long should `CLAUDE.md` be?</p>
<p class="a">Short. Anthropic's memory docs say to target under 200 lines per `CLAUDE.md` file, because longer files consume more context and reduce adherence. The best practices page suggests asking of each line whether removing it would cause Claude to make mistakes, and cutting it if not.</p>
</div>
<div class="qa">
<p class="q">When should I use plan mode in Claude Code?</p>
<p class="a">Anthropic's best practices page says planning is most useful when you are uncertain about the approach, when the change touches multiple files, or when you are unfamiliar with the code. For small, clear fixes it says to ask Claude directly. Its rule of thumb: if you could describe the diff in one sentence, skip the plan.</p>
</div>
<div class="qa">
<p class="q">How do I get fewer permission prompts in Claude Code?</p>
<p class="a">Anthropic's best practices page says to pre-approve the tools you trust with /permissions and let sandboxed commands run without asking with /sandbox. With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions, per the permission modes docs.</p>
</div>
<div class="qa">
<p class="q">Can I run more than one Claude Code session at once?</p>
<p class="a">Yes. Anthropic's best practices page lists worktrees, the desktop app, cloud sessions, agent view (a research preview) and agent teams (experimental and disabled by default). Munder Difflin is free and open source: a desktop app that runs a team of coding agents such as Claude Code, Codex and Gemini CLI on your own computer.</p>
</div>
</section>
<hr />
<div class="share">
<span class="lbl">Tags</span>
<a class="tag" href="/blog/tags/guides/">Guides</a><a class="tag" href="/blog/tags/claude-code/">Claude Code</a><a class="tag" href="/blog/tags/getting-started/">Getting Started</a>
</div>
</div>
<aside class="toc-rail" aria-label="Table of contents">
<div class="tt">On this page</div>
<ol>
<li class="lvl-2"><a href="#why-does-the-context-window-shape-every-tip">Why does the context window shape every tip?</a></li><li class="lvl-2"><a href="#1-give-claude-a-way-to-verify-its-work">1. Give Claude a way to verify its work</a></li><li class="lvl-2"><a href="#2-explore-first-then-plan-then-code">2. Explore first, then plan, then code</a></li><li class="lvl-2"><a href="#3-be-specific-in-your-prompts">3. Be specific in your prompts</a></li><li class="lvl-2"><a href="#4-what-should-go-in-claudemd">4. What should go in CLAUDE.md?</a></li><li class="lvl-2"><a href="#5-set-permissions-once-not-per-prompt">5. Set permissions once, not per prompt</a></li><li class="lvl-2"><a href="#6-use-hooks-for-rules-with-zero-exceptions">6. Use hooks for rules with zero exceptions</a></li><li class="lvl-2"><a href="#7-send-research-to-subagents">7. Send research to subagents</a></li><li class="lvl-2"><a href="#8-clear-context-between-tasks">8. Clear context between tasks</a></li><li class="lvl-2"><a href="#9-run-several-sessions-side-by-side">9. Run several sessions side by side</a></li><li class="lvl-2"><a href="#claude-code-best-practices-at-a-glance-from-anthropics-docs-checked-15-oct-2026">Claude Code best practices at a glance, from Anthropic’s docs, checked 15 Oct 2026</a></li><li class="lvl-2"><a href="#what-mistakes-does-anthropic-warn-about">What mistakes does Anthropic warn about?</a></li>
</ol>
</aside>
</div>
<footer class="post-foot wrap"><div class="prevnext">
<a class="pn prev" href="/blog/opencode-2-0/"><span class="k">← Older</span><span class="t">OpenCode 2.0: what changed and how to upgrade</span></a>
<a class="pn next" href="/blog/agent-tools-today-2026-10-15/"><span class="k">Newer →</span><span class="t">Agent Tools Today, 15 Oct 2026: OpenCode 2.0, Hermes Agent v0.22.0, a Lost TV Season</span></a>
</div>
<section class="related">
<h2>Related in Guides</h2>
<div class="post-grid">
<article class="card t-guides">
<a class="thumb t-guides" href="/blog/claude-md-best-practices/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/claude-md-best-practices/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-26">Oct 26, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>4 min</span>
</div>
<h3><a href="/blog/claude-md-best-practices/">CLAUDE.md Best Practices: What to Write, Where It Lives, How Long (Oct 2026)</a></h3>
<p class="dek">CLAUDE.md best practices from Anthropic's docs, checked 26 Oct 2026: what to put in it, where each file lives, the 200 line target and how AGENTS.md loads.</p>
<div class="foot">
<span class="tag kind">Guides</span>
<a class="more" href="/blog/claude-md-best-practices/" aria-label="Read: CLAUDE.md Best Practices: What to Write, Where It Lives, How Long (Oct 2026)">Read →</a>
</div>
</div>
</article>
<article class="card t-guides">
<a class="thumb t-guides" href="/blog/codex-computer-use/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/codex-computer-use/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-26">Oct 26, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>4 min</span>
</div>
<h3><a href="/blog/codex-computer-use/">Codex Computer Use: How to Turn It On, Plans and Limits (Oct 2026)</a></h3>
<p class="dek">Codex computer use lets the ChatGPT desktop app see and click apps on macOS and Windows. Setup, which plans get it, locked use and how Claude's compares.</p>
<div class="foot">
<span class="tag kind">Guides</span>
<a class="more" href="/blog/codex-computer-use/" aria-label="Read: Codex Computer Use: How to Turn It On, Plans and Limits (Oct 2026)">Read →</a>
</div>
</div>
</article>
<article class="card t-guides">
<a class="thumb t-guides" href="/blog/cursor-pricing/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/cursor-pricing/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-26">Oct 26, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>5 min</span>
</div>
<h3><a href="/blog/cursor-pricing/">Cursor Pricing (Oct 2026): Every Plan After the 12 Oct Change</a></h3>
<p class="dek">Cursor pricing as of 26 Oct 2026: Free, Plus $8, Premium $30, Super $100, Ultra $200, Teams seats, what changed on 12 Oct and what old plans keep.</p>
<div class="foot">
<span class="tag kind">Guides</span>
<a class="more" href="/blog/cursor-pricing/" aria-label="Read: Cursor Pricing (Oct 2026): Every Plan After the 12 Oct Change">Read →</a>
</div>
</div>
</article>
</div>
</section>
</footer>
</article>
</main>
<footer class="site-foot">
<div class="wrap">
<div class="foot-top">
<a class="foot-brand brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
<img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
</a>
<div class="foot-links">
<a href="/blog/">Latest</a>
<a href="/blog/topics/">Topics</a>
<a href="/blog/about/">About</a>
<a href="https://munderdiffl.in/blog/feed.xml">RSS</a>
<a href="https://github.com/chaitanyagiri/munder-difflin">GitHub</a>
<a href="https://munderdiffl.in">munderdiffl.in ↗</a>
</div>
</div>
<div class="foot-meta">
© 2026 Munder Difflin · Local-first · MIT-licensed ·
Built on <a href="https://munderdiffl.in">Electron, React, Pixi.js, xterm.js & node-pty</a>.
Run an office of agents while you sleep.
</div>
</div>
</footer>
<script>
// sticky-nav border on scroll
(function () {
var nav = document.getElementById('nav');
if (!nav) return;
var onScroll = function () { nav.classList.toggle('scrolled', window.scrollY > 8); };
onScroll(); window.addEventListener('scroll', onScroll, { passive: true });
})();
// YouTube click-to-load: thumbnail button → youtube-nocookie iframe
(function () {
document.addEventListener('click', function (e) {
var btn = e.target.closest('.yt-load');
if (!btn) return;
var box = btn.closest('.yt');
var id = box && box.getAttribute('data-yt');
// Only an 11 character YouTube video id may reach the iframe URL.
if (!id || !/^[A-Za-z0-9_-]{11}$/.test(id)) return;
var frame = document.createElement('iframe');
frame.src = 'https://www.youtube-nocookie.com/embed/' + encodeURIComponent(id) + '?autoplay=1';
frame.title = box.getAttribute('data-title') || 'YouTube video';
frame.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
frame.setAttribute('allowfullscreen', '');
box.replaceChildren(frame);
});
})();
</script>
</body>
</html>