// course

Build an AI Agent in Typescript

Learn the fundamentals of building your own CLI-based AI coding agent from scratch using Typescript, Ollama, and ai-sdk. From bash and structured file tools to subagents and persistent memory. Then onto a TUI and a skills system for loading new agentic capabilities.

8 lessons
  1. 01

    The Agent Loop

    Let’s build a real agent loop in Typescript — no frameworks, no magic.

  2. 02

    File Tools

    Let's add structured file tools — read_file, write_file, and edit_file

  3. 03

    Subagents

    Unlock scalable AI automation by teaching your local coding agent to deploy sub-agents

  4. 04

    Task Memory

    Fix AI coding agent drift on multi-step tasks with a built-in to-do manager.

  5. 05

    Task Persistence

    Stop losing complex project progress when your local AI session ends.

  6. 06

    Context Compaction

    Stop blowing through your context window with this automated AI memory management system.

  7. 07

    Build a TUI

    Transform your basic terminal interactions into a polished, developer-friendly CLI with real-time feedback and markdown formatting.

  8. 08

    Build a Skills Loader

    Stop rewriting tools for every new task