worklog-persist
A focused Claude Code plugin that gives your sessions a durable work-state
layer backed by the Outline MCP server. It preserves the state of active
engineering work between agent sessions: what task is in progress, what was
verified, what changed, which decisions were made, what is blocked, and what the
next action is.
It is a persistence layer only. Graph synchronization, reflection promotion and
curriculum clustering are deliberately not part of this plugin.
The plugin is named worklog-persist, not outline-persist: the outline name
belongs to the Outline MCP server and the separate outline
KB skill, and a plugin with the same name shadows them. Only the plugin identity
changed. The MCP server entry, OUTLINE_API_TOKEN and the Outline document
routing are untouched.
What it does
- Reads current work context from Outline before non-trivial work.
- Records task start, verified checkpoints, handoff and completion.
- Keeps one record per work item (idempotency key = resolved project + task slug),
so repeated checkpoints update rather than duplicate.
- Redacts secret-shaped values before anything is written.
- Never claims a write succeeded unless Outline confirms it; states plainly when
Outline is unavailable and continues.
Install
Requires the claude CLI and an outline MCP server reachable via the standard
HTTP transport, Cloudflare Access + Bearer token, all from environment
variables — no credentials, and no one operator's Outline URL, are stored in
this repo. Set before first use:
export OUTLINE_MCP_URL="https://outline.example.com/mcp" # your Outline instance's MCP endpoint
export OUTLINE_API_TOKEN="..." # Outline API token
export CF_ACCESS_CLIENT_ID="..." # only if behind Cloudflare Access
export CF_ACCESS_CLIENT_SECRET="..."
Claude Code expands ${VAR} placeholders in a plugin's .mcp.json for http
server url and headers fields at session start; see the
MCP docs.
make # every target, with a one-line description each
./install.sh # dry-run by default: prints the plan, touches nothing
./install.sh --apply # execute, confirming each step
./install.sh --apply --yes # non-interactive
./install.sh --check # validate plugin structure only (no claude needed)
make plan # == ./install.sh
make install # == ./install.sh --apply, and REFUSES from a worktree
--apply refuses to run from a linked git worktree. marketplace add records the
checkout path, and a worktree path is deleted with its branch.
Re-running ./install.sh --apply is safe: it skips the marketplace add and plugin install
if they are already present, and never edits your settings.json or a shared
mcp.json — the claude CLI manages its own registry, so unrelated marketplaces,
plugins, MCP servers and hooks are left untouched.
DeepSeek Harness
dsh/ is a DeepSeek Harness (DSH) adapter for the same plugin tree. The Claude Code
install above does not use it and does not change. The adapter imports its runtime
from the published npm package claude-plugin-dsh, pinned to an exact version in
dsh/package.json and locked in dsh/bun.lock. There is no vendored copy.
Install the adapter's dependencies first, from a persistent checkout, with Bun and
Node 20 or newer. Then add the adapter to a DSH profile:
cd /abs/path/to/worklog-persist/dsh && bun install --frozen-lockfile
dsh plugin --profile <profile> add file:/abs/path/to/worklog-persist/dsh
Do not rely on dsh plugin add to install claude-plugin-dsh for you; that has
not been checked. To check what the adapter registers without a DSH profile:
bun x [email protected] inspect /abs/path/to/worklog-persist
inspect imports the adapter's JavaScript, so run it only on a trusted checkout.
Do not run the package's sync or scaffold commands on this adapter: as of 0.2.1
they write a vendored claude-compat.js, which this adapter no longer uses. To move
to a newer runtime, change the exact version in dsh/package.json, run
bun install in dsh/ to refresh dsh/bun.lock, then run make test.
The adapter registers the skill, the lifecycle commands as /wl-<name>, and the
SessionStart and Stop hooks. The native worklog panel and /show are Claude
Code only. The runtime does not read .mcp.json. dsh/cordis.patch.yml carries an
outline row for @deepseek-ai/dsh-mcp-client that ships disabled: enable
claude-compat-worklog-persist-outline only when the profile has no outline
server yet, and set OUTLINE_MCP_URL, OUTLINE_API_TOKEN and, if needed, the two
CF_ACCESS_CLIENT_* variables above. The MCP client package must be available to
the profile.
Renamed from outline-persist