diff --git a/.dockerignore b/.dockerignore index 689e4416..1e5fa912 100644 --- a/.dockerignore +++ b/.dockerignore @@ -53,3 +53,9 @@ # Ignore test files /test/ + +# Agent session state — worktrees under .claude/worktrees/ are whole extra checkouts of this +# repo, and other .claude entries are local session files. The tracked .claude/CLAUDE.md must +# survive: Dockerfile-export packages this context into the writebook.zip customers download. +/.claude/* +!/.claude/CLAUDE.md