Skip to content

Selected work / 2026

Kordy

An AI coordinator that finds cover when an event steward cancels.

My role
Solo: product, design, full-stack and AI integration
Team
Solo
Built with
Next.js 16, TypeScript, Postgres, PGlite, OpenAI Responses API, zod, Upstash Redis, Vitest

The problem

When a steward cancels before an event, an agency coordinator has to find cover quickly: check who is available, trained for the role and free of clashing shifts, then invite them and keep the roster straight.

What I built

Kordy is a multi-tenant web app for event staffing agencies, with an AI coordinator inside each agency's workspace. Its first complete workflow is shift cover: Kordy checks the agency's records, recommends eligible cover and drafts the invitation. The coordinator edits and approves it, confirms the assignment, and every step is written to an activity log.

What I did

  • Designed and built the product end to end, from sign-up and workspaces to the cover desk.
  • Integrated the OpenAI Responses API with strict, read-only function tools.
  • Built the tenancy model, sessions and rate limiting.
  • Wrote the Vitest suite, with each test file on its own in-memory Postgres.

Architecture

  1. Next.js 16 app

    App Router, TypeScript. Cover desk, Ask Kordy sidebar, Kordy's work panel.

  2. Membership gate

    Every /api/w/[slug] route and workspace page calls one requireMembership check first.

  3. Kordy agent

    OpenAI Responses API with strict read-only tools, scoped to the caller's workspace.

  4. Postgres

    PGlite locally, any Postgres in production. Composite foreign keys per workspace.

  5. Approvals and activity log

    Kordy proposes; a coordinator approves. Each step is logged.

Decisions I'd defend in review

  • The agent can read, never write

    Kordy's tools are read-only. Anything that changes a roster goes through a coordinator's approval, so a bad answer costs a review, not a wrong booking.

  • Tenancy enforced twice

    Every query filters by workspace, and child rows reference parents through composite foreign keys, so the database itself refuses a cross-agency row even if application code slips.

  • Same 404 for 'not yours' and 'doesn't exist'

    A user who isn't a member gets exactly the response a missing workspace gets, so other agencies' workspaces can't be discovered.

  • Fail visibly

    When live AI calls fail, the cover desk shows the error with Retry and a switch to simulated mode. It never substitutes a canned answer.

Outcomes

  • The shift-cover workflow runs end to end in both simulated and live modes.
  • Lint, typecheck, tests and build run as one check command.