Graph Engineering
The Loop Memory Model
Give agentic workflows durable memory, traceability, and shared knowledge with graphs.
Agent loops are good at producing work, but the reasoning behind that work disappears the moment the context window closes. The next run starts from a transcript, or from nothing, and the decision that mattered last week is rediscovered — or contradicted — this week.
The book moves decisions, evidence and execution history out of transcripts and into an explicit graph. Markdown stays the source of truth; the graph is a query index you can rebuild, not a second copy that drifts. From there it walks through parsing a repository into the graph, resolving entities, retrieving small neighbourhoods within a token budget, checking claims against graph paths, coordinating parallel workers, and tracing lineage from an objective to the artifact that met it.
It ends on judgement: how to measure whether the graph is any good, how it fails, what it costs — and when an ADR log or a relational table is the better answer.
Buy on Amazon On Leanpub: Graph Engineering: The Loop That Remembers
What it gives you
- Separate work history from durable knowledge with a two-graph architecture and clear bridge rules.
- Retrieve small, provenance-tracked context windows from graph paths, within token budgets.
- Run parallel workers with scoped promises, validated writes, reducer contracts and hard budgets.
What you will learn
- Choose between a loop, chain, swarm, DAG or graph architecture.
- Define schemas for work history and for current knowledge.
- Turn Markdown into a query index without making it a second source of truth.
- Give every assertion provenance, confidence and a validity interval.
- Use NEAR links to surface duplicates before they become contradictions.
- Build a time-aware context assembler.
- Check an evaluation’s claims against paths in the graph.
- Measure graph quality — and know when not to build one.
Who it is for
Senior software engineers, AI and agent engineers, software architects and platform teams already experimenting with agent loops, coding agents or multi-agent workflows.
Details
- Publisher
- Packt
- Published
- 19 October 2026
- Length
- 138 pages
- Formats
- Paperback, Kindle
- ISBN-13
- 978-1808812477
- ISBN-10
- 1808812476