Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

AI Coding Agents With Project Memory: 3 Months and 500 Lessons Later

说明与用途

AI 代理的项目记忆系统存储并回忆与文件和命令相关的规则,令每次回忆的 token 仅约 10,显著提升建议的准确性。

问题

AI coding agents repeatedly make the same mistakes because corrections are stored only in chat history, not in a persistent project memory.

结果

After 3 months, 542 lessons were stored, recalled 5,521 times, with an average token cost of ~10 per recall and 0.2s latency—18× cheaper than preloading all rules. The system prioritizes specific rules, reduces noise, and provides analytics to prune unused lessons.

工作流

  • 1. Capture a lesson with agentsmesh lessons add "<sentence>" --topic <topic> --trigger-file <glob>
  • 2. Commit lessons.json to the repo
  • 3. Agents load lessons via hooks or task‑start queries
  • 4. Before a tool call, recall engine matches file/command triggers or BM25 keyword matches
  • 5. If a rule is relevant and not already shown in session, it is injected into context
  • 6. Agent proceeds with tool call
  • 7. Optional telemetry logs recall events for analysis

证据

Recall now puts the most specific rule first, understands a task from its wording and not only its keywords, speaks once and before the action, and can tell you which memories are actually earning their place.

来源

Tokens per recall, averaged over every call ~10; Tokens when a rule is delivered ~190; Recall latency 0.2 s; Versus preloading every rule 18× cheaper.

来源

  • 记录日期: 2026-09-14T12:45:41.423Z