Skip to content

The lab

Where I work things out: agent systems with guardrails, AI experiments, research, and engineering notes from shipping real products. Some of it shipped; some of it is still an idea.

Anatomy of a guarded agent

The HR inbox agent in five steps. One is probabilistic; the other four are plain, tested code — that’s the point.

Read the case study
  1. 01Code

    Check

    Headers, spoofed reply-to and payroll-fraud patterns are caught before any model call.

  2. 02Model

    Triage

    The model returns strict JSON: a category, risk flags, confidence and a draft. It has no tools.

  3. 03Code

    Decide

    Eight independent holds must all pass before anything is sent automatically.

  4. 04Code

    Act

    Send, save a draft or escalate — recipients must equal the original sender exactly.

  5. 05Code

    Report

    Slack alerts without sensitive details, and a metadata-only audit log.

Notebook

Filter by kind of work.

10 shown

  • Engineering noteShipped

    Offline-first is mostly about conflicts

    Caching is the easy part. Notes on field-level patches, stale-write refusal and private data when two phones edit the same book offline.

    Oct 2026

  • Agent systemShipped

    The model proposes, code disposes

    A guardrail pattern for business agents: let the LLM classify and draft, but put every consequential rule in deterministic, tested code.

    Sep 2026

  • Agent systemExploring

    Trust ladders for business agents

    Autonomy should be earned per task: observe, suggest, draft, act with approval, act and report. Notes from prototyping an agent control plane.

    Jun 2026

  • AI experimentShipped

    Local Bengali speech-to-text

    A browser recorder plus a local Whisper server that turns Bengali dictation into an editable transcript and exports it — with no API keys and no audio leaving the machine.

    Jun 2026

  • Interface experimentShipped

    A booking widget in three themes

    Guest booking form components — date and time pickers, a five-minute hold timer and nearby-slot suggestions — themed three ways for different restaurant brands.

    May 2026