{
  "id": 22233851,
  "title": "How I measure coding-agent memory retrieval, including where it fails",
  "url": "https://urgent.news/2026/11/27/how-i-measure-coding-agent-memory-retrieval-including-where-it-fails",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T20:53:35.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/icegaming/how-i-measure-coding-agent-memory-retrieval-including-where-it-fails-5dl3"
  },
  "original_language": "en",
  "account": "Many teams implementing coding agents experience a situation where a coding agent spends a significant amount of time troubleshooting an issue, only for a teammate to approach the same problem from scratch. This gap in knowledge transfer is the issue the Palace memory engine aims to address. Palace is an MIT-licensed memory engine designed for coding agents, offering a Rust binary, SQLite file, local embedder, and hybrid BM25 + vector search, all accessible through MCP to various clients such as Claude Code, Cursor, Codex, and OpenCode. The focus of this post is on measuring retrieval recall, exploring the numbers reported, and identifying where the numbers might fall short. The benchmark used is LongMemEval, which provides a set of questions paired with corresponding chat sessions containing the answers. There are two datasets to consider: s_cleaned.json, containing approximately 50 sessions with around 115k tokens per question, and m_cleaned.json, which includes about 500 sessions with approximately 1.5M tokens per question. Retrieval recall is measured separately from QA accuracy, as the two do not necessarily correlate. Palace utilizes a hybrid search approach, combining BM25 and cosine similarity, to rank sessions based on their relevance to the queried question. The retrieval recall metrics include recall_any and recall_all, with recall_any counting a question as a hit if any gold session appears in the top 5, while recall_all requires all gold sessions to be present in the top 5. The results indicate that Palace achieves a retrieval recall of 0.915 at @1 and 0.987 at @5 for the s_cleaned dataset. However, this figure represents the more lenient recall_any metric. When considering recall_all, the numbers are lower at 0.900 at @1 and 0.938 at @5. The discrepancy becomes more pronounced when comparing the two datasets, with recall_all@5 dropping from 0.996 in s_cleaned to 0.949 in m_cleaned. The weakest categories in Palace's performance are single-session-preference and temporal-reasoning questions, with recall_all@5 scores of 0.933 and 0.827, respectively. The reasons for these lower scores include the limited overlap between question content and available sessions, making it challenging for BM25 and the small embedding model to generate accurate retrievals.",
  "summary": "Here is a situation most teams using coding agents will recognise. On Tuesday, your agent spends forty minutes working out why a retry around the payments webhook keeps failing. It isn't the backoff. The upstream returns a 409 on the second attempt because the idempotency key is regenerated on every retry. The fix is two lines. The understanding behind it took most of the afternoon. On Thursday,…",
  "summary_source": "publisher",
  "key_points": [
    "Palace memory engine aims to address knowledge transfer gap in coding agents",
    "LongMemEval benchmark used for retrieval recall measurement",
    "Palace achieves retrieval recall of 0.915 at @1 and 0.987 at @5 for scleaned dataset"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}