ClaudeMod
Configs

Claude Code System Prompts

Curated CLAUDE.md system prompt variations for different coding styles and strictness levels — conservative, balanced, and aggressive modes with detailed trade-off notes.

Piebald AI13,257 starsAdded 9 months ago

[!tip] NEW! :tada: Real Claude Code Changelog

Claude Code's release notes only describe what Anthropic chooses to announce, not everything they actually change. Bug fixes sometimes ship in one version but get announced in another, and even significant features can go unmentioned entirely.

Read the changelog →

Check out Piebald

We've released Piebald, the ultimate agentic AI developer experience.
Download it and try it out for free! https://piebald.ai/

Join our Discord X

Scroll down for Claude Code's system prompts. 👇

Claude Code System Prompts

Mentioned in Awesome Claude Code

This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of Claude Code v2.1.331 (November 23rd, 2026). It also contains a CHANGELOG.md for the system prompts across 343 versions since v2.0.14. From the team behind Piebald.

This repository is updated within minutes of each Claude Code release. See the changelog, and follow @PiebaldAI on X for a summary of the system prompt changes in each release.

[!note] ⭐ Star this repository to get notified about new Claude Code versions. For each new Claude Code version, we create a release on GitHub, which will notify all users who've starred the repository.


Why multiple "system prompts?"

Claude Code doesn't just have one single string for its system prompt.

Instead, there are:

  • Large portions conditionally added depending on the environment and various configs.
  • Descriptions for builtin tools like Write, Bash, and TodoWrite, and some are fairly large.
  • Separate system prompts for builtin agents like Explore and Plan.
  • Numerous AI-powered utility functions, such as conversation compaction, CLAUDE.md generation, session title generation, etc. featuring their own systems prompts.

The result—500+ strings that are constantly changing and moving within a very large minified JS file.

[!important] Want to modify a particular piece of the system prompt in your own Claude Code installation? Use tweakcc. It—

  • lets you customize the individual pieces of the system prompt as markdown files, and then
  • patches your npm-based or native (binary) Claude Code installation with them, and also
  • provides diffing and conflict management for when both you and Anthropic have conflicting modifications to the same prompt file.

Extraction

This repository contains the system prompts extracted using a script from the latest npm version of Claude Code. As they're extracted directly from Claude Code's compiled source code, they're guaranteed to be exactly what Claude Code uses. If you use tweakcc to customize the system prompts, it works in a similar way—it patches the exact same strings in your local installation as are extracted into this repository.

Prompts

Note that some prompts contain interpolated bits such as builtin tool name references, lists of available sub agents, and various other context-specific variables, so the actual counts in a particular Claude Code session will differ slightly—likely not beyond ±20 tokens, however.

Agent Prompts

Sub-agents and utilities.

Sub-agents

Creation Assistants

Slash Commands

Utilities

Data

The content of various template files embedded in Claude Code.

  • Data: /auto-mode-setup usage (406 tks) - Defines /auto-mode-setup proposal and reviewed-apply command syntax, request ID ordering, save-target validation, and integrity requirements.
  • Data: Artifact MCP connector guidance (351 tks) - Explains how Artifact MCP manifests declare claude.ai, built-in, and host connectors and how to discover exact server and upstream tool names.
  • Data: Artifact ask-first intake form instructions (1622 tks) - Tells Claude to ask the user a few audience, scope and look questions through the Visualizer's question form before creating a slides or design Artifact, covering when to skip asking, how to build the form, what to do with the answers, and fallbacks if the form fails.
  • Data: Artifact ask-first intake without listed design systems (302 tks) - Adds Claude Code's intake instructions to an Artifacts MCP type reply and requires listing up to three design systems before asking about the look of a new deck or design.
  • Data: Artifact built-in connector guidance (277 tks) - Explains how an Artifact declares the built-in claude.ai connector and makes viewer features optional when session-only tools or policy-blocked tools are unavailable.
  • Data: Artifact capability verification pass (317 tks) - Requires one functional pass over a page's session-declared runtime capabilities before handing over its link, assembling the preview, database read and endpoint checks to run and what to report to the user.
  • Data: Artifact connector call observation requirement (305 tks) - Explains how to obtain connector argument names from the loaded tool schema, learn result shapes from safe real calls, and disclose shapes that cannot be verified before publishing.
  • Data: Artifact connector server naming guidance (273 tks) - Explains how connector tool prefixes map to manifest server identifiers and why in-page calls must use the resolved connector display name.
  • Data: Artifact host MCP server guidance (444 tks) - Explains how locally configured MCP servers may be declared as Artifact host servers and distinguishes them from Claude.ai connectors and built-in servers.
  • Data: Artifact runtime capability declarations (496 tks) - Defines Artifact runtime capability declaration, carry-forward, clearing, replacement, and contract pinning semantics.
  • Data: Auto-compact inputs changed event schema (221 tks) - Schema description for worker-resolved auto-compaction state events used by thin clients to display the effective compaction countdown.
  • Data: Background tasks changed event schema (374 tks) - Schema description for the background_tasks_changed system event and its replace-set semantics.
  • Data: Built-in gh stand-in api command help (1175 tks) - Usage text for Claude Code's built-in gh stand-in, which supports only gh api REST requests to GitHub hosts through the session's GitHub proxy, listing its flags and how {owner}, {repo} and {branch} placeholders are filled in.
  • Data: Chrome browser hints control request (207 tks) - Documents the set_chrome_browser_hints control request that tells a session which connected Claude in Chrome browser to prefer, and that the hints are session-only and never override the live relay roster.
  • Data: Claude API reference — PHP (3037 tks) - PHP SDK reference.
  • Data: Claude API reference — Ruby (2148 tks) - Ruby SDK reference including installation, client initialization, basic requests, streaming, and beta tool runner.
  • Data: Claude Code agent proxy troubleshooting guide (2494 tks) - Troubleshooting guide for Claude Code's policy-enforcing HTTPS agent proxy, covering TLS trust setup, status checks, git, docker, and unsupported traffic.
  • Data: Claude Code gateway customer-routed inference protocol (2945 tks) - Conditional extension to the Claude Code gateway protocol defining customer-routed inference authentication, forwarding, response hygiene, error recovery, policy blocking, discovery, and endpoint requirements.
  • Data: Claude Code gateway protocol (9964 tks) - Markdown reference documenting the Claude Code gateway wire contract, including OAuth 2.0 device flow, RFC 8414 discovery, Messages API inference, managed settings, model discovery, OTLP telemetry, error envelopes, TLS certificate pinning, and proxying to Bedrock, Vertex, and Foundry.
  • Data: Claude Code live documentation sources (2477 tks) - WebFetch URLs for fetching current Claude Code documentation from official sources.
  • Data: Claude Code recent changes reference (1854 tks) - Reference mapping of recently removed or renamed Claude Code commands, flags, and terms to their current replacements.
  • Data: Claude Platform on AWS reference (1913 tks) - Reference documentation for using the Claude Developer Platform through AWS infrastructure, including AnthropicAWS clients, required region and workspace configuration, SigV4 authentication, and short-term API keys.
  • Data: Claude Tag (Claude in Slack) reference (1999 tks) - Offline reference for Claude Tag, Claude Code's org-managed Slack surface, covering what it is, availability, setup, configuration, and how it differs from the earlier Claude in Slack app.
  • Data: Claude gateway landing page (392 tks) - HTML status page served at a Claude Code gateway root, showing the gateway logo, the running gateway URL, the identity-provider host, an OAuth discovery link, and the gateway version.
  • Data: Cloud session unverified remote branch push notice (290 tks) - Notice shown when no remote of the checkout could be read, so it could not be checked whether the current branch or detached HEAD commit exists on the remote host, telling the user to push their work to a branch and start a new cloud session from it.
  • Data: Code change published event schema (349 tks) - Schema description for the code_change_published system event, including provenance, idempotency, trust boundaries, and best-effort delivery.
  • Data: Code review startup token file descriptor error (313 tks) - Stderr error printed when a code review run does not get its two tokens on file descriptors 4 and 5, listing runner version, exec wrapper and token variable causes.
  • Data: Command plugin source command field (160 tks) - Describes the command field for command-based plugin sources, including its one-line directory output contract, cache-copy lifecycle, platform shell, and re-resolution behavior.
  • Data: Conversation resume requires active organization settings (264 tks) - Explains how to restart under the organization required to resume a saved conversation when its settings aren't active.
  • Data: Cowork plugin MCP discovery and connection (1746 tks) - Reference guidance for finding MCP connectors during plugin customization, using search and suggestion tools, mapping categories to keywords, and writing .mcp.json entries.
  • Data: Cowork plugin examples (3158 tks) - Reference examples of minimal, medium, and complex Cowork plugin structures with plugin metadata, skills, agents, hooks, MCP config, README, and connectors.
  • Data: Cross-session inbound setting (175 tks) - Describes crossSessionInbound delivery, hold, refusal, and permission-mode parity behavior for peer messages.
  • Data: Data visualization anti-patterns (2436 tks) - Reference list of chart and dashboard anti-patterns to check against before shipping a data visualization.
  • Data: Data visualization choosing a form (1872 tks) - Reference guidance for choosing the appropriate chart, stat tile, or non-chart form based on the data's job.
  • Data: Data visualization components (899 tks) - Reference specification for the HTML/SVG pieces, layers, and system parameters that make up a data visualization.
  • Data: Data visualization interaction (1318 tks) - Reference guidance for chart hover layers, tooltips, filters, linked highlighting, and interaction behavior.
  • Data: Data visualization marks and anatomy (2604 tks) - Reference specifications for chart marks, spacing, labels, axes, legends, and stat-tile anatomy.
  • Data: Dialog expiry setting (204 tks) - Describes dialogExpiry deadlines for remote permission dialogs and held cross-session messages, including defaults and overrides.
  • Data: DirectoryAdded hook description (216 tks) - Describes when the DirectoryAdded hook fires, its input fields, and how failures and output are handled for add-dir and register_repo_root sources.
  • Data: Files API reference — C# (378 tks) - C# Files API reference including beta file upload and use with beta message types.
  • Data: Files API reference — Go (413 tks) - Go Files API reference including file upload, listing, deletion, and usage in messages.
  • Data: Files API reference — Java (475 tks) - Java Files API reference including file upload, beta message references, listing, deletion, download, and metadata retrieval.
  • Data: Files API reference — PHP (186 tks) - PHP Files API reference with a beta-era upload example and a warning that current SDKs use the stable Files API shape.
  • Data: Files API reference — Python (1719 tks) - Python Files API reference including file upload, listing, deletion, and usage in messages.
  • Data: Files API reference — TypeScript (980 tks) - TypeScript Files API reference including file upload, listing, deletion, and usage in messages.
  • Data: Gateway GovCloud upstream isolation warning (286 tks) - Gateway startup warning that developers can reach both GovCloud and other upstreams and recommends disjoint upstream groups and developer memberships to prevent conversations crossing that boundary.
  • Data: Gateway device code entry page (261 tks) - HTML verification page served at a gateway device endpoint, prompting the user to enter the short device code shown by Claude Code so they can sign in through their company identity provider.
  • Data: Gateway ignored X-Forwarded-For warning (360 tks) - Gateway startup warning that an X-Forwarded-For header was ignored because the requesting address is not covered by listen.trusted_proxies, and what to configure when a load balancer or ingress fronts the gateway.
  • Data: Gateway model policy overlap warning (230 tks) - Gateway startup warning that family or prefix matching lets other managed policies use a custom model and recommends group-restricted upstreams or a nonmatching model name.
  • Data: Get task output control request (201 tks) - Schema description for the get_task_output control request that reads the last 8 KiB of a background shell or Monitor task's output without a model turn, and when it is refused.
  • Data: GitHub Actions workflow for @claude mentions (525 tks) - GitHub Actions workflow template for triggering Claude Code via @claude mentions.
  • Data: GitHub App installation PR description (409 tks) - Template for PR description when installing Claude Code GitHub App integration.
  • Data: Hook classifier context field (654 tks) - Schema description for the classifierContext hook response field, including trust semantics, size and timing limits, transcript visibility, and rewrite-integrity requirements.
  • Data: Hook mcp_server field (312 tks) - Describes the mcp_server object attached to tool-related hook payloads — the server's config key and the source its definition came from — and why trust must key on source rather than on the server name or tool-name prefix.
  • [Data: Interrupt cancel queued paramet

Details

GitHub Stars
13,257
Added
9 months ago
Last synced
today

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Configs

awesome-claude-code
Configs

awesome-claude-code

The definitive curated list of Claude Code resources: tools, workflows, tricks, MCP servers, and community projects. Community-maintained with 21k+ stars.

by hesreallyhim
Configs

Karpathy Coding Principles (CLAUDE.md)

Battle-tested CLAUDE.md behavioral guidelines codifying Andrej Karpathy's 4 core LLM coding principles.

by Forrest Chang
Claude Starter Kit
Configs

Claude Starter Kit

serpro69's opinionated starter config for Claude Code — batteries-included CLAUDE.md with git conventions, commit message format, test requirements, and style guides.

by serpro69

Command Palette

Search for a command to run...