<!DOCTYPE html><html class="h-screen antialiased bg-bg-100 __variable_8d1da5 __variable_2d8cf6 __variable_e4195f" lang="en" data-theme="claude" data-mode="auto"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"/><link rel="stylesheet" href="/_next/static/css/95b83e376d020c60.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/e134c0072d38a479.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/28ca58211539440e.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/4b0acb6fba0ef678.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/61b19416fa80aaf6.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/595304cd2c73d99a.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/bf71b0902a17bea2.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/c40933516c29a5e3.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/8359068e4bd1e0f6.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/05674d3eb9977543.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/77755cd2a6b2a03a.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/1a19c7fb5a1c7bbe.css" data-precedence="next"/><meta name="next-size-adjust" content=""/><title>Prompting best practices - Claude API Docs</title><meta name="description" content="Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems."/><link rel="canonical" href="https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"/><meta name="mobile-web-app-capable" content="yes"/><link href="/apple-touch-icon.png" rel="apple-touch-startup-image"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Prompting best practices"/><meta property="og:description" content="Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems."/><meta property="og:url" content="https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"/><meta property="og:site_name" content="Claude API Docs"/><meta property="og:locale" content="en"/><meta property="og:image" content="https://platform.claude.com/docs/og?locale=en&path=build-with-claude/prompt-engineering/claude-prompting-best-practices"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:image:alt" content="Prompting best practices"/><meta property="og:image:type" content="image/png"/><meta property="og:type" content="article"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="Prompting best practices"/><meta name="twitter:description" content="Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems."/><meta name="twitter:image" content="https://platform.claude.com/docs/og?locale=en&path=build-with-claude/prompt-engineering/claude-prompting-best-practices"/><link rel="icon" href="/favicon.ico"/><link rel="icon" href="/favicon-16x16.png" sizes="16x16" type="image/png"/><link rel="icon" href="/favicon-32x32.png" sizes="32x32" type="image/png"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/></head><body class="bg-bg-100 text-text-100 min-h-screen font-ui"><div hidden=""><!--$--><!--/$--></div><div role="region" aria-label="Notifications (F8)" tabindex="-1" style="pointer-events:none"><ol tabindex="-1" class="fixed top-0 z-toast flex flex-col gap-3 p-4" style="right:var(--launch-drawer-width, 0px)" role="status"></ol></div><!--$--><!--/$--><!--$?--><template id="B:0"></template><div class="fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"><div class="h-20 w-20 border-8 border-border-200 text-secondary inline-block animate-spin rounded-full border-solid border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] hidden" role="status"><span class="sr-only">Loading...</span></div></div><!--/$--><iframe src="https://a.claude.ai/isolated-segment.html?v=dev" style="display:none" referrerPolicy="no-referrer" sandbox="allow-scripts allow-same-origin" title=""></iframe><div hidden id="S:0"><div class="__variable_8d1da5 __variable_2d8cf6 __variable_5581e8"><div class="max-w-screen flex flex-col"><header class="fixed top-0 left-0 gap-1 right-0 z-30 h-14 flex-none border-b-0.5 border-border-300 bg-bg-100 flex items-center justify-between px-2 md:px-4"><a aria-label="Claude API Docs Home" href="/docs/en/home"><svg width="224" height="26" viewBox="0 0 431 50" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-colors duration-200 hidden md:block" aria-label="Claude API Docs"><path d="M23.1516 45.525L23.8096 42.611L24.5616 38.851L25.1726 35.843L25.7366 32.13L26.0656 30.908L26.0186 30.814L25.7836 30.861L22.9636 34.715L18.6866 40.496L15.3026 44.068L14.5036 44.397L13.0936 43.692L13.2346 42.376L14.0336 41.248L18.6866 35.279L21.5066 31.566L23.3396 29.451L23.2926 29.169H23.1986L10.7906 37.253L8.58158 37.535L7.59458 36.642L7.73558 35.185L8.20558 34.715L11.9186 32.13L21.1776 26.96L21.3186 26.49L21.1776 26.255H20.7076L19.1566 26.161L13.8926 26.02L9.33358 25.832L4.86858 25.597L3.74058 25.362L2.70658 23.952L2.80058 23.247L3.74058 22.636L5.10358 22.73L8.06458 22.965L12.5296 23.247L15.7726 23.435L20.5666 23.952H21.3186L21.4126 23.623L21.1776 23.435L20.9896 23.247L16.3366 20.145L11.3546 16.855L8.72258 14.928L7.31258 13.941L6.60758 13.048L6.32558 11.074L7.59458 9.664L9.33358 9.805L9.75658 9.899L11.4956 11.262L15.2086 14.129L20.0966 17.748L20.8016 18.312L21.1306 18.124V17.983L20.8016 17.466L18.1696 12.672L15.3496 7.784L14.0806 5.763L13.7516 4.541C13.6263 4.118 13.5636 3.648 13.5636 3.131L15.0206 1.157L15.8196 0.874997L17.7936 1.157L18.5926 1.862L19.8146 4.635L21.7416 9.006L24.7966 14.928L25.6896 16.714L26.1596 18.312L26.3476 18.829H26.6766V18.547L26.9116 15.163L27.3816 11.074L27.8516 5.81L27.9926 4.306L28.7446 2.52L30.2016 1.58L31.3296 2.097L32.2696 3.46L32.1286 4.306L31.6116 7.925L30.4836 13.612L29.7786 17.466H30.2016L30.6716 16.949L32.5986 14.411L35.8416 10.369L37.2516 8.771L38.9436 6.985L40.0246 6.139H42.0456L43.5026 8.348L42.8446 10.651L40.7766 13.283L39.0376 15.492L36.5466 18.829L35.0426 21.508L35.1836 21.696H35.5126L41.1056 20.474L44.1606 19.957L47.7326 19.346L49.3776 20.098L49.5656 20.85L48.9076 22.448L45.0536 23.388L40.5416 24.281L33.8206 25.879L33.7266 25.926L33.8206 26.067L36.8286 26.349L38.1446 26.443H41.3406L47.2626 26.866L48.8136 27.9L49.7066 29.122L49.5656 30.109L47.1686 31.284L43.9726 30.532L36.4526 28.746L33.9146 28.135H33.5386V28.323L35.7006 30.438L39.6016 33.963L44.5366 38.522L44.7716 39.65L44.1606 40.59L43.5026 40.496L39.1786 37.206L37.4866 35.749L33.7266 32.6H33.4916V32.929L34.3376 34.198L38.9436 41.107L39.1786 43.222L38.8496 43.88L37.6276 44.303L36.3586 44.068L33.6326 40.308L30.8596 36.031L28.6036 32.224L28.3686 32.412L27.0056 46.606L26.3946 47.311L24.9846 47.875L23.8096 46.982L23.1516 45.525Z" fill="#D97757"></path><path d="M77.9697 42.47C74.2881 42.47 71.0059 41.7415 68.1232 40.2845C65.2562 38.8118 63.0159 36.7517 61.4022 34.104C59.7886 31.4563 58.9817 28.417 58.9817 24.986C58.9817 21.3357 59.8042 18.0927 61.4492 15.257C63.1099 12.4213 65.4051 10.2202 68.3347 8.6535C71.2644 7.07116 74.5936 6.28 78.3222 6.28C80.5626 6.28 82.7951 6.52283 85.0197 7.0085C87.2601 7.4785 89.2262 8.21483 90.9182 9.2175V16.949H88.8032C88.2079 14.1133 87.0407 12.0532 85.3017 10.7685C83.5784 9.48383 81.2206 8.8415 78.2282 8.8415C75.3612 8.8415 72.9799 9.48383 71.0842 10.7685C69.1886 12.0532 67.7864 13.847 66.8777 16.15C65.9691 18.4373 65.5147 21.1007 65.5147 24.14C65.5147 27.1323 66.0239 29.8192 67.0422 32.2005C68.0606 34.5818 69.5724 36.4618 71.5777 37.8405C73.5831 39.2192 75.9957 39.9085 78.8157 39.9085C80.7271 39.9085 82.3642 39.5325 83.7272 38.7805C85.1059 38.0285 86.2652 37.0023 87.2052 35.702C88.1452 34.386 89.0226 32.7723 89.8372 30.861H92.0462L90.5422 39.3445C88.9129 40.3942 86.9702 41.1775 84.7142 41.6945C82.4582 42.2115 80.2101 42.47 77.9697 42.47ZM94.1377 39.9555C95.0621 39.8458 95.7827 39.7048 96.2997 39.5325C96.8324 39.3445 97.2162 39.0938 97.4512 38.7805C97.6862 38.4672 97.8037 38.0677 97.8037 37.582V11.9905L94.1377 10.604V9.0295L101.517 6.28H103.397V37.582C103.397 38.0677 103.514 38.4672 103.749 38.7805C103.984 39.0938 104.36 39.3445 104.877 39.5325C105.41 39.7048 106.138 39.8458 107.063 39.9555V42H94.1377V39.9555ZM115.64 42.47C114.293 42.47 113.102 42.2193 112.068 41.718C111.034 41.2167 110.227 40.5117 109.648 39.603C109.084 38.6943 108.802 37.6447 108.802 36.454C108.802 34.715 109.35 33.2815 110.447 32.1535C111.559 31.0098 113.267 30.109 115.57 29.451L124.1 27.0305V24.469C124.1 22.7927 123.701 21.5237 122.902 20.662C122.118 19.8003 120.951 19.3695 119.4 19.3695C118.037 19.3695 116.956 19.7847 116.157 20.615C115.374 21.4453 114.982 22.5733 114.982 23.999V26.114H111.175C110.721 25.832 110.368 25.4638 110.118 25.0095C109.883 24.5395 109.765 24.0225 109.765 23.4585C109.765 22.3462 110.196 21.3278 111.058 20.4035C111.919 19.4635 113.087 18.7193 114.559 18.171C116.032 17.6227 117.646 17.3485 119.4 17.3485C121.594 17.3485 123.458 17.6775 124.993 18.3355C126.529 18.9935 127.696 19.9648 128.495 21.2495C129.294 22.5342 129.693 24.0852 129.693 25.9025V37.065C129.693 37.6133 129.803 38.052 130.022 38.381C130.257 38.71 130.633 38.9763 131.15 39.18C131.683 39.368 132.419 39.5168 133.359 39.6265V41.671C131.996 42.1567 130.688 42.3995 129.435 42.3995C127.915 42.3995 126.693 42.0392 125.769 41.3185C124.86 40.5978 124.32 39.5638 124.147 38.2165C123.004 39.6265 121.719 40.6918 120.293 41.4125C118.868 42.1175 117.317 42.47 115.64 42.47ZM118.39 38.71C119.392 38.71 120.387 38.475 121.374 38.005C122.377 37.5193 123.286 36.8457 124.1 35.984V29.1925L117.708 31.096C116.612 31.425 115.773 31.942 115.194 32.647C114.614 33.3363 114.324 34.1823 114.324 35.185C114.324 35.8743 114.497 36.4853 114.841 37.018C115.186 37.5507 115.664 37.9658 116.275 38.2635C116.901 38.5612 117.606 38.71 118.39 38.71ZM144.287 42.47C141.78 42.47 139.877 41.8355 138.576 40.5665C137.276 39.2818 136.626 37.4097 136.626 34.95V22.824L132.96 21.5315V19.957L140.362 17.3485H142.219V33.9865C142.219 35.4748 142.595 36.5793 143.347 37.3C144.099 38.0207 145.258 38.381 146.825 38.381C147.827 38.381 148.901 38.1538 150.044 37.6995C151.204 37.2452 152.285 36.6185 153.287 35.8195V22.824L149.621 21.5315V19.957L157.024 17.3485H158.88V35.655C158.88 36.2033 158.99 36.642 159.209 36.971C159.444 37.3 159.82 37.5585 160.337 37.7465C160.854 37.9345 161.591 38.0912 162.546 38.2165V40.261L155.144 42.235H153.287V38.0755C151.971 39.4385 150.506 40.5117 148.893 41.295C147.295 42.0783 145.759 42.47 144.287 42.47ZM175.189 42.47C173.074 42.47 171.171 41.9922 169.479 41.0365C167.802 40.0652 166.486 38.7335 165.531 37.0415C164.575 35.3338 164.097 33.4225 164.097 31.3075C164.097 28.5502 164.669 26.114 165.813 23.999C166.972 21.884 168.594 20.2468 170.677 19.0875C172.761 17.9282 175.174 17.3485 177.915 17.3485C178.808 17.3485 179.717 17.4425 180.641 17.6305C181.581 17.8185 182.466 18.0848 183.297 18.4295V11.9905L179.631 10.604V9.0295L187.01 6.28H188.89V35.655C188.89 36.2033 188.999 36.642 189.219 36.971C189.454 37.3 189.83 37.5585 190.347 37.7465C190.864 37.9345 191.6 38.0912 192.556 38.2165V40.261L185.153 42.235H183.297V39.0155C182.122 40.1278 180.837 40.9817 179.443 41.577C178.048 42.1723 176.631 42.47 175.189 42.47ZM177.492 38.6865C178.432 38.6865 179.411 38.4907 180.43 38.099C181.448 37.6917 182.404 37.1433 183.297 36.454V21.931C181.761 20.6777 180.085 20.051 178.268 20.051C176.482 20.051 174.962 20.474 173.709 21.32C172.455 22.166 171.508 23.3253 170.865 24.798C170.239 26.2707 169.925 27.9392 169.925 29.8035C169.925 31.5738 170.207 33.1248 170.771 34.4565C171.335 35.7882 172.181 36.83 173.309 37.582C174.453 38.3183 175.847 38.6865 177.492 38.6865ZM206.233 42.47C203.93 42.47 201.854 41.9452 200.005 40.8955C198.157 39.8458 196.707 38.3888 195.658 36.5245C194.624 34.6445 194.107 32.5295 194.107 30.1795C194.107 27.7982 194.639 25.6283 195.705 23.67C196.77 21.7117 198.227 20.1685 200.076 19.0405C201.94 17.9125 204.008 17.3485 206.28 17.3485C208.003 17.3485 209.609 17.7088 211.097 18.4295C212.586 19.1502 213.831 20.1607 214.834 21.461C215.852 22.7613 216.526 24.2497 216.855 25.926L199.794 31.096C200.264 33.164 201.196 34.7855 202.59 35.9605C204 37.1198 205.731 37.6995 207.784 37.6995C209.507 37.6995 211.05 37.2922 212.413 36.4775C213.776 35.6472 214.983 34.3938 216.032 32.7175L217.842 33.2815C217.403 35.1302 216.628 36.7517 215.515 38.146C214.419 39.5247 213.071 40.59 211.473 41.342C209.875 42.094 208.128 42.47 206.233 42.47ZM210.745 25.221C210.525 24.1713 210.165 23.2548 209.664 22.4715C209.178 21.6725 208.567 21.0615 207.831 20.6385C207.094 20.1998 206.272 19.9805 205.363 19.9805C204.22 19.9805 203.201 20.3173 202.308 20.991C201.415 21.6647 200.718 22.6203 200.217 23.858C199.715 25.08 199.465 26.4978 199.465 28.1115C199.465 28.3778 199.473 28.5893 199.488 28.746L210.745 25.221ZM224.343 39.885C225.157 39.8223 225.808 39.6892 226.293 39.4855C226.795 39.2818 227.21 38.9842 227.539 38.5925C227.868 38.2008 228.181 37.6682 228.479 36.9945L241.733 6.515H244.67L242.25 11.826L232.309 35.4905C231.871 36.5402 231.714 37.3705 231.839 37.9815C231.965 38.5925 232.333 39.0468 232.944 39.3445C233.555 39.6265 234.424 39.8067 235.552 39.885V42H224.343V39.885ZM249.511 30.3675H233.038L234.048 27.6885H248.501L249.511 30.3675ZM247.349 39.885C248.477 39.8067 249.347 39.6265 249.958 39.3445C250.569 39.0468 250.937 38.5925 251.062 37.9815C251.188 37.3705 251.031 36.5402 250.592 35.4905L240.652 11.826L241.733 6.515H244.67L257.924 36.9945C258.222 37.6838 258.535 38.2243 258.864 38.616C259.193 38.992 259.608 39.2818 260.11 39.4855C260.611 39.6892 261.261 39.8223 262.06 39.885V42H247.349V39.885ZM273.282 36.36C273.282 37.2217 273.4 37.8953 273.635 38.381C273.885 38.851 274.293 39.2035 274.857 39.4385C275.421 39.6578 276.22 39.8067 277.254 39.885V42H263.224V39.885C264.274 39.8067 265.081 39.6578 265.645 39.4385C266.209 39.2035 266.608 38.851 266.843 38.381C267.078 37.8953 267.196 37.2217 267.196 36.36V12.39C267.196 11.5283 267.078 10.8625 266.843 10.3925C266.608 9.90683 266.209 9.55433 265.645 9.335C265.081 9.1 264.274 8.94333 263.224 8.865V6.75H273.282V36.36ZM279.557 6.75C282.236 6.75 284.554 7.11816 286.513 7.8545C288.471 8.59083 289.975 9.64833 291.025 11.027C292.074 12.4057 292.599 14.0428 292.599 15.9385C292.599 17.8968 292.098 19.5967 291.095 21.038C290.108 22.4637 288.683 23.5603 286.818 24.328C284.97 25.0957 282.776 25.4795 280.238 25.4795H270.932V22.8475H278.1C280.058 22.8475 281.625 22.6282 282.8 22.1895C283.99 21.7508 284.86 21.0537 285.408 20.098C285.957 19.1423 286.231 17.8812 286.231 16.3145C286.231 14.0742 285.487 12.3587 283.998 11.168C282.51 9.97733 280.364 9.382 277.559 9.382H270.932V6.75H279.557ZM295.076 39.885C296.126 39.8067 296.932 39.6578 297.496 39.4385C298.06 39.2035 298.46 38.851 298.695 38.381C298.93 37.8953 299.047 37.2217 299.047 36.36V12.39C299.047 11.5283 298.93 10.8625 298.695 10.3925C298.46 9.90683 298.06 9.55433 297.496 9.335C296.932 9.1 296.126 8.94333 295.076 8.865V6.75H309.105V8.865C308.071 8.94333 307.272 9.1 306.708 9.335C306.144 9.55433 305.737 9.90683 305.486 10.3925C305.251 10.8625 305.134 11.5283 305.134 12.39V36.36C305.134 37.2217 305.251 37.8953 305.486 38.381C305.737 38.851 306.144 39.2035 306.708 39.4385C307.272 39.6578 308.071 39.8067 309.105 39.885V42H295.076V39.885ZM328.083 35.3495C328.083 36.3365 328.263 37.1198 328.624 37.6995C328.984 38.2792 329.564 38.7022 330.363 38.9685C331.162 39.2348 332.243 39.368 333.606 39.368H333.935V42H318.025V39.885C319.075 39.8067 319.882 39.6578 320.446 39.4385C321.01 39.2035 321.409 38.851 321.644 38.381C321.879 37.8953 321.997 37.2217 321.997 36.36V12.39C321.997 11.5283 321.879 10.8625 321.644 10.3925C321.409 9.90683 321.01 9.55433 320.446 9.335C319.882 9.1 319.075 8.94333 318.025 8.865V6.75H328.083V35.3495ZM334.663 6.75C338.58 6.75 342.034 7.455 345.027 8.865C348.019 10.2593 350.338 12.249 351.983 14.834C353.643 17.4033 354.474 20.3878 354.474 23.7875C354.474 27.2342 353.659 30.344 352.03 33.117C350.4 35.89 348.16 38.0677 345.309 39.65C342.473 41.2167 339.308 42 335.815 42H326.015V39.368H335.18C337.624 39.368 339.818 38.757 341.76 37.535C343.703 36.2973 345.223 34.574 346.319 32.365C347.432 30.156 347.988 27.6415 347.988 24.8215C347.988 21.6882 347.385 18.9622 346.178 16.6435C344.988 14.3092 343.288 12.5153 341.079 11.262C338.885 10.0087 336.316 9.382 333.371 9.382H326.015V6.75H334.663ZM369.596 42.47C367.199 42.47 365.044 41.953 363.133 40.919C361.237 39.885 359.749 38.4515 358.668 36.6185C357.603 34.7855 357.07 32.7097 357.07 30.391C357.07 28.0253 357.642 25.8477 358.786 23.858C359.945 21.8527 361.512 20.2703 363.486 19.111C365.46 17.936 367.622 17.3485 369.972 17.3485C372.369 17.3485 374.515 17.8655 376.411 18.8995C378.322 19.9335 379.81 21.3748 380.876 23.2235C381.957 25.0565 382.497 27.1245 382.497 29.4275C382.497 31.7932 381.917 33.9787 380.758 35.984C379.614 37.9737 378.056 39.556 376.082 40.731C374.108 41.8903 371.946 42.47 369.596 42.47ZM370.136 40.026C371.483 40.026 372.651 39.6578 373.638 38.9215C374.625 38.1695 375.377 37.0885 375.894 35.6785C376.426 34.2685 376.693 32.5843 376.693 30.626C376.693 28.5423 376.379 26.678 375.753 25.033C375.142 23.388 374.28 22.1112 373.168 21.2025C372.071 20.2782 370.818 19.816 369.408 19.816C368.06 19.816 366.893 20.192 365.906 20.944C364.935 21.6803 364.183 22.7535 363.65 24.1635C363.133 25.5735 362.875 27.2577 362.875 29.216C362.875 31.2997 363.188 33.164 363.815 34.809C364.441 36.4383 365.303 37.7152 366.4 38.6395C367.512 39.5638 368.757 40.026 370.136 40.026ZM407.346 36.031C406.265 38.146 404.855 39.7518 403.116 40.8485C401.377 41.9295 399.34 42.47 397.006 42.47C394.656 42.47 392.572 41.9765 390.755 40.9895C388.953 39.9868 387.551 38.5847 386.549 36.783C385.562 34.9813 385.068 32.9055 385.068 30.5555C385.068 28.0802 385.624 25.8398 386.737 23.8345C387.865 21.8135 389.408 20.2312 391.366 19.0875C393.324 17.9282 395.51 17.3485 397.923 17.3485C399.646 17.3485 401.189 17.6148 402.552 18.1475C403.915 18.6645 404.98 19.3852 405.748 20.3095C406.531 21.2338 406.923 22.2835 406.923 23.4585C406.923 24.0225 406.798 24.5395 406.547 25.0095C406.296 25.4638 405.936 25.832 405.466 26.114H401.73V24.939C401.73 23.2313 401.338 21.9467 400.555 21.085C399.771 20.2077 398.628 19.769 397.124 19.769C395.823 19.769 394.672 20.1372 393.669 20.8735C392.666 21.5942 391.883 22.6125 391.319 23.9285C390.771 25.2445 390.497 26.7563 390.497 28.464C390.497 30.4537 390.826 32.1613 391.484 33.587C392.142 35.0127 393.089 36.1015 394.327 36.8535C395.565 37.6055 397.037 37.9815 398.745 37.9815C400.03 37.9815 401.283 37.7073 402.505 37.159C403.727 36.595 404.886 35.7647 405.983 34.668L407.346 36.031ZM413 34.339C413.501 36.313 414.269 37.7778 415.303 38.7335C416.353 39.6892 417.747 40.167 419.486 40.167C420.536 40.167 421.437 40.0182 422.189 39.7205C422.956 39.4072 423.544 38.9607 423.951 38.381C424.358 37.8013 424.562 37.112 424.562 36.313C424.562 35.467 424.335 34.7855 423.881 34.2685C423.426 33.7358 422.831 33.3207 422.095 33.023C421.358 32.7253 420.426 32.4433 419.298 32.177C418.985 32.0987 418.664 32.0282 418.335 31.9655C416.282 31.4955 414.684 30.9707 413.541 30.391C412.397 29.7957 411.574 29.0672 411.073 28.2055C410.587 27.3282 410.345 26.208 410.345 24.845C410.345 23.4507 410.76 22.1817 411.59 21.038C412.436 19.8943 413.588 18.9935 415.045 18.3355C416.502 17.6775 418.123 17.3485 419.909 17.3485C421.617 17.3485 423.121 17.5287 424.421 17.889C425.737 18.2337 427.037 18.7977 428.322 19.581V24.6805H425.502C425.032 23.0198 424.327 21.7665 423.387 20.9205C422.447 20.0745 421.233 19.6515 419.745 19.6515C418.852 19.6515 418.068 19.8003 417.395 20.098C416.721 20.38 416.196 20.7795 415.82 21.2965C415.444 21.7978 415.256 22.3853 415.256 23.059C415.256 23.8423 415.475 24.469 415.914 24.939C416.368 25.409 416.964 25.7693 417.7 26.02C418.436 26.2707 419.494 26.5605 420.873 26.8895C423.082 27.3908 424.813 27.9627 426.066 28.605C427.319 29.2473 428.22 30.0463 428.769 31.002C429.317 31.942 429.591 33.1327 429.591 34.574C429.591 36.1407 429.16 37.5193 428.299 38.71C427.453 39.9007 426.246 40.825 424.68 41.483C423.113 42.141 421.303 42.47 419.251 42.47C417.59 42.47 415.953 42.2428 414.34 41.7885C412.742 41.3185 411.355 40.684 410.18 39.885V34.339H413Z" fill="currentColor"></path></svg><svg width="190" height="22" viewBox="0 0 431 50" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-colors duration-200 block md:hidden" aria-label="Claude API Docs"><path d="M23.1516 45.525L23.8096 42.611L24.5616 38.851L25.1726 35.843L25.7366 32.13L26.0656 30.908L26.0186 30.814L25.7836 30.861L22.9636 34.715L18.6866 40.496L15.3026 44.068L14.5036 44.397L13.0936 43.692L13.2346 42.376L14.0336 41.248L18.6866 35.279L21.5066 31.566L23.3396 29.451L23.2926 29.169H23.1986L10.7906 37.253L8.58158 37.535L7.59458 36.642L7.73558 35.185L8.20558 34.715L11.9186 32.13L21.1776 26.96L21.3186 26.49L21.1776 26.255H20.7076L19.1566 26.161L13.8926 26.02L9.33358 25.832L4.86858 25.597L3.74058 25.362L2.70658 23.952L2.80058 23.247L3.74058 22.636L5.10358 22.73L8.06458 22.965L12.5296 23.247L15.7726 23.435L20.5666 23.952H21.3186L21.4126 23.623L21.1776 23.435L20.9896 23.247L16.3366 20.145L11.3546 16.855L8.72258 14.928L7.31258 13.941L6.60758 13.048L6.32558 11.074L7.59458 9.664L9.33358 9.805L9.75658 9.899L11.4956 11.262L15.2086 14.129L20.0966 17.748L20.8016 18.312L21.1306 18.124V17.983L20.8016 17.466L18.1696 12.672L15.3496 7.784L14.0806 5.763L13.7516 4.541C13.6263 4.118 13.5636 3.648 13.5636 3.131L15.0206 1.157L15.8196 0.874997L17.7936 1.157L18.5926 1.862L19.8146 4.635L21.7416 9.006L24.7966 14.928L25.6896 16.714L26.1596 18.312L26.3476 18.829H26.6766V18.547L26.9116 15.163L27.3816 11.074L27.8516 5.81L27.9926 4.306L28.7446 2.52L30.2016 1.58L31.3296 2.097L32.2696 3.46L32.1286 4.306L31.6116 7.925L30.4836 13.612L29.7786 17.466H30.2016L30.6716 16.949L32.5986 14.411L35.8416 10.369L37.2516 8.771L38.9436 6.985L40.0246 6.139H42.0456L43.5026 8.348L42.8446 10.651L40.7766 13.283L39.0376 15.492L36.5466 18.829L35.0426 21.508L35.1836 21.696H35.5126L41.1056 20.474L44.1606 19.957L47.7326 19.346L49.3776 20.098L49.5656 20.85L48.9076 22.448L45.0536 23.388L40.5416 24.281L33.8206 25.879L33.7266 25.926L33.8206 26.067L36.8286 26.349L38.1446 26.443H41.3406L47.2626 26.866L48.8136 27.9L49.7066 29.122L49.5656 30.109L47.1686 31.284L43.9726 30.532L36.4526 28.746L33.9146 28.135H33.5386V28.323L35.7006 30.438L39.6016 33.963L44.5366 38.522L44.7716 39.65L44.1606 40.59L43.5026 40.496L39.1786 37.206L37.4866 35.749L33.7266 32.6H33.4916V32.929L34.3376 34.198L38.9436 41.107L39.1786 43.222L38.8496 43.88L37.6276 44.303L36.3586 44.068L33.6326 40.308L30.8596 36.031L28.6036 32.224L28.3686 32.412L27.0056 46.606L26.3946 47.311L24.9846 47.875L23.8096 46.982L23.1516 45.525Z" fill="#D97757"></path><path d="M77.9697 42.47C74.2881 42.47 71.0059 41.7415 68.1232 40.2845C65.2562 38.8118 63.0159 36.7517 61.4022 34.104C59.7886 31.4563 58.9817 28.417 58.9817 24.986C58.9817 21.3357 59.8042 18.0927 61.4492 15.257C63.1099 12.4213 65.4051 10.2202 68.3347 8.6535C71.2644 7.07116 74.5936 6.28 78.3222 6.28C80.5626 6.28 82.7951 6.52283 85.0197 7.0085C87.2601 7.4785 89.2262 8.21483 90.9182 9.2175V16.949H88.8032C88.2079 14.1133 87.0407 12.0532 85.3017 10.7685C83.5784 9.48383 81.2206 8.8415 78.2282 8.8415C75.3612 8.8415 72.9799 9.48383 71.0842 10.7685C69.1886 12.0532 67.7864 13.847 66.8777 16.15C65.9691 18.4373 65.5147 21.1007 65.5147 24.14C65.5147 27.1323 66.0239 29.8192 67.0422 32.2005C68.0606 34.5818 69.5724 36.4618 71.5777 37.8405C73.5831 39.2192 75.9957 39.9085 78.8157 39.9085C80.7271 39.9085 82.3642 39.5325 83.7272 38.7805C85.1059 38.0285 86.2652 37.0023 87.2052 35.702C88.1452 34.386 89.0226 32.7723 89.8372 30.861H92.0462L90.5422 39.3445C88.9129 40.3942 86.9702 41.1775 84.7142 41.6945C82.4582 42.2115 80.2101 42.47 77.9697 42.47ZM94.1377 39.9555C95.0621 39.8458 95.7827 39.7048 96.2997 39.5325C96.8324 39.3445 97.2162 39.0938 97.4512 38.7805C97.6862 38.4672 97.8037 38.0677 97.8037 37.582V11.9905L94.1377 10.604V9.0295L101.517 6.28H103.397V37.582C103.397 38.0677 103.514 38.4672 103.749 38.7805C103.984 39.0938 104.36 39.3445 104.877 39.5325C105.41 39.7048 106.138 39.8458 107.063 39.9555V42H94.1377V39.9555ZM115.64 42.47C114.293 42.47 113.102 42.2193 112.068 41.718C111.034 41.2167 110.227 40.5117 109.648 39.603C109.084 38.6943 108.802 37.6447 108.802 36.454C108.802 34.715 109.35 33.2815 110.447 32.1535C111.559 31.0098 113.267 30.109 115.57 29.451L124.1 27.0305V24.469C124.1 22.7927 123.701 21.5237 122.902 20.662C122.118 19.8003 120.951 19.3695 119.4 19.3695C118.037 19.3695 116.956 19.7847 116.157 20.615C115.374 21.4453 114.982 22.5733 114.982 23.999V26.114H111.175C110.721 25.832 110.368 25.4638 110.118 25.0095C109.883 24.5395 109.765 24.0225 109.765 23.4585C109.765 22.3462 110.196 21.3278 111.058 20.4035C111.919 19.4635 113.087 18.7193 114.559 18.171C116.032 17.6227 117.646 17.3485 119.4 17.3485C121.594 17.3485 123.458 17.6775 124.993 18.3355C126.529 18.9935 127.696 19.9648 128.495 21.2495C129.294 22.5342 129.693 24.0852 129.693 25.9025V37.065C129.693 37.6133 129.803 38.052 130.022 38.381C130.257 38.71 130.633 38.9763 131.15 39.18C131.683 39.368 132.419 39.5168 133.359 39.6265V41.671C131.996 42.1567 130.688 42.3995 129.435 42.3995C127.915 42.3995 126.693 42.0392 125.769 41.3185C124.86 40.5978 124.32 39.5638 124.147 38.2165C123.004 39.6265 121.719 40.6918 120.293 41.4125C118.868 42.1175 117.317 42.47 115.64 42.47ZM118.39 38.71C119.392 38.71 120.387 38.475 121.374 38.005C122.377 37.5193 123.286 36.8457 124.1 35.984V29.1925L117.708 31.096C116.612 31.425 115.773 31.942 115.194 32.647C114.614 33.3363 114.324 34.1823 114.324 35.185C114.324 35.8743 114.497 36.4853 114.841 37.018C115.186 37.5507 115.664 37.9658 116.275 38.2635C116.901 38.5612 117.606 38.71 118.39 38.71ZM144.287 42.47C141.78 42.47 139.877 41.8355 138.576 40.5665C137.276 39.2818 136.626 37.4097 136.626 34.95V22.824L132.96 21.5315V19.957L140.362 17.3485H142.219V33.9865C142.219 35.4748 142.595 36.5793 143.347 37.3C144.099 38.0207 145.258 38.381 146.825 38.381C147.827 38.381 148.901 38.1538 150.044 37.6995C151.204 37.2452 152.285 36.6185 153.287 35.8195V22.824L149.621 21.5315V19.957L157.024 17.3485H158.88V35.655C158.88 36.2033 158.99 36.642 159.209 36.971C159.444 37.3 159.82 37.5585 160.337 37.7465C160.854 37.9345 161.591 38.0912 162.546 38.2165V40.261L155.144 42.235H153.287V38.0755C151.971 39.4385 150.506 40.5117 148.893 41.295C147.295 42.0783 145.759 42.47 144.287 42.47ZM175.189 42.47C173.074 42.47 171.171 41.9922 169.479 41.0365C167.802 40.0652 166.486 38.7335 165.531 37.0415C164.575 35.3338 164.097 33.4225 164.097 31.3075C164.097 28.5502 164.669 26.114 165.813 23.999C166.972 21.884 168.594 20.2468 170.677 19.0875C172.761 17.9282 175.174 17.3485 177.915 17.3485C178.808 17.3485 179.717 17.4425 180.641 17.6305C181.581 17.8185 182.466 18.0848 183.297 18.4295V11.9905L179.631 10.604V9.0295L187.01 6.28H188.89V35.655C188.89 36.2033 188.999 36.642 189.219 36.971C189.454 37.3 189.83 37.5585 190.347 37.7465C190.864 37.9345 191.6 38.0912 192.556 38.2165V40.261L185.153 42.235H183.297V39.0155C182.122 40.1278 180.837 40.9817 179.443 41.577C178.048 42.1723 176.631 42.47 175.189 42.47ZM177.492 38.6865C178.432 38.6865 179.411 38.4907 180.43 38.099C181.448 37.6917 182.404 37.1433 183.297 36.454V21.931C181.761 20.6777 180.085 20.051 178.268 20.051C176.482 20.051 174.962 20.474 173.709 21.32C172.455 22.166 171.508 23.3253 170.865 24.798C170.239 26.2707 169.925 27.9392 169.925 29.8035C169.925 31.5738 170.207 33.1248 170.771 34.4565C171.335 35.7882 172.181 36.83 173.309 37.582C174.453 38.3183 175.847 38.6865 177.492 38.6865ZM206.233 42.47C203.93 42.47 201.854 41.9452 200.005 40.8955C198.157 39.8458 196.707 38.3888 195.658 36.5245C194.624 34.6445 194.107 32.5295 194.107 30.1795C194.107 27.7982 194.639 25.6283 195.705 23.67C196.77 21.7117 198.227 20.1685 200.076 19.0405C201.94 17.9125 204.008 17.3485 206.28 17.3485C208.003 17.3485 209.609 17.7088 211.097 18.4295C212.586 19.1502 213.831 20.1607 214.834 21.461C215.852 22.7613 216.526 24.2497 216.855 25.926L199.794 31.096C200.264 33.164 201.196 34.7855 202.59 35.9605C204 37.1198 205.731 37.6995 207.784 37.6995C209.507 37.6995 211.05 37.2922 212.413 36.4775C213.776 35.6472 214.983 34.3938 216.032 32.7175L217.842 33.2815C217.403 35.1302 216.628 36.7517 215.515 38.146C214.419 39.5247 213.071 40.59 211.473 41.342C209.875 42.094 208.128 42.47 206.233 42.47ZM210.745 25.221C210.525 24.1713 210.165 23.2548 209.664 22.4715C209.178 21.6725 208.567 21.0615 207.831 20.6385C207.094 20.1998 206.272 19.9805 205.363 19.9805C204.22 19.9805 203.201 20.3173 202.308 20.991C201.415 21.6647 200.718 22.6203 200.217 23.858C199.715 25.08 199.465 26.4978 199.465 28.1115C199.465 28.3778 199.473 28.5893 199.488 28.746L210.745 25.221ZM224.343 39.885C225.157 39.8223 225.808 39.6892 226.293 39.4855C226.795 39.2818 227.21 38.9842 227.539 38.5925C227.868 38.2008 228.181 37.6682 228.479 36.9945L241.733 6.515H244.67L242.25 11.826L232.309 35.4905C231.871 36.5402 231.714 37.3705 231.839 37.9815C231.965 38.5925 232.333 39.0468 232.944 39.3445C233.555 39.6265 234.424 39.8067 235.552 39.885V42H224.343V39.885ZM249.511 30.3675H233.038L234.048 27.6885H248.501L249.511 30.3675ZM247.349 39.885C248.477 39.8067 249.347 39.6265 249.958 39.3445C250.569 39.0468 250.937 38.5925 251.062 37.9815C251.188 37.3705 251.031 36.5402 250.592 35.4905L240.652 11.826L241.733 6.515H244.67L257.924 36.9945C258.222 37.6838 258.535 38.2243 258.864 38.616C259.193 38.992 259.608 39.2818 260.11 39.4855C260.611 39.6892 261.261 39.8223 262.06 39.885V42H247.349V39.885ZM273.282 36.36C273.282 37.2217 273.4 37.8953 273.635 38.381C273.885 38.851 274.293 39.2035 274.857 39.4385C275.421 39.6578 276.22 39.8067 277.254 39.885V42H263.224V39.885C264.274 39.8067 265.081 39.6578 265.645 39.4385C266.209 39.2035 266.608 38.851 266.843 38.381C267.078 37.8953 267.196 37.2217 267.196 36.36V12.39C267.196 11.5283 267.078 10.8625 266.843 10.3925C266.608 9.90683 266.209 9.55433 265.645 9.335C265.081 9.1 264.274 8.94333 263.224 8.865V6.75H273.282V36.36ZM279.557 6.75C282.236 6.75 284.554 7.11816 286.513 7.8545C288.471 8.59083 289.975 9.64833 291.025 11.027C292.074 12.4057 292.599 14.0428 292.599 15.9385C292.599 17.8968 292.098 19.5967 291.095 21.038C290.108 22.4637 288.683 23.5603 286.818 24.328C284.97 25.0957 282.776 25.4795 280.238 25.4795H270.932V22.8475H278.1C280.058 22.8475 281.625 22.6282 282.8 22.1895C283.99 21.7508 284.86 21.0537 285.408 20.098C285.957 19.1423 286.231 17.8812 286.231 16.3145C286.231 14.0742 285.487 12.3587 283.998 11.168C282.51 9.97733 280.364 9.382 277.559 9.382H270.932V6.75H279.557ZM295.076 39.885C296.126 39.8067 296.932 39.6578 297.496 39.4385C298.06 39.2035 298.46 38.851 298.695 38.381C298.93 37.8953 299.047 37.2217 299.047 36.36V12.39C299.047 11.5283 298.93 10.8625 298.695 10.3925C298.46 9.90683 298.06 9.55433 297.496 9.335C296.932 9.1 296.126 8.94333 295.076 8.865V6.75H309.105V8.865C308.071 8.94333 307.272 9.1 306.708 9.335C306.144 9.55433 305.737 9.90683 305.486 10.3925C305.251 10.8625 305.134 11.5283 305.134 12.39V36.36C305.134 37.2217 305.251 37.8953 305.486 38.381C305.737 38.851 306.144 39.2035 306.708 39.4385C307.272 39.6578 308.071 39.8067 309.105 39.885V42H295.076V39.885ZM328.083 35.3495C328.083 36.3365 328.263 37.1198 328.624 37.6995C328.984 38.2792 329.564 38.7022 330.363 38.9685C331.162 39.2348 332.243 39.368 333.606 39.368H333.935V42H318.025V39.885C319.075 39.8067 319.882 39.6578 320.446 39.4385C321.01 39.2035 321.409 38.851 321.644 38.381C321.879 37.8953 321.997 37.2217 321.997 36.36V12.39C321.997 11.5283 321.879 10.8625 321.644 10.3925C321.409 9.90683 321.01 9.55433 320.446 9.335C319.882 9.1 319.075 8.94333 318.025 8.865V6.75H328.083V35.3495ZM334.663 6.75C338.58 6.75 342.034 7.455 345.027 8.865C348.019 10.2593 350.338 12.249 351.983 14.834C353.643 17.4033 354.474 20.3878 354.474 23.7875C354.474 27.2342 353.659 30.344 352.03 33.117C350.4 35.89 348.16 38.0677 345.309 39.65C342.473 41.2167 339.308 42 335.815 42H326.015V39.368H335.18C337.624 39.368 339.818 38.757 341.76 37.535C343.703 36.2973 345.223 34.574 346.319 32.365C347.432 30.156 347.988 27.6415 347.988 24.8215C347.988 21.6882 347.385 18.9622 346.178 16.6435C344.988 14.3092 343.288 12.5153 341.079 11.262C338.885 10.0087 336.316 9.382 333.371 9.382H326.015V6.75H334.663ZM369.596 42.47C367.199 42.47 365.044 41.953 363.133 40.919C361.237 39.885 359.749 38.4515 358.668 36.6185C357.603 34.7855 357.07 32.7097 357.07 30.391C357.07 28.0253 357.642 25.8477 358.786 23.858C359.945 21.8527 361.512 20.2703 363.486 19.111C365.46 17.936 367.622 17.3485 369.972 17.3485C372.369 17.3485 374.515 17.8655 376.411 18.8995C378.322 19.9335 379.81 21.3748 380.876 23.2235C381.957 25.0565 382.497 27.1245 382.497 29.4275C382.497 31.7932 381.917 33.9787 380.758 35.984C379.614 37.9737 378.056 39.556 376.082 40.731C374.108 41.8903 371.946 42.47 369.596 42.47ZM370.136 40.026C371.483 40.026 372.651 39.6578 373.638 38.9215C374.625 38.1695 375.377 37.0885 375.894 35.6785C376.426 34.2685 376.693 32.5843 376.693 30.626C376.693 28.5423 376.379 26.678 375.753 25.033C375.142 23.388 374.28 22.1112 373.168 21.2025C372.071 20.2782 370.818 19.816 369.408 19.816C368.06 19.816 366.893 20.192 365.906 20.944C364.935 21.6803 364.183 22.7535 363.65 24.1635C363.133 25.5735 362.875 27.2577 362.875 29.216C362.875 31.2997 363.188 33.164 363.815 34.809C364.441 36.4383 365.303 37.7152 366.4 38.6395C367.512 39.5638 368.757 40.026 370.136 40.026ZM407.346 36.031C406.265 38.146 404.855 39.7518 403.116 40.8485C401.377 41.9295 399.34 42.47 397.006 42.47C394.656 42.47 392.572 41.9765 390.755 40.9895C388.953 39.9868 387.551 38.5847 386.549 36.783C385.562 34.9813 385.068 32.9055 385.068 30.5555C385.068 28.0802 385.624 25.8398 386.737 23.8345C387.865 21.8135 389.408 20.2312 391.366 19.0875C393.324 17.9282 395.51 17.3485 397.923 17.3485C399.646 17.3485 401.189 17.6148 402.552 18.1475C403.915 18.6645 404.98 19.3852 405.748 20.3095C406.531 21.2338 406.923 22.2835 406.923 23.4585C406.923 24.0225 406.798 24.5395 406.547 25.0095C406.296 25.4638 405.936 25.832 405.466 26.114H401.73V24.939C401.73 23.2313 401.338 21.9467 400.555 21.085C399.771 20.2077 398.628 19.769 397.124 19.769C395.823 19.769 394.672 20.1372 393.669 20.8735C392.666 21.5942 391.883 22.6125 391.319 23.9285C390.771 25.2445 390.497 26.7563 390.497 28.464C390.497 30.4537 390.826 32.1613 391.484 33.587C392.142 35.0127 393.089 36.1015 394.327 36.8535C395.565 37.6055 397.037 37.9815 398.745 37.9815C400.03 37.9815 401.283 37.7073 402.505 37.159C403.727 36.595 404.886 35.7647 405.983 34.668L407.346 36.031ZM413 34.339C413.501 36.313 414.269 37.7778 415.303 38.7335C416.353 39.6892 417.747 40.167 419.486 40.167C420.536 40.167 421.437 40.0182 422.189 39.7205C422.956 39.4072 423.544 38.9607 423.951 38.381C424.358 37.8013 424.562 37.112 424.562 36.313C424.562 35.467 424.335 34.7855 423.881 34.2685C423.426 33.7358 422.831 33.3207 422.095 33.023C421.358 32.7253 420.426 32.4433 419.298 32.177C418.985 32.0987 418.664 32.0282 418.335 31.9655C416.282 31.4955 414.684 30.9707 413.541 30.391C412.397 29.7957 411.574 29.0672 411.073 28.2055C410.587 27.3282 410.345 26.208 410.345 24.845C410.345 23.4507 410.76 22.1817 411.59 21.038C412.436 19.8943 413.588 18.9935 415.045 18.3355C416.502 17.6775 418.123 17.3485 419.909 17.3485C421.617 17.3485 423.121 17.5287 424.421 17.889C425.737 18.2337 427.037 18.7977 428.322 19.581V24.6805H425.502C425.032 23.0198 424.327 21.7665 423.387 20.9205C422.447 20.0745 421.233 19.6515 419.745 19.6515C418.852 19.6515 418.068 19.8003 417.395 20.098C416.721 20.38 416.196 20.7795 415.82 21.2965C415.444 21.7978 415.256 22.3853 415.256 23.059C415.256 23.8423 415.475 24.469 415.914 24.939C416.368 25.409 416.964 25.7693 417.7 26.02C418.436 26.2707 419.494 26.5605 420.873 26.8895C423.082 27.3908 424.813 27.9627 426.066 28.605C427.319 29.2473 428.22 30.0463 428.769 31.002C429.317 31.942 429.591 33.1327 429.591 34.574C429.591 36.1407 429.16 37.5193 428.299 38.71C427.453 39.9007 426.246 40.825 424.68 41.483C423.113 42.141 421.303 42.47 419.251 42.47C417.59 42.47 415.953 42.2428 414.34 41.7885C412.742 41.3185 411.355 40.684 410.18 39.885V34.339H413Z" fill="currentColor"></path></svg></a><nav class="hidden lg:block h-full"><ul class="h-full flex text-sm gap-x-2 items-center"><li><a class="group relative flex items-center justify-center gap-1 text-center px-2 py-1 lg:px-3 lg:py-1.5 rounded-full transition-colors duration-200 text-text-100 bg-bg-500" href="/docs/en/intro">Developer Guide</a></li><li><a class="group relative flex items-center justify-center gap-1 text-center px-2 py-1 lg:px-3 lg:py-1.5 rounded-full transition-colors duration-200 text-text-500 hover:bg-bg-300" href="/docs/en/api/overview">API Reference</a></li><li><a target="_blank" rel="noopener noreferrer" class="group relative flex items-center justify-center gap-1 text-center px-2 py-1 lg:px-3 lg:py-1.5 rounded-full transition-colors duration-200 text-text-500 hover:bg-bg-300" href="https://modelcontextprotocol.io">MCP<div class="opacity-100" style="width:14px;height:14px;display:flex;align-items:center;justify-content:center"><svg width="16" height="16" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="opacity-100" aria-hidden="true"><path d="M14.4999 5.00017C14.776 5.00017 14.9999 5.22403 14.9999 5.50017V12.5002C14.9998 12.7762 14.7759 13.0002 14.4999 13.0002C14.2239 13.0001 14 12.7762 13.9999 12.5002V6.7072L5.85338 14.8537C5.6581 15.0488 5.34155 15.0489 5.14635 14.8537C4.95116 14.6585 4.95127 14.3419 5.14635 14.1467L13.2928 6.00017H7.49986C7.22387 6.00006 6.99995 5.77617 6.99986 5.50017C6.99986 5.22409 7.22381 5.00028 7.49986 5.00017H14.4999Z"></path></svg></div></a></li><li><a class="group relative flex items-center justify-center gap-1 text-center px-2 py-1 lg:px-3 lg:py-1.5 rounded-full transition-colors duration-200 text-text-500 hover:bg-bg-300" href="/docs/en/resources/overview">Resources</a></li><li><a class="group relative flex items-center justify-center gap-1 text-center px-2 py-1 lg:px-3 lg:py-1.5 rounded-full transition-colors duration-200 text-text-500 hover:bg-bg-300" href="/docs/en/release-notes/overview">Release Notes</a></li></ul></nav><div class=""><div class="lg:flex hidden items-center gap-2 "><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" disabled="" type="button"><div class="w-4 h-4"></div></button><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 rounded-md px-3 min-w-[4rem] active:scale-[0.985] whitespace-nowrap !text-xs pl-2.5 pr-2 gap-1 rounded py-1 px-2 max-w-full whitespace-nowrap text-ellipsis overflow-hidden flex gap-2 text-text-400 hover:text-text-200 Button_ghost__BUAoh" type="button" id="radix-_R_17cntiuuljb_" aria-haspopup="menu" aria-expanded="false" data-state="closed">English<div style="width:14px;height:14px;display:flex;align-items:center;justify-content:center"><svg width="16" height="16" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M16.1338 6.16015C16.3217 5.95783 16.6375 5.94599 16.8399 6.13378C17.0421 6.32166 17.054 6.6375 16.8662 6.83984L10.3662 13.8398L10.2891 13.9082C10.2053 13.9675 10.1043 14 9.99999 14C9.86101 14 9.72836 13.9417 9.63377 13.8398L3.13374 6.83984L3.07221 6.75976C2.95129 6.56111 2.98312 6.29824 3.16011 6.13378C3.33708 5.96954 3.60085 5.95776 3.78999 6.09277L3.86616 6.16015L9.99999 12.7666L16.1338 6.16015Z"></path></svg></div></button><a href="/login?returnTo=%2Fdocs%2Fen%2Fbuild-with-claude%2Fprompt-engineering%2Fclaude-prompting-best-practices"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none font-base-bold¶
relative¶
overflow-hidden¶
transition-transform¶
will-change-transform¶
ease-[cubic-bezier(0.165,0.85,0.45,1)]¶
duration-150¶
hover:scale-y-[1.015]¶
hover:scale-x-[1.005]¶
backface-hidden¶
after:absolute¶
after:inset-0¶
after:bg-[radial-gradient(at_bottom,hsla(var(--bg-000)/20%),hsla(var(--bg-000)/0%))]¶
after:opacity-0¶
after:transition¶
after:duration-200¶
after:translate-y-2¶
hover:after:opacity-100¶
hover:after:translate-y-0 h-8 rounded-md px-3 min-w-[4rem] active:scale-[0.985] whitespace-nowrap !text-xs Button_primary__0oSjX" type="button">Log in</button></a></div><div class="lg:hidden flex items-center gap-1 "><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Search documentation"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M8.5 2C12.0899 2 15 4.91015 15 8.5C15 10.1149 14.4094 11.5908 13.4346 12.7275L17.8535 17.1465L17.918 17.2246C18.0461 17.4187 18.0244 17.6827 17.8535 17.8535C17.6827 18.0244 17.4187 18.0461 17.2246 17.918L17.1465 17.8535L12.7275 13.4346C11.5908 14.4094 10.1149 15 8.5 15C4.91015 15 2 12.0899 2 8.5C2 4.91015 4.91015 2 8.5 2ZM8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C11.5376 14 14 11.5376 14 8.5C14 5.46243 11.5376 3 8.5 3Z"></path></svg></div></button><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" id="radix-_R_1bcntiuuljb_" aria-haspopup="menu" aria-expanded="false" data-state="closed"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M10 14C10.8284 14 11.5 14.6716 11.5 15.5C11.5 16.3284 10.8284 17 10 17C9.17157 17 8.5 16.3284 8.5 15.5C8.5 14.6716 9.17157 14 10 14ZM10 8.5C10.8284 8.5 11.5 9.17157 11.5 10C11.5 10.8284 10.8284 11.5 10 11.5C9.17157 11.5 8.5 10.8284 8.5 10C8.5 9.17157 9.17157 8.5 10 8.5ZM10 3C10.8284 3 11.5 3.67157 11.5 4.5C11.5 5.32843 10.8284 6 10 6C9.17157 6 8.5 5.32843 8.5 4.5C8.5 3.67157 9.17157 3 10 3Z"></path></svg></div></button></div></div></header><div data-docs-layout="true" class="flex-1"><div class="flex min-h-screen pt-14"><aside class="hidden lg:flex lg:flex-col bg-bg-200 w-64 flex-none border-r-0.5 border-border-300 fixed top-14 z-header" style="bottom:var(--devbar-h, 0)"><div class="px-2 pt-4 mb-2"><div role="button" tabindex="0" class="relative w-full group cursor-pointer" aria-label="Search documentation"><div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"><div class="text-text-400" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="text-text-400" aria-hidden="true"><path d="M8.5 2C12.0899 2 15 4.91015 15 8.5C15 10.1149 14.4094 11.5908 13.4346 12.7275L17.8535 17.1465L17.918 17.2246C18.0461 17.4187 18.0244 17.6827 17.8535 17.8535C17.6827 18.0244 17.4187 18.0461 17.2246 17.918L17.1465 17.8535L12.7275 13.4346C11.5908 14.4094 10.1149 15 8.5 15C4.91015 15 2 12.0899 2 8.5C2 4.91015 4.91015 2 8.5 2ZM8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C11.5376 14 14 11.5376 14 8.5C14 5.46243 11.5376 3 8.5 3Z"></path></svg></div></div><div class="w-full pl-10 pr-12 py-2 text-sm text-left bg-bg-000 border border-border-300 rounded-lg placeholder-text-400 transition-all hover:border-border-200 hover:bg-bg-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary select-none"><span class="text-text-400">Search...</span></div><div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none"><span class="text-xs text-text-500">⌘K</span></div></div></div><div class="flex-1 overflow-y-auto pt-3 pb-4 transition-[border-color] border-t-0.5 border-transparent"><div class="flex flex-col gap-1 px-2"><div class="space-y-4"><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">First steps</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/intro"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Intro to Claude</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/get-started"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Quickstart</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Models & pricing</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/models/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Models overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/models/choosing-a-model"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Choosing a model</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/models/whats-new-claude-4-6"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">What's new in Claude 4.6</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/models/migration-guide"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Migration guide</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/model-deprecations"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Model deprecations</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/about-claude/pricing"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Pricing</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Build with Claude</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Features overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/working-with-messages"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Using the Messages API</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/handling-stop-reasons"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Handling stop reasons</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-100 bg-bg-500" data-selected="true" href="/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Prompting best practices</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Model capabilities</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/extended-thinking"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Extended thinking</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/adaptive-thinking"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Adaptive thinking</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/effort"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Effort</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/fast-mode"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Fast mode (research preview)</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/structured-outputs"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Structured outputs</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/citations"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Citations</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/streaming"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Streaming Messages</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/batch-processing"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Batch processing</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/pdf-support"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">PDF support</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/search-results"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Search results</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/multilingual-support"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Multilingual support</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/embeddings"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Embeddings</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/vision"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Vision</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Tools</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/implement-tool-use"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">How to implement tool use</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/web-search-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Web search tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/web-fetch-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Web fetch tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/code-execution-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Code execution tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/memory-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Memory tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/bash-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Bash tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/computer-use-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Computer use tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/text-editor-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Text editor tool</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Tool infrastructure</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/tool-search-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Tool search</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/programmatic-tool-calling"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Programmatic tool calling</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/tool-use/fine-grained-tool-streaming"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Fine-grained tool streaming</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Context management</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/context-windows"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Context windows</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/compaction"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Compaction</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/context-editing"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Context editing</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/prompt-caching"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Prompt caching</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/token-counting"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Token counting</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Files & assets</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/files"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Files API</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Agent Skills</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/agent-skills/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/agent-skills/quickstart"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Quickstart</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/agent-skills/best-practices"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Best practices</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/agent-skills/enterprise"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Skills for enterprise</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/skills-guide"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Using Skills with the API</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Agent SDK</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/quickstart"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Quickstart</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/typescript"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">TypeScript SDK</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/typescript-v2-preview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">TypeScript V2 (preview)</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/python"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Python SDK</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agent-sdk/migration-guide"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Migration Guide</span></span></a><div class="group w-full flex flex-col gap-1"><button type="button" class="flex w-full items-center justify-between h-8 px-2 rounded-lg text-left transition-colors duration-200 text-sm cursor-pointer text-text-300 hover:text-text-100 select-none hover:bg-bg-400" aria-expanded="false"><span class="truncate min-w-0">Guides</span><span class="transition-transform duration-200"><div style="width:14px;height:14px;display:flex;align-items:center;justify-content:center"><svg width="16" height="16" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M6.13378 3.16011C6.29824 2.98312 6.5611 2.95129 6.75976 3.07221L6.83984 3.13374L13.8398 9.63377C13.9417 9.72836 14 9.86101 14 9.99999C14 10.1043 13.9675 10.2053 13.9082 10.289L13.8398 10.3662L6.83984 16.8662C6.6375 17.054 6.32166 17.0421 6.13378 16.8399C5.94599 16.6375 5.95783 16.3217 6.16015 16.1338L12.7666 9.99999L6.16015 3.86616L6.09277 3.78999C5.95776 3.60085 5.96954 3.33709 6.13378 3.16011Z"></path></svg></div></span></button></div></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">MCP in the API</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/mcp-connector"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">MCP connector</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/agents-and-tools/remote-mcp-servers"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Remote MCP servers</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Claude on 3rd-party platforms</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/claude-on-amazon-bedrock"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Amazon Bedrock</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/claude-in-microsoft-foundry"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Microsoft Foundry</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/claude-on-vertex-ai"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Vertex AI</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Prompt engineering</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/prompt-engineering/overview"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/prompt-engineering/prompting-tools"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Console prompting tools</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Test & evaluate</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/develop-tests"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Define success and build evaluations</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/eval-tool"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Using the Evaluation Tool</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/reduce-latency"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Reducing latency</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Strengthen guardrails</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Reduce hallucinations</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/increase-consistency"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Increase output consistency</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Mitigate jailbreaks</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming-refusals"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Streaming refusals</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/test-and-evaluate/strengthen-guardrails/reduce-prompt-leak"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Reduce prompt leak</span></span></a></div></div><div><div class="text-sm text-text-100 font-semibold h-8 flex items-center px-2 mb-1">Administration and monitoring</div><div class="flex flex-col gap-1"><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/administration-api"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Admin API overview</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/data-residency"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Data residency</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/workspaces"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Workspaces</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/usage-cost-api"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Usage and Cost API</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/claude-code-analytics-api"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Claude Code Analytics API</span></span></a><a class="h-8 px-2 flex items-center text-sm rounded-lg transition-colors duration-200 text-text-300 hover:text-text-100 hover:bg-bg-400" href="/docs/en/build-with-claude/zero-data-retention"><span class="h-full flex items-center min-w-0"><span class="truncate py-1">Zero Data Retention</span></span></a></div></div></div></div></div><div class="flex-none border-t-0.5 border-border-300"><div class="px-3 pt-1 pb-3 space-y-1 relative"><a class="hover:bg-bg-500 group flex items-center gap-3 rounded-md px-2 py-2 font-ui text-text-300" data-testid="docs-nav-console-full" href="/"><div class="shrink-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="shrink-0" aria-hidden="true"><path d="M5.14648 7.14648C5.34175 6.95122 5.65825 6.95122 5.85352 7.14648L8.35352 9.64648C8.44728 9.74025 8.5 9.86739 8.5 10C8.5 10.0994 8.47037 10.1958 8.41602 10.2773L8.35352 10.3535L5.85352 12.8535C5.65825 13.0488 5.34175 13.0488 5.14648 12.8535C4.95122 12.6583 4.95122 12.3417 5.14648 12.1465L7.29297 10L5.14648 7.85352C4.95122 7.65825 4.95122 7.34175 5.14648 7.14648Z"></path><path d="M14.5 12C14.7761 12 15 12.2239 15 12.5C15 12.7761 14.7761 13 14.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H14.5Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 4C17.3284 4 18 4.67157 18 5.5V14.5C18 15.3284 17.3284 16 16.5 16H3.5C2.67157 16 2 15.3284 2 14.5V5.5C2 4.67157 2.67157 4 3.5 4H16.5ZM3.5 5C3.22386 5 3 5.22386 3 5.5V14.5C3 14.7761 3.22386 15 3.5 15H16.5C16.7761 15 17 14.7761 17 14.5V5.5C17 5.22386 16.7761 5 16.5 5H3.5Z"></path></svg></div><div class="min-w-0 truncate text-sm">Console</div></a><div class="lg:hidden"><a class="hover:bg-bg-500 group flex items-center gap-3 rounded-md px-2 py-2 font-ui text-text-300" data-testid="docs-nav-login-full" href="/login"><div class="shrink-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="shrink-0" aria-hidden="true"><path d="M9.99981 11C11.624 11 13.2109 11.2094 14.4676 11.8691C15.7561 12.5456 16.6666 13.6818 16.9246 15.4297L16.9393 15.5947C16.9631 16.4101 16.2528 17 15.4998 17H4.49981C3.697 16.9999 2.94247 16.3293 3.075 15.4297L3.13067 15.1084C3.44808 13.5411 4.32423 12.5033 5.53204 11.8691C6.78875 11.2094 8.3756 11 9.99981 11ZM9.99981 12C8.43563 12 7.0411 12.2057 5.99688 12.7539C4.98448 13.2855 4.27452 14.1511 4.06426 15.5752C4.03582 15.768 4.19838 15.9999 4.49981 16H15.4998C15.7639 16 15.9213 15.8222 15.9373 15.6484L15.9354 15.5752C15.7251 14.151 15.0152 13.2855 14.0027 12.7539C12.9585 12.2058 11.564 12 9.99981 12ZM9.99981 3C11.9328 3 13.4998 4.567 13.4998 6.5C13.4998 8.433 11.9328 10 9.99981 10C8.0669 9.9999 6.49981 8.43294 6.49981 6.5C6.49981 4.56706 8.0669 3.0001 9.99981 3ZM9.99981 4C8.61919 4.0001 7.49981 5.11935 7.49981 6.5C7.49981 7.88065 8.61919 8.9999 9.99981 9C11.3805 9 12.4998 7.88071 12.4998 6.5C12.4998 5.11929 11.3805 4 9.99981 4Z"></path></svg></div><div class="min-w-0 truncate text-sm">Log in</div></a></div></div></div></aside><div class="flex flex-col w-full min-w-0 lg:pl-64"><button class="fixed top-14 left-0 right-0 z-sidebar flex lg:hidden items-center h-10 gap-2 text-sm text-text-300 border-b-0.5 border-border-200 px-4 py-2 bg-bg-100 hover:bg-bg-200 active:bg-bg-200 transition-colors"><div class="flex-shrink-0 text-text-400" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="flex-shrink-0 text-text-400" aria-hidden="true"><path d="M16.5 4C17.3284 4 18 4.67157 18 5.5V14.5C18 15.3284 17.3284 16 16.5 16H3.5C2.67157 16 2 15.3284 2 14.5V5.5C2 4.67157 2.67157 4 3.5 4H16.5ZM7 15H16.5C16.7761 15 17 14.7761 17 14.5V5.5C17 5.22386 16.7761 5 16.5 5H7V15ZM3.5 5C3.22386 5 3 5.22386 3 5.5V14.5C3 14.7761 3.22386 15 3.5 15H6V5H3.5Z"></path></svg></div><span class="text-text-400 truncate">Build with Claude</span><div class="flex-shrink-0 text-text-400" style="width:16px;height:16px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="flex-shrink-0 text-text-400" aria-hidden="true"><path d="M7.12771 5.16489C7.28926 4.98544 7.55225 4.95072 7.75273 5.0682L7.83477 5.12778L12.835 9.62788C12.9402 9.72264 12.9999 9.85833 13 9.99995C13 10.1063 12.9667 10.2093 12.9053 10.2939L12.835 10.372L7.83477 14.8721C7.62952 15.0567 7.31242 15.0402 7.12771 14.835C6.94336 14.6298 6.95983 14.3126 7.16482 14.128L11.7519 9.99995L7.16482 5.87193L7.09744 5.79674C6.95939 5.60969 6.96617 5.34444 7.12771 5.16489Z"></path></svg></div><span class="text-text-200 font-medium truncate">Prompting best practices</span></button><main id="docs-scroll-container" class="flex-1 bg-bg-100 pt-10 lg:pt-0"><div class="max-w-screen-2xl w-full mx-auto min-h-[calc(100vh-3.5rem)]"><!--$?--><template id="B:1"></template><div class="w-full relative max-w-screen-2xl flex justify-center lg:justify-between mx-auto shrink"><div class="hidden [@media(min-width:1470px)]:block"></div><article class="prose mx-auto max-w-5xl lg:max-w-4xl w-full min-w-0 overflow-x-hidden px-6 py-8 lg:p-8"><header class="mb-6"><div class="mb-4"><div class="hidden lg:block"></div></div><div class="flex justify-between items-center pb-4"><div class="hidden lg:block flex-shrink-0"></div></div><div></div></header><div class="block lg:hidden mb-4"></div><div class="space-y-6"><div class="space-y-2"></div><div class="space-y-2"></div><div class="space-y-2"></div></div></article><div class="hidden [@media(min-width:1470px)]:block w-72 mr-4 shrink-0"></div></div><!--/$--></div><footer class="border-t-0.5 border-border-300" style="padding-top:clamp(4rem, calc(4rem + (6 - 4) * ((100vw - 20rem) / (90 - 20))), 6rem);padding-bottom:clamp(4rem, calc(4rem + (6 - 4) * ((100vw - 20rem) / (90 - 20))), 6rem)"><div class="flex flex-col md:flex-row gap-8 justify-between max-w-[90rem] mx-auto" style="width:calc(100% - 2 * clamp(2rem, calc(1.43rem + 2.86vw), 4rem))"><div class="flex flex-col"><div class="mb-6"><a aria-label="Claude API Docs home page" href="/docs"><svg width="224" height="26" viewBox="0 0 431 50" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-colors duration-200" aria-label="Claude API Docs"><path d="M23.1516 45.525L23.8096 42.611L24.5616 38.851L25.1726 35.843L25.7366 32.13L26.0656 30.908L26.0186 30.814L25.7836 30.861L22.9636 34.715L18.6866 40.496L15.3026 44.068L14.5036 44.397L13.0936 43.692L13.2346 42.376L14.0336 41.248L18.6866 35.279L21.5066 31.566L23.3396 29.451L23.2926 29.169H23.1986L10.7906 37.253L8.58158 37.535L7.59458 36.642L7.73558 35.185L8.20558 34.715L11.9186 32.13L21.1776 26.96L21.3186 26.49L21.1776 26.255H20.7076L19.1566 26.161L13.8926 26.02L9.33358 25.832L4.86858 25.597L3.74058 25.362L2.70658 23.952L2.80058 23.247L3.74058 22.636L5.10358 22.73L8.06458 22.965L12.5296 23.247L15.7726 23.435L20.5666 23.952H21.3186L21.4126 23.623L21.1776 23.435L20.9896 23.247L16.3366 20.145L11.3546 16.855L8.72258 14.928L7.31258 13.941L6.60758 13.048L6.32558 11.074L7.59458 9.664L9.33358 9.805L9.75658 9.899L11.4956 11.262L15.2086 14.129L20.0966 17.748L20.8016 18.312L21.1306 18.124V17.983L20.8016 17.466L18.1696 12.672L15.3496 7.784L14.0806 5.763L13.7516 4.541C13.6263 4.118 13.5636 3.648 13.5636 3.131L15.0206 1.157L15.8196 0.874997L17.7936 1.157L18.5926 1.862L19.8146 4.635L21.7416 9.006L24.7966 14.928L25.6896 16.714L26.1596 18.312L26.3476 18.829H26.6766V18.547L26.9116 15.163L27.3816 11.074L27.8516 5.81L27.9926 4.306L28.7446 2.52L30.2016 1.58L31.3296 2.097L32.2696 3.46L32.1286 4.306L31.6116 7.925L30.4836 13.612L29.7786 17.466H30.2016L30.6716 16.949L32.5986 14.411L35.8416 10.369L37.2516 8.771L38.9436 6.985L40.0246 6.139H42.0456L43.5026 8.348L42.8446 10.651L40.7766 13.283L39.0376 15.492L36.5466 18.829L35.0426 21.508L35.1836 21.696H35.5126L41.1056 20.474L44.1606 19.957L47.7326 19.346L49.3776 20.098L49.5656 20.85L48.9076 22.448L45.0536 23.388L40.5416 24.281L33.8206 25.879L33.7266 25.926L33.8206 26.067L36.8286 26.349L38.1446 26.443H41.3406L47.2626 26.866L48.8136 27.9L49.7066 29.122L49.5656 30.109L47.1686 31.284L43.9726 30.532L36.4526 28.746L33.9146 28.135H33.5386V28.323L35.7006 30.438L39.6016 33.963L44.5366 38.522L44.7716 39.65L44.1606 40.59L43.5026 40.496L39.1786 37.206L37.4866 35.749L33.7266 32.6H33.4916V32.929L34.3376 34.198L38.9436 41.107L39.1786 43.222L38.8496 43.88L37.6276 44.303L36.3586 44.068L33.6326 40.308L30.8596 36.031L28.6036 32.224L28.3686 32.412L27.0056 46.606L26.3946 47.311L24.9846 47.875L23.8096 46.982L23.1516 45.525Z" fill="#D97757"></path><path d="M77.9697 42.47C74.2881 42.47 71.0059 41.7415 68.1232 40.2845C65.2562 38.8118 63.0159 36.7517 61.4022 34.104C59.7886 31.4563 58.9817 28.417 58.9817 24.986C58.9817 21.3357 59.8042 18.0927 61.4492 15.257C63.1099 12.4213 65.4051 10.2202 68.3347 8.6535C71.2644 7.07116 74.5936 6.28 78.3222 6.28C80.5626 6.28 82.7951 6.52283 85.0197 7.0085C87.2601 7.4785 89.2262 8.21483 90.9182 9.2175V16.949H88.8032C88.2079 14.1133 87.0407 12.0532 85.3017 10.7685C83.5784 9.48383 81.2206 8.8415 78.2282 8.8415C75.3612 8.8415 72.9799 9.48383 71.0842 10.7685C69.1886 12.0532 67.7864 13.847 66.8777 16.15C65.9691 18.4373 65.5147 21.1007 65.5147 24.14C65.5147 27.1323 66.0239 29.8192 67.0422 32.2005C68.0606 34.5818 69.5724 36.4618 71.5777 37.8405C73.5831 39.2192 75.9957 39.9085 78.8157 39.9085C80.7271 39.9085 82.3642 39.5325 83.7272 38.7805C85.1059 38.0285 86.2652 37.0023 87.2052 35.702C88.1452 34.386 89.0226 32.7723 89.8372 30.861H92.0462L90.5422 39.3445C88.9129 40.3942 86.9702 41.1775 84.7142 41.6945C82.4582 42.2115 80.2101 42.47 77.9697 42.47ZM94.1377 39.9555C95.0621 39.8458 95.7827 39.7048 96.2997 39.5325C96.8324 39.3445 97.2162 39.0938 97.4512 38.7805C97.6862 38.4672 97.8037 38.0677 97.8037 37.582V11.9905L94.1377 10.604V9.0295L101.517 6.28H103.397V37.582C103.397 38.0677 103.514 38.4672 103.749 38.7805C103.984 39.0938 104.36 39.3445 104.877 39.5325C105.41 39.7048 106.138 39.8458 107.063 39.9555V42H94.1377V39.9555ZM115.64 42.47C114.293 42.47 113.102 42.2193 112.068 41.718C111.034 41.2167 110.227 40.5117 109.648 39.603C109.084 38.6943 108.802 37.6447 108.802 36.454C108.802 34.715 109.35 33.2815 110.447 32.1535C111.559 31.0098 113.267 30.109 115.57 29.451L124.1 27.0305V24.469C124.1 22.7927 123.701 21.5237 122.902 20.662C122.118 19.8003 120.951 19.3695 119.4 19.3695C118.037 19.3695 116.956 19.7847 116.157 20.615C115.374 21.4453 114.982 22.5733 114.982 23.999V26.114H111.175C110.721 25.832 110.368 25.4638 110.118 25.0095C109.883 24.5395 109.765 24.0225 109.765 23.4585C109.765 22.3462 110.196 21.3278 111.058 20.4035C111.919 19.4635 113.087 18.7193 114.559 18.171C116.032 17.6227 117.646 17.3485 119.4 17.3485C121.594 17.3485 123.458 17.6775 124.993 18.3355C126.529 18.9935 127.696 19.9648 128.495 21.2495C129.294 22.5342 129.693 24.0852 129.693 25.9025V37.065C129.693 37.6133 129.803 38.052 130.022 38.381C130.257 38.71 130.633 38.9763 131.15 39.18C131.683 39.368 132.419 39.5168 133.359 39.6265V41.671C131.996 42.1567 130.688 42.3995 129.435 42.3995C127.915 42.3995 126.693 42.0392 125.769 41.3185C124.86 40.5978 124.32 39.5638 124.147 38.2165C123.004 39.6265 121.719 40.6918 120.293 41.4125C118.868 42.1175 117.317 42.47 115.64 42.47ZM118.39 38.71C119.392 38.71 120.387 38.475 121.374 38.005C122.377 37.5193 123.286 36.8457 124.1 35.984V29.1925L117.708 31.096C116.612 31.425 115.773 31.942 115.194 32.647C114.614 33.3363 114.324 34.1823 114.324 35.185C114.324 35.8743 114.497 36.4853 114.841 37.018C115.186 37.5507 115.664 37.9658 116.275 38.2635C116.901 38.5612 117.606 38.71 118.39 38.71ZM144.287 42.47C141.78 42.47 139.877 41.8355 138.576 40.5665C137.276 39.2818 136.626 37.4097 136.626 34.95V22.824L132.96 21.5315V19.957L140.362 17.3485H142.219V33.9865C142.219 35.4748 142.595 36.5793 143.347 37.3C144.099 38.0207 145.258 38.381 146.825 38.381C147.827 38.381 148.901 38.1538 150.044 37.6995C151.204 37.2452 152.285 36.6185 153.287 35.8195V22.824L149.621 21.5315V19.957L157.024 17.3485H158.88V35.655C158.88 36.2033 158.99 36.642 159.209 36.971C159.444 37.3 159.82 37.5585 160.337 37.7465C160.854 37.9345 161.591 38.0912 162.546 38.2165V40.261L155.144 42.235H153.287V38.0755C151.971 39.4385 150.506 40.5117 148.893 41.295C147.295 42.0783 145.759 42.47 144.287 42.47ZM175.189 42.47C173.074 42.47 171.171 41.9922 169.479 41.0365C167.802 40.0652 166.486 38.7335 165.531 37.0415C164.575 35.3338 164.097 33.4225 164.097 31.3075C164.097 28.5502 164.669 26.114 165.813 23.999C166.972 21.884 168.594 20.2468 170.677 19.0875C172.761 17.9282 175.174 17.3485 177.915 17.3485C178.808 17.3485 179.717 17.4425 180.641 17.6305C181.581 17.8185 182.466 18.0848 183.297 18.4295V11.9905L179.631 10.604V9.0295L187.01 6.28H188.89V35.655C188.89 36.2033 188.999 36.642 189.219 36.971C189.454 37.3 189.83 37.5585 190.347 37.7465C190.864 37.9345 191.6 38.0912 192.556 38.2165V40.261L185.153 42.235H183.297V39.0155C182.122 40.1278 180.837 40.9817 179.443 41.577C178.048 42.1723 176.631 42.47 175.189 42.47ZM177.492 38.6865C178.432 38.6865 179.411 38.4907 180.43 38.099C181.448 37.6917 182.404 37.1433 183.297 36.454V21.931C181.761 20.6777 180.085 20.051 178.268 20.051C176.482 20.051 174.962 20.474 173.709 21.32C172.455 22.166 171.508 23.3253 170.865 24.798C170.239 26.2707 169.925 27.9392 169.925 29.8035C169.925 31.5738 170.207 33.1248 170.771 34.4565C171.335 35.7882 172.181 36.83 173.309 37.582C174.453 38.3183 175.847 38.6865 177.492 38.6865ZM206.233 42.47C203.93 42.47 201.854 41.9452 200.005 40.8955C198.157 39.8458 196.707 38.3888 195.658 36.5245C194.624 34.6445 194.107 32.5295 194.107 30.1795C194.107 27.7982 194.639 25.6283 195.705 23.67C196.77 21.7117 198.227 20.1685 200.076 19.0405C201.94 17.9125 204.008 17.3485 206.28 17.3485C208.003 17.3485 209.609 17.7088 211.097 18.4295C212.586 19.1502 213.831 20.1607 214.834 21.461C215.852 22.7613 216.526 24.2497 216.855 25.926L199.794 31.096C200.264 33.164 201.196 34.7855 202.59 35.9605C204 37.1198 205.731 37.6995 207.784 37.6995C209.507 37.6995 211.05 37.2922 212.413 36.4775C213.776 35.6472 214.983 34.3938 216.032 32.7175L217.842 33.2815C217.403 35.1302 216.628 36.7517 215.515 38.146C214.419 39.5247 213.071 40.59 211.473 41.342C209.875 42.094 208.128 42.47 206.233 42.47ZM210.745 25.221C210.525 24.1713 210.165 23.2548 209.664 22.4715C209.178 21.6725 208.567 21.0615 207.831 20.6385C207.094 20.1998 206.272 19.9805 205.363 19.9805C204.22 19.9805 203.201 20.3173 202.308 20.991C201.415 21.6647 200.718 22.6203 200.217 23.858C199.715 25.08 199.465 26.4978 199.465 28.1115C199.465 28.3778 199.473 28.5893 199.488 28.746L210.745 25.221ZM224.343 39.885C225.157 39.8223 225.808 39.6892 226.293 39.4855C226.795 39.2818 227.21 38.9842 227.539 38.5925C227.868 38.2008 228.181 37.6682 228.479 36.9945L241.733 6.515H244.67L242.25 11.826L232.309 35.4905C231.871 36.5402 231.714 37.3705 231.839 37.9815C231.965 38.5925 232.333 39.0468 232.944 39.3445C233.555 39.6265 234.424 39.8067 235.552 39.885V42H224.343V39.885ZM249.511 30.3675H233.038L234.048 27.6885H248.501L249.511 30.3675ZM247.349 39.885C248.477 39.8067 249.347 39.6265 249.958 39.3445C250.569 39.0468 250.937 38.5925 251.062 37.9815C251.188 37.3705 251.031 36.5402 250.592 35.4905L240.652 11.826L241.733 6.515H244.67L257.924 36.9945C258.222 37.6838 258.535 38.2243 258.864 38.616C259.193 38.992 259.608 39.2818 260.11 39.4855C260.611 39.6892 261.261 39.8223 262.06 39.885V42H247.349V39.885ZM273.282 36.36C273.282 37.2217 273.4 37.8953 273.635 38.381C273.885 38.851 274.293 39.2035 274.857 39.4385C275.421 39.6578 276.22 39.8067 277.254 39.885V42H263.224V39.885C264.274 39.8067 265.081 39.6578 265.645 39.4385C266.209 39.2035 266.608 38.851 266.843 38.381C267.078 37.8953 267.196 37.2217 267.196 36.36V12.39C267.196 11.5283 267.078 10.8625 266.843 10.3925C266.608 9.90683 266.209 9.55433 265.645 9.335C265.081 9.1 264.274 8.94333 263.224 8.865V6.75H273.282V36.36ZM279.557 6.75C282.236 6.75 284.554 7.11816 286.513 7.8545C288.471 8.59083 289.975 9.64833 291.025 11.027C292.074 12.4057 292.599 14.0428 292.599 15.9385C292.599 17.8968 292.098 19.5967 291.095 21.038C290.108 22.4637 288.683 23.5603 286.818 24.328C284.97 25.0957 282.776 25.4795 280.238 25.4795H270.932V22.8475H278.1C280.058 22.8475 281.625 22.6282 282.8 22.1895C283.99 21.7508 284.86 21.0537 285.408 20.098C285.957 19.1423 286.231 17.8812 286.231 16.3145C286.231 14.0742 285.487 12.3587 283.998 11.168C282.51 9.97733 280.364 9.382 277.559 9.382H270.932V6.75H279.557ZM295.076 39.885C296.126 39.8067 296.932 39.6578 297.496 39.4385C298.06 39.2035 298.46 38.851 298.695 38.381C298.93 37.8953 299.047 37.2217 299.047 36.36V12.39C299.047 11.5283 298.93 10.8625 298.695 10.3925C298.46 9.90683 298.06 9.55433 297.496 9.335C296.932 9.1 296.126 8.94333 295.076 8.865V6.75H309.105V8.865C308.071 8.94333 307.272 9.1 306.708 9.335C306.144 9.55433 305.737 9.90683 305.486 10.3925C305.251 10.8625 305.134 11.5283 305.134 12.39V36.36C305.134 37.2217 305.251 37.8953 305.486 38.381C305.737 38.851 306.144 39.2035 306.708 39.4385C307.272 39.6578 308.071 39.8067 309.105 39.885V42H295.076V39.885ZM328.083 35.3495C328.083 36.3365 328.263 37.1198 328.624 37.6995C328.984 38.2792 329.564 38.7022 330.363 38.9685C331.162 39.2348 332.243 39.368 333.606 39.368H333.935V42H318.025V39.885C319.075 39.8067 319.882 39.6578 320.446 39.4385C321.01 39.2035 321.409 38.851 321.644 38.381C321.879 37.8953 321.997 37.2217 321.997 36.36V12.39C321.997 11.5283 321.879 10.8625 321.644 10.3925C321.409 9.90683 321.01 9.55433 320.446 9.335C319.882 9.1 319.075 8.94333 318.025 8.865V6.75H328.083V35.3495ZM334.663 6.75C338.58 6.75 342.034 7.455 345.027 8.865C348.019 10.2593 350.338 12.249 351.983 14.834C353.643 17.4033 354.474 20.3878 354.474 23.7875C354.474 27.2342 353.659 30.344 352.03 33.117C350.4 35.89 348.16 38.0677 345.309 39.65C342.473 41.2167 339.308 42 335.815 42H326.015V39.368H335.18C337.624 39.368 339.818 38.757 341.76 37.535C343.703 36.2973 345.223 34.574 346.319 32.365C347.432 30.156 347.988 27.6415 347.988 24.8215C347.988 21.6882 347.385 18.9622 346.178 16.6435C344.988 14.3092 343.288 12.5153 341.079 11.262C338.885 10.0087 336.316 9.382 333.371 9.382H326.015V6.75H334.663ZM369.596 42.47C367.199 42.47 365.044 41.953 363.133 40.919C361.237 39.885 359.749 38.4515 358.668 36.6185C357.603 34.7855 357.07 32.7097 357.07 30.391C357.07 28.0253 357.642 25.8477 358.786 23.858C359.945 21.8527 361.512 20.2703 363.486 19.111C365.46 17.936 367.622 17.3485 369.972 17.3485C372.369 17.3485 374.515 17.8655 376.411 18.8995C378.322 19.9335 379.81 21.3748 380.876 23.2235C381.957 25.0565 382.497 27.1245 382.497 29.4275C382.497 31.7932 381.917 33.9787 380.758 35.984C379.614 37.9737 378.056 39.556 376.082 40.731C374.108 41.8903 371.946 42.47 369.596 42.47ZM370.136 40.026C371.483 40.026 372.651 39.6578 373.638 38.9215C374.625 38.1695 375.377 37.0885 375.894 35.6785C376.426 34.2685 376.693 32.5843 376.693 30.626C376.693 28.5423 376.379 26.678 375.753 25.033C375.142 23.388 374.28 22.1112 373.168 21.2025C372.071 20.2782 370.818 19.816 369.408 19.816C368.06 19.816 366.893 20.192 365.906 20.944C364.935 21.6803 364.183 22.7535 363.65 24.1635C363.133 25.5735 362.875 27.2577 362.875 29.216C362.875 31.2997 363.188 33.164 363.815 34.809C364.441 36.4383 365.303 37.7152 366.4 38.6395C367.512 39.5638 368.757 40.026 370.136 40.026ZM407.346 36.031C406.265 38.146 404.855 39.7518 403.116 40.8485C401.377 41.9295 399.34 42.47 397.006 42.47C394.656 42.47 392.572 41.9765 390.755 40.9895C388.953 39.9868 387.551 38.5847 386.549 36.783C385.562 34.9813 385.068 32.9055 385.068 30.5555C385.068 28.0802 385.624 25.8398 386.737 23.8345C387.865 21.8135 389.408 20.2312 391.366 19.0875C393.324 17.9282 395.51 17.3485 397.923 17.3485C399.646 17.3485 401.189 17.6148 402.552 18.1475C403.915 18.6645 404.98 19.3852 405.748 20.3095C406.531 21.2338 406.923 22.2835 406.923 23.4585C406.923 24.0225 406.798 24.5395 406.547 25.0095C406.296 25.4638 405.936 25.832 405.466 26.114H401.73V24.939C401.73 23.2313 401.338 21.9467 400.555 21.085C399.771 20.2077 398.628 19.769 397.124 19.769C395.823 19.769 394.672 20.1372 393.669 20.8735C392.666 21.5942 391.883 22.6125 391.319 23.9285C390.771 25.2445 390.497 26.7563 390.497 28.464C390.497 30.4537 390.826 32.1613 391.484 33.587C392.142 35.0127 393.089 36.1015 394.327 36.8535C395.565 37.6055 397.037 37.9815 398.745 37.9815C400.03 37.9815 401.283 37.7073 402.505 37.159C403.727 36.595 404.886 35.7647 405.983 34.668L407.346 36.031ZM413 34.339C413.501 36.313 414.269 37.7778 415.303 38.7335C416.353 39.6892 417.747 40.167 419.486 40.167C420.536 40.167 421.437 40.0182 422.189 39.7205C422.956 39.4072 423.544 38.9607 423.951 38.381C424.358 37.8013 424.562 37.112 424.562 36.313C424.562 35.467 424.335 34.7855 423.881 34.2685C423.426 33.7358 422.831 33.3207 422.095 33.023C421.358 32.7253 420.426 32.4433 419.298 32.177C418.985 32.0987 418.664 32.0282 418.335 31.9655C416.282 31.4955 414.684 30.9707 413.541 30.391C412.397 29.7957 411.574 29.0672 411.073 28.2055C410.587 27.3282 410.345 26.208 410.345 24.845C410.345 23.4507 410.76 22.1817 411.59 21.038C412.436 19.8943 413.588 18.9935 415.045 18.3355C416.502 17.6775 418.123 17.3485 419.909 17.3485C421.617 17.3485 423.121 17.5287 424.421 17.889C425.737 18.2337 427.037 18.7977 428.322 19.581V24.6805H425.502C425.032 23.0198 424.327 21.7665 423.387 20.9205C422.447 20.0745 421.233 19.6515 419.745 19.6515C418.852 19.6515 418.068 19.8003 417.395 20.098C416.721 20.38 416.196 20.7795 415.82 21.2965C415.444 21.7978 415.256 22.3853 415.256 23.059C415.256 23.8423 415.475 24.469 415.914 24.939C416.368 25.409 416.964 25.7693 417.7 26.02C418.436 26.2707 419.494 26.5605 420.873 26.8895C423.082 27.3908 424.813 27.9627 426.066 28.605C427.319 29.2473 428.22 30.0463 428.769 31.002C429.317 31.942 429.591 33.1327 429.591 34.574C429.591 36.1407 429.16 37.5193 428.299 38.71C427.453 39.9007 426.246 40.825 424.68 41.483C423.113 42.141 421.303 42.47 419.251 42.47C417.59 42.47 415.953 42.2428 414.34 41.7885C412.742 41.3185 411.355 40.684 410.18 39.885V34.339H413Z" fill="currentColor"></path></svg></a></div><div class="flex space-x-6 pl-1"><a class="text-text-500 hover:text-text-100" target="_blank" rel="noreferrer" aria-label="X (Twitter)" href="https://x.com/claudeai"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17" fill="none" class="w-[16px] h-[16px]"><path d="M10.058 7.29023L15.9061 0.518799H14.5203L9.44241 6.39834L5.38673 0.518799H0.708984L6.84197 9.4097L0.708984 16.5106H2.09487L7.45723 10.3016L11.7403 16.5106H16.4181L10.0577 7.29023H10.058ZM8.15987 9.48803L7.53847 8.6027L2.59422 1.55801H4.72285L8.71292 7.2433L9.33432 8.12863L14.5209 15.5186H12.3923L8.15987 9.48837V9.48803Z" fill="currentColor"></path></svg></a><a class="text-text-500 hover:text-text-100" target="_blank" rel="noreferrer" aria-label="LinkedIn" href="https://www.linkedin.com/showcase/claude"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none" class="w-[16px] h-[16px]"><path d="M13.9639 0.664795C14.9276 0.66492 15.7088 1.44616 15.709 2.40991V14.6287C15.7089 15.5925 14.9277 16.3737 13.9639 16.3738H1.74512C0.781361 16.3736 0.000124701 15.5924 0 14.6287V2.40991C0.000182278 1.44619 0.781397 0.664977 1.74512 0.664795H13.9639ZM2.40723 14.1921H4.75V6.62769H2.40723V14.1921ZM10.7744 6.39722C9.16936 6.39722 8.49414 7.64722 8.49414 7.64722V6.62769H6.24707V14.1921H8.49414V10.2214C8.49414 9.15758 8.98357 8.52417 9.9209 8.52417C10.7825 8.52418 11.1963 9.13286 11.1963 10.2214V14.1921H13.5273V9.40308C13.5273 7.3769 12.3787 6.39724 10.7744 6.39722ZM3.56738 2.84644C2.80216 2.84644 2.18164 3.47118 2.18164 4.24194C2.18166 5.01269 2.80217 5.63745 3.56738 5.63745C4.33248 5.63731 4.95213 5.0126 4.95215 4.24194C4.95215 3.47127 4.33249 2.84658 3.56738 2.84644Z" fill="currentColor"></path></svg></a><a class="text-text-500 hover:text-text-100" target="_blank" rel="noreferrer" aria-label="Instagram" href="https://instagram.com/claudeai"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 17 17" fill="none" class="w-[16px] h-[16px]"><g clip-path="url(#clip0_65_1183)"><path d="M5.01973 0.719484C4.18401 0.758913 3.6133 0.892284 3.11438 1.08833C2.59802 1.28957 2.16036 1.55961 1.72491 1.99663C1.28945 2.43366 1.0213 2.87163 0.821478 3.38877C0.628099 3.88879 0.497085 4.45998 0.460169 5.29617C0.423253 6.13237 0.415084 6.40115 0.419168 8.53413C0.423253 10.6671 0.432678 10.9345 0.473207 11.7724C0.513109 12.608 0.646007 13.1785 0.842057 13.6776C1.0436 14.194 1.31333 14.6315 1.75051 15.0671C2.1877 15.5027 2.62535 15.7702 3.14375 15.9703C3.6433 16.1634 4.21464 16.295 5.05068 16.3316C5.88672 16.3683 6.15581 16.3767 8.28817 16.3727C10.4205 16.3686 10.689 16.3591 11.5268 16.3194C12.3645 16.2797 12.9321 16.1458 13.4313 15.9507C13.9477 15.7487 14.3855 15.4794 14.8208 15.0421C15.2561 14.6047 15.5241 14.1665 15.7238 13.649C15.9173 13.1495 16.0488 12.5781 16.0851 11.7427C16.1217 10.9043 16.1303 10.6366 16.1262 8.50397C16.1221 6.3713 16.1125 6.10393 16.0728 5.26632C16.0331 4.42871 15.9 3.85989 15.7041 3.3605C15.5023 2.84414 15.2328 2.40695 14.7958 1.97103C14.3588 1.5351 13.9202 1.26726 13.4029 1.06807C12.903 0.874689 12.332 0.74289 11.496 0.706759C10.6599 0.670628 10.3908 0.66136 8.25769 0.665444C6.12455 0.669529 5.8575 0.67864 5.01973 0.719484ZM5.11147 14.9186C4.34566 14.8853 3.92984 14.7581 3.65273 14.6516C3.28576 14.5102 3.02436 14.3393 2.7482 14.0658C2.47203 13.7923 2.30237 13.5299 2.15911 13.1638C2.0515 12.8866 1.9219 12.4713 1.88608 11.7055C1.84712 10.8778 1.83896 10.6292 1.8344 8.53224C1.82984 6.43524 1.83786 6.18703 1.87414 5.35901C1.90682 4.59382 2.03485 4.17753 2.1412 3.90057C2.28258 3.53314 2.45287 3.27221 2.72699 2.9962C3.00111 2.72019 3.26267 2.55022 3.62916 2.40695C3.90596 2.29888 4.32131 2.17038 5.08681 2.13393C5.91515 2.09466 6.16335 2.0868 8.26005 2.08225C10.3567 2.07769 10.6056 2.08555 11.4342 2.12199C12.1994 2.15529 12.6159 2.28207 12.8925 2.38905C13.2596 2.53043 13.5209 2.70024 13.7969 2.97484C14.0729 3.24943 14.243 3.51005 14.3863 3.87733C14.4945 4.15333 14.623 4.56853 14.6591 5.3345C14.6986 6.16284 14.7075 6.4112 14.7113 8.50774C14.7151 10.6043 14.7077 10.8533 14.6714 11.681C14.6379 12.4468 14.511 12.8628 14.4043 13.1402C14.263 13.507 14.0925 13.7686 13.8182 14.0444C13.544 14.3203 13.2827 14.4902 12.9161 14.6335C12.6396 14.7414 12.2238 14.8702 11.4589 14.9067C10.6305 14.9456 10.3823 14.9538 8.28487 14.9584C6.18739 14.9629 5.93997 14.9544 5.11163 14.9186M11.5147 4.32111C11.515 4.50754 11.5706 4.68969 11.6744 4.84452C11.7782 4.99936 11.9257 5.11992 12.098 5.19096C12.2704 5.26201 12.46 5.28034 12.6427 5.24364C12.8255 5.20694 12.9933 5.11686 13.1249 4.98479C13.2565 4.85272 13.346 4.6846 13.382 4.50168C13.418 4.31877 13.399 4.12927 13.3273 3.95717C13.2556 3.78507 13.1345 3.63808 12.9793 3.53481C12.8241 3.43154 12.6417 3.37662 12.4553 3.37699C12.2054 3.37749 11.9659 3.47723 11.7895 3.65428C11.6131 3.83132 11.5142 4.07118 11.5147 4.32111ZM4.23978 8.5269C4.24417 10.7545 6.05323 12.5561 8.28031 12.5519C10.5074 12.5476 12.3103 10.7387 12.3061 8.51119C12.3018 6.28364 10.4923 4.4815 8.26492 4.4859C6.03752 4.49029 4.23553 6.29967 4.23978 8.5269ZM5.65454 8.52407C5.65351 8.00624 5.80607 7.49973 6.09291 7.06859C6.37975 6.63746 6.788 6.30106 7.26603 6.10195C7.74405 5.90284 8.27039 5.84994 8.77847 5.94996C9.28656 6.04998 9.75358 6.29842 10.1205 6.66386C10.4874 7.0293 10.7376 7.49533 10.8397 8.00302C10.9417 8.5107 10.8909 9.03725 10.6937 9.51606C10.4965 9.99487 10.1617 10.4044 9.73169 10.693C9.30169 10.9815 8.79579 11.1361 8.27796 11.1371C7.93411 11.1378 7.59349 11.0708 7.27556 10.9399C6.95762 10.809 6.66859 10.6167 6.42497 10.374C6.18136 10.1314 5.98793 9.8431 5.85574 9.52568C5.72354 9.20827 5.65518 8.86792 5.65454 8.52407Z" fill="currentColor"></path></g><defs><clipPath id="clip0_65_1183"><rect width="15.7091" height="15.7091" fill="white" transform="translate(0.418213 0.664795)"></rect></clipPath></defs></svg></a></div></div><div class="grid grid-cols-2 md:grid-cols-3 min-[1320px]:grid-cols-4 gap-8"><div class="flex flex-col space-y-8"><div><h3 class="text-xs text-text-400 mb-2">Solutions</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/agents">AI agents</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/code-modernization">Code modernization</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/coding">Coding</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/customer-support">Customer support</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/education">Education</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/financial-services">Financial services</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/government">Government</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/solutions/life-sciences">Life sciences</a></li></ul></div><div><h3 class="text-xs text-text-400 mb-2">Partners</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/amazon-bedrock">Amazon Bedrock</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/google-cloud-vertex-ai">Google Cloud's Vertex AI</a></li></ul></div></div><div class="flex flex-col space-y-8 min-[1320px]:space-y-0"><div class="min-[1320px]:hidden"><h3 class="text-xs text-text-400 mb-2">Learn</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/blog">Blog</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.ai/catalog/artifacts">Catalog</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/learn">Courses</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/resources/use-cases">Use cases</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/mcp">Connectors</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/customers">Customer stories</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/engineering">Engineering at Anthropic</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/events">Events</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/powered-by-claude">Powered by Claude</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/services">Service partners</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/programs/startups">Startups program</a></li></ul></div><div><h3 class="text-xs text-text-400 mb-2">Company</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/company">Anthropic</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/careers">Careers</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/economic-futures">Economic Futures</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/research">Research</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/news">News</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/news/announcing-our-updated-responsible-scaling-policy">Responsible Scaling Policy</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://trust.anthropic.com">Security and compliance</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/transparency">Transparency</a></li></ul></div></div><div class="hidden min-[1320px]:flex flex-col"><h3 class="text-xs text-text-400 mb-2">Learn</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/blog">Blog</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.ai/catalog/artifacts">Catalog</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/learn">Courses</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/resources/use-cases">Use cases</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/mcp">Connectors</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/customers">Customer stories</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/engineering">Engineering at Anthropic</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/events">Events</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/powered-by-claude">Powered by Claude</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/partners/services">Service partners</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://claude.com/programs/startups">Startups program</a></li></ul></div><div class="flex flex-col space-y-8"><div><h3 class="text-xs text-text-400 mb-2">Help and security</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/supported-countries">Availability</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://status.claude.com/">Status</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://support.claude.com/">Support</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/discord">Discord</a></li></ul></div><div><h3 class="text-xs text-text-400 mb-2">Terms and policies</h3><ul class="space-y-1"><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/legal/privacy">Privacy policy</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/responsible-disclosure-policy">Responsible disclosure policy</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/legal/commercial-terms">Terms of service: Commercial</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/legal/consumer-terms">Terms of service: Consumer</a></li><li><a class="text-xs text-text-100 hover:text-text-000 transition-colors duration-200" target="_blank" rel="noreferrer" href="https://www.anthropic.com/legal/aup">Usage policy</a></li></ul></div></div></div></div></footer></main></div></div></div></div></div><div id="inkeep-shadowradix-_R_6iuuljb_" style="display:contents"></div><span></span></div><div hidden id="S:1"><div class="w-full relative max-w-screen-2xl flex justify-center lg:justify-between mx-auto shrink"><div class="hidden [@media(min-width:1470px)]:block"></div><article id="content-container" class="text-text-300 prose mx-auto max-w-5xl lg:max-w-4xl w-full min-w-0 overflow-x-hidden px-6 py-8 lg:p-8 prose-slate dark:prose-invert break-words [&>*]:max-w-full [&>*]:box-border prose-a:inline-flex prose-a:items-center prose-a:min-h-[44px] prose-a:py-0.5 prose-p:leading-[1.6] prose-li:leading-[1.6] prose-blockquote:leading-[1.6]"><header class="mb-6"><div class="mb-2"><span class="hidden lg:block gap-2 text-sm font-normal text-text-300">Build with Claude</span></div><div class="flex justify-between items-center pb-2"><h1 class="font-title leading-[1.125] text-text-100">Prompting best practices</h1><div class="hidden lg:block flex-shrink-0"><div class="flex h-8 whitespace-nowrap"><button class="font-base-bold !text-xs rounded-l-lg bg-bg-000 h-full flex items-center justify-center px-2 border-y-0.5 border-l-0.5 border-border-200 hover:bg-bg-200"><div class="flex items-center gap-2"><div class="relative w-4 h-4"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-100 scale-0 opacity-0"><path d="M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-100 scale-100 opacity-100"><path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-200 text-success-000 scale-0 opacity-0"><path d="M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-200 text-danger-000 scale-0 opacity-0"><path d="M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"></path></svg></div><span>Copy page</span></div></button><button class="bg-bg-000 flex items-center justify-center px-1 hover:bg-bg-200 rounded-r-lg border-0.5 border-border-200" type="button" id="radix-_R_kclfiuqkntiuuljb_" aria-haspopup="menu" aria-expanded="false" data-state="closed"><div style="width:16px;height:16px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M14.128 7.16482C14.3126 6.95983 14.6298 6.94336 14.835 7.12771C15.0402 7.31242 15.0567 7.62952 14.8721 7.83477L10.372 12.835L10.2939 12.9053C10.2093 12.9667 10.1063 13 9.99995 13C9.85833 12.9999 9.72264 12.9402 9.62788 12.835L5.12778 7.83477L5.0682 7.75273C4.95072 7.55225 4.98544 7.28926 5.16489 7.12771C5.34445 6.96617 5.60969 6.95939 5.79674 7.09744L5.87193 7.16482L9.99995 11.7519L14.128 7.16482Z"></path></svg></div></button></div></div></div><div class="text-lg text-text-400">Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems.</div></header><div class="block lg:hidden mb-4"><div class="flex h-8 whitespace-nowrap"><button class="font-base-bold !text-xs rounded-l-lg bg-bg-000 h-full flex items-center justify-center px-2 border-y-0.5 border-l-0.5 border-border-200 hover:bg-bg-200"><div class="flex items-center gap-2"><div class="relative w-4 h-4"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-100 scale-0 opacity-0"><path d="M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-100 scale-100 opacity-100"><path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-200 text-success-000 scale-0 opacity-0"><path d="M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" class="absolute inset-0 transition-all duration-200 text-danger-000 scale-0 opacity-0"><path d="M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"></path></svg></div><span>Copy page</span></div></button><button class="bg-bg-000 flex items-center justify-center px-1 hover:bg-bg-200 rounded-r-lg border-0.5 border-border-200" type="button" id="radix-_R_klfiuqkntiuuljb_" aria-haspopup="menu" aria-expanded="false" data-state="closed"><div style="width:16px;height:16px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M14.128 7.16482C14.3126 6.95983 14.6298 6.94336 14.835 7.12771C15.0402 7.31242 15.0567 7.62952 14.8721 7.83477L10.372 12.835L10.2939 12.9053C10.2093 12.9667 10.1063 13 9.99995 13C9.85833 12.9999 9.72264 12.9402 9.62788 12.835L5.12778 7.83477L5.0682 7.75273C4.95072 7.55225 4.98544 7.28926 5.16489 7.12771C5.34445 6.96617 5.60969 6.95939 5.79674 7.09744L5.87193 7.16482L9.99995 11.7519L14.128 7.16482Z"></path></svg></div></button></div></div><p class="mb-2 last:mb-0">This is the single reference for prompt engineering with Claude's latest models, including Claude Opus 4.6, Claude Sonnet 4.6, and Claude Haiku 4.5. It covers foundational techniques, output control, tool use, thinking, and agentic systems. Jump to the section that matches your situation.</p>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-border-200 bg-bg-200 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-text-000"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M12.5 17C12.7761 17 13 17.2239 13 17.5C13 17.7761 12.7761 18 12.5 18H7.5C7.22386 18 7 17.7761 7 17.5C7 17.2239 7.22386 17 7.5 17H12.5ZM10 2C13.3137 2 16 4.68629 16 8C16 9.73776 15.2608 11.3033 14.0811 12.3984L13.8389 12.6113C13.3268 13.0382 13 13.5753 13 14.124V15.5C13 15.7761 12.7761 16 12.5 16H7.5C7.22386 16 7 15.7761 7 15.5V14.124C6.99998 13.6438 6.7495 13.1727 6.34375 12.7764L6.16113 12.6113C4.84147 11.5115 4 9.85368 4 8C4 4.68629 6.68629 2 10 2ZM10 3C7.23858 3 5 5.23858 5 8C5 9.5443 5.69948 10.9248 6.80078 11.8428L7.03711 12.0557C7.57356 12.5787 7.99998 13.2899 8 14.124V15H9.5V11.207L7.14648 8.85352L7.08203 8.77539C6.95387 8.58131 6.97562 8.31735 7.14648 8.14648C7.31735 7.97562 7.58131 7.95387 7.77539 8.08203L7.85352 8.14648L10 10.293L12.1465 8.14648L12.2246 8.08203C12.4187 7.95387 12.6827 7.97562 12.8535 8.14648C13.0244 8.31735 13.0461 8.58131 12.918 8.77539L12.8535 8.85352L10.5 11.207V15H12V14.124C12 13.1706 12.5575 12.3776 13.1992 11.8428L13.4004 11.665C14.3848 10.7513 15 9.44786 15 8C15 5.23858 12.7614 3 10 3Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-text-000 [&_li]:before:text-text-000/60 [&_blockquote]:border-l-text-000/60 [&_code]:text-text-000 [&_code]:bg-text-000/10"><p class="mb-2 last:mb-0">For an overview of model capabilities, see the <a class="inline-link" href="/docs/en/about-claude/models/overview">models overview</a>. For details on what's new in Claude 4.6, see <a class="inline-link" href="/docs/en/about-claude/models/whats-new-claude-4-6">What's new in Claude 4.6</a>. For migration guidance, see the <a class="inline-link" href="/docs/en/about-claude/models/migration-guide">Migration guide</a>.</p></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="general-principles"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>General principles</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="be-clear-and-direct"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Be clear and direct</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude responds well to clear, explicit instructions. Being specific about your desired output can help enhance results. If you want "above and beyond" behavior, explicitly request it rather than relying on the model to infer this from vague prompts.</p>¶
<p class="mb-2 last:mb-0">Think of Claude as a brilliant but new employee who lacks context on your norms and workflows. The more precisely you explain what you want, the better the result.</p>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Golden rule:</strong> Show your prompt to a colleague with minimal context on the task and ask them to follow it. If they'd be confused, Claude will be too.</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Be specific about the desired output format and constraints.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Provide instructions as sequential steps using numbered lists or bullet points when the order or completeness of steps matters.</li>¶
</ul>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_112slfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_12slfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example: Creating an analytics dashboard</span></button></h3><div data-state="closed" id="radix-_R_112slfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example:-creating-an-analytics-dashboard" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="add-context-to-improve-performance"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Add context to improve performance</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Providing context or motivation behind your instructions, such as explaining to Claude why such behavior is important, can help Claude better understand your goals and deliver more targeted responses.</p>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_11eslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_1eslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example: Formatting preferences</span></button></h3><div data-state="closed" id="radix-_R_11eslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example:-formatting-preferences" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<p class="mb-2 last:mb-0">Claude is smart enough to generalize from the explanation.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="use-examples-effectively"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Use examples effectively</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Examples are one of the most reliable ways to steer Claude's output format, tone, and structure. A few well-crafted examples (known as few-shot or multishot prompting) can dramatically improve accuracy and consistency.</p>¶
<p class="mb-2 last:mb-0">When adding examples, make them:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Relevant:</strong> Mirror your actual use case closely.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Diverse:</strong> Cover edge cases and vary enough that Claude doesn't pick up unintended patterns.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Structured:</strong> Wrap examples in <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><example></code> tags (multiple examples in <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><examples></code> tags) so Claude can distinguish them from instructions.</li>¶
</ul>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-border-200 bg-bg-200 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-text-000"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M12.5 17C12.7761 17 13 17.2239 13 17.5C13 17.7761 12.7761 18 12.5 18H7.5C7.22386 18 7 17.7761 7 17.5C7 17.2239 7.22386 17 7.5 17H12.5ZM10 2C13.3137 2 16 4.68629 16 8C16 9.73776 15.2608 11.3033 14.0811 12.3984L13.8389 12.6113C13.3268 13.0382 13 13.5753 13 14.124V15.5C13 15.7761 12.7761 16 12.5 16H7.5C7.22386 16 7 15.7761 7 15.5V14.124C6.99998 13.6438 6.7495 13.1727 6.34375 12.7764L6.16113 12.6113C4.84147 11.5115 4 9.85368 4 8C4 4.68629 6.68629 2 10 2ZM10 3C7.23858 3 5 5.23858 5 8C5 9.5443 5.69948 10.9248 6.80078 11.8428L7.03711 12.0557C7.57356 12.5787 7.99998 13.2899 8 14.124V15H9.5V11.207L7.14648 8.85352L7.08203 8.77539C6.95387 8.58131 6.97562 8.31735 7.14648 8.14648C7.31735 7.97562 7.58131 7.95387 7.77539 8.08203L7.85352 8.14648L10 10.293L12.1465 8.14648L12.2246 8.08203C12.4187 7.95387 12.6827 7.97562 12.8535 8.14648C13.0244 8.31735 13.0461 8.58131 12.918 8.77539L12.8535 8.85352L10.5 11.207V15H12V14.124C12 13.1706 12.5575 12.3776 13.1992 11.8428L13.4004 11.665C14.3848 10.7513 15 9.44786 15 8C15 5.23858 12.7614 3 10 3Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-text-000 [&_li]:before:text-text-000/60 [&_blockquote]:border-l-text-000/60 [&_code]:text-text-000 [&_code]:bg-text-000/10">Include 3–5 examples for best results. You can also ask Claude to evaluate your examples for relevance and diversity, or to generate additional ones based on your initial set.</div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="structure-prompts-with-xml-tags"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Structure prompts with XML tags</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">XML tags help Claude parse complex prompts unambiguously, especially when your prompt mixes instructions, context, examples, and variable inputs. Wrapping each type of content in its own tag — e.g. <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><instructions></code>, <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><context></code>, <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><input></code> — reduces misinterpretation.</p>¶
<p class="mb-2 last:mb-0">Best practices:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Use consistent, descriptive tag names across your prompts.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Nest tags when content has a natural hierarchy (documents inside <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><documents></code>, each inside <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><document index="n"></code>).</li>¶
</ul>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="give-claude-a-role"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Give Claude a role</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Setting a role in the system prompt focuses Claude's behavior and tone for your use case. Even a single sentence makes a difference:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#CF222E;--shiki-dark:#C586C0">import</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6"> anthropic</span></span>¶
<span class="line"></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client </span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6"> anthropic.Anthropic()</span></span>¶
<span class="line"></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">message </span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6"> client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-opus-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">1024</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> system</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"You are a helpful coding assistant specializing in Python."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6"> {</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"How do I sort a list of dictionaries by key?"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6"> ],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span>¶
<span class="line"><span style="--shiki-light:#0550AE;--shiki-dark:#DCDCAA">print</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">(message.content)</span></span></code></pre></div></div><div class="absolute top-3 right-3 z-10 bg-bg-100 rounded pointer-events-auto flex items-center gap-1 transition-opacity duration-200 opacity-100 md:opacity-0 md:group-hover:opacity-100"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="long-context-prompting"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Long context prompting</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">When working with large documents or data-rich inputs (20K+ tokens), structure your prompt carefully to get the best results:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Put longform data at the top</strong>: Place your long documents and inputs near the top of your prompt, above your query, instructions, and examples. This can significantly improve performance across all models.</p>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-accent-secondary-100 bg-accent-secondary-100/10 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-accent-secondary-100"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M10 2.5C14.1421 2.5 17.5 5.85786 17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5ZM10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5C13.5899 16.5 16.5 13.5899 16.5 10C16.5 6.41015 13.5899 3.5 10 3.5ZM10.1006 9.00977C10.3286 9.05629 10.5 9.25829 10.5 9.5V12.5H11.5C11.7761 12.5 12 12.7239 12 13C12 13.2761 11.7761 13.5 11.5 13.5H8.5C8.22386 13.5 8 13.2761 8 13C8 12.7239 8.22386 12.5 8.5 12.5H9.5V10H8.5C8.22386 10 8 9.77614 8 9.5C8 9.22386 8.22386 9 8.5 9H10L10.1006 9.00977ZM10 6.5C10.4142 6.5 10.75 6.83579 10.75 7.25C10.75 7.66421 10.4142 8 10 8C9.58579 8 9.25 7.66421 9.25 7.25C9.25 6.83579 9.58579 6.5 10 6.5Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-accent-secondary-000 [&_li]:before:text-accent-secondary-000/60 [&_blockquote]:border-l-accent-secondary-000/60 [&_code]:text-accent-secondary-000 [&_code]:bg-accent-secondary-000/10">Queries at the end can improve response quality by up to 30% in tests, especially with complex, multi-document inputs.</div></div>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Structure document content and metadata with XML tags</strong>: When using multiple documents, wrap each document in <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><document></code> tags with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><document_content></code> and <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><source></code> (and other metadata) subtags for clarity.</p>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_343eslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_143eslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example multi-document structure</span></button></h3><div data-state="closed" id="radix-_R_343eslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example-multi-document-structure" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Ground responses in quotes</strong>: For long document tasks, ask Claude to quote relevant parts of the documents first before carrying out its task. This helps Claude cut through the noise of the rest of the document's contents.</p>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_363eslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_163eslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example quote extraction</span></button></h3><div data-state="closed" id="radix-_R_363eslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example-quote-extraction" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
</li>¶
</ul>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="model-self-knowledge"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Model self-knowledge</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">If you would like Claude to identify itself correctly in your application or use specific API strings:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for model identity</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>The assistant is Claude, created by Anthropic. The current model is Claude Opus 4.6.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">For LLM-powered apps that need to specify model strings:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for model string</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>When an LLM is needed, please default to Claude Opus 4.6 unless the user requests otherwise. The exact model string for Claude Opus 4.6 is claude-opus-4-6.</code></pre></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="output-and-formatting"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Output and formatting</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="communication-style-and-verbosity"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Communication style and verbosity</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models have a more concise and natural communication style compared to previous models:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">More direct and grounded:</strong> Provides fact-based progress reports rather than self-celebratory updates</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">More conversational:</strong> Slightly more fluent and colloquial, less machine-like</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Less verbose:</strong> May skip detailed summaries for efficiency unless prompted otherwise</li>¶
</ul>¶
<p class="mb-2 last:mb-0">This means Claude may skip verbal summaries after tool calls, jumping directly to the next action. If you prefer more visibility into its reasoning:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>After completing a task that involves tool use, provide a quick summary of the work you've done.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="control-the-format-of-responses"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Control the format of responses</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">There are a few particularly effective ways to steer output formatting:</p>¶
<ol class="list-none pl-8 [counter-reset:item] [&_ul]:pl-8 [&_ol]:pl-8 [&_ol]:[counter-reset:item] mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Tell Claude what to do instead of what not to do</strong></p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Instead of: "Do not use markdown in your response"</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Try: "Your response should be composed of smoothly flowing prose paragraphs."</li>¶
</ul>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Use XML format indicators</strong></p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Try: "Write the prose sections of your response in <smoothly_flowing_prose_paragraphs> tags."</li>¶
</ul>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Match your prompt style to the desired output</strong></p>¶
<p class="mb-2 last:mb-0">The formatting style used in your prompt may influence Claude's response style. If you are still experiencing steerability issues with output formatting, try matching your prompt style to your desired output style as closely as possible. For example, removing markdown from your prompt can reduce the volume of markdown in the output.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Use detailed prompts for specific formatting preferences</strong></p>¶
<p>For more control over markdown and formatting usage, provide explicit guidance:</p>¶
</li>¶
</ol>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt to minimize markdown</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><avoid_excessive_markdown_and_bullet_points>¶
When writing reports, documents, technical explanations, analyses, or any long-form content, write in clear, flowing prose using complete paragraphs and sentences. Use standard paragraph breaks for organization and reserve markdown primarily for `inline code`, code blocks (```...```), and simple headings (###, and ###). Avoid using **bold** and *italics*.¶
¶
DO NOT use ordered lists (1. ...) or unordered lists (*) unless : a) you're presenting truly discrete items where a list format is the best option, or b) the user explicitly requests a list or ranking¶
¶
Instead of listing items with bullets or numbers, incorporate them naturally into sentences. This guidance applies especially to technical writing. Using prose instead of excessive formatting will improve user satisfaction. NEVER output a series of overly short bullet points.¶
¶
Your goal is readable, flowing text that guides the reader naturally through ideas rather than fragmenting information into isolated points.¶
</avoid_excessive_markdown_and_bullet_points></code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="la-te-x-output"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>LaTeX output</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Opus 4.6 defaults to LaTeX for mathematical expressions, equations, and technical explanations. If you prefer plain text, add the following instructions to your prompt:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Format your response in plain text only. Do not use LaTeX, MathJax, or any markup notation such as \( \), $, or \frac{}{}. Write all math expressions using standard text characters (e.g., "/" for division, "*" for multiplication, and "^" for exponents).</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="document-creation"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Document creation</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models excel at creating presentations, animations, and visual documents with impressive creative flair and strong instruction following. The models produce polished, usable output on the first try in most cases.</p>¶
<p class="mb-2 last:mb-0">For best results with document creation:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Create a professional presentation on [topic]. Include thoughtful design elements, visual hierarchy, and engaging animations where appropriate.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="migrating-away-from-prefilled-responses"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Migrating away from prefilled responses</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Starting with Claude 4.6 models, prefilled responses on the last assistant turn are no longer supported. Model intelligence and instruction following has advanced such that most use cases of prefill no longer require it. Existing models will continue to support prefills, and adding assistant messages elsewhere in the conversation is not affected.</p>¶
<p class="mb-2 last:mb-0">Here are common prefill scenarios and how to migrate away from them:</p>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_16mslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_6mslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Controlling output formatting</span></button></h3><div data-state="closed" id="radix-_R_16mslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-controlling-output-formatting" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_16qslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_6qslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Eliminating preambles</span></button></h3><div data-state="closed" id="radix-_R_16qslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-eliminating-preambles" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_16uslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_6uslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Avoiding bad refusals</span></button></h3><div data-state="closed" id="radix-_R_16uslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-avoiding-bad-refusals" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_172slfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_72slfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Continuations</span></button></h3><div data-state="closed" id="radix-_R_172slfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-continuations" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_176slfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_76slfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Context hydration and role consistency</span></button></h3><div data-state="closed" id="radix-_R_176slfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-context-hydration-and-role-consistency" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="tool-use"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Tool use</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="tool-usage"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Tool usage</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models are trained for precise instruction following and benefit from explicit direction to use specific tools. If you say "can you suggest some changes," Claude will sometimes provide suggestions rather than implementing them—even if making changes might be what you intended.</p>¶
<p class="mb-2 last:mb-0">For Claude to take action, be more explicit:</p>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_17qslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_7qslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example: Explicit instructions</span></button></h3><div data-state="closed" id="radix-_R_17qslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example:-explicit-instructions" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<p class="mb-2 last:mb-0">To make Claude more proactive about taking action by default, you can add this to your system prompt:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for proactive action</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><default_to_action>¶
By default, implement changes rather than only suggesting them. If the user's intent is unclear, infer the most useful likely action and proceed, using tools to discover any missing details instead of guessing. Try to infer the user's intent about whether a tool call (e.g., file edit or read) is intended or not, and act accordingly.¶
</default_to_action></code></pre></div></div>¶
<p class="mb-2 last:mb-0">On the other hand, if you want the model to be more hesitant by default, less prone to jumping straight into implementations, and only take action if requested, you can steer this behavior with a prompt like the below:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for conservative action</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><do_not_act_before_instructions>¶
Do not jump into implementatation or changes files unless clearly instructed to make changes. When the user's intent is ambiguous, default to providing information, doing research, and providing recommendations rather than taking action. Only proceed with edits, modifications, or implementations when the user explicitly requests them.¶
</do_not_act_before_instructions></code></pre></div></div>¶
<p class="mb-2 last:mb-0">Claude Opus 4.5 and Claude Opus 4.6 are also more responsive to the system prompt than previous models. If your prompts were designed to reduce undertriggering on tools or skills, these models may now overtrigger. The fix is to dial back any aggressive language. Where you might have said "CRITICAL: You MUST use this tool when...", you can use more normal prompting like "Use this tool when...".</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="optimize-parallel-tool-calling"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Optimize parallel tool calling</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models excel at parallel tool execution. These models will:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Run multiple speculative searches during research</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Read several files at once to build context faster</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Execute bash commands in parallel (which can even bottleneck system performance)</li>¶
</ul>¶
<p class="mb-2 last:mb-0">This behavior is easily steerable. While the model has a high success rate in parallel tool calling without prompting, you can boost this to ~100% or adjust the aggression level:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for maximum parallel efficiency</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><use_parallel_tool_calls>¶
If you intend to call multiple tools and there are no dependencies between the tool calls, make all of the independent tool calls in parallel. Prioritize calling tools simultaneously whenever the actions can be done in parallel rather than sequentially. For example, when reading 3 files, run 3 tool calls in parallel to read all 3 files into context at the same time. Maximize use of parallel tool calls where possible to increase speed and efficiency. However, if some tool calls depend on previous calls to inform dependent values like the parameters, do NOT call these tools in parallel and instead call them sequentially. Never use placeholders or guess missing parameters in tool calls.¶
</use_parallel_tool_calls></code></pre></div></div>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt to reduce parallel execution</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Execute operations sequentially with brief pauses between each step to ensure stability.</code></pre></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="thinking-and-reasoning"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Thinking and reasoning</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="overthinking-and-excessive-thoroughness"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Overthinking and excessive thoroughness</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Opus 4.6 does significantly more upfront exploration than previous models, especially at higher <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">effort</code> settings. This initial work often helps to optimize the final results, but the model may gather extensive context or pursue multiple threads of research without being prompted. If your prompts previously encouraged the model to be more thorough, you should tune that guidance for Claude Opus 4.6:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Replace blanket defaults with more targeted instructions.</strong> Instead of "Default to using [tool]," add guidance like "Use [tool] when it would enhance your understanding of the problem."</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Remove over-prompting.</strong> Tools that undertriggered in previous models are likely to trigger appropriately now. Instructions like "If in doubt, use [tool]" will cause overtriggering.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Use effort as a fallback.</strong> If Claude continues to be overly aggressive, use a lower setting for <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">effort</code>.</li>¶
</ul>¶
<p class="mb-2 last:mb-0">In some cases, Claude Opus 4.6 may think extensively, which can inflate thinking tokens and slow down responses. If this behavior is undesirable, you can add explicit instructions to constrain its reasoning, or you can lower the <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">effort</code> setting to reduce overall thinking and token usage.</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>When you're deciding how to approach a problem, choose an approach and commit to it. Avoid revisiting decisions unless you encounter new information that directly contradicts your reasoning. If you're weighing two approaches, pick one and see it through. You can always course-correct later if the chosen approach fails.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">For Claude Sonnet 4.6 specifically, switching from adaptive to extended thinking with a <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">budget_tokens</code> cap provides a hard ceiling on thinking costs while preserving quality.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="leverage-thinking-and-interleaved-thinking-capabilities"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Leverage thinking & interleaved thinking capabilities</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models offer thinking capabilities that can be especially helpful for tasks involving reflection after tool use or complex multi-step reasoning. You can guide its initial or interleaved thinking for better results.</p>¶
<p class="mb-2 last:mb-0">Claude Opus 4.6 uses <a class="inline-link" href="/docs/en/build-with-claude/adaptive-thinking">adaptive thinking</a> (<code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">thinking: {type: "adaptive"}</code>), where Claude dynamically decides when and how much to think. Claude Sonnet 4.6 supports both adaptive thinking and manual extended thinking with <a class="inline-link" href="/docs/en/build-with-claude/extended-thinking#interleaved-thinking">interleaved mode</a>. Claude calibrates its thinking based on two factors: the <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">effort</code> parameter and query complexity. Higher effort elicits more thinking, and more complex queries do the same. On easier queries that don't require thinking, the model responds directly. In internal evaluations, adaptive thinking reliably drives better performance than extended thinking. Consider moving to adaptive thinking to get the most intelligent responses.</p>¶
<p class="mb-2 last:mb-0">For Sonnet 4.6, consider trying adaptive thinking for workloads that require agentic behavior such as multi-step tool use, complex coding tasks, and long-horizon agent loops. If adaptive thinking doesn't fit your use case, manual extended thinking with interleaved mode remains supported. Older models use manual thinking mode with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">budget_tokens</code>.</p>¶
<p class="mb-2 last:mb-0">You can guide Claude's thinking behavior:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Example prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>After receiving tool results, carefully reflect on their quality and determine optimal next steps before proceeding. Use your thinking to plan and iterate based on this new information, and then take the best next action.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">The triggering behavior for adaptive thinking is promptable. If you find the model thinking more often than you'd like, which can happen with large or complex system prompts, add guidance to steer it:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Extended thinking adds latency and should only be used when it will meaningfully improve answer quality - typically for problems that require multi-step reasoning. When in doubt, respond directly.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">If you are migrating from <a class="inline-link" href="/docs/en/build-with-claude/extended-thinking">extended thinking</a> with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">budget_tokens</code>, replace your thinking configuration and move budget control to <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">effort</code>:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Before (extended thinking, older models)</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-sonnet-4-5-20250929"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">64000</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"enabled"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"budget_tokens"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">32000</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div></div>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">After (adaptive thinking)</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-opus-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">64000</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"adaptive"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> output_config</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"effort"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"high"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}, </span><span style="--shiki-light:#6E7781;--shiki-dark:#6A9955"># or max, medium, low</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div></div>¶
<p class="mb-2 last:mb-0">If you are not using extended thinking, no changes are required. Thinking is off by default when you omit the <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">thinking</code> parameter.</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Prefer general instructions over prescriptive steps.</strong> A prompt like "think thoroughly" often produces better reasoning than a hand-written step-by-step plan — Claude's reasoning frequently exceeds what a human would prescribe.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Multishot examples work with thinking.</strong> Use <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><thinking></code> tags inside your few-shot examples to show Claude the reasoning pattern. It will generalize that style to its own extended thinking blocks.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Manual CoT as a fallback.</strong> When thinking is off, you can still encourage step-by-step reasoning by asking Claude to think through the problem. Use structured tags like <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><thinking></code> and <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone"><answer></code> to cleanly separate reasoning from the final output.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Ask Claude to self-check.</strong> Append something like "Before you finish, verify your answer against [test criteria]." This catches errors reliably, especially for coding and math.</li>¶
</ul>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-accent-secondary-100 bg-accent-secondary-100/10 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-accent-secondary-100"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M10 2.5C14.1421 2.5 17.5 5.85786 17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5ZM10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5C13.5899 16.5 16.5 13.5899 16.5 10C16.5 6.41015 13.5899 3.5 10 3.5ZM10.1006 9.00977C10.3286 9.05629 10.5 9.25829 10.5 9.5V12.5H11.5C11.7761 12.5 12 12.7239 12 13C12 13.2761 11.7761 13.5 11.5 13.5H8.5C8.22386 13.5 8 13.2761 8 13C8 12.7239 8.22386 12.5 8.5 12.5H9.5V10H8.5C8.22386 10 8 9.77614 8 9.5C8 9.22386 8.22386 9 8.5 9H10L10.1006 9.00977ZM10 6.5C10.4142 6.5 10.75 6.83579 10.75 7.25C10.75 7.66421 10.4142 8 10 8C9.58579 8 9.25 7.66421 9.25 7.25C9.25 6.83579 9.58579 6.5 10 6.5Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-accent-secondary-000 [&_li]:before:text-accent-secondary-000/60 [&_blockquote]:border-l-accent-secondary-000/60 [&_code]:text-accent-secondary-000 [&_code]:bg-accent-secondary-000/10">When extended thinking is disabled, Claude Opus 4.5 is particularly sensitive to the word "think" and its variants. Consider using alternatives like "consider," "evaluate," or "reason through" in those cases.</div></div>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-accent-secondary-100 bg-accent-secondary-100/10 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-accent-secondary-100"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M10 2.5C14.1421 2.5 17.5 5.85786 17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5ZM10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5C13.5899 16.5 16.5 13.5899 16.5 10C16.5 6.41015 13.5899 3.5 10 3.5ZM10.1006 9.00977C10.3286 9.05629 10.5 9.25829 10.5 9.5V12.5H11.5C11.7761 12.5 12 12.7239 12 13C12 13.2761 11.7761 13.5 11.5 13.5H8.5C8.22386 13.5 8 13.2761 8 13C8 12.7239 8.22386 12.5 8.5 12.5H9.5V10H8.5C8.22386 10 8 9.77614 8 9.5C8 9.22386 8.22386 9 8.5 9H10L10.1006 9.00977ZM10 6.5C10.4142 6.5 10.75 6.83579 10.75 7.25C10.75 7.66421 10.4142 8 10 8C9.58579 8 9.25 7.66421 9.25 7.25C9.25 6.83579 9.58579 6.5 10 6.5Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-accent-secondary-000 [&_li]:before:text-accent-secondary-000/60 [&_blockquote]:border-l-accent-secondary-000/60 [&_code]:text-accent-secondary-000 [&_code]:bg-accent-secondary-000/10"><p class="mb-2 last:mb-0">For more information on thinking capabilities, see <a class="inline-link" href="/docs/en/build-with-claude/extended-thinking">Extended thinking</a> and <a class="inline-link" href="/docs/en/build-with-claude/adaptive-thinking">Adaptive thinking</a>.</p></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="agentic-systems"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Agentic systems</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="long-horizon-reasoning-and-state-tracking"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Long-horizon reasoning and state tracking</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models excel at long-horizon reasoning tasks with exceptional state tracking capabilities. Claude maintains orientation across extended sessions by focusing on incremental progress, making steady advances on a few things at a time rather than attempting everything at once. This capability especially emerges over multiple context windows or task iterations, where Claude can work on a complex task, save the state, and continue with a fresh context window.</p>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="context-awareness-and-multi-window-workflows"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Context awareness and multi-window workflows</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<p class="mb-2 last:mb-0">Claude 4.6 and Claude 4.5 models feature <a class="inline-link" href="/docs/en/build-with-claude/context-windows#context-awareness-in-claude-sonnet-4-6-sonnet-4-5-and-haiku-4-5">context awareness</a>, enabling the model to track its remaining context window (i.e. "token budget") throughout a conversation. This enables Claude to execute tasks and manage context more effectively by understanding how much space it has to work.</p>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Managing context limits:</strong></p>¶
<p class="mb-2 last:mb-0">If you are using Claude in an agent harness that compacts context or allows saving context to external files (like in Claude Code), consider adding this information to your prompt so Claude can behave accordingly. Otherwise, Claude may sometimes naturally try to wrap up work as it approaches the context limit. Below is an example prompt:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Your context window will be automatically compacted as it approaches its limit, allowing you to continue working indefinitely from where you left off. Therefore, do not stop tasks early due to token budget concerns. As you approach your token budget limit, save your current progress and state to memory before the context window refreshes. Always be as persistent and autonomous as possible and complete tasks fully, even if the end of your budget is approaching. Never artificially stop any task early regardless of the context remaining.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">The <a class="inline-link" href="/docs/en/agents-and-tools/tool-use/memory-tool">memory tool</a> pairs naturally with context awareness for seamless context transitions.</p>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="multi-context-window-workflows"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Multi-context window workflows</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<p class="mb-2 last:mb-0">For tasks spanning multiple context windows:</p>¶
<ol class="list-none pl-8 [counter-reset:item] [&_ul]:pl-8 [&_ol]:pl-8 [&_ol]:[counter-reset:item] mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Use a different prompt for the very first context window</strong>: Use the first context window to set up a framework (write tests, create setup scripts), then use future context windows to iterate on a todo-list.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Have the model write tests in a structured format</strong>: Ask Claude to create tests before starting work and keep track of them in a structured format (e.g., <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">tests.json</code>). This leads to better long-term ability to iterate. Remind Claude of the importance of tests: "It is unacceptable to remove or edit tests because this could lead to missing or buggy functionality."</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Set up quality of life tools</strong>: Encourage Claude to create setup scripts (e.g., <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">init.sh</code>) to gracefully start servers, run test suites, and linters. This prevents repeated work when continuing from a fresh context window.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Starting fresh vs compacting</strong>: When a context window is cleared, consider starting with a brand new context window rather than using compaction. Claude's latest models are extremely effective at discovering state from the local filesystem. In some cases, you may want to take advantage of this over compaction. Be prescriptive about how it should start:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">"Call pwd; you can only read and write files in this directory."</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">"Review progress.txt, tests.json, and the git logs."</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">"Manually run through a fundamental integration test before moving on to implementing new features."</li>¶
</ul>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Provide verification tools</strong>: As the length of autonomous tasks grows, Claude needs to verify correctness without continuous human feedback. Tools like Playwright MCP server or computer use capabilities for testing UIs are helpful.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Encourage complete usage of context</strong>: Prompt Claude to efficiently complete components before moving on:</p>¶
</li>¶
</ol>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>This is a very long task, so it may be beneficial to plan out your work clearly. It's encouraged to spend your entire output context working on the task - just make sure you don't run out of context with significant uncommitted work. Continue working systematically until you have completed this task.</code></pre></div></div>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="state-management-best-practices"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>State management best practices</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Use structured formats for state data</strong>: When tracking structured information (like test results or task status), use JSON or other structured formats to help Claude understand schema requirements</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Use unstructured text for progress notes</strong>: Freeform progress notes work well for tracking general progress and context</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Use git for state tracking</strong>: Git provides a log of what's been done and checkpoints that can be restored. Claude's latest models perform especially well in using git to track state across multiple sessions.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Emphasize incremental progress</strong>: Explicitly ask Claude to keep track of its progress and focus on incremental work</li>¶
</ul>¶
<div data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="overflow-hidden border border-border-300 rounded-lg my-6"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-controls="radix-_R_1duslfiuqkntiuuljb_" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_duslfiuqkntiuuljb_" class="group w-full flex items-center gap-2 p-4 text-left transparent hover:bg-bg-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-secondary-100 disabled:cursor-not-allowed disabled:opacity-50" data-radix-collection-item=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 256 256" class="text-text-500 transition-transform duration-200 flex-shrink-0 group-data-[state='open']:rotate-90" aria-hidden="true"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg><span class="font-semibold text-text-100 flex-1 font-ui">Example: State tracking</span></button></h3><div data-state="closed" id="radix-_R_1duslfiuqkntiuuljb_" hidden="" role="region" aria-labelledby="accordion-example:-state-tracking" data-orientation="vertical" class="overflow-hidden" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="balancing-autonomy-and-safety"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Balancing autonomy and safety</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Without guidance, Claude Opus 4.6 may take actions that are difficult to reverse or affect shared systems, such as deleting files, force-pushing, or posting to external services. If you want Claude Opus 4.6 to confirm before taking potentially risky actions, add guidance to your prompt:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Consider the reversibility and potential impact of your actions. You are encouraged to take local, reversible actions like editing files or running tests, but for actions that are hard to reverse, affect shared systems, or could be destructive, ask the user before proceeding.¶
¶
Examples of actions that warrant confirmation:¶
- Destructive operations: deleting files or branches, dropping database tables, rm -rf¶
- Hard to reverse operations: git push --force, git reset --hard, amending published commits¶
- Operations visible to others: pushing code, commenting on PRs/issues, sending messages, modifying shared infrastructure¶
¶
When encountering obstacles, do not use destructive actions as a shortcut. For example, don't bypass safety checks (e.g. --no-verify) or discard unfamiliar files that may be in-progress work.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="research-and-information-gathering"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Research and information gathering</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models demonstrate exceptional agentic search capabilities and can find and synthesize information from multiple sources effectively. For optimal research results:</p>¶
<ol class="list-none pl-8 [counter-reset:item] [&_ul]:pl-8 [&_ol]:pl-8 [&_ol]:[counter-reset:item] mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Provide clear success criteria</strong>: Define what constitutes a successful answer to your research question</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Encourage source verification</strong>: Ask Claude to verify information across multiple sources</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">For complex research tasks, use a structured approach</strong>:</p>¶
</li>¶
</ol>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for complex research</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Search for this information in a structured way. As you gather data, develop several competing hypotheses. Track your confidence levels in your progress notes to improve calibration. Regularly self-critique your approach and plan. Update a hypothesis tree or research notes file to persist information and provide transparency. Break down this complex research task systematically.</code></pre></div></div>¶
<p class="mb-2 last:mb-0">This structured approach allows Claude to find and synthesize virtually any piece of information and iteratively critique its findings, no matter the size of the corpus.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="subagent-orchestration"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Subagent orchestration</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models demonstrate significantly improved native subagent orchestration capabilities. These models can recognize when tasks would benefit from delegating work to specialized subagents and do so proactively without requiring explicit instruction.</p>¶
<p class="mb-2 last:mb-0">To take advantage of this behavior:</p>¶
<ol class="list-none pl-8 [counter-reset:item] [&_ul]:pl-8 [&_ol]:pl-8 [&_ol]:[counter-reset:item] mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Ensure well-defined subagent tools</strong>: Have subagent tools available and described in tool definitions</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Let Claude orchestrate naturally</strong>: Claude will delegate appropriately without explicit instruction</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Watch for overuse</strong>: Claude Opus 4.6 has a strong predilection for subagents and may spawn them in situations where a simpler, direct approach would suffice. For example, the model may spawn subagents for code exploration when a direct grep call is faster and sufficient.</li>¶
</ol>¶
<p class="mb-2 last:mb-0">If you're seeing excessive subagent use, add explicit guidance about when subagents are and aren't warranted:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for subagent usage</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Use subagents when tasks can run in parallel, require isolated context, or involve independent workstreams that don't need to share state. For simple tasks, sequential operations, single-file edits, or tasks where you need to maintain context across steps, work directly rather than delegating.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="chain-complex-prompts"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Chain complex prompts</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">With adaptive thinking and subagent orchestration, Claude handles most multi-step reasoning internally. Explicit prompt chaining — breaking a task into sequential API calls — is still useful when you need to inspect intermediate outputs or enforce a specific pipeline structure.</p>¶
<p class="mb-2 last:mb-0">The most common chaining pattern is <strong class="font-semibold">self-correction</strong>: generate a draft → have Claude review it against criteria → have Claude refine based on the review. Each step is a separate API call so you can log, evaluate, or branch at any point.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="reduce-file-creation-in-agentic-coding"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Reduce file creation in agentic coding</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models may sometimes create new files for testing and iteration purposes, particularly when working with code. This approach allows Claude to use files, especially python scripts, as a 'temporary scratchpad' before saving its final output. Using temporary files can improve outcomes particularly for agentic coding use cases.</p>¶
<p class="mb-2 last:mb-0">If you'd prefer to minimize net new file creation, you can instruct Claude to clean up after itself:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>If you create any temporary new files, scripts, or helper files for iteration, clean up these files by removing them at the end of the task.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="overeagerness"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Overeagerness</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Opus 4.5 and Claude Opus 4.6 have a tendency to overengineer by creating extra files, adding unnecessary abstractions, or building in flexibility that wasn't requested. If you're seeing this undesired behavior, add specific guidance to keep solutions minimal.</p>¶
<p class="mb-2 last:mb-0">For example:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt to minimize overengineering</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Avoid over-engineering. Only make changes that are directly requested or clearly necessary. Keep solutions simple and focused:¶
¶
- Scope: Don't add features, refactor code, or make "improvements" beyond what was asked. A bug fix doesn't need surrounding code cleaned up. A simple feature doesn't need extra configurability.¶
¶
- Documentation: Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident.¶
¶
- Defensive coding: Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs).¶
¶
- Abstractions: Don't create helpers, utilities, or abstractions for one-time operations. Don't design for hypothetical future requirements. The right amount of complexity is the minimum needed for the current task.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="avoid-focusing-on-passing-tests-and-hard-coding"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Avoid focusing on passing tests and hard-coding</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude can sometimes focus too heavily on making tests pass at the expense of more general solutions, or may use workarounds like helper scripts for complex refactoring instead of using standard tools directly. To prevent this behavior and ensure robust, generalizable solutions:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code>Please write a high-quality, general-purpose solution using the standard tools available. Do not create helper scripts or workarounds to accomplish the task more efficiently. Implement a solution that works correctly for all valid inputs, not just the test cases. Do not hard-code values or create solutions that only work for specific test inputs. Instead, implement the actual logic that solves the problem generally.¶
¶
Focus on understanding the problem requirements and implementing the correct algorithm. Tests are there to verify correctness, not to define the solution. Provide a principled implementation that follows best practices and software design principles.¶
¶
If the task is unreasonable or infeasible, or if any of the tests are incorrect, please inform me rather than working around them. The solution should be robust, maintainable, and extendable.</code></pre></div></div>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="minimizing-hallucinations-in-agentic-coding"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Minimizing hallucinations in agentic coding</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude's latest models are less prone to hallucinations and give more accurate, grounded, intelligent answers based on the code. To encourage this behavior even more and minimize hallucinations:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><investigate_before_answering>¶
Never speculate about code you have not opened. If the user references a specific file, you MUST read the file before answering. Make sure to investigate and read relevant files BEFORE answering questions about the codebase. Never make any claims about code before investigating unless you are certain of the correct answer - give grounded and hallucination-free answers.¶
</investigate_before_answering></code></pre></div></div>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="capability-specific-tips"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Capability-specific tips</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="improved-vision-capabilities"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Improved vision capabilities</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Opus 4.5 and Claude Opus 4.6 have improved vision capabilities compared to previous Claude models. They perform better on image processing and data extraction tasks, particularly when there are multiple images present in context. These improvements carry over to computer use, where the models can more reliably interpret screenshots and UI elements. You can also use these models to analyze videos by breaking them up into frames.</p>¶
<p class="mb-2 last:mb-0">One technique that has proven effective to further boost performance is to give Claude a crop tool or <a class="inline-link" href="/docs/en/agents-and-tools/agent-skills/overview">skill</a>. Testing has shown consistent uplift on image evaluations when Claude is able to "zoom" in on relevant regions of an image. Anthropic has created a <a class="inline-link" target="_blank" rel="noopener noreferrer" href="https://platform.claude.com/cookbook/multimodal-crop-tool">cookbook for the crop tool</a>.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="frontend-design"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Frontend design</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Opus 4.5 and Claude Opus 4.6 excel at building complex, real-world web applications with strong frontend design. However, without guidance, models can default to generic patterns that create what users call the "AI slop" aesthetic. To create distinctive, creative frontends that surprise and delight:</p>¶
<div class="flex w-full rounded-lg px-4 py-3 gap-1 items-start text-sm border-0.5 my-6 border-border-200 bg-bg-200 callout"><div class="flex mr-2 shrink-0 pt-[1.375px] text-text-000"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M12.5 17C12.7761 17 13 17.2239 13 17.5C13 17.7761 12.7761 18 12.5 18H7.5C7.22386 18 7 17.7761 7 17.5C7 17.2239 7.22386 17 7.5 17H12.5ZM10 2C13.3137 2 16 4.68629 16 8C16 9.73776 15.2608 11.3033 14.0811 12.3984L13.8389 12.6113C13.3268 13.0382 13 13.5753 13 14.124V15.5C13 15.7761 12.7761 16 12.5 16H7.5C7.22386 16 7 15.7761 7 15.5V14.124C6.99998 13.6438 6.7495 13.1727 6.34375 12.7764L6.16113 12.6113C4.84147 11.5115 4 9.85368 4 8C4 4.68629 6.68629 2 10 2ZM10 3C7.23858 3 5 5.23858 5 8C5 9.5443 5.69948 10.9248 6.80078 11.8428L7.03711 12.0557C7.57356 12.5787 7.99998 13.2899 8 14.124V15H9.5V11.207L7.14648 8.85352L7.08203 8.77539C6.95387 8.58131 6.97562 8.31735 7.14648 8.14648C7.31735 7.97562 7.58131 7.95387 7.77539 8.08203L7.85352 8.14648L10 10.293L12.1465 8.14648L12.2246 8.08203C12.4187 7.95387 12.6827 7.97562 12.8535 8.14648C13.0244 8.31735 13.0461 8.58131 12.918 8.77539L12.8535 8.85352L10.5 11.207V15H12V14.124C12 13.1706 12.5575 12.3776 13.1992 11.8428L13.4004 11.665C14.3848 10.7513 15 9.44786 15 8C15 5.23858 12.7614 3 10 3Z"></path></svg></div></div><div class="grow min-w-0 leading-relaxed [&>*:last-child]:mb-0 text-text-000 [&_li]:before:text-text-000/60 [&_blockquote]:border-l-text-000/60 [&_code]:text-text-000 [&_code]:bg-text-000/10"><p class="mb-2 last:mb-0">For a detailed guide on improving frontend design, see the blog post on <a class="inline-link" target="_blank" rel="noopener noreferrer" href="https://www.claude.com/blog/improving-frontend-design-through-skills">improving frontend design through skills</a>.</p></div></div>¶
<p class="mb-2 last:mb-0">Here's a system prompt snippet you can use to encourage better frontend design:</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="group flex items-center justify-between border-b-0.5 border-border-300 px-4 py-1.5 bg-bg-200"><div class="flex items-center gap-2 text-sm text-text-500">Sample prompt for frontend aesthetics</div><div class="flex items-center gap-1"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><pre class="inline-block min-w-full pr-4"><code><frontend_aesthetics>¶
You tend to converge toward generic, "on distribution" outputs. In frontend design, this creates what users call the "AI slop" aesthetic. Avoid this: make creative, distinctive frontends that surprise and delight.¶
¶
Focus on:¶
- Typography: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics.¶
- Color & Theme: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. Draw from IDE themes and cultural aesthetics for inspiration.¶
- Motion: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions.¶
- Backgrounds: Create atmosphere and depth rather than defaulting to solid colors. Layer CSS gradients, use geometric patterns, or add contextual effects that match the overall aesthetic.¶
¶
Avoid generic AI-generated aesthetics:¶
- Overused font families (Inter, Roboto, Arial, system fonts)¶
- Clichéd color schemes (particularly purple gradients on white backgrounds)¶
- Predictable layouts and component patterns¶
- Cookie-cutter design that lacks context-specific character¶
¶
Interpret creatively and make unexpected choices that feel genuinely designed for the context. Vary between light and dark themes, different fonts, different aesthetics. You still tend to converge on common choices (Space Grotesk, for example) across generations. Avoid this: it is critical that you think outside the box!¶
</frontend_aesthetics></code></pre></div></div>¶
<p class="mb-2 last:mb-0">You can also refer to the <a class="inline-link" target="_blank" rel="noopener noreferrer" href="https://github.com/anthropics/claude-code/blob/main/plugins/frontend-design/skills/frontend-design/SKILL.md">full skill definition</a>.</p>¶
<h2 class="font-heading leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="migration-considerations"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.175em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Migration considerations</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h2>¶
<p class="mb-2 last:mb-0">When migrating to Claude 4.6 models from earlier generations:</p>¶
<ol class="list-none pl-8 [counter-reset:item] [&_ul]:pl-8 [&_ol]:pl-8 [&_ol]:[counter-reset:item] mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Be specific about desired behavior</strong>: Consider describing exactly what you'd like to see in the output.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Frame your instructions with modifiers</strong>: Adding modifiers that encourage Claude to increase the quality and detail of its output can help better shape Claude's performance. For example, instead of "Create an analytics dashboard", use "Create an analytics dashboard. Include as many relevant features and interactions as possible. Go beyond the basics to create a fully-featured implementation."</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Request specific features explicitly</strong>: Animations and interactive elements should be requested explicitly when desired.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Update thinking configuration</strong>: Claude 4.6 models use <a class="inline-link" href="/docs/en/build-with-claude/adaptive-thinking">adaptive thinking</a> (<code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">thinking: {type: "adaptive"}</code>) instead of manual thinking with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">budget_tokens</code>. Use the <a class="inline-link" href="/docs/en/build-with-claude/effort">effort parameter</a> to control thinking depth.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Migrate away from prefilled responses</strong>: Prefilled responses on the last assistant turn are deprecated starting with Claude 4.6 models. See <a class="inline-link" href="#migrating-away-from-prefilled-responses">Migrating away from prefilled responses</a> for detailed guidance on alternatives.</p>¶
</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Tune anti-laziness prompting</strong>: If your prompts previously encouraged the model to be more thorough or use tools more aggressively, dial back that guidance. Claude 4.6 models are significantly more proactive and may overtrigger on instructions that were needed for previous models.</p>¶
</li>¶
</ol>¶
<p class="mb-2 last:mb-0">For detailed migration steps, see the <a class="inline-link" href="/docs/en/about-claude/models/migration-guide">Migration guide</a>.</p>¶
<h3 class="text-xl font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="migrating-from-claude-sonnet-4-5-to-claude-sonnet-4-6"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.08em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>Migrating from Claude Sonnet 4.5 to Claude Sonnet 4.6</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h3>¶
<p class="mb-2 last:mb-0">Claude Sonnet 4.6 defaults to an effort level of <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">high</code>, in contrast to Claude Sonnet 4.5 which had no effort parameter. Consider adjusting the effort parameter as you migrate from Claude Sonnet 4.5 to Claude Sonnet 4.6. If not explicitly set, you may experience higher latency with the default effort level.</p>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">Recommended effort settings:</strong></p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Medium</strong> for most applications</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Low</strong> for high-volume or latency-sensitive workloads</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]">Set a large max output token budget (64k tokens recommended) at medium or high effort to give the model room to think and act</li>¶
</ul>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">When to use Opus 4.6 instead:</strong> For the hardest, longest-horizon problems (large-scale code migrations, deep research, extended autonomous work), Opus 4.6 remains the right choice. Sonnet 4.6 is optimized for workloads where fast turnaround and cost efficiency matter most.</p>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="if-you-re-not-using-extended-thinking"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>If you're not using extended thinking</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<p class="mb-2 last:mb-0">If you're not using extended thinking on Claude Sonnet 4.5, you can continue without it on Claude Sonnet 4.6. You should explicitly set effort to the level appropriate for your use case. At <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">low</code> effort with thinking disabled, you can expect similar or better performance relative to Claude Sonnet 4.5 with no extended thinking.</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-sonnet-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">8192</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"disabled"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> output_config</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"effort"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"low"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div><div class="absolute top-3 right-3 z-10 bg-bg-100 rounded pointer-events-auto flex items-center gap-1 transition-opacity duration-200 opacity-100 md:opacity-0 md:group-hover:opacity-100"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="if-you-re-using-extended-thinking"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>If you're using extended thinking</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<p class="mb-2 last:mb-0">If you're using extended thinking on Claude Sonnet 4.5, it continues to be supported on Claude Sonnet 4.6 with no changes needed to your thinking configuration. Consider keeping a thinking budget around 16k tokens. In practice, most tasks don't use that much, but it provides headroom for harder problems without risk of runaway token usage.</p>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">For coding use cases</strong> (agentic coding, tool-heavy workflows, code generation):</p>¶
<p class="mb-2 last:mb-0">Start with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">medium</code> effort. If you find latency is too high, consider reducing effort to <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">low</code>. If you need higher intelligence, consider increasing effort to <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">high</code> or migrating to Opus 4.6.</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-sonnet-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">16384</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"enabled"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"budget_tokens"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">16384</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> output_config</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"effort"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"medium"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div><div class="absolute top-3 right-3 z-10 bg-bg-100 rounded pointer-events-auto flex items-center gap-1 transition-opacity duration-200 opacity-100 md:opacity-0 md:group-hover:opacity-100"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div>¶
<p class="mb-2 last:mb-0"><strong class="font-semibold">For chat and non-coding use cases</strong> (chat, content generation, search, classification):</p>¶
<p class="mb-2 last:mb-0">Start with <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">low</code> effort with extended thinking. If you need more depth, increase effort to <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">medium</code>.</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-sonnet-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">8192</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"enabled"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"budget_tokens"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">16384</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> output_config</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"effort"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"low"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div><div class="absolute top-3 right-3 z-10 bg-bg-100 rounded pointer-events-auto flex items-center gap-1 transition-opacity duration-200 opacity-100 md:opacity-0 md:group-hover:opacity-100"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div>¶
<h4 class="text-lg font-medium leading-[1.25] text-text-100"><div class="group relative pt-6 pb-2" id="when-to-try-adaptive-thinking"><div class="absolute hidden lg:flex lg:items-center lg:-ml-8 top-[calc(1.5rem+0.05em)]"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-6 w-6 rounded-md active:scale-95 opacity-0 group-hover:opacity-100 transition-opacity duration-200 text-text-500 hover:text-text-100 Button_ghost__BUAoh" type="button" aria-label="Copy link to clipboard" title="Copy link to clipboard" data-state="closed"><div class="inline" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="inline" aria-hidden="true"><path d="M13.6229 9.64789C13.8798 9.54672 14.1701 9.6724 14.2714 9.92914L15.2792 12.4878C16.0889 14.5432 15.0788 16.8666 13.0233 17.6763C11.0323 18.4603 8.79012 17.5367 7.91585 15.6098L7.83577 15.4204L6.82795 12.8618C6.72674 12.6048 6.85325 12.3145 7.11018 12.2133C7.36701 12.1122 7.65732 12.2379 7.75862 12.4946L8.76645 15.0532C9.37368 16.5947 11.1156 17.3528 12.6571 16.7456C14.1986 16.1384 14.9557 14.3965 14.3485 12.8549L13.3407 10.2963C13.2395 10.0395 13.3661 9.74917 13.6229 9.64789ZM8.90024 7.20842C9.15717 7.10721 9.44747 7.23372 9.54868 7.49065L11.3817 12.143C11.4826 12.3998 11.3563 12.6903 11.0995 12.7915C10.8426 12.8925 10.5523 12.766 10.451 12.5092L8.61898 7.85686C8.5178 7.59999 8.64342 7.30969 8.90024 7.20842ZM7.16975 2.25331C9.17539 1.57852 11.3796 2.58838 12.1639 4.5795L13.1718 7.13811C13.273 7.39504 13.1465 7.68534 12.8895 7.78655C12.6327 7.88749 12.3423 7.76113 12.2411 7.50432L11.2333 4.94571C10.6259 3.40439 8.88406 2.6471 7.3426 3.25429C5.80118 3.86161 5.04399 5.60345 5.65118 7.14494L6.659 9.70355C6.76021 9.96048 6.6337 10.2508 6.37677 10.352C6.11988 10.4531 5.82952 10.3266 5.72833 10.0698L4.7205 7.51116C3.91111 5.45581 4.92107 3.13323 6.97639 2.32362L7.16975 2.25331Z"></path></svg></div></button></div><div>When to try adaptive thinking</div><div class="absolute top-0 -right-6 hidden lg:flex"></div></div></h4>¶
<p class="mb-2 last:mb-0">The extended thinking paths above use <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">budget_tokens</code> for predictable token usage. If your workload fits one of the following patterns, consider trying <a class="inline-link" href="/docs/en/build-with-claude/adaptive-thinking">adaptive thinking</a> instead:</p>¶
<ul class="list-none pl-8 [&_ul]:pl-8 [&_ol]:pl-8 mb-4">¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Autonomous multi-step agents:</strong> coding agents that turn requirements into working software, data analysis pipelines, and bug finding where the model runs independently across many steps. Adaptive thinking lets the model calibrate its reasoning per step, staying on path over longer trajectories. For these workloads, start at <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">high</code> effort. If latency or token usage is a concern, scale down to <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">medium</code>.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Computer use agents:</strong> Claude Sonnet 4.6 achieved best-in-class accuracy on computer use evaluations using adaptive mode.</li>¶
<li class="mb-2 last:mb-0 relative before:absolute before:left-[-2rem] before:w-6 before:text-center [ul>&]:before:content-['•'] [ol>&]:before:content-[counter(item)'.'] [ol>&]:[counter-increment:item]"><strong class="font-semibold">Bimodal workloads:</strong> a mix of easy and hard tasks where adaptive skips thinking on simple queries and reasons deeply on complex ones.</li>¶
</ul>¶
<p class="mb-2 last:mb-0">When using adaptive thinking, evaluate <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">medium</code> and <code class="relative inline bg-bg-300 px-2 py-0.5 rounded text-sm font-mono break-words box-decoration-clone">high</code> effort on your tasks. The right level depends on your workload's tradeoff between quality, latency, and token usage.</p>¶
<div class="group relative my-6 rounded-lg bg-bg-000 overflow-hidden border-0.5 border-border-300"><div class="relative py-4 pl-4 font-mono text-sm md:text-sm overflow-x-auto code-block-scroll" tabindex="0"><div class="inline-block min-w-full pr-4"><pre class="shiki shiki-themes github-light-default dark-plus" style="--shiki-light:#1f2328;--shiki-dark:#f3f7f6;--shiki-light-bg:transparent;--shiki-dark-bg:transparent" tabindex="0"><code><span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">client.messages.create(</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> model</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"claude-sonnet-4-6"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> max_tokens</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#0550AE;--shiki-dark:#B5CEA8">64000</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">,</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> thinking</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"type"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"adaptive"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> output_config</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"effort"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"high"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">},</span></span>¶
<span class="line"><span style="--shiki-light:#953800;--shiki-dark:#9CDCFE"> messages</span><span style="--shiki-light:#CF222E;--shiki-dark:#f3f7f6">=</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">[{</span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"role"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"user"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">, </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"content"</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">: </span><span style="--shiki-light:#0A3069;--shiki-dark:#CE9178">"..."</span><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">}],</span></span>¶
<span class="line"><span style="--shiki-light:#1F2328;--shiki-dark:#f3f7f6">)</span></span></code></pre></div></div><div class="absolute top-3 right-3 z-10 bg-bg-100 rounded pointer-events-auto flex items-center gap-1 transition-opacity duration-200 opacity-100 md:opacity-0 md:group-hover:opacity-100"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Copy code"><div class="relative flex items-center justify-center"><div class="transition-opacity duration-200 text-text-500 opacity-100" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="transition-opacity duration-200 text-text-500 opacity-100" aria-hidden="true"><path d="M12.5 3C13.3284 3 14 3.67157 14 4.5V6H15.5C16.3284 6 17 6.67157 17 7.5V15.5C17 16.3284 16.3284 17 15.5 17H7.5C6.67157 17 6 16.3284 6 15.5V14H4.5C3.67157 14 3 13.3284 3 12.5V4.5C3 3.67157 3.67157 3 4.5 3H12.5ZM14 12.5C14 13.3284 13.3284 14 12.5 14H7V15.5C7 15.7761 7.22386 16 7.5 16H15.5C15.7761 16 16 15.7761 16 15.5V7.5C16 7.22386 15.7761 7 15.5 7H14V12.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5V12.5C4 12.7761 4.22386 13 4.5 13H12.5C12.7761 13 13 12.7761 13 12.5V4.5C13 4.22386 12.7761 4 12.5 4H4.5Z"></path></svg></div><div class="absolute transition-opacity duration-200 text-text-500 opacity-0" style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" class="absolute transition-opacity duration-200 text-text-500 opacity-0" aria-hidden="true"><path d="M15.1883 5.10908C15.3699 4.96398 15.6346 4.96153 15.8202 5.11592C16.0056 5.27067 16.0504 5.53125 15.9403 5.73605L15.8836 5.82003L8.38354 14.8202C8.29361 14.9279 8.16242 14.9925 8.02221 14.9989C7.88203 15.0051 7.74545 14.9526 7.64622 14.8534L4.14617 11.3533L4.08172 11.2752C3.95384 11.0811 3.97542 10.817 4.14617 10.6463C4.31693 10.4755 4.58105 10.4539 4.77509 10.5818L4.85321 10.6463L7.96556 13.7586L15.1161 5.1794L15.1883 5.10908Z"></path></svg></div></div></button></div></div><div class="not-prose mt-8 border-t border-border-300 pt-6"><p class="text-text-200 text-sm font-medium">Was this page helpful?</p><div class="mt-3 flex items-center gap-2"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Thumbs up" aria-pressed="false"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M9.56055 2C11.1381 2.00009 12.3211 3.44332 12.0117 4.99023L11.6094 7H13.8438C15.5431 7 16.836 8.52594 16.5566 10.2021L15.876 14.2842C15.6148 15.8513 14.2586 17 12.6699 17H4.5C3.67157 17 3 16.3284 3 15.5V9.23828C3.00013 8.57996 3.4294 7.99838 4.05859 7.80469L5.19824 7.4541L5.33789 7.40723C6.02983 7.15302 6.59327 6.63008 6.89746 5.9541L8.41113 2.58984L8.48047 2.46094C8.66235 2.17643 8.97898 2.00002 9.32324 2H9.56055ZM7.80957 6.36523C7.39486 7.2867 6.62674 7.99897 5.68359 8.3457L5.49219 8.41016L4.35254 8.76074C4.14305 8.82539 4.00013 9.01904 4 9.23828V15.5C4 15.7761 4.22386 16 4.5 16H12.6699C13.7697 16 14.7087 15.2049 14.8896 14.1201L15.5703 10.0381C15.7481 8.97141 14.9251 8 13.8438 8H11C10.8503 8 10.7083 7.9331 10.6133 7.81738C10.5184 7.70164 10.4805 7.54912 10.5098 7.40234L11.0312 4.79395C11.2167 3.86589 10.507 3.00009 9.56055 3H9.32324L7.80957 6.36523Z"></path></svg></div></button><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 Button_ghost__BUAoh" type="button" aria-label="Thumbs down" aria-pressed="false"><div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center"><svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg" style="flex-shrink:0" aria-hidden="true"><path d="M12.6699 3C14.2586 3 15.6148 4.14871 15.876 5.71582L16.5566 9.79785C16.836 11.4741 15.5431 13 13.8438 13H11.6094L12.0117 15.0098C12.3211 16.5567 11.1381 17.9999 9.56055 18H9.32324C8.97898 18 8.66235 17.8236 8.48047 17.5391L8.41113 17.4102L6.89746 14.0459C6.59327 13.3699 6.02983 12.847 5.33789 12.5928L5.19824 12.5459L4.05859 12.1953C3.4294 12.0016 3.00013 11.42 3 10.7617V4.5C3 3.67157 3.67157 3 4.5 3H12.6699ZM4.5 4C4.22386 4 4 4.22386 4 4.5V10.7617C4.00013 10.981 4.14305 11.1746 4.35254 11.2393L5.49219 11.5898L5.68359 11.6543C6.62674 12.001 7.39486 12.7133 7.80957 13.6348L9.32324 17H9.56055C10.507 16.9999 11.2167 16.1341 11.0312 15.2061L10.5098 12.5977C10.4805 12.4509 10.5184 12.2984 10.6133 12.1826C10.7083 12.0669 10.8503 12 11 12H13.8438C14.9251 12 15.7481 11.0286 15.5703 9.96191L14.8896 5.87988C14.7087 4.79508 13.7697 4 12.6699 4H4.5Z"></path></svg></div></button></div></div></article><nav class="hidden [@media(min-width:1470px)]:block sticky top-14 w-72 mr-4 self-start pt-8 pb-8" aria-label="Table of contents"><button class="inline-flex¶
items-center¶
justify-center¶
relative¶
shrink-0¶
can-focus¶
select-none¶
disabled:pointer-events-none¶
disabled:opacity-50¶
disabled:shadow-none¶
disabled:drop-shadow-none border-transparent¶
transition¶
font-base¶
duration-300¶
ease-[cubic-bezier(0.165,0.85,0.45,1)] h-8 w-8 rounded-md active:scale-95 mb-1 ml-1 p-0 Button_ghost__BUAoh" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 256 256" class="text-text-500/50 hover:text-text-300"><path d="M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"></path></svg></button><div class="relative"><div class="pointer-events-none absolute top-0 left-0 right-0 h-6 bg-gradient-to-b from-bg-100 to-transparent z-10 transition-opacity duration-200 opacity-0"></div><div class="pointer-events-none absolute bottom-0 left-0 right-0 h-6 bg-gradient-to-t from-bg-100 to-transparent z-10 transition-opacity duration-200 opacity-0"></div><div class="overflow-y-auto" style="max-height:calc(100vh - 172px)"><ul class="relative space-y-1 text-sm overflow-hidden"><li class=""><a href="#general-principles" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">General principles</a></li><li class="ml-3"><a href="#be-clear-and-direct" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Be clear and direct</a></li><li class="ml-3"><a href="#add-context-to-improve-performance" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Add context to improve performance</a></li><li class="ml-3"><a href="#use-examples-effectively" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Use examples effectively</a></li><li class="ml-3"><a href="#structure-prompts-with-xml-tags" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Structure prompts with XML tags</a></li><li class="ml-3"><a href="#give-claude-a-role" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Give Claude a role</a></li><li class="ml-3"><a href="#long-context-prompting" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Long context prompting</a></li><li class="ml-3"><a href="#model-self-knowledge" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Model self-knowledge</a></li><li class=""><a href="#output-and-formatting" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Output and formatting</a></li><li class="ml-3"><a href="#communication-style-and-verbosity" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Communication style and verbosity</a></li><li class="ml-3"><a href="#control-the-format-of-responses" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Control the format of responses</a></li><li class="ml-3"><a href="#la-te-x-output" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">LaTeX output</a></li><li class="ml-3"><a href="#document-creation" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Document creation</a></li><li class="ml-3"><a href="#migrating-away-from-prefilled-responses" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Migrating away from prefilled responses</a></li><li class=""><a href="#tool-use" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Tool use</a></li><li class="ml-3"><a href="#tool-usage" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Tool usage</a></li><li class="ml-3"><a href="#optimize-parallel-tool-calling" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Optimize parallel tool calling</a></li><li class=""><a href="#thinking-and-reasoning" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Thinking and reasoning</a></li><li class="ml-3"><a href="#overthinking-and-excessive-thoroughness" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Overthinking and excessive thoroughness</a></li><li class="ml-3"><a href="#leverage-thinking-and-interleaved-thinking-capabilities" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Leverage thinking & interleaved thinking capabilities</a></li><li class=""><a href="#agentic-systems" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Agentic systems</a></li><li class="ml-3"><a href="#long-horizon-reasoning-and-state-tracking" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Long-horizon reasoning and state tracking</a></li><li class="ml-3"><a href="#balancing-autonomy-and-safety" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Balancing autonomy and safety</a></li><li class="ml-3"><a href="#research-and-information-gathering" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Research and information gathering</a></li><li class="ml-3"><a href="#subagent-orchestration" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Subagent orchestration</a></li><li class="ml-3"><a href="#chain-complex-prompts" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Chain complex prompts</a></li><li class="ml-3"><a href="#reduce-file-creation-in-agentic-coding" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Reduce file creation in agentic coding</a></li><li class="ml-3"><a href="#overeagerness" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Overeagerness</a></li><li class="ml-3"><a href="#avoid-focusing-on-passing-tests-and-hard-coding" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Avoid focusing on passing tests and hard-coding</a></li><li class="ml-3"><a href="#minimizing-hallucinations-in-agentic-coding" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Minimizing hallucinations in agentic coding</a></li><li class=""><a href="#capability-specific-tips" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Capability-specific tips</a></li><li class="ml-3"><a href="#improved-vision-capabilities" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Improved vision capabilities</a></li><li class="ml-3"><a href="#frontend-design" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Frontend design</a></li><li class=""><a href="#migration-considerations" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Migration considerations</a></li><li class="ml-3"><a href="#migrating-from-claude-sonnet-4-5-to-claude-sonnet-4-6" class="block py-1 pl-3 transition-colors duration-200 hover:text-text-000 text-text-400">Migrating from Claude Sonnet 4.5 to Claude Sonnet 4.6</a></li></ul></div></div></nav></div><!--$--><!--/$--></div></body></html>