Skip to content
المشاريع

حول

Durable, searchable memory of your past agent sessions.

أدوات التطوير

كيف تُقاس هذه الأرقام

749 نجمة61 التفرعات +97 خلال 24 ساعة

ما يمكنك فعله

  • Your agent recalls your past work. The model spontaneously uses funes to recall prior decisions, rationale, and findings mid-task.
  • One memory across your agents. Each agent you add indexes into a single memory; recall spans all of them, and every hit shows which agent it came from.
  • Your memory is a Hugging Face dataset. Publish it to the Hugging Face Hub; a teammate, another of your machines — or anyone, if you make it public — recalls from it with one flag.

النمو المقاس للنجوم

خلال 24 ساعة
+٩٧
خلال 7 أيام
+١٤٢
خلال 15 يومًا
+١٥١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

funes elephant mascot

funes

Durable memory for your AI coding agents. funes indexes your past sessions across all of them and lets any agent recall the past decisions, rationale, and findings. Your memory is a dataset you can publish to the Hugging Face Hub — then any machine, teammate, or agent can recall from it.

Asking a published memory why funes is append-only; funes recalls the relevant sessions and a coding agent answers, grounded, naming its sources

Put a question to a memory and borrow a coding agent to answer it: funes recalls the relevant sessions, hands them over, and you get one grounded answer that names the sessions it drew from — nothing installed. Here it reads the public huggingface/funes-memory dataset named right in the command.

Features at a glance

  • Your agent recalls your past work. The model spontaneously uses funes to recall prior decisions, rationale, and findings mid-task.
  • One memory across your agents. Each agent you add indexes into a single memory; recall spans all of them, and every hit shows which agent it came from.
  • Your memory is a Hugging Face dataset. Publish it to the Hugging Face Hub; a teammate, another of your machines — or anyone, if you make it public — recalls from it with one flag.

A coding agent, mid-task, reaches for funes on its own and recalls from the public huggingface/funes-memory dataset, then answers grounded, naming the session it drew from

And it happens on its own: with funes added, your agent reaches for recall mid-conversation — no command to run. Here it recalls to answer a question about funes's own design, grounded, naming the session it drew from.

Choosing an embedding model in Claude Code, then Codex recalling that decision in a separate session

Different agents, one memory: Claude picks an embedding model; a session-end hook indexes it on its own; Codex — a separate agent — uses funes to recall the decision. No funes command in sight — the hooks do the capturing.

Look closely at Codex's hits: some timestamps predate this recording. Those are earlier takes of this very demo — funes had already memorized the rehearsals. An append-only memory has no clean take, so we kept the Droste effect rather than pretend otherwise.

Get funes

Linux, macOS:

curl -fsSL "https://huggingface.co/buckets/huggingface/funes/resolve/install.sh?src=readme" | sh

Windows:

irm "https://huggingface.co/buckets/huggingface/funes/resolve/install.ps1?src=readme" | iex

docs/installation.md covers the installers' options, updating, the prebuilt binaries and building from source.

Then add funes to your agent, with its id from this list:

The maintained integrations, with the id and newest release of each
funes add <agent>

That one command sets everything up. Your agent gets recall, get and the other read tools. funes indexes the agent's past sessions, then keeps the index current at every turn. With a memory bound, it also pushes to that memory at each session boundary. After that, you just work. funes status tells you whether recall reads your own memory yet. docs/add.md covers memory binding and what funes add does.

For another agent, see the integrations their authors maintain in funes-integrations/COMMUNITY.md. funes add <id> --from … installs one from where it is published. To write your own, start with Writing an integration.

funes identifies itself to the Hub. The User-Agent of its Hugging Face requests carries its version, its OS and an anonymous install id. That id is a random UUID, created on the first run in ~/.funes/install-id. It is not derived from anything (your hostname, user, hardware or Hugging Face account), and it goes nowhere but the Hub. It only lets the project count installs and active installs, including local-only ones. Set DO_NOT_TRACK=1 or FUNES_NO_TELEMETRY=1 to leave the id and the OS out, or delete the file to start a new id. The installer's own downloads only say which script revision and platform they are for.

Works across your agents (and models)

Your memory isn't tied to one tool. Because every agent you add indexes into a single memory, you can switch agents without losing anything — start a task in Claude Code, pick it up in Codex next week, and each one recalls the entire history, not just its own sessions (every hit shows which agent it came from). Another agent can join by writing its sessions as funes JSONL turns files.

