Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/teamspwk/nova/worktree-setupgit clone --depth 1 https://github.com/TeamSPWK/novaWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00042 | $0.01107 |
| Opus 5 | $0.00021 | $0.00553 |
| Sonnet 5 | $0.00008 | $0.00221 |
| Haiku 4.5 | $0.00004 | $0.00111 |
Grade A, and why
worktree-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
현재 worktree에서 메인 레포의 환경 파일을 즉시 다시 연결한다.
Role
너는 Nova의 환경 기둥 핸들러다. worktree 진입 후 환경변수·시크릿이 제대로 연결됐는지 확인하고, 누락되면 즉시 링크를 복구한다.
언제 사용하나
- worktree에서 작업하려는데
.env,.secret/,.npmrc가 보이지 않을 때 - SessionStart 훅이 어떤 이유로 실패했거나 메인 레포에 나중에 파일이 추가된 경우
/nova:worktree-setup --dry-run으로 어떤 파일이 링크될지 미리 보고 싶을 때
Execution
-
현재 위치 확인
git worktree list pwd- 현재 디렉토리가 메인 레포면 "메인 레포에서는 링크 불필요" 안내 후 종료
- worktree가 아니면 (단일 clone) "worktree 환경이 아닙니다" 안내 후 종료
-
hooks/worktree-setup.sh실행NOVA_WORKTREE_DEBUG=1 bash "$CLAUDE_PLUGIN_ROOT/hooks/worktree-setup.sh"NOVA_WORKTREE_DEBUG=1로 어떤 파일이 링크/skip됐는지 상세 로그 출력- 멱등하므로 여러 번 실행해도 안전
-
결과 확인
ls -la .env .env.local .env.development .secret .npmrc 2>/dev/null- 심볼릭 링크가 제대로 걸려있는지 확인
readlink로 링크 대상 경로 확인 (macOS:readlink file, Linux:readlink -f file)
-
사용자에게 결과 보고
🔗 Worktree 환경 셋업 결과 메인 레포: <경로> 현재 worktree: <경로> 링크됨: ✓ .env → ../main/.env ✓ .secret/ → ../main/.secret/ 스킵: - .npmrc (메인에 없음) - .env.local (이미 존재) 📝 오버라이드 필요 시: .claude/worktree-sync.json 생성
--dry-run 플래그
사용자가 --dry-run을 전달하면:
hooks/worktree-setup.sh를 실행하지 않는다- 대신 메인 레포의
.env,.env.local,.env.development,.secret/,.npmrc존재 여부만 확인하고 "링크 예정 / 메인에 없음 / 이미 존재"로 분류해 출력
오버라이드 가이드
기본 대상(5종) 외의 파일을 링크하려면 메인 레포에 .claude/worktree-sync.json을 생성한다:
{
"links": [".env", ".env.local", "config/secrets.json", ".envrc"]
}
links가 존재하면 기본값 대체(교체 방식)- 절대 경로(
/...)와 상위 이동(..)은 무시됨
환경 변경은 설정 파일 직접 수정 금지. 환경변수/CLI 플래그 우선 사용 (§9 환경 안전 규칙).
분기 ref 설정 (CC v2.1.133+)
이 커맨드는 셋업(메인 레포 시크릿 링크)만 담당한다. 워크트리가 어느 ref에서 분기할지(worktree.baseRef)는 Claude Code 설정 영역이다.
{ "worktree": { "baseRef": "head" } }
head(기본 권장) — 로컬 unpushed 커밋 포함fresh—origin/<default>에서 시작
상세는 skills/worktree-setup/SKILL.md의 "분기 ref 선택" 섹션 참조.
Notes
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 103 lines · 42 tokens per session scan A 6416cb54aba1
worktree-setup is a command published in the GitHub repository TeamSPWK/nova (2 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,107 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
loopx
Run the loopx setup helper and read its output.
grow-scanner
Autonomous task: increase real-world adoption of the AgentDiscover scanner.
gedd-chat
You are a GEDD coaching assistant. You guide the user through building a golden evaluation dataset for their AI agent using Open Coding methodology, then help them evaluate and annotate responses — all without leaving Claude Code.
gedd
You are a GEDD coaching agent. You guide a Domain Expert through building a golden evaluation dataset, deploy the agent, then hand off to an ML Engineer who wires it into a SageMaker MLflow production pipeline.
gedd-status
Read session.json (use the Read tool) and display a concise dashboard. If the file doesn't exist, say so and suggest running /gedd to start.
iteration-cap
Set the Second Pass iteration cap — the max number of revision attempts before the skill delivers the best attempt and stops. Accepts a positive integer.