spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

gemini used gemini.md instead of constitution.md

Open Paimon2806 opened this issue 1 year ago • 6 comments

If a project already has gemini initailized(init) then after initializing spec-kit with gemini. Its take gemini.md by default instead of constitution.md

@localden

Paimon2806 avatar Sep 11 '25 09:09 Paimon2806

Thanks for calling this out, @Paimon2806 - I'll spend some time trying to reproduce the issue.

localden avatar Sep 11 '25 17:09 localden

Would you like me to look into this futher? @localden We need gemini to add content that it would inside gemini.md

Paimon2806 avatar Sep 12 '25 06:09 Paimon2806

I believe that you can completely hijack Gemini's behavior by setting these environment variables: GEMINI_SYSTEM_MD and GEMINI_WRITE_SYSTEM_MD.

I was thinking that it would be better to have spec kit go in there and then it can set things up exactly without worrying about fighting with Gemini's internal prompts.

hendrix04 avatar Sep 12 '25 15:09 hendrix04

the workaround that I used for this is to put the line:

ALWAYS FOLLOW THE PROJECT CONSTITUTION; it can be found under memory/constitution.md

into GEMINI.md

stfines-clgx avatar Sep 13 '25 16:09 stfines-clgx

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Feb 12 '26 00:02 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Apr 03 '26 14:04 github-actions[bot]