dsh-annals

Memory that outlives the session, kept as plain daily log files: one markdown file per day plus a generated index the agent greps instead of re-reading. Registers the annals skill, injects the write-it-down rules into the system prompt, and exposes three tools — annals_init builds the log directory, the index generator and a separate Git repository in one call; annals_query full-text searches past entries and returns them with file and line anchors; annals_links resolves which entry cites which. Reminds the agent once per turn when it changed files but wrote no log that day, and once more when the log was updated but the index was not. Adds a settings page for the six switches.

Overview

Memory that outlives the session, kept as plain daily log files: one markdown file per day plus a generated index the agent greps instead of re-reading. Registers the annals skill, injects the write-it-down rules into the system prompt, and exposes three tools — annals_init builds the log directory, the index generator and a separate Git repository in one call; annals_query full-text searches past entries and returns them with file and line anchors; annals_links resolves which entry cites which. Reminds the agent once per turn when it changed files but wrote no log that day, and once more when the log was updated but the index was not. Adds a settings page for the six switches.

Installation

Install from npm

dsh plugin --profile web add dsh-annals

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:duhuashan/dsh-annals

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.