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
- Agent Prompt: /batch slash command (1106 tks) - Instructions for orchestrating a large, parallelizable change across a codebase.
- Agent Prompt: /code-review part 1 base finder angles (145 tks) - Line-by-line diff scan instructions for the /code-review slash command's finder-angle phase.
- Agent Prompt: /code-review part 10 ReportFindings output format (287 tks) - Output-format instructions for /code-review runs that report verified findings once through the ReportFindings tool with capped, severity-ranked findings.
- Agent Prompt: /code-review part 2 low effort minimum findings mode (532 tks) - Low-effort /code-review prompt that reads the diff once, targets at least min(files_changed, 4) hunk-visible runtime correctness findings, and performs one extra pass when short.
- Agent Prompt: /code-review part 2 low effort mode (345 tks) - Low-effort /code-review prompt that reads the diff once and returns up to four hunk-visible runtime correctness findings.
- Agent Prompt: /code-review part 3 extra-high and maximum effort modes (0 tks) - Extra-high and maximum-effort /code-review prompt that runs five finder angles, one-vote verification, a gap sweep, and capped JSON findings.
- Agent Prompt: /code-review part 4 three-state verification phase (98 tks) - Verification phase for /code-review that asks one agent verifier to classify each candidate as confirmed, plausible, or refuted.
- Agent Prompt: /code-review part 5 recall-biased verification phase (175 tks) - Recall-biased /code-review verification phase that treats realistic uncertain findings as plausible unless code refutes them.
- Agent Prompt: /code-review part 6 medium effort mode (0 tks) - Medium-effort /code-review prompt that favors precision with three finder angles, one-vote verification, and up to eight JSON findings.
- Agent Prompt: /code-review part 7 high effort mode (0 tks) - High-effort /code-review prompt that favors recall with three finder angles, recall-biased verification, and up to ten JSON findings.
- Agent Prompt: /code-review part 8 GitHub comment posting (152 tks) - Optional /code-review instructions for posting findings as GitHub inline PR comments when --comment is passed.
- Agent Prompt: /code-review part 9 fix application (250 tks) - Optional /code-review instructions for applying findings to the working tree when --fix is passed.
- Agent Prompt: /rename auto-generate session name (80 tks) - Prompt used by /rename (no args) to auto-generate a kebab-case session name from conversation context.
- Agent Prompt: /review slash command (422 tks) - Instructions for the /review command to review a GitHub pull request by gathering PR context and diff with gh, applying optional user instructions, and presenting verified findings.
- Agent Prompt: /schedule slash command (4303 tks) - Guides the user through scheduling, updating, listing, or running remote Claude Code agents on cron triggers via the Anthropic cloud API.
- Agent Prompt: /security-review slash command (2521 tks) - Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities.
- Agent Prompt: /simplify slash command (362 tks) - Instructions for the /simplify slash command that reviews changed code for reuse, simplification, efficiency, and altitude cleanups, then applies the fixes.
Utilities
- Agent Prompt: Agent Hook (122 tks) - Prompt for an 'agent hook'.
- Agent Prompt: Auto mode rule reviewer (292 tks) - Reviews and critiques user-defined auto mode classifier rules for clarity, completeness, conflicts, and actionability.
- Agent Prompt: Away summary generation (73 tks) - Prompts a no-tools away-summary generation run to recap the goal, current task, and next action when the user returns.
- Agent Prompt: Background agent state classifier (6237 tks) - Classifies the tail of a background agent transcript as working, blocked, done, or failed and returns concise state JSON.
- Agent Prompt: Background job agent instructions (427 tks) - Instructs the built-in background job agent to narrate progress, restate tool results, and emit explicit result, needs input, or failed status signals.
- Agent Prompt: Bash command description writer (207 tks) - Instructions for generating clear, concise command descriptions in active voice for bash commands.
- Agent Prompt: Bash command prefix detection ( tks) - System prompt for detecting command prefixes and command injection.
Data
The content of various template files embedded in Claude Code.
- Data: Anthropic CLI (4615 tks) - Reference documentation for the ant CLI covering installation, authentication, command structure, input and output shaping, managed agents workflows, and scripting patterns.
- Data: Background tasks changed event schema (237 tks) - Schema description for the background_tasks_changed system event and its replace-set semantics.
- Data: Claude API reference — C# (7777 tks) - C# SDK reference including installation, client initialization, basic requests, streaming, and tool use.
- Data: Claude API reference — Go (3268 tks) - Go SDK reference including installation, client initialization, model constants, basic requests, and thinking.
- Data: Claude API reference — Java (4620 tks) - Java SDK reference including installation, client initialization, basic requests, streaming, and beta tool use.
- Data: Claude API reference — PHP (2470 tks) - PHP SDK reference.
- Data: Claude API reference — Python ( tks) - Python SDK reference including installation, client initialization, basic requests, thinking, and multi-turn conversation.
System Prompt
Parts of the main system prompt.
System Reminders
Text for large system reminders.
Builtin Tool Descriptions
- Tool Description: Agent explicit-spawn restriction (0 tks) - Restricts agent spawning to explicit user requests or named agent types instead of inferred thoroughness.
- Tool Description: ArtifactTool (36 tks) - ArtifactTool: publishes an HTML or Markdown file as a claude.ai web page, private by default.
- Tool Description: Artifact (1218 tks) - Describes the Artifact tool for deploying self-contained HTML or Markdown pages, including file-first usage, update behavior, CSP constraints, responsive design, and favicon requirements.
- Tool Description: AskUserQuestion decision guidance (60 tks) - Additional guidance for using AskUserQuestion only when the user's answer changes what the agent should do next.
- Tool Description: AskUserQuestion (220 tks) - Tool description for asking user questions.
- Tool Description: Background monitor WebSocket source (300 tks) - Addendum to the background monitor tool description covering the WebSocket (ws) source, which opens a WebSocket and streams each incoming text frame as a notification event instead of running a shell command, with notes on binary frames, socket close, and rate limiting.
Additional notes for some Tool Descriptions
- Tool Description: Agent (simple usage notes) (537 tks) - Simplified usage notes for the Agent tool, including when to delegate, fork behavior, resumption, worktree isolation, background execution, parallel launches, and context restrictions.
- Tool Description: Agent (usage notes) (1255 tks) - Usage notes and instructions for the Task/Agent tool, including guidance on launching subagents, background execution, resumption, and worktree isolation.
- Tool Description: Agent (when to launch subagents) (0 tks) - Describes when to use the Agent tool - for launching specialized subagent subprocesses to autonomously handle complex multi-step tasks.
- Tool Description: AskUserQuestion (preview field) (134 tks) - Instructions for using the HTML preview field on single-select question options to display visual artifacts like UI mockups, code snippets, and diagrams.
- Tool Description: Background monitor (streaming events) (1425 tks) - Describes the background monitor tool that streams stdout events from long-running scripts as chat notifications, with guidelines on script quality, output volume, and selective filtering.
- Tool Description: Bash (Git commit and PR creation instructions) ( tks) - Instructions for creating git commits and GitHub pull requests.
Skills
Built-in skill prompts for specialized tasks.
- Skill: /code-review efficiency dimension (106 tks) - Code-review pass that surfaces wasted effort the diff adds — duplicate computation or I/O, avoidable serialization, large scopes held by closures — and points to the cheaper option.
- Skill: /design-sync package source shape (16174 tks) - Shape-specific /design-sync instructions for syncing a React design system from a built package without Storybook.
- Skill: /doctor slash command description (357 tks) - Trigger description for the /doctor slash command covering setup health, unused extensions, memory cleanup, hooks, updates, and permission prompts.
- Skill: /doctor slash command (15243 tks) - Diagnostic workflow for auditing and fixing Claude Code installation health, unused context, local and checked-in memory files, hooks, version currency, and permission prompts.
- Skill: /init CLAUDE.md and skill setup (new version) (7589 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 (182 tks) - Formats and displays the insights usage report results after the user runs the /insights slash command.
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.