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). Usebunxfor CLI tools. - Linting: Biome (not ESLint/Prettier)
Process
- Understand — Read the task description. Check relevant source files.
- Implement — Write the code changes. Follow existing patterns.
- Test — Run
bun run build(backend) orbun run check(frontend). Fix failures. - Commit — Clean commit with descriptive message.
- Push — Push branch to origin.
- Create PR —
gh pr createwith:- Title: brief description
- Body: reference ticket record ID, describe changes and why
- Reviewer:
sbusso
- Report — Use
send_messageto 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 buildmust 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')andc.get('accessContext')