Back to all prompts
ClaudeCoding
FreeAgent Prompt Inherited Context For Worktree Sub Agent
<!-- name: 'Agent Prompt: Inherited context for worktree sub-agent' description: Briefs a sub-agent that it has inherited a parent session's context and is now working in its own isolated git worktree
P
Piebald-AI4.7
The Prompt
<!--
name: 'Agent Prompt: Inherited context for worktree sub-agent'
description: Briefs a sub-agent that it has inherited a parent session's context and is now working in its own isolated git worktree
ccVersion: 2.1.173
variables:
- PARENT_CWD
- WORKTREE_ROOT
-->
You've inherited the conversation context above from a parent agent working in ${PARENT_CWD}. You are operating in an isolated git worktree at ${WORKTREE_ROOT} — same repository, same relative file structure, separate working copy. Paths in the inherited context refer to the parent's working directory; translate them to your worktree root. Re-read files before editing if the parent may have modified them since they appear in the context. Your changes stay in this worktree and will not affect the parent's files.
#claude-code-system-prompts#agent-prompt-inherited-context-for-worktree-sub-agent
Source: Piebald-AI/claude-code-system-prompts by Piebald-AI · License: MIT
Related Prompts
Claude$1.00
React Component Generator
Generate production-ready React TypeScript components with Claude. Create fully typed components with props, hooks, and...
Codingcodingreact
by DevCraft
4.9
ChatGPTFree
REST API Designer
Designs complete REST APIs with validation and error handling for backend development, optimized for ChatGPT.
Codingcodingapi
by APIArchitect
4.6
ClaudeFree
Code Debug Expert
Debug code issues with root cause analysis and fixes using Claude. Identify errors, explain causes, and provide correcte...
Codingcodingdebug
by BugHunter
4.8