summaryrefslogtreecommitdiffhomepage
path: root/AGENTS.md
blob: 507cfea534dfecac9ebb5932785e26c412551e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## IMPORTANT

- Try to keep things in one function unless composable or reusable
- DO NOT do unnecessary destructuring of variables
- DO NOT use `else` statements unless necessary
- DO NOT use `try`/`catch` if it can be avoided
- AVOID `try`/`catch` where possible
- AVOID `else` statements
- AVOID using `any` type
- AVOID `let` statements
- PREFER single word variable names where possible
- Use as many bun apis as possible like Bun.file()

## Debugging

- To test opencode in the `packages/opencode` directory you can run `bun dev`