jongwony/cc-plugin/claude-code-internals
Claude Code and agent skill by jongwony/cc-plugin
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "explore claude code source", "find internal features", "investigate cli.js", "check beta headers", "discover hidden settings", or mentions "minified code analysis", "anthropic-beta headers", "context management internals".
Install
npx vskill@latest install jongwony/cc-plugin/claude-code-internalsSKILL.md
<constraints>
- Output limit: Always use
| head -N(SIGTRAP risk from session bloat) - Relative paths: Use
scripts/,references/(not absolute paths)
</constraints>
Claude Code Internals Explorer
Procedures for analyzing Claude Code's standalone binary.
Quick Start
Note: All script paths are relative to this skill's directory (where SKILL.md resides).
Delegate all binary exploration to subagent:
The subagent handles token-heavy strings output; main context receives only summarized findings.
Zero-Context Mode (Recommended)
Problem: Subagent output is recorded in session logs. Binary analysis can cause session file bloat → SIGTRAP crashes.
Solution: Write prompt to temp file, then execute via Headless CLI wrapper. Script internals are not logged; only final stdout is recorded.
Workflow
- Write prompt to temp file (supports multiline)
- Execute
scripts/analyze-binary.sh <prompt_file> [allowed_tools]
Script Interface
| Argument | Description | Default | |
|---|---|---|---|
$1 | Prompt file path (required) | - | |
$2 | Allowed tools (comma-separated) | Bash,Read,Glob,Grep |
The script injects BINARY_PATH automatically.
Example
Dynamic Prompting
The agent constructs prompts dynamically based on investigation context.
File naming convention: /tmp/internals_prompt_<unique_id>.txt
- Use
$$(PID) or UUID for parallel execution independence - Multiple concurrent investigations won't conflict
Tool Inheritance
Agent's tool restrictions are passed to Headless CLI via --allowedTools:
| Agent tools | Script invocation | |
|---|---|---|
[Bash, Read, Glob, Grep] | analyze-binary.sh /tmp/p.txt "Bash,Read,Glob,Grep" | |
[Read, Grep] | analyze-binary.sh /tmp/p.txt "Read,Grep" |
Why this works: Bash subagent executes the script as an external process. Only the script's stdout appears in session logs, not the intermediate 350K+ lines fromstrings.
Common Investigations
| Task | Approach | ||
|---|---|---|---|
| Check feature enabled | `strings $BINARY_PATH \ | grep "feature_name"` | |
| Find default values | See references/search-patterns.md Settings section | ||
| Discover new commands | See references/search-patterns.md Commands section | ||
| Compare release notes | Search mentioned features -> compare with references/known-features.md |
Resources
- scripts/find_installation.sh: Locate Claude Code binary
- references/search-patterns.md: Comprehensive search patterns by category
- references/known-features.md: Baseline of known features for comparison
Resource Map
| Resource | Path | Load When | |
|---|---|---|---|
| Zero-context analyzer | scripts/analyze-binary.sh | Recommended default | |
| Known features baseline | references/known-features.md | Comparing with new discoveries | |
| Search pattern library | references/search-patterns.md | Investigating specific category | |
| Installation finder | scripts/find_installation.sh | Starting investigation |
Tips
- Cache strings:
strings $BINARY_PATH > /tmp/claude-strings.txtonce, grep multiple times - Start narrow: Specific terms before broad exploration
- Chain searches: Find one string, search nearby for related code
- Clean up: Remove
/tmp/claude-strings.txtafter investigation
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-code-internals/skills/claude-code-internals/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jongwony/cc-plugin/claude-code-internals)