Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code in Python and Prose

A study of how an agentic coding CLI is put together, told twice: once as prose chapters, once as Python.

What this is

  • chapters-md/ - Thirty-four descriptive chapters, one per subsystem: the query loop, tool architecture, hooks, session persistence, sandboxing, MCP, memory, and the rest. Prose, not code.
  • code-python/ - The same architecture expressed as Python modules, so the shapes the chapters describe can be read as types and functions instead of paragraphs.

Read it as an architecture study. The interesting part of an agentic CLI is not any single tool; it is how the loop, the registry, the hooks, and the sandbox constrain each other.

How to read this

Chapters are numbered. Start at Chapter 00 for the overview, then read in order or jump to whatever subsystem you came for.

Chapters


Independent work. Not affiliated with, authorized by, or endorsed by Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic, used here only to name the subject of the study.

About

A study of how an agentic coding CLI is put together, told twice: thirty-four prose chapters on the query loop, tool architecture, hooks, sandboxing, and MCP, plus the same architecture expressed in Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages