Configuration

katra/config.yml is small on purpose: presentation, the two git-hook knobs, and the memory-ingest settings. Everything else about an entry lives in the entry.

title: HellHole Country Club
description: Night golf, in VR, on a course that hates you
accent: "#b5502f"
colophon: true
rawHTML: allow

autoCommit: false
commitPrefix: "katra:"

memory:
  enabled: true
  types: [project]
  sensitiveTerms: [acme-internal, staging-key]

The file’s presence is what marks a directory as a katra — FindStore looks for config.yml, which is why an empty katra/ is not one.

Keys

Key Type Default Description
title string the repo name Shown in the viewer and in the hub’s project list.
description string A living, committed chronicle of development. Subtitle in the viewer.
accent colour "#e0533d" Viewer accent colour. Also tints this project’s card in the hub.
colophon boolean true The one-line “Chronicled with katra” footer on a built site. Set false to remove it. See below.
autoCommit boolean false Whether the post-commit hook commits the stamp itself. See below.
commitPrefix string katra: Prefix for the hook’s own stamp commits.
memory.enabled boolean true Whether Claude Code memory is ingested at all.
memory.types list of strings [project] Which memory metadata.type values are admitted.
memory.sensitiveTerms list of strings none Extra strings that quarantine a memory on match, case-insensitive, layered on the built-in secret detectors.

Quote a colour. Unquoted, #b5502f is a YAML comment and the key silently becomes empty.

A built site carries one quiet line at the end of the page:

Chronicled with katra

That is the whole of it — no badge, no logo, no version string. It exists because a published katra is the main way anyone discovers katra: a reader who likes the devlog they are reading currently has no way to find out what made it.

To remove it:

# katra/config.yml
colophon: false

That is the entire opt-out, and it is honoured on the next katra build with no other change. Nobody has to justify turning it off.

It defaults to on because a credit nobody switches on is not a credit. It is computed from config on every build rather than written once into the output, so it survives a re-generate — and so does its absence: turning it off stays off without anyone re-editing generated files.

The footer renders at the end of the scrolling column rather than in the sidebar, because the sidebar is hidden below 860px and a credit no phone reader ever sees is not doing the job.

autoCommit, and why it defaults to false

The post-commit hook stamps the active draft with the commit you just made. That stamp is itself a change to a tracked file, so something has to decide what happens to it.

Value Behaviour
false (default) The stamp is left as a working-tree change. You include it in your next commit.
true The hook commits the stamp itself, as a second commit, using commitPrefix.

The default is false because a hook that creates commits behind you is surprising the first time, and because it interacts badly with anything watching your working tree — an interactive rebase, a git bisect run, a CI script that asserts a clean tree. Turn it on once you trust it; it removes the “stamp is sitting uncommitted” state entirely.

The hook does not stamp its own bookkeeping commits, and does not stamp a commit that only touched the katra directory. Without that, autoCommit: true would be a loop.

Memory ingest

katra can read Claude Code’s own project memory and fold it into a private ledger, so the log gets the play-by-play without you re-typing it. The mechanism is a three-stage pipeline — ingest, author, publish — and the config only governs the first stage.

  • enabled: false turns the whole thing off. Nothing is read, and no ledger is written.
  • types is the allowlist of memory metadata.type values. The default is [project] — the type that describes ongoing work — deliberately excluding user (who you are) and feedback (how you like to be worked with), because neither belongs in a log you commit.
  • sensitiveTerms are quarantine triggers, layered on top of built-in detectors for things shaped like secrets. A memory generation that matches is held in the ledger rather than offered for ingest, and katra memory status reports it as quarantined.

The ledger lives in katra/.state/. See the design note for the full pipeline.

What is not configurable

Some absences are deliberate:

  • No theme system. The viewer is one design. accent is the knob, and the static build is a directory you can restyle yourself if you must.
  • No entry template. katra new writes frontmatter and an empty body. A template would produce entries shaped like the template rather than like the work.
  • No per-entry output settings. An entry renders the same everywhere it renders — live, static, and in the hub — because a component that only worked in one of them would be a trap.

The state directory

katra/.state/ holds the agent-session records, the memory ledger and the reconciliation receipts. It is machine state, not log content: deleting it loses in-flight reconciliation bookkeeping, not any entry.

It is excluded from git by a katra/.gitignore that the memory layer writes the first time the ledger is created — not by katra init. So a katra that has never run an agent session has no .gitignore and no .state/, which is correct but does mean the ignore rule appears later than you might expect. If you are committing for the first time after enabling the hooks, check that .state/ is not staged.

Raw HTML

rawHTML decides what happens to HTML written directly in markdown.

  • allow, the default, keeps it in the page. The viewer’s content security policy still stops it running script: inline handlers, javascript: links and <script> tags do nothing.
  • sanitize strips it, along with javascript: links. Components still render, because they are katra’s own output. <details> and every other HTML tag are stripped too.

Any other value counts as sanitize, so a typo cannot leave a security switch off. Set it on a katra whose entries come from people you do not fully trust. The key is per store and lives in the same repository as the entries, so review changes to it the same way.

Migrating: allow keeps every existing page’s markup, but markup that relied on inline script no longer works. See Migrating to the opaque-origin sandbox.


Back to top

katra is MIT licensed. Your log is markdown in your repo — nothing is stored anywhere else, and uninstalling leaves every entry readable.

This site uses Just the Docs, a documentation theme for Jekyll.