Aemon/ documentation source ↗
Aemon / local docs corpus

Documentation your agent can query locally.

Aemon keeps versioned documentation for hundreds of libraries in a single SQLite file with an FTS5 index. Queries run locally in about 10 ms; a decision model picks the library from your stack; a scheduled crawler keeps sources current without spending tokens.

Corpus

~950 versioned docsets

DevDocs, docs.rs rustdoc JSON, git repos, llms.txt sites, registry READMEs and Apple Developer frameworks — every corpus records its source and licence.

Retrieval

BM25 first, models optional

Two stages, and only the first is mandatory. Expansion and listwise reranking are cached, fused with the lexical order, and judged in evals you can rerun.

Crawler

No tokens, runs on a timer

A crawl is HTTP, HTML-to-text and FTS inserts. Incremental by ETag and content hash; unseen URLs before indexed ones, deepest pages first.

Install

# Download a binary, or build it.

Download the archive for your platform from the Aemon release page on GitHub ↗, and take its sha256 file from the same release. Each archive holds aemon, LICENSE and NOTICE.

  • macOS Apple Silicon macOS 11 or newer · ad-hoc signed install image
  • Linux x86_64 glibc 2.17 or newer
  • Linux aarch64 glibc 2.17 or newer

macOS is Apple Silicon only. There is no Intel build. Release images are ad-hoc signed rather than notarized, so macOS asks for approval on first run: clear the quarantine bit or allow it in System Settings → Privacy & Security. The install guide has the exact commands.

# Linux x86_64. Get the checksums file without a version lookup:
curl -LO https://github.com/cloudflavor/aemon/releases/latest/download/aemon-x86_64-unknown-linux-gnu-checksums.txt
# Download the archive named on the release page, then:
sha256sum -c aemon-x86_64-unknown-linux-gnu-checksums.txt
tar -xzf aemon-v<version>-x86_64-unknown-linux-gnu.tar.gz
install -m755 aemon ~/.local/bin/

From source it needs a stable Rust toolchain and a C toolchain for the bundled SQLite and zstd: cargo install --path .. Either way, aemon doctor is the first command to run. Install guide →

Quick start

# Build the corpus, ask it questions.

aemon devdocs add --all            # ~840 versioned corpora (~4 GB)
aemon crate serde@0.9              # rustdoc JSON from docs.rs
aemon search "select_related" -l django
aemon search "why is my build slow" --auto --rerank

Everything runs on your machine. The corpus is never redistributed: the sources/ recipe lists every corpus with its upstream source and licence, so you rebuild it locally under your own legal judgement.

The main ways people use it

# Ingest, query, decide, keep current.

# Ingest once

Load DevDocs docsets, docs.rs rustdoc JSON, git repositories, llms.txt sites, registry READMEs, Dash/Zeal docsets, and the Apple Developer JSON API into one SQLite corpus.

Open docs →

# Query in milliseconds

BM25 with kind, title, symbol and exact-match re-scoring answers most questions in about 10 ms. Optional expansion and listwise rerank fuse with that order instead of replacing it.

Open docs →

# Let the decider pick the library

--auto reads your stack file and the whole library catalog, then returns a plan: which libraries the question is about, whether to expand, whether to rerank. A preference, never a filter.

Open docs →

# Keep sources current

Register any documentation site and a scheduled pass crawls it: sitemap discovery, robots.txt honoured, ETag-based incrementality, deepest pages first. No model, no tokens.

Open docs →
Integrations

# Built for agents, not just terminals.

An outline → get flow with token budgets keeps context small; --json gives scripts a stable outer object; the MCP stdio bridge in deploy/aemon-mcp exposes docs_search, docs_outline and docs_get to MCP clients; and the SQL schema is documented, so reading the database directly is a supported interface.

Read the JSON API guide → · Inspect the schema →

Aemon / reference

Aemon documentation guides

Build and query a local documentation corpus with Aemon. Browse guides to ingestion, retrieval and the decider, scheduled crawling, the SQL schema, and the JSON API.

Documentation snapshot from https://github.com/cloudflavor/aemon at revision a85ee1d024b8, not a current-release selector.