Article Series — Cognee: The Engineering of Agent Memory
A five-chapter deep research series on the open-source AI memory platform at github:topoteretes/cognee. Each chapter is a self-contained deep dive, and the series forms a complete architectural tour from the public API down to the runtime substrate.
Reading order
1. [00_The_Architectural_Shape_of_Agent_Memory.md](00_The_Architectural_Shape_of_Agent_Memory.md) — The 5,000-foot view. Why cognee exists, what its "memory" really is, the layered architecture, and the BEAM benchmark headline. *1,865 words.* 2. [01_The_Extract_Cognify_Load_Pipeline.md](01_The_Extract_Cognify_Load_Pipeline.md) — The five-task pipeline that turns text into a knowledge graph, the two-schema problem (LLM-facing KnowledgeGraph vs runtime DataPoint), and the bridge function integrate_chunk_graphs. *1,938 words.* 3. [02_Seventeen_Ways_to_Ask_a_Graph.md](02_Seventeen_Ways_to_Ask_a_Graph.md) — The SearchType enum, the three-method BaseRetriever contract, the brute-force triplet search algorithm, and the paradigm taxonomy (vector-only / graph / hybrid / specialized / agentic). *2,344 words.* 4. [03_The_Handle_That_Survived_Eviction.md](03_The_Handle_That_Survived_Eviction.md) — The 3-layer caching architecture: closing_lru_cache, _GraphEngineHandle, set_database_global_context_variables. Why lazy handles beat heavyweight per-tenant pools for cognee's deployment surface. *2,363 words.* 5. [04_What_Beats_RAG_Actually_Proves.md](04_What_Beats_RAG_Actually_Proves.md) — The BEAM benchmark, the session→graph sync, the action frame for the engineering reader. The closing case study. *2,050 words.*
Series thesis
*"Cognee is the engineering answer to 'LLM context windows are too short for agents that need to remember.'"*
Every chapter advances this red thread. The first chapter sets it; the second shows the ECL pipeline as the answer; the third shows the 17 search types as the answer for retrieval; the fourth shows the lazy-handle multi-tenant substrate as the answer for production; the fifth shows the BEAM benchmark as the proof.
Source attribution
All claims are traceable to the cloned repository at source/cognee/. File-path and line-number references appear throughout the series (e.g., cognee/api/v1/cognify/cognify.py:290-353, cognee/infrastructure/databases/graph/get_graph_engine.py:59-107). The README, CLAUDE.md, and the in-code comments are the primary documentation sources.
Process artifacts
tmp/_collection_report.md— what was collected, how, and any gapstmp/_digest.md— per-source insight summary, knowledge map, cross-material relationships, blind-spot candidatestmp/_plan.md— full chapter plan with structure, hooks, metaphor plan, and per-chapter coveragetmp/_plan_review.md— architect sign-off against the deepmox-article skill rules