summaryrefslogtreecommitdiff
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..641eb22
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,16 @@
+# Agent Notes (fleg-bout)
+
+## Commands
+- Install deps: `bun install`
+- Run bot locally: `timeout 5 bun run .`
+- Check types: `bun typecheck`
+- Tests: we don't do tests
+
+## Code Style
+- TypeScript ESM (`"type": "module"`); prefer `import type { ... }` for types.
+- Use 4-space indentation, double quotes, and semicolons.
+- Keep imports grouped and sorted: external first, then local.
+- Prefer `let`, early returns, and `async/await` over nested callbacks.
+- Handle `strict` TS + `noUncheckedIndexedAccess`: null-check before use.
+- Errors: `throw new Error(...)` (avoid throwing strings); log context, don’t log secrets.
+- Naming: `camelCase` for vars/functions, `PascalCase` for classes/types, `SCREAMING_SNAKE_CASE` for constants.