You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running rtk init -g --gemini (and similar init commands) currently performs a full file overwrite of GEMINI.md or RTK.md, destroying any existing user notes or configuration in those files.
Steps to Reproduce
Create a ~/.gemini/GEMINI.md with some custom content.
Run rtk init -g --gemini.
Observe that your custom content has been replaced entirely by the RTK instructions.
Expected Behavior
RTK should manage its own block of instructions (using markers) and append or update only that block, preserving all other content in the file.
Proposed Fix
I have a fix ready that:
Implements upsert_write_rtk_block for instruction files.
Implements remove_rtk_block_from_file for safer uninstalls.
Uses markers <!-- rtk-instructions v2 --> to identify RTK's block.
Ensures all updates are atomic to prevent corruption.
PR incoming shortly.
Reacted by Lateef Alabi-Oki, Tyce Herrman, Mark McDonald and Arkadiy Zabazhanov
rtk init --gemini destructively overwrites GEMINI.md/RTK.md, losing user content; should upsert a marker-delimited block instead — PR incoming from reporter
Triaged automatically by wshm · This is an automated analysis, not a human review.
Just had this hit me too. Please add backups when editing files so, worst-case, you don't completely destroy someone's setup during your onboarding process.
Activity
pszymkowiak commentedon Mar 26, 2026
🔍 Automated Triage
bughighSummary
rtk init --gemini destructively overwrites GEMINI.md/RTK.md, losing user content; should upsert a marker-delimited block instead — PR incoming from reporter
Triaged automatically by wshm · This is an automated analysis, not a human review.
chore: split CLAUDE.md so codex and gemini read the same instructions
markmcd commentedon May 28, 2026
Just had this hit me too. Please add backups when editing files so, worst-case, you don't completely destroy someone's setup during your onboarding process.
fix(init): upsert GEMINI.md and migrate legacy RTK-only files