Commit 00c10b0
* feat: CLAUDE.md preservation during UVX deployment (Issue #1746)
Preserves user's custom CLAUDE.md when installing amplihack via uvx by backing it up to .claude/context/PROJECT.md before replacing with amplihack's version.
Changes:
- Added claude_md_preserver module with state detection and dual backup strategy
- Version marker in CLAUDE.md for detection (<!-- amplihack-version: 0.9.0 -->)
- Integration into copytree_manifest() and UVX deployment in cli.py
- Comprehensive test suite (37 tests, 12 passing - TDD approach)
- Security: Path validation and symlink protection
- Idempotent: Safe to run multiple times
- Documentation: Complete user guide in docs/features/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: Run CLAUDE.md preservation before PROJECT.md init to preserve content
Changed order in cli.py so claude_md_preserver runs BEFORE project_initializer.
Also changed project_initializer mode from FORCE to AUTO to preserve existing content.
This ensures custom CLAUDE.md content ends up in PROJECT.md, not PROJECT.md.bak.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent c1c05f0 commit 00c10b0
File tree
6 files changed
+1879
-21
lines changed- docs/features
- src/amplihack
- utils
- tests/unit
6 files changed
+1879
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
688 | 690 | | |
689 | 691 | | |
690 | 692 | | |
691 | | - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
692 | 696 | | |
693 | 697 | | |
694 | 698 | | |
| |||
0 commit comments