Skip to content

Piebald-AI/claude-code-system-prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

344 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Important

NEW (January 23, 2026): We've added all of Claude Code's ~40 system reminders to this list—see System Reminders.

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.114 (April 17th, 2026). It also contains a CHANGELOG.md for the system prompts across 157 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—110+ strings that are constantly changing and moving within a very large minified JS file.

Tip

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

  • lets you customize the 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.

System Prompt

Parts of the main system prompt.

System Reminders

Text for large system reminders.

Builtin Tool Descriptions

Additional notes for some Tool Descriptions

Skills

Built-in skill prompts for specialized tasks.

  • Skill: /dream nightly schedule (441 tks) - Sets up a recurring nightly memory consolidation job by deduplicating existing schedules, creating a new cron task, confirming details to the user, and running an immediate consolidation.
  • Skill: /init CLAUDE.md and skill setup (new version) (4618 tks) - A comprehensive onboarding flow for setting up CLAUDE.md and related skills/hooks in the current repository, including codebase exploration, user interviews, and iterative proposal refinement.
  • Skill: /insights report output (191 tks) - Formats and displays the insights usage report results after the user runs the /insights slash command.
  • Skill: /loop cloud-first scheduling offer (510 tks) - Decision tree for offering cloud-based scheduling before falling back to local session loops in the /loop command.
  • Skill: /loop self-pacing mode (638 tks) - Instructs Claude how to self-pace a recurring loop by arming event monitors as primary wake signals and scheduling fallback heartbeat delays between iterations.
  • Skill: /loop slash command (dynamic mode) (514 tks) - Parses user input into an interval and prompt for scheduling recurring or dynamically self-paced loop executions.
  • Skill: /loop slash command (969 tks) - Parses user input into an interval and prompt, converts the interval to a cron expression, and schedules a recurring task.
  • Skill: /stuck slash command (964 tks) - Diagnozse frozen or slow Claude Code sessions.
  • Skill: Agent Design Patterns (1974 tks) - Reference guide covering decision heuristics for building agents on the Claude API, including tool surface design, context management, caching strategies, and composing tool calls.
  • Skill: Build with Claude API (reference guide) (591 tks) - Template for presenting language-specific reference documentation with quick task navigation.
  • Skill: Building LLM-powered applications with Claude (8681 tks) - Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading.
  • Skill: Computer Use MCP (1206 tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions.
  • Skill: Create verifier skills (2551 tks) - Prompt for creating verifier skills for the Verify agent to automatically verify code changes.
  • Skill: Debugging (412 tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session.
  • Skill: Dynamic pacing loop execution (558 tks) - Step-by-step instructions for executing a dynamic pacing loop that runs tasks, arms persistent monitors for event-gated waits, schedules fallback heartbeat ticks, and handles task notifications.
  • Skill: Generate permission allowlist from transcripts (2338 tks) - Analyzes session transcripts to extract frequently used read-only tool-call patterns and adds them to the project's .claude/settings.json permission allowlist to reduce permission prompts.
  • Skill: Model migration guide (18052 tks) - Step-by-step instructions for migrating existing code to newer Claude models, covering breaking changes, deprecated parameters, per-SDK syntax, prompt-behavior shifts, and migration checklists.
  • Skill: Schedule recurring cron and execute immediately (compact) (173 tks) - Instructions for creating a recurring cron job, confirming the schedule with the user, and immediately executing the parsed prompt without waiting for the first cron fire.
  • Skill: Schedule recurring cron and run immediately (271 tks) - Converts an interval to a cron expression, schedules a recurring task via the cron creation tool, confirms to the user, and immediately executes the task without waiting for the first cron fire.
  • Skill: Simplify (877 tks) - Instructions for simplifying code.
  • Skill: Team onboarding guide (521 tks) - Template for onboarding a new teammate to a team's Claude Code setup, walking them through usage stats, setup checklists, MCP servers, skills, and team tips in a warm conversational style.
  • Skill: Update Claude Code Config (1190 tks) - Skill for modifying Claude Code configuration file (settings.json).
  • Skill: Verify CLI changes (example for Verify skill) (565 tks) - Example workflow for verifying a CLI change, as part of the Verify skill.
  • Skill: Verify server/API changes (example for Verify skill) (612 tks) - Example workflow for verifying a server/API change, as part of the Verify skill.
  • Skill: Verify skill (runtime-verification) (2696 tks) - Alias of the Verify skill registered under the /runtime-verification slash command name — identical content, different frontmatter invoke name.
  • Skill: Verify skill (2694 tks) - Skill for opinionated verification workflow for validating code changes.
  • Skill: update-config (7-step verification flow) (1160 tks) - A skill that guides Claude through a 7-step process to construct and verify hooks for Claude Code, ensuring they work correctly in the user's specific project environment.

About

All parts of Claude Code's system prompt, 24 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs, WebFetch, Bash cmd, security review, agent creation). Updated for each Claude Code version.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors