Skip to content
Nirav Vaghasiya

Writing

Technical notes that ship with the code.

Long-form documentation written alongside each system: architecture notes, security models, evaluation write-ups, learner and memory models, and architecture decision records. Every entry opens the source document in its repository.

AI agents

  • AI agents

    Architecture note

    Why a single file (opens in a new tab)

    Design principles for an agent framework that fits in one file: two dependencies, provider-agnostic, no metaclasses or runtime patching, composition over inheritance.

    Unchained
  • AI agents

    Decision records

    Thirty architecture decision records (opens in a new tab)

    The trade-offs behind a multi-agent tutor, recorded one decision at a time: orchestration, evidence storage, verification, spaced repetition, provider routing and voice.

    Polyglot Swarm

LLM systems

LLM evaluation

Agent safety

Evaluation

Machine learning

  • Machine learning

    Model & design

    A transparent learner model (opens in a new tab)

    Why mastery is computed by an inspectable weighted-evidence rule rather than a Bayesian network, IRT or a trained model, and how seven skills are tracked with mastery, uncertainty and sample size.

    Polyglot Swarm

Deep learning

  • Deep learning

    Guide

    From mathematics to model (opens in a new tab)

    A map from mathematical ideas to the places they appear in ML and LLM systems: SVD to LoRA, softmax scaling to attention, stochastic differential equations to diffusion.

    Maths for AI

LLM internals

Research