cody icon indicating copy to clipboard operation
cody copied to clipboard

feat(agents): Add initial rules for dogfooding

Open sayansisodiya opened this issue 1 year ago • 7 comments

What

Add initial set of rules from sandbox repo to sg/cody for dogfooding. These rules are now pulled in as context for Cody chats/edits on relevant files, and they are defined in *.rule.md files in .sourcegraph/ dirs around the repo.

I put general rules in the topmost .sourcegraph/ dir, and more specific rules at the relevant dir levels.

Also enabled rules in settings.json by default, so they should be used when debugging Cody locally.

Why

We need to dogfood these rules internally. We need more info on what sort of rules are helpful, unobtrusive, and don't have too many false positives/negatives. This will guide how we create, apply, and organize rules going forward.

Test plan

CI & tested rules locally. Ensured that rules are enabled by default when debugging Cody locally (i.e., even when user hasn't explicitly set "cody.rules.enabled": true in their settings.json).

sayansisodiya avatar Feb 12 '25 04:02 sayansisodiya