Give Your Coding Agents a Memory You Own
Back to Articles Give Your Coding Agents a Memory You Own Published September 3, 2026 Update on GitHub Upvote 69 +63 David Corvoysier dacorvo Follow I work across several machines, and I switch coding agents depending on the task.Every one of them meets my projects as a stranger.
The reasoning from “last Tuesday” disappears when the session ends.Each new agent, on each new host, starts from zero.Earlier this year, Software Forgets: Agent Traces Are the Memory made the case that coding agents already produce the record we keep losing.
As they search a codebase, try approaches, hit errors, read documentation, and change direction, they leave behind a dense account of not just what changed, but why.While the diagnosis is correct, traces are only potential memory.The session logs of an agent are still just an archive.
You cannot grep your way to “why did we move off the streaming parser?” across ten thousand turns.For an agent to use those traces while it works, they need indexing, retrieval, ranking, and exact provenance.That is what funes provides.
It is a durable memory layer for your agents (Claude Code, Codex, pi, and Hermes).It is built from the sessions already on your machine.It works locally and becomes part of your agent's normal workflow with one command.
When you want it to, it can also travel to a Hugging Face dataset you own, private by default.Add memory to the agent you already use funes is a single binary.Its default inference backend has no ML runtime dependency, and embedding and reranking happen on your machine.
Install it: curl -fsSL https://huggingface.co/buckets/huggingface/funes/resolve/install.
sh | sh Then add it to an agent: funes add claude # or: codex, pi, hermes That one add command builds the first index, gives the agent recall and get tools, and installs the automation that indexes each completed turn.
Indexing is incremental, with new runs adding new turns rather than embedding the whole history again.The older and deeper content can backfill in bounded steps.From there, you just work.When a task touches a past decision, rationale, or finding, the agent can reach for recall itself.
You do not need to remember the old session or paste its context into the new one.With funes added, recall happens inside the conversation.The agent reaches for its memory on its own and names the session behind its answer.
recall returns the original text, not a summary, and shows exactly where it came from (the agent, timestamp, session, and turn).Each result includes a get command that opens the full turn and its surrounding context.
Underneath, one deterministic pipeline parses every supported trace into the same turn-and-block shape, chunks it, embeds it with a pinned local model, and writes it to a local Lance dataset.
A query combines vector and BM25 search, fuses their rankings, reranks the candidates with a cross-encoder, reweights them by recency, and attaches neighboring chunks.
That design gives funes three important properties: One memory across agents: Claude Code, Codex, pi, and Hermes all write to the same shape.recall spans their histories, and every hit says which agent produced it.Raw evidence stays intact: Nothing is distilled into a fact at write time.
A result can always lead back to the turn that produced it.recall is local by default: No account or Hub repository is required.A hosted model does not process your sessions for indexing; embedding and reranking run on your machine, and your coding agent does the reasoning.
The agent as a stranger problem is already solved on one machine.But memory gets more useful when the next agent is running somewhere else.
A memory is a dataset, not a service To make a memory follow your work, bind one when you add funes to an agent: funes add codex acme/funes-memory The bind publishes your current memory there.funes then keeps it current, indexing each turn locally and publishing at session boundaries.
The agent recalls from it throughout.Run the same command on another machine and the memory follows you there.Underneath, the local memory is a Lance dataset, and the shared memory is a Hugging Face dataset (private by default) you own.
Before anything reaches the Hub, credentials have already been redacted during indexing.Publishing then scans every chunk again and withholds anything that still looks like a secret.The scanner behind this is documented in SECURITY.md, including what it does and doesn't cover.
When an agent reads a remote memory, funes caches the dataset files locally, so warm queries return to local speed.The Hub supplies the ownership, access control, versioning, and distribution it already supplies for other datasets.
Your memory does not become an account in a separate memory service, and you do not rent it back through an API.Ask first, wire later recall is shaped for agents.When you want to put a question to a memory yourself, use ask.
It reads your local memory by default: funes ask claude "what did we decide about the streaming parser" Or point it at a shared memory.
We published a memory of funes development, so you can ask why funes works the way it does without creating a memory of your own: funes ask claude "why is funes append-only" --memory huggingface/funes-memory funes ask is the read-only, one-question sibling of funes add.
It recalls the passages, hands them to a coding agent, and returns a grounded answer that names its sources.It does not install an integration or change the agent's persistent setup.A retrieval miss is not papered over.If the passages do not support an answer, the agent says so.
You can rephrase the question or add funes to the agent so it can search the memory iteratively during normal work.Switching agents without losing the thread A shared memory is not tied to the agent or model that created it.
Start a task in Claude Code, continue it in Codex next week, and the second agent can recall the first agent's reasoning.Use pi with a local model or one served through the Hugging Face router, then return to Claude.Claude makes a decision; a hook indexes it; Codex recalls it in another session.
The older hits in the demo are earlier recordings of the same experiment: an append-only memory remembered the rehearsals too.This matters in a few different scopes: Across your machines: Bind each agent to one memory and recall the history from whichever host you are using.
Across a team: A new teammate's agent can retrieve months of decisions on day one, including dead ends and rationale that never made it into a pull request.Alongside an open-source project: A maintainer can publish the sessions behind a release, naming them on the push.
Think of it as a searchable CLAUDE.md that holds the history of why the project is the way it is, instead of a page someone must keep rewriting.Anyone can read a public memory with --memory.
Published memories carry a dataset card and the funes tag, making them recognizable and discoverable on the Hub.The Hub already hosts open weights and datasets.funes adds open working memory.
It holds the decisions, failed approaches, and rationale behind a project, queryable by another agent and traceable to the sessions that produced them.The cheapest way out of a long session A long investigation bloats a session until each turn costs more to carry the context than to do the work.
The usual answers are to let the agent compact and carry on, or to write a handoff and start fresh.Recall is a third, so we measured them against each other on the handoff-vs-recall benchmark: two tasks whose answer cannot be reconstructed without the session prior knowledge.
Compaction is what most agents do by default, and it was the only one of the three whose result divided: it arrived on one task and never arrived on the other.Where it failed, its summary had flattened the findings that mattered.
Recall returns the passages themselves, so a finding does not have to survive summarization.Recall was the cheapest of the three on both tasks, 8x cheaper than a written handoff on one and 4x on the other.
The lighter segment of each bar is the one-time charge for preparing the channel, the handoff or the compaction, paid before the first question is asked and counted once.A cross marks a channel that never arrives, and so has no cost per success.
Stop starting from zero “To think is to forget differences, generalize, make abstractions.” — Jorge Luis Borges, Funes the Memorious Your agents already wrote the record.funes lives at github.
com/huggingface/funes, one command away from turning that record into a memory the next agent can read, on whichever machine you happen to be on.Built on open source funes invents little of this.
It leans on open-source embedding models good enough to run locally, on Lance's append-only datasets with cheap incremental writes, and on the Hub's caching and content-dedup for datasets.The work is in fitting them into a memory an agent can actually use.funes is open source too.
Open an issue for anything from an install snag to a recall that missed, or an agent you'd like supported.
Datasets mentioned in this article 2 More Articles from our Blog announcementopen-sourcecommunity The Open Source Community is backing OpenEnv for Agentic RL +16 114 June 8, 2026 announcementmlxllm The PR you would have opened yourself 73 April 16, 2026 Community helpmehere 6 days ago This is a test comment from our security scan 1 reply · ❤️ 2 2 + x0mhb 4 days ago A2 reply probe helpmehere 6 days ago No description provided.
Reply helpmehere 6 days ago No description provided.
Reply deleted 6 days ago This comment has been hidden x0mhb 4 days ago x Reply x0mhb 4 days ago Reply x0mhb 4 days ago x Reply x0mhb 4 days ago Reply x0mhb 4 days ago x Reply x0mhb 4 days ago This comment has been hidden (marked as Spam) vshulcz 4 days ago Ran funes 1.3.
0 on a machine with 19,195 coding-agent sessions already on disk (LongMemEval laid down in the real ~/.claude and ~/.codex layouts), 100 questions whose answer sits in exactly one session, scored by whether that session comes back.Disclosure: I maintain deja-vu, one of the tools in the same table.
Full index: 2h03m on an M4 pro laptop (308k chunks), 6.3s per query.With defaults: hit@1 9/100, hit@5 39, found@50 71.With --half-life 0: 19/46/71 — the 30-day recency half-life halves rank-1 on history older than a month, which is most of what's on a real disk; worth a mention in the docs.
Once recency is off, the vector+rerank stack is clearly the best ranker in the table at rank five.The documented one-minute first pass leaves 218 of the 19k sessions indexed (0/100 answered), so the "about a minute" framing is really "about a minute until the embedding job starts".
For comparison on the same corpus, deja-vu (plain BM25 over 24 agents' files) indexes in 29s and answers in 24ms at hit@1 18/100, hit@5 35.Corpus, drivers and every row: vshulcz.github.io/deja-vu/guide/day-zero.html - happy to be corrected if a setting I missed changes the numbers.
🤯 1 1 + Reply johandoc about 23 hours ago The idea of giving coding agents persistent, traceable memory is really interesting.Keeping the original reasoning and context available across sessions and even across different agents could make agentic workflows much more reliable.
At Kellton, we’re seeing similar value in building AI agents that can retain context, orchestrate tasks, and work across enterprise workflows.Great read on where agent memory is heading.Learn more about Kellton’s AI Agent Development Services: https://www.kellton.
com/ai-services/ai-agent-development-services Reply EditPreview Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.Tap or paste here to upload images Comment · Sign up or log in to comment Upvote 69 +57 Datasets mentioned in this article 2
Related
相關文章
香港大學發佈全球首個KYA報告關注智能體信任建設,九類企業實踐獲收錄
11月3日,香港大學副校長汪揚教授與香港大學經管學院楊宏副教授代表香港大學KYA課題組,在2026年香港金融科技周 x StartmeupHK創業節發佈全球首個KYA(Know Your Agent)領域報告《KYA:智能體信用體系研究報告》。報告聚焦智能體參與真實經濟活動後的身份、授權、信用與責任問題,結合109份從業者有效問卷及包含Stripe、螞蟻數科等近十個企業案例,提出智能體成熟度模型、KYA框架和智能體發展指數,並進一步探討“智能體信任資本”的形成及其經濟價值。“沒有KYA,就沒有智能體經濟。
算力成本高昂難以承受?傳SpaceX悄悄削減Grok Bot配額,馬斯克坦言營利失衡
傳SpaceX悄悄削減Grok Bot配額,馬斯克坦言營利失衡發布於AI新閒資訊時間 :Nov 3, 2026閱讀 :1分鐘近日,據外媒報道,多名用戶在社交平臺上反映,SpaceX 在上週末悄然對旗下熱門的 Grok Bot 進行了用量配額調整,不少用戶的額度直接被縮減了一半。
Grok Bot暗暗砍額度,馬斯克承認:成本難持續
編譯 | 黃菲 編輯 | 江宇 11月3日消息,據TechCrunch報道,近日,SpaceXSI旗下AI Agent產品Grok Bot因服務成本過高,開始收緊用戶使用額度。特斯拉CEO、SpaceXSI創始人兼CEO埃隆·馬斯克(Elon Musk)11月2日在X上回應稱,Grok Bot的服務成本相對於收入而言已經高得難以持續,此前用戶反饋的額度異常消耗並非系統故障。
小米斬獲烏鎮峰會雙料大獎:小米集團獲“傑出貢獻獎”,小米具身基座模型獲“領先科技獎”
11月3日,小米方面披露,小米集團獲得2026世界互聯網大會“傑出貢獻獎”創新突破類獎項,該獎項旨在表彰全球互聯網相關領域作出傑出貢獻的個人和企業。同時,小米機器人業務“面向規模化落地的通用機器人操作基座模型關鍵技術”獲大會“領先科技獎”,該獎項旨在獎勵全球年度最具領先性的互聯網科技成果。峰會期間,小米還對外披露了機器人業務在工業製造和家庭場景的兩項最新落地進展。
當三體IP開始連接 AI 和硬科技,到底在探索什麼?
“不要回答!不要回答!!不要回答!!!”《三體》中,來自宇宙深處的信號曾讓人類面臨重大抉擇,二十年後,當 AI 可以理解文本、生成 3D 模型,甚至以智能體的形式與人對話,人類能否藉助這些技術,主動進入科幻作品所描繪的世界?10月24日至25日,在北京舉辦的2026三體日·脫水浸泡嘉年華上,三體宇宙(三體IP的版權方和運營方)開始嘗試回答這個問題。
尋找AI時代的下一個黑馬:安全創客匯重磅升級為AI創客匯
11月3日,在2026年世界互聯網大會烏鎮峰會期間,奇安信宣佈:國內網絡安全領域最具影響力的專業創投平臺之一——安全創客匯,即日起正式升級為“AI創客匯”。新平臺將延續過去嚴苛的選拔機制與創投生態,而賽道邊界將徹底打開——由聚焦網絡安全領域,升級為更加廣闊的AI創新與應用領域,旨在發現和挖掘那些在AI浪潮中搏擊的“創新黑馬”。 本次升級不僅是名稱的更迭,更是一次順應時代潮汐的戰略躍遷:一個以安全為底色的專業創投平臺,正式向整個AI時代的創新者發出邀請函。