git worktree์์ ๋ฉ์ธ ๋ ํฌ์ ํ๊ฒฝ ์ค์ ์ด ํ์ํ ๋. โ MUST TRIGGER: ์ worktree ์ง์
์งํ, ์ฌ์ฉ์๊ฐ 'ํ๊ฒฝ๋ณ์ ์ ์ฝํยท์ํฌ๋ฆฟ ๋ชป ์ฐพ์'์ ๋ณด๊ณ ํ ๋, EnterWorktree ๋๊ตฌ ํธ์ถ ์งํ.
Use when the main repo's environment setup is needed inside a git worktree. โ MUST TRIGGER: right after entering a new worktree, when the user reports 'env vars not read' or 'secrets not found', or right after the EnterWorktree tool is called.
What problem does it solve?
git worktree๋ ๊ธฐ๋ณธ์ ์ผ๋ก .env, .secret/, .npmrc ๋ฑ๊ณผ ๊ฐ์ ํ์ผ๋ค์ ์ ์์
๋๋ ํ ๋ฆฌ๋ก ์๋ ๋ณต์ฌํ์ง ์์ผ๋ฏ๋ก ํ๊ฒฝ๋ณ์์ ์ํฌ๋ฆฟ์ด ์ฌ๋ผ์ง๋๋ค. ์ด ์คํฌ์ ๋ฉ์ธ ๋ ํฌ์ ํ๊ฒฝ ๊ตฌ์ฑ์ worktree์์๋ ๋์ผํ๊ฒ ์ฌ์ฉํ ์ ์๋๋ก ์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ํตํด ๊ฒฉ์ฐจ๋ฅผ ํด์ํฉ๋๋ค.
Core Features & Use Cases
- Automatic environment parity: SessionStart ํ
์ผ๋ก worktree ์ง์
์ ์๋์ผ๋ก ํ๊ฒฝ ํ์ผ์ ์ฐ๊ฒฐํฉ๋๋ค.
- Robust linking:
.env, .env.local, .env.development, .secret, .npmrc๋ฅผ worktree ๋ฃจํธ๋ก ์ฌ๋ณผ๋ฆญ ๋งํฌํฉ๋๋ค.
- Safety & overrides: ๊ธฐ์กด ํ์ผ์ ๋ฎ์ด์ฐ์ง ์๊ณ , ๊นจ์ง ์ฌ๋งํฌ๋ฅผ ๊ฐ์งํ๋ฉฐ
.claude/worktree-sync.json์ผ๋ก ํ๋ก์ ํธ ๋ณ ์ค๋ฒ๋ผ์ด๋๋ฅผ ์ง์ํฉ๋๋ค.
- Triggers & UX: ์๋ ํธ๋ฆฌ๊ฑฐ( SessionStart ) ๋ฐ ์๋ ํธ๋ฆฌ๊ฑฐ(
/nova:worktree-setup)๋ฅผ ๋ชจ๋ ์ง์ํฉ๋๋ค.
Quick Start
Enter a new worktree to automatically symlink the main repo's env files and secrets into the worktree.