Source Handbooks

Handbooks

Explore a topic in depth. Read from start to finish, or jump to the chapter you need.

Cover of Codex Source Code Guide: Inside a Production Coding Agent

Source version rust-v0.144.6

Codex Source Code Guide: Inside a Production Coding Agent

A source-based guide to the open-source openai/codex repository. Follow a request through the model loop, tool execution, approval and sandbox boundaries, conversation persistence, and recovery. The chapters explain why these mechanisms exist and what breaks when their assumptions do not hold.

Chapters written in Chinese

Cover of pi Coding Agent Source Code Guide: From Agent Loop to Runtime

Source version v0.83.0

pi Coding Agent Source Code Guide: From Agent Loop to Runtime

A source-based guide to earendil-works/pi at a pinned version. Explore how provider adapters, an agent loop, tool execution, a session tree, extensions, and a terminal interface fit together. The guide distinguishes behavior implemented in the repository from the separate Harness v2 design.

Chapters written in Chinese

Cover of DeepSeek Harness Source Code Guide: From Input to Agent Platform

Source version 47f943859bef60e4160492346772ded9b24f765a

DeepSeek Harness Source Code Guide: From Input to Agent Platform

A source-based guide to the official DeepSeek Harness repository at a fixed commit. Start with a terminal command or a browser message, follow it through the inbox and agent loop, and inspect how execution events support model context, persistence, and user interfaces.

Chapters written in Chinese