Skip to content

Personal Agent Tutorial Series ​

This series of Agent Harness tutorial projects is built around three principles: build from scratch, progress day by day, and deliver verifiable results every day. It includes the complete 100-day Personal Agent and PI Agent tutorials, as well as 30-day clean-room implementations of four open-source Agent and terminal architectures using TypeScript, Python, and Rust.

Cover for the 100-day Personal Agent tutorial series on building an AI Agent from scratch

Series Projects ​

100 DAYS · GENERAL AGENT HARNESS · V1.0.0

Personal Agent

Starting with model calls and the tool loop, progressively implement MCP, context, memory, long-running tasks, subagents, Trace, Replay, Eval, CLI, and SDK.

TypeScriptNode.js 24+MCP100 Daily Topics
View Details →

100 DAYS · PI-STYLE CODING AGENT · V1.0.0

PI Agent

A source map to the real PI codebase, with a from-scratch implementation of a multi-provider model layer, event-driven loop, Harness, session tree, TUI, RPC, and extension system.

TypeScript StrictZero Runtime DependenciesTUI / RPCEvals
View Details →

30 DAYS · CLEAN ROOM · V0.1.0

Harness TS OpenCode Learning Edition

Build a terminal Agent Harness with TypeScript + Bun, covering SSE, tool permissions, JSONL sessions, MCP, Compaction, TUI, and Profiles.

TypeScriptBunJSONL SessionMCP stdio
View Details →

30 DAYS · EVENT-DRIVEN PLATFORM · V0.1.0

Harness PY OpenHands Learning Edition

Build an Event/Action/Observation event-stream platform with Python and FastAPI, integrating Runtime, CodeAct Loop, WebSocket, and Microagent.

Python 3.11+uvFastAPIEventStream
View Details →

30 DAYS · RUST AGENT HARNESS · V0.1.0

Harness RS Codex CLI Learning Edition

Build Turn Loop, Rollout recovery, Shell/Apply Patch, approval policies, sandbox boundaries, a TUI, and headless JSONL execution in Rust.

RustCargo WorkspaceApproval PolicyRatatui
View Details →

30 DAYS · BLOCK TERMINAL · V0.1.0

Termblock Warp Learning Edition

Build a macOS Block-style smart terminal in Rust, covering PTY, OSC 133, natural-language command approval, Agent Loop, Diff, and session restoration.

RustPTYOSC 133AGPL-3.0
View Details →

Two Learning Tracks ​

TrackProjectBest For
General Agent RuntimePersonal AgentA complete system covering tools, MCP, context, memory, orchestration, observability, and release
PI-Style Coding AgentPI AgentEvent models, Harness state, session trees, terminal UI, RPC, and self-extension
Cross-Language Architecture ComparisonHarness TS / PY / RSDifferent ways to model the same Agent problems in TypeScript, Python, and Rust
Terminal-Agent IntegrationTermblockPTY, Block output, Shell Integration, approvals, and terminal interaction

Common Project Methodology ​

  • Day-by-Day Progress: Each day focuses on one topic and includes an implementation, tests, a Demo or scripts, and explanatory notes.
  • Acceptance-Driven Development: Verify every step with offline mocks, deterministic tests, E2E tests, and release checklists.
  • Preserve the Decision Process: Record architectural trade-offs through ADRs, research notes, daily logs, and retrospectives.
  • Clean-Room Implementation: The four Clone learning projects study only upstream behavior and interfaces. They do not copy upstream code, and they retain research pins, licenses, and attribution.
  • Clear Capability Boundaries: Tutorial editions, MVPs, and deterministic Demos are not presented as providing production-grade security, real-world user scale, or production SLOs.

Open Source and Learning Resources ​

Explore the GitHub Organization · Read Personal Agent · Read PI Agent

Keep building. Stay curious.