How to customize cody?

Hi, I did these for Cody’s behaviors.
I wrote these codes in cody_settings.json file and wrote these codes in tools > options > cody textArea empty field .visual studio 2022 restarted
but when i write in the chat area “cody hi can you tell me my instructions and the structure of my project. He gives me the reply “sorry I don’t know” I always have to write the instructions in every message to him thank you

path : C:\Project2024\ProjectCar\.idea.sourcegraph

{
“codyagentic.context.experimentalShell”: true,
“codyagentic.context.experimentalAdminOverride”: true,
“cody.agentic.context”: {
“shell”: {
“allow”: [“*”],
“block”: [“git”, “rm”, “chmod”, “shutdown”, “history”, “user”, “sudo”, “su”, “passwd”, “chown”, “chgrp”, “kill”, “reboot”, “poweroff”, “init”, “systemctl”, “journalctl”, “dmesg”, “lsblk”, “lsmod”, “modprobe”, “insmod”, “rmmod”, “lsusb”, “lspci”]
}
},
“cody.userContext”: {
“projectType”: “MVC 4.8”,
“noRazor”: true,
“language”: “Turkish”,
“responseStyle”: “concise”,
“avoidAspCore”: true,
“preferences”: {
“framework”: “MVC 4.8”,
“stepByStep”: true,
“language”: “Turkish”,
“preserveNaming”: true,
“showFullCode”: true,
“solutionStyle”: “incremental”
},
“instructions”: [
“I have a MVC 4.8 Framework web project, do it accordingly when creating a solution”,
“If you have more than one solution, don’t write them all at once, go step by step”,
“If there is more than one operation in the solution, don’t write them all at the same time, write the first step”,
“Speak Turkish with me”,
“Changing variable and method names in my code”,
“give the codes in full, including the lines you did not update, ”
]
}
}

Hey @serdar
Change the ’ instructions’ into `cody.chat.preInstruction’ this might help.
The Visual Studio extension is still in very experimental phase, so please be aware that some features may not still work.

1 Like