In vs code there is a setting → Cody › Chat: Pre Instruction
A custom instruction to be included at the start of all chat messages (e.g. “Answer all my questions in Spanish.”)
Adding “@somedirectory/my_text_file” doesn’t work so I need to manually add it for every new chat.
How can I specify a default minimum context for a project?
Hey @Rob-bb I’m not sure if you are the same user in Discord and I already answered this but the only workaround is to utilize the Prompt Library and put your files into the prompt and trigger that prompt within your IDE. With this method and if all context files stay the same for every chat, this will work pretty well. I use the same technique to reference docs or additional instructions to the model.
What I sometimes also do, is to use the “open tabs” context in the prompt library to automatically add all open tabs from the editor into the context.
I hope that helps.
1 Like