An open research record: what you and your agents find, kept per entity in the source's own words, with every change on file.
Docs · Questions and ideas · Contribute
$ analects check sources/apatura/ravenscraig-the-project.txt --source https://consult.apatura.energy/ravenscraig/the-project ...
check https://consult.apatura.energy/ravenscraig/the-project [management_statement] refused 1 new 2
refused — not staged — the document does not support this
Ravenscraig capex=GBP 3.9bn
this quote is not in the document. Re-read it and copy the exact words, or drop the claim.
From examples/uk-data-centres.sh, which runs on saved pages with no network. Every headline reports a £3.9bn investment in the campus. The developer's own page does not say it, so Analects refuses to record it from that page.
You need uv and Python 3.11 or newer.
uv tool install "git+https://github.com/KindTechUK/analects"
analects init --me <your-handle>
analects schema testThen connect your agent — claude mcp add analects -- analects mcp for Claude Code — and read
your first research run. To watch it work first, run
the example above from a clone: uv sync, then bash examples/uk-data-centres.sh.
Analects is for research that has to stand up: who is building which data centre, which company is behind it, how a representative voted, what a register says now and what it said last month. You and the agents working for you record what you find as claims about entities. Every claim cites an event — a document, a locator and the exact words, checked against a saved copy of the page. Nothing is written from memory, and nothing is overwritten: a newer value supersedes an older one, or contests it, and the history stays readable.
It runs as a CLI and as an MCP server, so it works with Claude Code, Claude Desktop, claude.ai (through a hosted peer) and any MCP client.
- Research memory for an agent.
analects briefsays what is known, unverified, contested, stale or missing; the agent researches that and writes back under the same rules, into its own changeset for you to review. - Public sources, imported politely. Planning portals and appeals in Scotland, England and Wales; the UK and Scottish parliaments; Companies House; the GB grid queue; Epoch AI's data centres. Each value is quoted from its source.
- Whole populations. Scopes say who belongs, sweeps find who is missing, gaps are found by rule across a set, and outside lists are checked for how much of them you hold.
- Shared and published. A dataset is a git log of signed bundles anyone can rebuild; a scope can be published as a static site; a hosted peer lets people sign in and work together.
- Every value cites an event: a source, a locator and a verbatim quote.
- The quote must be in the saved text of the source, or the write is refused.
- Nothing is overwritten: corrections are new claims or retractions.
- A name is not an identity: an uncertain match is a question for a person.
- Every write is staged, and merged under your policy.
- Synthesis is labelled as inference, never stored as evidence.
| Getting started | install, configure, a first research run |
| Guides | research with an agent, connect MCP, import sources, publish a site, share a dataset, host a peer, write a pack |
| Reference | the CLI, the MCP tools, the pack format, the design |
| Decisions | every design decision, numbered, and what replaced it |
| Roadmap | where the build stands, and what is next |
llms.txt |
the docs, indexed for a language model |
| The Analects skill | the manual an agent works from |
bash examples/uk-data-centres.sh # a £3.9bn AI campus, checked against four primary sources
bash examples/mp-interests.sh # one MP, five official sourcesBuilt with Analects: UK data centres (proposals in Scotland, England and Wales — applications, deadlines, decisions, appeals, who is behind each company and, in Scotland so far, how their representatives voted), UK politicians (members, interests, votes, words) and US data centres. Each lives in its own dataset repository and is published as a site.
src/analects/ |
the engine, the CLI, the MCP server, the hosted peer, and the packs Analects ships with |
examples/ |
the two investigations above |
docs/ |
the docs site |
skills/analects/ |
the agent skill |
tests/ |
unit tests, golden sessions replayed offline, and the captured sources they use |
scripts/ |
the decision index, the CLI reference and the release check |
uv sync && uv run pytest # the whole suite, offlineThe code is Apache-2.0. Datasets and sites made with Analects are CC-BY-4.0
unless they say otherwise, and every value keeps the attribution of the source it
was quoted from. The captured sources under tests/golden/sources/ are public and
keep their own licences: UK Parliament data under the
Open Parliament Licence,
Companies House, NESO and GOV.UK data under the Open Government Licence v3.0, a
subset of Epoch AI's data centres and
Democracy Club under CC-BY. Real people appear only through those sources, quoted
verbatim; invented scenarios use invented people. See NOTICE.