1.4 KiB
1.4 KiB
BugBot Configuration
Project Context
Agent Orchestrator is a TypeScript monorepo for managing parallel AI coding agents. It uses pnpm workspaces with packages under packages/.
Tech Stack
- TypeScript (strict mode, ESM with
.jsextensions in imports) - Node.js 20+ (use
node:prefix for built-in modules) - pnpm workspaces
- Next.js 15 (App Router) for web dashboard
- Commander.js for CLI
- vitest for testing
Review Focus
- Security: Watch for command injection (especially in shell/tmux/git commands), AppleScript injection, GraphQL injection, unsanitized user input in API routes
- Shell execution: Prefer
execFileoverexecto avoid shell injection. Flag any use ofexecor string concatenation in shell commands - Plugin pattern: Plugins must export
{ manifest, create } satisfies PluginModule<T>with types from@agent-orchestrator/core - Type safety: Flag
as unknown as Tcasts, unguardedJSON.parse, and type re-declarations that should import from core - Resource leaks: Check for uncleared intervals/timeouts, uncleaned event listeners, missing
cancel()on streams - ESM compliance: Imports must use
.jsextension for local files,node:prefix for builtins
Ignore
packages/web/src/lib/mock-data.ts— temporary mock data, will be replacedscripts/— legacy bash scripts, not part of the TypeScript codebaseartifacts/— design documents, not code