Skip to content

Commit 2bc9447

Browse files
committed
add AGENTS.md
1 parent 77545ec commit 2bc9447

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

AGENTS.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# AGENTS.md
2+
3+
## Build/Lint/Test Commands
4+
- **Build**: `pnpm run build` (TypeScript to dist/)
5+
- **Lint**: `pnpm run lint` (ESLint on src/**/*.ts)
6+
- **Type check**: `pnpm run type-check` (tsc --noEmit)
7+
- **Test**: `pnpm run test` (Vitest)
8+
- **Dev**: `pnpm run dev` (tsx watch src/server.ts)
9+
- **MCP Server**: `pnpm run mcp` or `pnpm run mcp:build`
10+
11+
## Architecture
12+
- **GitHub Code Review Agent** using Hono.js framework
13+
- **Main components**: GitHub webhook processing, review queue, AI-powered code analysis
14+
- **Key directories**: src/github/ (auth, webhooks), src/review/ (queue, reviewer), src/mcp/ (Model Context Protocol)
15+
- **External integrations**: GitHub App API, Amp for AI reviews
16+
- **Configuration**: config.yml with environment variable interpolation
17+
18+
## Code Style
19+
- **TypeScript ES2020 modules** with strict mode
20+
- **Imports**: Use .js extensions for local imports, group external first
21+
- **Error handling**: No explicit-any warnings, unused vars are errors
22+
- **Naming**: camelCase for variables/functions, PascalCase for types/classes
23+
- **Files**: kebab-case for filenames (review-queue.ts, webhook-manager.ts)
24+
- **Formatting**: ESLint config enforces prefer-const, no-var

0 commit comments

Comments
 (0)