Models work the same way. funes runs pinned local embedding and reranking models, but no generative model of its own: you reason with whatever your agent uses — through pi, any local model or one served through the Hugging Face router. Switch models between sessions and the memory doesn't move.

Your memory on the Hub

Your local memory is a dataset, and it shares the way one does: publish it to a Hugging Face dataset repo you own and it becomes an artifact on the Hub like any model or dataset — owned by your account or org, gated by your token, readable by whoever you say. Not just the code of a project, but the process behind it — the decisions, dead ends, and rationale — becomes something an agent can recall.

Dataset repositories created by funes are private by default. Existing repositories retain their current visibility, and making a funes-created memory public is a deliberate change on the Hub.

Bind your host to a memory, funes bind <user|org>/funes-memory or the memory named when you add an agent, and every agent recalls from it and keeps it current on its own; or run the two commands directly:

funes push <user|org>/funes-memory                    # publish your local memory's new chunks
funes recall "..." --memory <user|org>/funes-memory   # read any remote memory for one call

That second form is how you read someone else's published memory on a topic, without touching your own setup. Publishing is guarded: an always-on gate redacts credentials from what it publishes, and holds back what it can't redact. And because a published memory is just a dataset, you can try recall right now, before indexing anything of your own:

funes recall "why is funes append-only" --memory huggingface/funes-memory

And to get an answer rather than ranked passages, borrow an agent for one question — nothing installed:

funes ask claude "why is funes append-only" --memory huggingface/funes-memory   # or: funes ask codex

See docs/push.md for publishing, the secrets gate, selecting what to publish, and inspecting a memory; docs/ask.md for grounded answers; docs/hub-caching.md for how remote recall caches to local speed.

Commands

funes add wires all of this into your agent; each command is also usable on its own. Browse the workflow-oriented documentation index for the complete guides.

Command Docs
funes add <agent> [memory] / funes bind <memory> / funes remove <agent> / funes mcp [memory] docs/add.md — supported agents, integration lifecycle, memory binding, generic MCP clients, and hooks
funes index [path] / funes compact [memory] docs/index.md — build/update the memory and compact it; sources, incremental, flags
funes recall "…" / funes get … docs/recall.md — recall passages and drill into them
funes sessions / funes sketch … / funes scan … docs/sessions.md — list sessions, digest one, find a literal in one
funes ask <agent> "…" docs/ask.md — borrow an agent for a grounded answer
funes push <memory> (+ scrub, status) docs/push.md — publish and share a memory
funes update installation and updating — replace the installed binary with a verified release, and update the agent integrations

How it works

funes add runs one loop: index what you've done, recall it when it matters — and index what you just did, so it's recallable next time. Both halves are one deterministic pipeline: each source is parsed into a generic turn/block shape, chunked, written to a local Lance dataset, and embedded with a pinned local model; recall fuses vector + BM25 search, and reranks the pool with a cross-encoder. Integrations convert each agent's transcripts into the shared turns format. Adding an agent means publishing an integration of your own; the indexing and query pipeline already reads that format.

funes shapes its output for agents, not people — so to put a question to a memory yourself, borrow an agent: funes ask recalls from the memory and answers grounded in what it finds, installing nothing. funes recall prints the raw ranked passages behind an answer, and funes get reassembles any cited turn in full.

  • docs/index.md — sources, progress, and incremental indexing.
  • docs/recall.md — retrieval, drill-down with get, and reading a shared memory.
  • docs/sessions.md — browsing a memory by session: sessions, sketch, scan.
  • docs/ask.md — borrow an agent for a grounded answer, nothing installed.

Building from source

See docs/installation.md.

Notes

  • Each memory names its embedding model, and funes embeds a query with the model of the memory it searches. A memory holds one model's vectors: funes indexes into it with that model, and refuses to push another model's vectors into it. To change it, rebuild from the transcripts (the memory is a disposable derived artifact — the raw text is retained in every row). This is separate from the model you reason with, which is free to change.
  • Subagent transcripts (.../subagents/agent-*.jsonl) are indexed too.

Why funes

"To think is to forget differences, generalize, make abstractions." — Jorge Luis Borges, Funes the Memorious

Why funes is built the way it is — and how it compares to other memory tools — is documented in docs/RATIONALE.md.

License

funes is licensed under the Apache License 2.0.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…