Prompts2026年3月29日·1 分钟阅读

Claude Code System Prompts — Full Extraction

Complete extraction of all Claude Code system prompts, 18 tool descriptions, sub-agent prompts, and utility prompts. Tracked across 135+ versions.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

  1. Visit the repository
  2. Browse by category: agent prompts, system prompts, tool descriptions, system reminders
  3. Check CHANGELOG.md for version-by-version changes

To customize Claude Code's prompts locally, use tweakcc.


介绍

A complete reverse-engineering of Claude Code's internal prompts — not one monolithic prompt, but 110+ dynamic strings that change based on environment and configuration. Extracted directly from compiled source code across 135+ versions (v2.0.14 to v2.1.86+). Essential reference for anyone building Claude Code skills, custom agents, or understanding how Anthropic instructs Claude Code. 6,900+ stars.


What's Included

Agent Prompts

Sub-agent system prompts for:

  • Explore — Fast codebase exploration agent
  • Plan — Software architecture planning agent
  • Slash commands: /batch, /pr-comments, /review-pr, /schedule, /security-review
  • Utility agents: memory consolidation, security monitoring, verification

System Prompts

Core behavioral instructions covering:

  • Auto/learning/minimal/plan modes
  • Tool usage policies and priorities
  • Task execution principles
  • Code safety and security guidelines
  • Delegation and agent spawning patterns

Builtin Tool Descriptions

Complete documentation for 18+ tools:

  • Read, Edit, Write — File operations
  • Bash — Shell execution with sandbox policies
  • Grep, Glob — Code search
  • Agent — Sub-agent spawning
  • WebFetch, WebSearch — Web access
  • TodoWrite, TaskCreate — Task management
  • Computer — Browser automation

System Reminders

~40 runtime context injections:

  • File modification notifications
  • IDE interaction context
  • Hook feedback handling
  • Plan mode activation
  • Token/budget tracking
  • Memory contents injection

Data Templates

Reference materials embedded in Claude Code:

  • Agent SDK patterns (Python/TypeScript)
  • Claude API references (C#, Go, Java, PHP, Python, Ruby, TypeScript)
  • GitHub Actions workflow templates
  • Prompt caching design patterns

Version Tracking

Every Claude Code release is tracked with a detailed changelog showing exactly what system prompt strings were added, modified, or removed. Star the repo to get notified of new versions.


来源与感谢

Author: Piebald-AI Repository: claude-code-system-prompts — ⭐ 6,900+ License: MIT

Thanks to the Piebald AI team for meticulously extracting and tracking Claude Code's internal prompt architecture.

相关资产