Vizuara Books
Pi vs Hermes vs Codex: Context Compaction and Memory
Free preview available. Sign in and subscribe to unlock the full book.
Vizuara AI Labs · advanced

Pi vs Hermes vs Codex: Context Compaction and Memory

Three open-source coding harnesses, read out of their source: where each one cuts the conversation, what it writes down, and what it remembers tomorrow.

Every coding agent eventually runs out of context window. Pi, Hermes and Codex answer that in three different shapes, and this book reads all three answers out of the source rather than the documentation. Pi’s trigger, token accounting, cut-point rules, split turns and two summaries. Hermes’s three threshold corrections, free pruning pass, head/middle/tail with tail repair, micro-compaction and failure guards. Codex’s configurable limit, its choice of what to measure against it, and a summary written as a handoff to a different model. Then one debugging session traced end to end through every decision Pi makes, with arithmetic you can check line by line. Then memory: the file you maintain, the agent that forks itself after every turn to decide what was worth keeping, and the agent that writes only when you ask it to.

advancedharnessagentscontextcompactionmemorypihermescodexfrom-source
9 capsules56 figures~1 hoursby Dr. Raj Dandekar

Read on your Kindle

We'll send this whole book straight to your Kindle — it opens natively, so you can resize the text, read fully offline, and it remembers where you left off. Nothing to download or manage.

Sending to Kindle is for subscribers — subscribe to read the whole library on your Kindle.

1Compaction4 capsules

Three production harnesses solving the same problem in different shapes, each read out of its source.

01How Pi compacts🔒8 min02How Hermes compacts🔒8 min03How Codex compacts🔒8 min04Compaction, side by side🔒5 min
2A session, traced1 capsules

The mechanism made concrete: one real session, every decision, checkable numbers.

05Pi compaction, walked through one session🔒11 min
3Memory4 capsules

What each harness keeps between sessions, and who is trusted to write it down.

06Pi: memory is a file you write🔒4 min07Hermes: the agent writes its own memory🔒5 min08Codex: memory the agent writes when asked🔒7 min09Memory, side by side🔒4 min

Ratings & reviews

No ratings yet. Yours would be the first.

Sign in to rate this book