fux
A search engine for the documents your team writes. The index lives in git.
Ranked. Cited. Checked against the source. The same answer on every machine.
Built for your AI coding agent first. Works just as well with no AI at all.
No server · no API key · no model · zero dependencies · offline by default
fux is pronounced "fox".
Quickstart · Who searches it · Agents · Packages · Commands · Measured · Is it for you? · Roadmap · FAQ
Google does not store the web. It builds an index of the web, and the index is what you search.
fux does the same for the documents your team writes: ADRs, runbooks, specs, wiki pages, the PDF someone attached to a ticket in 2023. It builds a small index, commits it to your repository, and from then on anyone who clones the repo searches the same thing and gets the same answer. The primary searcher is your AI coding agent, which gets evidence it must cite and a refusal when the docs are silent. Because nothing inside fux is AI, the same index also serves a person at a terminal, an editor, and a script in CI, for free.
$ fux answer "how do I roll back a release"
# Deploying and rolling back
To roll back a bad release, run `make rollback` from the release branch.
The previous image tag is kept for 7 days.
Deploys go out from `main` every weekday at 10:00.
-- docs/deploy.md:L1-L6 (sha 6155f9c4ddf7, current)
$ fux ask --band "kubernetes autoscaling limits"
No confident matches.
confidence: none - nothing in the index scored for this query.
- The first answer quotes the exact lines it came from and checks that they still say that today.
- The second one refuses. Your docs don't cover the question, and a confident wrong answer is worse than none.
Edit the source, and the same answer tells you:
$ fux answer "how do I roll back a release"
note: 1 source(s) changed: docs/deploy.md.
…
-- docs/deploy.md:L1-L7 (sha a76c0744a2dc, stale)
In plain words
- fux is a card catalogue for your team's documents. It doesn't copy the books; it notes which words are on which pages.
- The catalogue lives in your git repo, so everyone who clones it, and every tool they use, searches the same thing.
- Ask a question and fux points to the page, quotes the lines, and tells you whether the page has changed since it was catalogued.
- If nothing in your documents answers it, fux says so instead of guessing.
- Your coding agent is the first customer. fux hands it ranked evidence with line numbers, and a refusal when there is none, so it stops inventing.
- No AI runs inside fux. It is arithmetic over words, so the same question gets the same answer on every machine. That is also why it works with no AI at all: the same index is a search engine for people and scripts.
Who searches it
The same index, five ways in. The coding agent is the primary one; the other four come free, because an index that is only arithmetic can be read by anything. None of them needs a server.
| who | how | what they get |
|---|---|---|
| Your AI coding agent (primary) | fux setup writes the skills; fux mcp serves the index |
evidence it must cite, and a refusal when the docs are silent, so it stops inventing |
| Your agent, in a package you depend on (5.1.0) | the package ships its own index; you pin it | one query over your docs and the docs of every pinned package, read in place |
| You, at the terminal | fux ask, fux answer, fux find |
ranked documents, or one answer quoted from the source with a current/stale verdict |
| You, in a browser or editor | fux serve, fux lsp, the VS Code extension |
a local search page that shows why each document ranked; search, link hovers and backlinks in the editor |
| CI and scripts | fux find --json, fux verify, fux doctor |
file paths to pipe, a receipt checked against the tree, a read-only health check |
The longer version, as five short stories, is How fux is used.
Why not just grep?
grep and rg are the right tool when you know the string. fux is for when you know the question.
grep / rg |
fux | |
|---|---|---|
| Finds a string you already know | ✅ | ✅ fux find |
| Ranks documents for a question | ❌ every line, in file order | ✅ BM25F, field-weighted, best page first |
| Says "I don't know" | — | ✅ a confidence band, and a refusal below it |
| Cites what it found | lines, unranked | ✅ exact line ranges, plus a current / stale verdict against the source |
| Same result on every machine | ✅ | ✅ byte-identical |
| Index reviewable in a pull request | — | ✅ plain JSONL, diffs like code |
| Reads PDF, Word, Excel, slides, wiki pages | ❌ | ✅ through declared decoder packages |
| Needs anything hosted | no | no |
- 🗂 Clone and ask. The index lives in
.fux/index/. Every clone searches the same thing: yours, a teammate's, CI's and your agent's. Nothing to deploy. - 🔍 Answers you can audit.
answerre-reads the cited lines from the source and says whether they still match.--receiptrecords the index, settings and source shas an answer came from, andfux verifychecks a receipt against the tree. - 🔒 Offline unless you ask. No telemetry and no network on any default path. PII is redacted before anything is committed.
- 🧾 Your docs never move. fux stores statistics, not content. Sources stay in the repo or in the system that owns them.
- 🤖 Agents first, everyone else free.
fux setupwrites ready-made skills for Claude Code, Codex, GitHub Copilot and Kiro; that is the primary path. Turn them off with--no-agentsand the same index is still a search engine for people and scripts.
60-second quickstart
pip install fux-engine # Python ≥ 3.12 · Linux, macOS, Windows · zero deps
cd your-repo
fux setup # writes .fux/, fux.toml, the agent files; prints one pip install line if your docs need decoders
fux ingest # indexes README.md and docs/ by default
fux ask "how do we roll back a release"
git add .fux fux.toml && git commit -m "Add fux index"
That's it. Your teammates, their editors, your CI and their agents now get the same answers from a plain git clone.
- What gets indexed is listed in
.fux/sources.yaml(README.mdanddocsto start). Anything you don't want indexed goes in.fux/.fuxignore. fux ingestreports what it did:ingested 3 docs (3 changed, 0 carried forward), 0 not indexed, 0 skipped, 3 shards written.fux doctorchecks the setup. It's read-only and offline.
No Python on the machine? Install the single-file, zero-dependency Node reader from npm:
npm install fux-engine, thennpx fux find rollback(Node ≥ 22; the package'sbinisfux). The Node reader ranks and answers; ingest is Python. A repository pins it by listingfux-enginein its ownpackage.json.
A machine that only reads, or only writes? fux ships as four packages on one version.
fux-engineis all of them.fux-readerranks and answers,fux-writeringests and keeps the index current, andfux-coreis what both share. A verb from a package you didn't install is refused by name.
Prefer a library?
from fux import open as fux_open fux_open(".").ask("how do we roll back a release")
Plug it into your coding agent
fux setup # skills + instructions for Claude Code, Codex, Copilot, Kiro, plus AGENTS.md
fux mcp # MCP over stdio: fux_search, fux_passage, fux_related
fux lsp # LSP over stdio: search, link hovers, backlinks, archived-link warnings
fux llms --full # an llms-full.txt of the corpus, to stdout
VS Code: install the .vsix from the latest release with code --install-extension fux-<version>.vsix. It registers fux mcp for agent mode automatically and runs fux lsp, so there's no mcp.json to write (vscode/ · SR-VSCODE).
- The instructions teach the agent to search the index before grepping, to read the JSON rather than the prose, and to treat an archived document as history rather than as the current design.
- There's deliberately no
answertool over MCP. The agent is the answerer; fux is the evidence (SR-AGENT-POLICY · SR-MCP). - Turn the agent files off with
[agents] install = []infux.toml, or withfux setup --no-agents.
Packages that ship their own index
Released in 5.1.0 (SR-PKG-INDEX).
A library's documentation is a corpus too, and today every consumer who wants to search it has to index it themselves. Since 5.1.0, the package author does it once:
- The author runs
fux ingestover the package's docs andfux packto produce a small index segment, and ships it inside the npm tarball or the wheel (the recipe). - The consumer pins it with one row in
.fux/config/plugins.toml, by name, version and digest. - One query searches the repo's own index and every pinned package's, ranked once on word statistics summed across all of them;
fux ask --scope repo|packages|all(andscopeonfux_search) narrows it when a large package crowds the top of the list. A hit names its package, and the passage is read in place inside the installed package. Nothing is copied; nothing is re-ingested.
Take sheetpane, two web components that view, edit and review .xlsx and .csv files inside any web page. Once its CI packs an index (it does not yet), an app that depends on it can ask "does sheetpane support formulas" and get the line from sheetpane's own docs that says it doesn't, next to the hit from the app's own ADR that says why it was chosen anyway. The first consumer is codelaw's rule packs: the spike that gated the design put the right rule in the top five for 19 of 20 plain-words questions, against a bar of 16 (run).
The 10 000-document design point counts the merged corpus, repo plus every pinned segment, and fux doctor reports the sum.
What it can read
- Built in: Markdown and plain text.
- Through declared decoder packages: reStructuredText, AsciiDoc, Org · PDF, Word, PowerPoint, Excel, CSV/TSV · JSON, JSONL, YAML, TOML, INI, XML, RTF · HTML, email, draw.io, SVG · images (via your agent,
fux enrich). - Web pages and wikis:
fux add <url>, over plain HTTP or through the session your signed-in Chrome already holds, so internal wikis work too.
Since 5.0, only the engine is mandatory. Every other format is read by a fux-decoder-* or fux-fetcher-* package that your repository declares in the committed .fux/config/plugins.toml, pinned to one version and digest; fux setup scans your sources, writes the declaration and prints the one pip install line. A package nobody declared never runs (SR-PLUGINS, SR-DECODE, SR-FETCHER).
Everyday commands
| I want to… | Run |
|---|---|
| Rank documents for a question | fux ask "…" |
| One answer, quoted from the source | fux answer "…" |
| Just file paths, for piping | fux find "…" |
| Know why something ranked, or how sure fux is | fux ask --why "…" · fux ask --band "…" |
| Machine-readable output | add --json |
| Index another folder, file or URL | fux add <path-or-url> |
| Re-index after changes | fux ingest (or fux hooks to do it on every commit) |
| Fix a wrong answer, durably | fux correct "<question>" <doc-that-answers-it> |
| Follow links between docs | fux explain <doc> · fux graph "…" · fux path <a> <b> |
| Find duplicate, unreachable or boilerplate docs | fux inspect |
Keep IDs whole (RF 118 = RF-118) |
fux identifiers |
| List what is in the index, one line per document | fux register (--json for scripts) |
| See it all in a browser | fux serve: Ask, Answer, Documents, Words, Index, Identifiers |
| Check the setup | fux doctor (read-only, offline) |
fux ask --why shows its working:
$ fux ask --why "how many times do we retry a card"
[why] reachable 3 -> window 2 -> placed 2 -> answered 1 (cut at 0.4903)
#1 docs/adr-007-retries.md 2.7167 matched retry,card absent many,times,do
#2 README.md 0.4903 matched card absent many,times,do,retry
Full surface: fux --help and SR-CLI.
Measured, not assumed
Every claim ships with a pre-registered bar and a published run, including the ones that failed.
- ⚡ 27.2 ms worst-case p95 for warm
ask --fastover 8,870 RFCs, against a 150 ms bar (run). The fast path must return byte-identical results to the full scan. - 🕸 24/24 on a graded 66-document graph corpus, with the derived graph hashing identically on x86-64 Linux and arm64 macOS (run).
- 📦 19/20 plain-words questions found the right rule in the top five of a published rule pack, the spike that gated package indexes (run).
- 🪦 Failures kept on file. Index pruning failed its gate (verdict). A dense embedding lane fixed 0 queries and broke 2, so it was deleted (verdict).
Is fux for you?
Choose fux when:
- your coding agents keep answering from stale or invented context, and you want every answer tied to lines you can check (the primary case);
- you want search over what your team wrote down, from a fresh clone and in CI, with nothing to host and no key to manage;
- your knowledge is spread across formats: Markdown, PDFs, Office files, wiki pages;
- you need answers that are reproducible and auditable, such as for regulated or review-heavy work;
- you maintain a library and want its users, and their agents, to search your docs without copying them (5.1.0, above).
Look elsewhere when:
- you want code search. fux has no AST, no symbols and no call graph. Pair it with a code-graph tool; fux covers what you wrote down.
- you want semantic matching out of the box. Ranking is lexical. If your docs say "revert" and you ask "undo", use
--expand, or teach it once withfux correct. - you are building a chat feature into a product. That is a vector store, an embedding model and a server, run for your end users at runtime. fux is the developer-side index of a team's own documents, committed next to them. Different job; see the FAQ.
Roadmap
From the live queue, work/OPEN-WORK.md:
| what | state | |
|---|---|---|
| ✅ | Index-and-refer engine, Python and Node readers, MCP, LSP, VS Code extension | released |
| ✅ | Decoders and fetchers as fux-decoder-* / fux-fetcher-* packages, declared in .fux/config/plugins.toml |
released, 5.0.0 |
| ✅ | Packages ship their own index; one query over repo + pinned packages; fux pack |
released, 5.1.0 |
| 🔜 | Live URL-source checks: a vanished source, a real rate limit, parallel signed-in fetches | checklist written; waiting on a hands-on session |
| 🧭 | Ingest of 10,000 documents in under a second | proposal filed; order to be decided |
| 🧭 | Better abstention, ranking-parameter tuning, a stronger intent lexicon | research |
FAQ
Do I need an AI to use fux? No. fux is built for AI coding agents first, and that is where most teams start. But no AI runs inside it, so the same index is a plain search engine with a terminal, a browser page, an editor plug-in and a library interface. Scripts and people are the second audience, and they need nothing extra.
Is fux a vector database, or a RAG stack? No, and it isn't trying to be. A vector store plus an embedding model is what you run behind a chat feature inside a product, serving end users at runtime. fux is the index of the documents a team writes, committed with them and searched by the people and tools working on that repo. If you build a product chatbot later, fux can be the thing that hands it cited, verified passages; it does not replace the chatbot's own stack.
Does fux call an AI model?
No. No fux path may call a model, and nothing in the maintenance path uses one. Your agent can generate enrichment through fux enrich, and fux validates it.
Does my content get copied into the repo?
No. The committed index holds statistics, not your documents' text. answer fetches the cited lines from the source at answer time.
What stops a secret from reaching git?
.fux/config/pii.toml redacts matches before anything reaches the committed index, and fux won't run without it (SR-PII).
Does it need the network?
Only for commands you run on purpose, such as fux add <url>, and they say so on stderr (L5).
How do teammates stay in sync?
They pull. The index is plain JSONL in git, it merges with fux hooks' merge driver, and a pull request shows exactly what changed.
How big can it go? The design point is 10 000 documents, and that is a ceiling on what fux measures and promises, not a target it merely reaches. Every published number was taken at or below it.
Status
5.1.0 is the latest release on PyPI (pip install fux-engine) and npm (npm install fux-engine). The index format is versioned, and fux tells you when to run fux ingest --full. Every change is in CHANGELOG.md.
⭐ Star the repo if fux saved you, or your agent, from one confident wrong answer. It's how other people find it. 👀 Watch → Custom → Releases to hear about new versions.
Under the hood
Architecture diagrams
- The whole idea in one picture
- How
askworks · howanswerworks · decoders - Python and Node, component for component
- Every plane, what is committed and what isn't
- The paper, the architecture of record, with twenty diagrams
The fifteen laws fux is built under
Every decision of record lives in the SR register (SR-LAWS):
L0 SRs are the source of truth ·
L1 a retired SR is archived ·
L2 $0, FOSS-only ·
L3 content never durable ·
L4 deterministic ·
L5 offline by default ·
L6 say "index" ·
L7 Python ≥ 3.12 ·
L8 Node ≥ 22 ·
L9 use record never committed ·
L10 build output, never source ·
L11 the sealed answer key is closed to Claude ·
L12 every value lives in a config file ·
L13 a ranking change ships only through the standing bar ·
L14 the machine budget is always followed.
The laws were renumbered on 2026-09-28; an older document is read through SR-LAWS decision 2a.
Security and sensitive text
.fux/config/pii.tomlredacts matches before anything reaches the committed index; fux will not run without it (SR-PII)..fux/config/refusals.tomlstops a sign-in wall being indexed as the page behind it (SR-REFUSAL).- Only explicit, opt-in commands touch the network, and they say so on stderr (L5).
- To report a vulnerability, see SECURITY.md.
Reading order for contributors
CONTRIBUTING.md: build, test and what a pull request owesdocs/index.md: the map of every doc in the repo- The SR register: every decision of record
- The paper: what ships, what was measured, what was designed and not built
- Sibling environments: the sandbox, measurement lab and benchmark harness
CLAUDE.md: how work is done here, for people and agents
Contributing
Issues and PRs are welcome, and a bug report with a failing query is gold. See CONTRIBUTING.md for the build, the two test suites and what a change owes its record. Please follow the Code of Conduct, and report security issues privately (SECURITY.md).
License
MIT. Free forever, with FOSS-only dependencies forever (L2).
Metadata
Release files for fux-engine 5.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fux_engine-5.1.1.tar.gz | 51.7 MB | With provenance | Details for fux_engine-5.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fux_engine-5.1.1-py3-none-any.whl | Python 3 | none | any | Details for fux_engine-5.1.1-py3-none-any.whl |
Total release size: 51.8 MB
Release files / fux_engine-5.1.1.tar.gz
| Download URL | fux_engine-5.1.1.tar.gz |
|---|---|
| Size | 51.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07cf946073de12c9a480042ec776cf5e5a8c48e55b2bbdab759273f5672b9daa
|
|
BLAKE2b-256 checksum How to use checksums |
046a5aace236e63ee3c53f22eca6c2bc041ad8d38fe8159cfcc82e7e25eab470
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / fux_engine-5.1.1-py3-none-any.whl
| Download URL | fux_engine-5.1.1-py3-none-any.whl |
|---|---|
| Size | 111.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20fdd7b0fdc9307d967a08ea420aed4d4f6fb1204af6faaf56432888cb46d7ec
|
|
BLAKE2b-256 checksum How to use checksums |
a374a957dcb45bab36e03294aa39688b5b40b16a79f3ecce2b1656ac10c5a7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for fux-engine 5.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fux_engine-5.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.