Skip to content

D69 — kg is renamed Analects, and the old names keep working

  • Status: Accepted — amends D26 (where the config lives) and D65 (the package, the command and the layout)
  • Date: 2026-11-20
  • Origin: positioning the open source project and its hosted service
  • Area: build

Decision

  • The name. The project is Analects: an open research record, where what a person and their agents find about the world is kept per entity, in the source's own words, with every change on file. "Analects" is from the Greek for things gathered: passages collected from their sources by many hands.
  • What is renamed.
Was Is
the package kg, code in src/kg/ analects, code in src/analects/
the command kg analects
~/.kg/ and ~/.kg/kg.yaml ~/.analects/ and ~/.analects/analects.yaml
$KG_CONFIG, $KG_DB and every other $KG_… setting $ANALECTS_…
kg-serve.yaml analects-serve.yaml
the agent skill in skills/kg/ skills/analects/
the MCP server and the Datasette plugin, named kg named analects
the hosted peer's cookies kg_… analects_…: everyone signed in signs in once more
  • The old names keep working. kg stays as a second command for the same program. A setting is read as $ANALECTS_<NAME> first and $KG_<NAME> second. The home folder is ~/.analects unless only an old ~/.kg exists, and the config is analects.yaml there unless only an old kg.yaml does. analects serve with no --config reads analects-serve.yaml, else an old kg-serve.yaml. Nothing anyone has set up has to move.
  • What is not renamed.
  • The formats inside signed files: kg-bundle/1, kg-dataset/1, kg-scope/1 and the signing namespace kg-bundle. A bundle's signature covers them, so renaming them would break every dataset already shared.
  • The built-in packs (datacenter@0.1, politician-uk@0.1, _shared@0.1). A pack's text travels signed in every brief, so its instructions keep saying kg until a pack's next version. kg still runs them.
  • Accepted ADRs, which are never rewritten, and the project history.
  • graph.db, the local graph's file.
  • The hosted peer clears both names of every setting it sets, so an old $KG_AS or $KG_CONFIG left in the environment of whoever runs it cannot stand in for the peer's own (D51).

Why

"Research graph" and kg said the store is a graph. It is a log of quoted claims, loose in shape and heavy with text, and any graph is a view of it (D27). The name was also generic: kg reads as "knowledge graph", and the name kg on PyPI is held by an unrelated tool.

Keeping the old names working costs a few lines and saves every existing graph, config, signing key, MCP setting and dataset workflow from a move.