← All technical writing
6-part AI memory systems series

Building Memory for AI Coding Agents

A six-part series on why AI coding agents forget everything, why standard vector RAG is not enough, and what it takes to build memory a coding agent can actually trust.

6 articles·~26 minutes·AI coding agent memory
01

About this series

// context → operating model

This series follows the design of Borg, a PostgreSQL-native memory system that compiles task-specific context from prior coding sessions.

The throughline is one claim: memory for a coding agent is not a search problem, it is a compilation problem. Each article takes one piece of that argument from the core idea down through the architecture, data model, measurements, and research underneath.

Read it in order to follow the whole arc, or jump directly to the part you need: the failure mode, the pipeline, the single-store architecture, temporal facts, benchmarking, or the science behind the design.

Borg is a memory system for AI coding agents: PostgreSQL-native, with task-specific context compilation, temporal facts, and full audit logging.

02

Recommended reading order

// amnesia -> compilation -> trustworthy memory