Skip to content

Commit 33661ae

Browse files
committed
Add base/cvd/.agents/AGENTS.md
This applies some short guidelines to make AI development produce better output by running the tools that can catch their mistakes. Bug: b/524730723
1 parent dc7985b commit 33661ae

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

base/cvd/.agents/AGENTS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Workspace Guidelines
2+
3+
This is a bazel workspace.
4+
5+
## Git Workflow
6+
- Please add an "Assisted-by:" tag to git commits you create with the format: `Assisted-by: AGENTNAME:MODELVERSION`
7+
- After modifying BUILD.bazel files, please format them with `buildozer '//cuttlefish/...:__pkg__' format`
8+
- Every commit should be validated. Please validate changes by running `bazel build //...` and `bazel test //...`.
9+
- To fix clang-format tests, run the `clang-format` executable directly.
10+
11+
## Style Rules
12+
- Use type deduction (`auto`) only if it makes the code clearer to readers who aren't familiar with the project, or if it makes the code safer. Do not use it merely to avoid the inconvenience of writing an explicit type.
13+
- Declare variables `const` if they are not modified after being declared.

0 commit comments

Comments
 (0)