Writing

Essays, tutorials, and notes on software engineering, systems design, and technical leadership.

Search & Filter

Series

Coding AI Agents in TypeScript

A step-by-step series that builds an agent foundation from first principles: a minimal CLI, provider abstraction, token streaming, chat transcripts, deterministic tests, and (later) local-first providers and agent tooling.

2 / 2 parts active

All Posts

Build a minimal TypeScript CLI agent loop from scratch: env config, pluggable LLM provider, SSE token streaming, interactive chat, and deterministic tests with a local mock server.

12 min read tutorial Series: coding-ai-agents-in-typescript
ai-agentstypescriptnodejsclistreamingssevitesttesting

A step-by-step guide to running your agent locally with Ollama (native JSONL streaming) and LM Studio (OpenAI-compatible streaming), plus deterministic tests for both providers.

12 min read tutorial Series: coding-ai-agents-in-typescript
ai-agentstypescriptnodejsclistreamingssejsonlollamalm-studiovitesttestinglocal-llm