Claude Code Internals

A skill that lets Claude answer questions about how Claude Code, the Claude Desktop app and Claude Cowork actually work, from knowledge read out of the shipping binaries rather than guessed from the docs.


Claude knows how to use Claude Code, but not how it works inside: why a hook didn't fire, where a file your skill wrote actually went, why the agent can't delete a file in Cowork. Those answers usually aren't in the docs. This skill gives Claude 254 lessons on those internals, each checked against the released binaries and stamped with the version it was measured on. It works in Claude Code (the CLI), the Claude Desktop app (the Code tab and Cowork), and claude.ai.
An example
Once it's installed, ask your question after the skill's name:
/claude-code-internals What determines which files are displayed to the user at the end of a response?
Claude looks up the relevant lessons and answers for your setup. A real answer, trimmed:
It depends on which lane the session runs in (corpus baseline v2.1.231, with Cowork facts measured up to Desktop 2.9939.4 / agent 2.1.284). The plain terminal CLI has no end-of-response file display at all; it only prints text. The file cards shown at the end of a turn are a Cowork/Desktop feature, and each lane decides them differently.
| Lane | What makes a file show up |
|---|
| Local Cowork (Desktop) | Where the file is: the session's outputs/ directory is itself the delivery channel. present_files shows a file explicitly as a card; it only accepts files under outputs, uploads, or a connected folder. |
| Cloud Cowork | Delivery is an action, not a place. Calling SendUserFile produces the file card. |
| claude.ai chat | Writing to /mnt/user-data/outputs. |
| CLI / Claude Code on the web | Nothing is presented. Files just sit in the repo or working directory. |
Path forms (local Cowork). The file tools need the host-absolute outputs path. Bash starts at /sessions/<id> and needs /sessions/<id>/mnt/outputs/.... Anything bash writes elsewhere, including /tmp, never reaches the user. …
Sources: state page cowork-architecture, and lessons 107, 114, 139, 164 and 198.
Read more: https://ccinternals.dev/cowork/delivering-outputs/
You don't have to type the skill's name: Claude also reaches for it on its own when a question is about Claude Code's or Cowork's internals.
What you can ask
The questions below come from the skill's own index, which lists the questions each lesson answers.
Writing skills and plugins
- Why did my skill vanish mid-session? (compaction caps on skill content)
- Skill description gets cut off in the list: why?
- Why can't Cowork resume a subagent?
- Which skill tools does a Cowork session actually see?
Hooks, permissions and settings
- What does exit code 2 mean for hooks?
- How many hook events are there now?
- How do I make Claude think harder, and why does the effort level keep resetting?
Sessions, context and agents
- What happens when the context window fills up?
- Can I resume a completed subagent?
Claude Desktop and Cowork
- Why can't the agent delete files in my folder? ("rm says operation not permitted")
- Which folder does the shell start in, and why don't files the shell saved show up?
- Why did a cloud task save the file to the cloud instead of my laptop?
- Where does the Cowork effort level come from?
Answers name the version they were measured on and say which lane they apply to (terminal CLI, local Cowork, cloud Cowork) when it matters.
Who it's for: people writing skills, plugins, hooks or MCP servers for Claude Code and Cowork; teams building on Claude Code headless or through the Agent SDK; anyone debugging behavior the docs don't explain. For plain-language guidance on writing skills that work in Cowork, see ccinternals.dev/cowork, a companion site built from the same research.
Install
Claude Desktop
