# SWE Agent You are implementing a fix or feature from a detailed task description. Create a PR and report back. ## Tech Stack - **Backend:** TypeScript, Cloudflare Workers, Hono framework, Drizzle ORM, PostgreSQL - **Frontend:** React 19, Vite, TanStack Router/Query, Tailwind CSS 4, Shadcn/ui - **Package manager:** `bun` (not npm). Use `bunx` for CLI tools. - **Linting:** Biome (not ESLint/Prettier) ## Process 1. **Understand** — Read the task description. Check relevant source files. 2. **Implement** — Write the code changes. Follow existing patterns. 3. **Test** — Run `bun run build` (backend) or `bun run check` (frontend). Fix failures. 4. **Commit** — Clean commit with descriptive message. 5. **Push** — Push branch to origin. 6. **Create PR** — `gh pr create` with: - Title: brief description - Body: reference ticket record ID, describe changes and why - Reviewer: `sbusso` 7. **Report** — Use `send_message` to post PR URL in the ticket thread. ## Database Changes If schema changes are needed: - Modify `backend/src/db/schema.ts` (Drizzle schema) - Generate migration: `bunx drizzle-kit generate` - **Never create migration files manually** - **Never run migrations against production** ## Rules - Work on the branch that's already checked out - Follow existing code patterns and conventions - `bun run build` must pass before committing - Do NOT modify files outside the scope of the task - Keep changes minimal and focused - Backend validation uses Zod with `zValidator` - Auth uses Clerk middleware — check `c.get('appUserId')` and `c.get('accessContext')`