Manual
Almnck.
Price: 50ⓐ

Index Maker Design

An old-fashioned back-of-book index for the Almanack, mapping people, places, concepts, works, events, and organizations to the articles that mention them.

Overview

The index is a Markdown file that lives in the editorial directory and gets published as a page on the site. New articles are indexed manually via a CLI tool that uses an LLM to extract and categorize indexable terms.

File Locations

File Purpose
editorial/pages/index/page.md The index itself (published at /index/)
bin/update-index CLI tool for indexing articles
assets/prompts/indexer.md LLM prompt template
src/almnck/core/citations.py Shared citation formatting functions

Index Format

Entries are alphabetized under letter headings, with hierarchical sub-entries indented by two spaces:

## A

Assemblies, popular — "The First Assembly" Vol. 1, i·1
  Girsu assembly — "The First Assembly" Vol. 1, i·1

## B

Backup systems — "Look Back Up" Vol. 6024, i·1
  borg — "Look Back Up" Vol. 6024, i·1
  rsync — "Look Back Up" Vol. 6024, i·1

## G

Girsu — "The First Assembly" Vol. 1, i·1
  see also: Lagash

Citation Format

Citations follow the pattern "Title" Vol. X, roman·day where:

  • Volume is the Anno Mundi year (Gregorian year + 4000)
  • Month is a lowercase roman numeral (i, ii, iii, iv, v, vi, vii, viii, ix, x, xi, xii)
  • Day is the numeric day of month

Examples: - "Look Back Up" Vol. 6024, i·1 (2024-01-01) - "The First Assembly" Vol. 1, i·1 (-4000-01-01)

This format is generated by a shared function in src/almnck/core/citations.py, allowing the citation style to be changed in one place.

Categories

The index covers:

  • People — named individuals (Neil Armstrong, Ur-Nanshe)
  • Places — geographic locations (Girsu, Vancouver, the Moon)
  • Concepts/Topics — abstract subjects (backup systems, cuneiform)
  • Works — books, software, artifacts (borg, rsync, the Vulture Stele)
  • Events — named happenings (the First Assembly)
  • Organizations — groups, institutions (Noisebridge, Lagash)

CLI Tool

Usage

bin/update-index article-slug [article-slug ...]  # index specific articles
bin/update-index --new                            # index all un-indexed published articles
bin/update-index --status                         # show what needs attention

Status Command

The --status flag uses git to detect:

  • Published articles not yet mentioned in the index
  • Articles modified since the index was last updated
$ bin/update-index --status
New (not indexed):
  regolith-with-latitude

Changed since indexed:
  ⚠ look-back-up (modified 3 days ago, index updated 2 weeks ago)

Up to date:
  ✓ the-first-assembly

Change detection compares git commit timestamps: if an article’s last commit is newer than the index file’s last commit, it’s flagged for review.

Indexing Workflow

  1. Read current editorial/pages/index/page.md (the full index)
  2. Read content of specified article(s)
  3. Compute citation from almanac-day via the citation function
  4. Load prompt template from assets/prompts/indexer.md
  5. Pass index + article content + citation to LLM
  6. LLM outputs new/modified entries only
  7. Merge into index, maintaining alphabetical order
  8. User reviews the diff and commits

LLM Integration

Uses Simon Willison’s llm library for model flexibility. The prompt template lives in assets/prompts/indexer.md and can be edited without touching code.

The prompt receives: - The current index (full text) - Article content and frontmatter - Pre-computed citation string

The LLM returns only new or modified entries, which the tool merges into the existing index.

Shared Citation Library

src/almnck/core/citations.py provides citation functions used by both Django and CLI tools:

def format_citation(title: str, almanac_day: str) -> str:
    """
    Convert almanac-day to citation format.

    >>> format_citation("Look Back Up", "2024-01-01")
    '"Look Back Up" Vol. 6024, i·1'
    """

def parse_citation(citation: str) -> tuple[str, str]:
    """Extract title and almanac-day from a citation string."""

Integration with Site

The index lives at editorial/pages/index/page.md. As a page under editorial/pages/, it will be rendered by the existing sync workflow as a page at /index/ on the published site.

Future Considerations

  • Style and tone guidance in the prompt (Almanack voice)
  • Finer granularity (paragraph/footnote level) if the corpus grows large
  • Cross-references (“see” and “see also”) as a deliberate editorial practice