In a git worktree session, a Write/Edit whose absolute path points at the
MAIN-REPO ROOT (the parent checkout) silently creates the file in that parent
checkout's working tree — on whatever branch it has checked out — NOT in your
worktree on your feature branch. The file then doesn't appear in `git status`
on your branch and `ls`/Read inside the worktree can't find it. Use when:
(1) the environment's "Primary working directory" is a worktree at
`<repo>/.claude/worktrees/<name>/`, (2) you're about to Write or Edit a file by
ABSOLUTE path (handoff doc, generated artifact, new source file), (3) you
habitually type the repo's canonical root path (`/.../<repo>/docs/...`) instead
of the worktree path (`/.../<repo>/.claude/worktrees/<name>/docs/...`),
(4) a later step reports "file does not exist" / a commit is missing files you
"just wrote" / `git status` is unexpectedly clean. Trap: the main repo root is
a real, writable checkout; writing there succeeds silently and pollutes the
parent's working tree (often on a stale sibling branch). Mitigation: in a
worktree, pass RELATIVE paths to Write/Edit (cwd is already the worktree), or
ensure every absolute path carries the `.claude/worktrees/<name>/` segment;
after writing, `ls` the file back via a relative path to confirm it's in the
worktree. See also: worktree-outer-ls-mistaken-for-main-state (the read-side
sibling), main-bash-cwd-persists-nested-worktree, subagent-bash-cd-wrong-worktree.
「EC と販売」の作業に使います。公開者の説明: In a git worktree session, a Write/Edit whose absolute path points at the MAIN-REPO ROOT (the parent checkout) silently creates the file in that parent check…
リクエスト例
“ストアの商品説明を更新して。”
エージェント
Claude Code, Codex, OpenCode ほか 32 エージェント 向けのコマンドがあります。
信頼できますか?
GitHub スター 5 · MIT。インストール前にソースを確認してください。
利用状況
過去 30 日間、サイトとエージェントでの利用。
0件のマイリストに登録
0回表示
0回コマンドをコピー
0回サイトからダウンロード
0回アプリからインストール
0回エージェントが自分でインストール
0人のアクティブユーザー
実利用スコアには ANG アプリから 20 人以上のユーザーと 50 件以上のタスクが必要です。現在 0 人、0 件。それまでは強さのスコアを掲載データから推定します。