agentleFS
Hugging FaceKnown publisherhuggingface/funes/AGENTS.md

funes

AGENTS.md502 starsChanged 2 months agoApache-2.0View on GitHub

Read this before changing the code or reporting an issue. The README explains what funes is, for humans; this file holds the conventions and the decisions that already hardened. A verb is described in four places. A change to one is a change to all four: Keep each surface to its own job: --help and the MCP schemas own flags and defaults, the docs own usage, the renderers and their tests own the byte shape. A fact repeated across two…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read this before changing the code or reporting an issue.

    line 3
  2. Very specific:

    Keep each surface to its own job: --help and the MCP schemas own flags and defaults, the docs own usage, the renderers and their tests own …

    line 17
  3. Very specific:

    A memory's state comes from the domain: Ask Memory::state(); never infer it from an error shape.

    line 36
  4. Very specific:

    Before calling work done: cargo fmt && cargo clippy && cargo test (the integration tests download the embedder/reranker weights on first …

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

funes — agent notes

Read this before changing the code or reporting an issue. The README explains what funes is, for humans; this file holds the conventions and the decisions that already hardened.

Surfaces to keep in step

A verb is described in four places. A change to one is a change to all four:

SurfaceWhere
CLI helpthe clap doc comments in src/main.rs
The agent contract#[tool(description = …)] and the schemars field descriptions in src/commands/mcp.rs — what an agent reads before it calls
User docsdocs/recall.md (recall, get), docs/sessions.md (sessions, sketch, scan), docs/ask.md, docs/push.md
Output shapethe *_agent renderers in src/ui/render.rs, pinned byte-for-byte by tests/index_recall.rs

Keep each surface to its own job: --help and the MCP schemas own flags and defaults, the docs own usage, the renderers and their tests own the byte shape. A fact repeated across two of them is a fact that will drift.

Decisions that already hardened

  • One agent format, everywhere. The read commands print the same layout to a terminal and to a pipe, and the MCP tools return those strings verbatim. There is no human rendering and no --format switch to add one back.
  • An integration never restates the tool surface. The pi extension registers what tools/list returns, so src/commands/mcp.rs stays the one place a verb is described to an agent.
  • --memory precedence. A tool call's own memory beats the server's (funes mcp <memory>), which beats the local memory. Same order for the CLI flag.
  • The stored harness facet for Claude is claude_code. --harness takes the CLI spellings (claude, and claude_code too) and normalizes before filtering; comparing a raw CLI name against the column silently matches nothing.
  • ask grounds in one turn. funes recalls in-process, embeds the passages in the prompt, and runs the agent with no tools and its MCP servers silenced. An A/B against agent-driven recall showed the agentic loop pays only on a first-retrieval miss, at several times the latency and cost.
  • A memory's state comes from the domain. Ask Memory::state(); never infer it from an error shape.

Working on the repo

Building needs protoc (lance compiles protobuf at build time). Before calling work done: cargo fmt && cargo clippy && cargo test (the integration tests download the embedder/reranker weights on first run). The maintained integrations live in huggingface/funes-integrations with their own tests, driven against fake agents; funes's suite knows no agent.

src/ is one layer per directory — traces, hub, memory, commands, ui, agents, inference — and where a new function belongs follows from that; the layers and the placement test are in CONTRIBUTING.md, also as the crate doc in src/lib.rs.

Inference has two backends behind the Embedder/Reranker traits (src/inference.rs): the default blas (src/inference/blas.rs, hand-written forward on Accelerate/faer) and the opt-in onnx (fastembed/ort). CI lints both on every PR, so also run cargo clippy --all-targets --no-default-features --features onnx before calling work done; cargo run --release --features onnx --example bench_backends A/Bs them (latency + agreement).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.