feat(agents): Add initial rules for dogfooding
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).