summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2026-01-20 11:06:10 +0100
committerMathias Magnusson <mathias@magnusson.space>2026-01-20 11:06:32 +0100
commite7306a6703e353ea0acd5ba07d4d1db2827890c5 (patch)
tree5f8abae67177ea5a883f253e717f7292fb9e0247
parentcbad25b86a2708a59442c8e3706d8f2211eccc9a (diff)
downloadchalle-anka-e7306a6703e353ea0acd5ba07d4d1db2827890c5.tar.gz
tell the bots about the bot a bit differently
-rw-r--r--AGENTS.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 641eb22..0121e19 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,16 +1,17 @@
-# Agent Notes (fleg-bout)
+# Agent Notes (flagboat)
## Commands
- Install deps: `bun install`
-- Run bot locally: `timeout 5 bun run .`
- Check types: `bun typecheck`
-- Tests: we don't do tests
+- Run bot locally: `timeout 5 bun run .`
+- Tests: WE DON'T DO TESTS!
## Code Style
-- TypeScript ESM (`"type": "module"`); prefer `import type { ... }` for types.
+- TypeScript ESM (`"type": "module"`).
+- Always use `import type { ... }` or `import { type ... }` when possible.
- 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.
+- Prefer `let` over `const`, `async/await` over nested callbacks, and early returns.
- 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.