Problem
Running openwiki init overwrites the project's existing AGENTS.md and CLAUDE.md files, destroying all user content silently.
These files often contain project-specific agent rules, skill configurations, and development guidelines that users have carefully maintained.
Expected Behavior
openwiki init should append the OpenWiki block (between <- If AGENTS.mdorCLAUDE.mdalready exists,openwiki init should OPENWIKI:START --> and <- If AGENTS.mdorCLAUDE.mdalready exists,openwiki init should OPENWIKI:END --> markers) to existing AGENTS.md / CLAUDE.md files, preserving all original content.
Actual Behavior
openwiki init silently replaces the entire content of AGENTS.md and CLAUDE.md with OpenWiki's boilerplate.
Steps to Reproduce
- Have a project with an existing
AGENTS.md or CLAUDE.md containing custom content.
- Run
openwiki init.
- Original file content is completely replaced.
Problem
Running
openwiki initoverwrites the project's existingAGENTS.mdandCLAUDE.mdfiles, destroying all user content silently.These files often contain project-specific agent rules, skill configurations, and development guidelines that users have carefully maintained.
Expected Behavior
openwiki initshould append the OpenWiki block (between<- IfAGENTS.mdorCLAUDE.mdalready exists,openwiki initshould OPENWIKI:START -->and<- IfAGENTS.mdorCLAUDE.mdalready exists,openwiki initshould OPENWIKI:END -->markers) to existingAGENTS.md/CLAUDE.mdfiles, preserving all original content.Actual Behavior
openwiki initsilently replaces the entire content ofAGENTS.mdandCLAUDE.mdwith OpenWiki's boilerplate.Steps to Reproduce
AGENTS.mdorCLAUDE.mdcontaining custom content.openwiki init.