lettuce wiki
lettuce wiki
Helper for the LLM-wiki pattern: a curated catalogue of links and notes, designed for both human reading and agent navigation.
lettuce wiki init [dir] [--force] [--agents]
lettuce wiki has exactly one subcommand, init. Ingesting sources, generating slides, and
linting are top-level commands (lettuce ingest, lettuce slides, lettuce lint), not
subcommands of wiki — see their own pages.
lettuce wiki init
lettuce wiki init [dir] [--force] [--agents]
Scaffolds a vault as a Karpathy-style LLM-wiki. Drops four files into dir (the current
directory if omitted):
CLAUDE.md— the maintainer guide: how to ingest, query, and lint the wiki via Lettuce’s agent API / MCP tools.index.md— the curated catalog (becomes the site home when published), with a## Pagesheading where new pages get linked.log.md— an append-only ledger of what was ingested and when.sources/README.md— explains the raw, immutablesources/layer.
Existing files are skipped unless you pass --force.
With --agents, it also writes a tailored AGENTS.md (the file get_vault_info surfaces to
agents, alongside CLAUDE.md). See Agent reference/09 AGENTS.md.
You’ll see:
Scaffolded LLM wiki in /path/to/vault:
CLAUDE.md
index.md
log.md
sources/README.md
(with AGENTS.md appended to the list when --agents is given). If every file already
exists and --force is not set, it prints
Wiki files already present in <path> (use --force to overwrite). Nothing written.
Related
CLI cookbook/00 Overview —
lettuce ingest,lettuce slides, andlettuce lint