Tau (τ) — Educational Coding Agent

2026-07-03 · source · source ↗ · raw capture · wiki page

Tau is an open-source (MIT) terminal coding agent by Alejandro Ao (GitHub: alejandro-ao), published on PyPI as tau-ai. It's designed to be both a working tool and an educational resource — "a small Python coding agent you read like a textbook." The project is inspired by Pi (Mario Zechner's minimal coding agent) but is an original implementation.

Three-Layer Architecture

  1. tau_ai — Provider adapters translating OpenAI, Anthropic, Hugging Face, OpenRouter, and local endpoints into Tau's provider-neutral event stream.
  2. tau_agent — The reusable harness: messages, tools, events, agent loop, session primitives. Provider- and UI-agnostic.
  3. tau_coding — The coding environment: file/shell tools, sessions, skills, slash commands, and a Textual-based TUI.

Dependency direction: tau_coding → tau_agent → tau_ai.

Design Principles

Features

Educational Value

Tau demonstrates: provider-neutral streaming, agent loops with tool calling, typed local tools, durable sessions, session resume/branching, JSONL/HTML export, project instructions, skills, prompt templates, slash commands, context accounting, compaction, thinking controls, and UI adapter boundaries.

The project has 438 commits, primarily Python (93.7%), with documentation in Astro/HTML/JS/CSS. The core lesson: "Separate the brain, the environment, and the face."

Repository

https://github.com/alejandro-ao/tau — MIT License, 438 commits.