summaryrefslogtreecommitdiffhomepage
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-05 12:01:48 -0400
committerDax Raad <[email protected]>2025-08-05 12:01:48 -0400
commit3db8e7c2b66bd6efea1457d9a2fcd6c9bbc782a8 (patch)
tree7ba7ee4ae8250cece4ae70a0dd006161e5880f57 /AGENTS.md
parentb459055757636204e8967a91935b94ba89cfa90e (diff)
downloadopencode-3db8e7c2b66bd6efea1457d9a2fcd6c9bbc782a8.tar.gz
opencode-3db8e7c2b66bd6efea1457d9a2fcd6c9bbc782a8.zip
ci: send stats to posthog
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 0852d237a..cca69e4b6 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,13 +1,12 @@
-## Style
+## IMPORTANT
-- prefer single word variable/function names
-- avoid try catch where possible - prefer to let exceptions bubble up
-- avoid else statements where possible
-- do not make useless helper functions - inline functionality unless the
- function is reusable or composable
-- prefer Bun apis
-
-## Workflow
-
-- you can regenerate the golang sdk by calling ./scripts/stainless.ts
-- we use bun for everything
+- 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()