Skip to content

Replace CLAUDE.md copy with post_create lifecycle hook#27

Merged
nicksenap merged 2 commits intomasterfrom
feat/doc-updates
Apr 4, 2026
Merged

Replace CLAUDE.md copy with post_create lifecycle hook#27
nicksenap merged 2 commits intomasterfrom
feat/doc-updates

Conversation

@nicksenap
Copy link
Copy Markdown
Owner

Summary

  • Replace hardcoded CLAUDE.md copy + interactive prompt with post_create lifecycle hook
  • Legacy fallback copies from parent dir when no hook is configured (same deprecation pattern as on_close/Zellij)
  • Doctor nudges Claude Code users to migrate to the hook (gated on ~/.claude existing)

Users configure via:

[hooks]
post_create = "cp {path}/../CLAUDE.md {path}/CLAUDE.md 2>/dev/null || true"

Test plan

  • gw create without post_create hook copies CLAUDE.md from parent (legacy fallback)
  • gw create with post_create hook runs the hook instead
  • gw doctor only shows post_create nudge when ~/.claude exists
  • gw doctor still shows on_close nudge when Zellij is present

🤖 Generated with Claude Code

nicksenap and others added 2 commits April 4, 2026 18:42
Move CLAUDE.md copying from a standalone function with interactive
prompt to the post_create hook system. Legacy fallback copies from
parent dir when no hook is configured. Doctor nudges users to migrate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicksenap nicksenap merged commit 79084e5 into master Apr 4, 2026
2 checks passed
@nicksenap nicksenap deleted the feat/doc-updates branch April 4, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant