Thanks for your interest in improving roz. This guide covers local setup and the conventions we follow.
- Node.js 20+ and npm
- A Supabase project (Postgres + pgvector) — see the Self-hosting section for the full list of accounts roz integrates with (Anthropic, OpenAI, GitHub, Resend).
# 1. Install backend + dashboard dependencies
npm install
npm install --prefix web
# 2. Configure environment
cp .env.example .env # fill in the keys you need (see comments in the file)
# 3. Run the backend (http://localhost:3000)
npm run devGET /health should return { "status": "ok" }. In local dev, effects stay pending in the
outbox; drain them manually with GET /v1/internal/drain (the cron header is not required in
dev).
To run the dashboard SPA:
cp web/.env.example web/.env # set VITE_SUPABASE_URL / VITE_SUPABASE_ANON_KEY
npm run dev --prefix webThe public landing page lives at /; the operator dashboard lives behind login at /app.
npm run typecheck # backend (tsc --noEmit)
npm run typecheck --prefix web
npm test # vitest (backend)
npm run build --prefix web # production build of the dashboardAll of the above must pass.
- Language: TypeScript, ESM,
strictmode. Match the style of the surrounding code. - Commits: short, imperative, conventional-ish prefixes used in this repo:
feat:,fix:,chore:,docs:. - Comments: explain the why, not the what — see the existing modules for the tone.
- Scope: keep PRs focused. If you're changing behavior, add or update a test under
test/. - Secrets: never commit real credentials.
.envis git-ignored; update.env.example(placeholders only) when you add a new variable.
A quick map (full detail in ARCHITECTURE.md):
api/ Vercel entry (re-exports the Hono app)
src/
adapters/ external integrations (github, anthropic, openai, resend, ...)
events/ outbox: emit() + idempotent drain with retries
intake/ proposal -> evaluation -> native task
router/ assignee suggestion (skill + load)
notify/ transactional email (Resend)
brain/ second brain: atoms, embeddings, hybrid retrieval
reconcile/ commit dedup/auto-doc + new-repo detection
routes/ health, mcp, webhooks, intake, dashboard, internal (crons)
migrations/ SQL schema (pgvector, outbox, idempotency)
web/ React dashboard SPA + public landing
- Bugs / features: open a GitHub issue.
- Security vulnerabilities: do not open a public issue — see
SECURITY.md.