让AI编程助手重启时自动加载历史知识,避免从零开始
PrimeAgentOrchestrator: Memory-Primed Agent Spawning for Personal AI Infrastructure
- 用用户数据库中的记忆预填充新启动的AI编程代理
- 并行查询两个独立数据库,融合结果后注入代理上下文
- 适合需要持续开发、希望减少重复劳动的个人开发者
大型语言模型(LLM)编程代理每次会话都从空上下文开始,丢弃先前积累的知识。我们提出PrimeAgentOrchestrator(PAO),一个系统,可在启动时将Claude Code——Anthropic的终端型编程代理——预先加载用户个人数据库中提取的相关记忆。在启动时,PAO并行查询两个独立运行的记忆后端(基于PostgreSQL的实体-观察数据库和Cloudflare Worker语义搜索索引),使用各后端特定的检索策略融合结果,并通过文件系统注入方式,利用宿主代理配置自动读取行为传递整合后的简报。PAO管理完整的代理生命周期,包括信任预设、就绪轮询与错误检测、自适应终端文本注入。本文报告了2025年12月至2026年3月为期四个月的常规部署经验,记录了三代上下文传递机制,每代设计背后的故障模式,以及连接异构记忆系统而非构建统一系统的工程权衡。
原文摘要 · Abstract (English)
Large language model (LLM) coding agents start each session with an empty context window, discarding accumulated knowledge from prior work. We present PrimeAgentOrchestrator (PAO), a system that spawns new instances of Claude Code -- Anthropic's terminal-based coding agent -- pre-loaded with relevant memories compiled from the user's existing personal databases. At spawn time, PAO queries two independently-operated memory backends in parallel (a PostgreSQL entity-observation database and a Cloudflare Worker semantic search index), fuses results using backend-specific retrieval strategies, and delivers the compiled briefing via filesystem injection that exploits the host agent's configuration auto-read behavior. PAO manages the full agent lifecycle including trust pre-seeding, readiness polling with error detection, and adaptive terminal text injection. We report on four months of regular deployment (December 2025 through March 2026) as an experience report, documenting three generations of context delivery mechanisms, the failure modes that motivated each redesign, and the engineering tradeoffs of bridging heterogeneous memory systems rather than building a unified one.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。