context: fork

Claude Code

Definition

A skill frontmatter option in Claude Code that runs the skill in an isolated sub-agent context with its own conversation history. Prevents verbose analysis or exploration output from polluting the main conversation context. The forked context is discarded when the skill completes.

Example Usage

Add 'context: fork' to large codebase exploration skills to keep the main conversation context clean and focused.