← Catalog

pi-chronicle

Record conscious markers and typed beats during work sessions, then write chronicle markdown to your vault Progress folder.

Package

Install

Install with PiG

pig install npm:pi-chronicle

Install with Pi

pi install npm:pi-chronicle
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions"
  ]
}

README

Written by the package's publisher, shown as published in version 0.3.10 (README.md). PiG does not review it.

Pi Chronicle

Join dotfield.xyz on Discord

CI Publish npm version npm downloads License: MIT Pi package Trusted Publishing Buy Me A Coffee

Record conscious markers and typed beats during work sessions, then write chronicle markdown or hand off follow-up artifact prompts from your vault context.

What this is

A Pi extension that captures intentional session logs — not automated transcripts. Mark decisions, blockers, milestones, tries, and reverts as you work, then finalize a single chronicle markdown file into your vault's Progress/ folder.

For developers and creators who want a lightweight record of why they did things in that order — raw material for flow docs, blog posts, or retrospectives.

Features

  • Auto-start — session begins when Pi loads; no explicit start command
  • 7 colon-flat commands — no arguments, no flags; prompted after invocation
  • 5 beat types — decision, blocker, milestone, try, revert
  • Project detection — auto-resolves output folder from current working directory
  • Vault output — writes chronicle-YYYYMMDD-HHmm.md to your project's Progress/ folder
  • Novel generation — /chronicle:novel sends a follow-up prompt from session marks/beats; Pi writes novel-YYYYMMDD-HHmm.md to the project root
  • Distill handoff — /chronicle:distill turns marks/beats into a follow-up Markdown artifact prompt for flow, textbook, essay, or fiction

Install

Install the published npm package with Pi:

pi install npm:pi-chronicle

Pin a specific version when you want reproducible installs:

pi install npm:pi-chronicle@0.2.0

Install into the current project instead of your user Pi settings:

pi install npm:pi-chronicle -l

Or install from GitHub:

pi install git:github.com/eiei114/pi-chronicle

Try it without permanently installing:

pi -e npm:pi-chronicle

Quick start

Try this package locally from a clone:

pi -e .

Then run:

/chronicle:mark    → enter a short label
/chronicle:beat    → pick type → enter label
/chronicle:export  → writes a mid-session snapshot without ending
/chronicle:end     → optional closing note → writes chronicle md
/chronicle:status  → show current session
/chronicle:distill → pick output format → hands off Progress/ artifact prompt
/chronicle:novel   → sends follow-up prompt → Pi writes novel-YYYYMMDD-HHmm.md to project root

Session auto-starts when Pi loads — just mark and beat as you work.

Project detection and outside-vault fallback paths are documented in docs/examples.md.

Export snapshot

/chronicle:export writes the current session to Progress/chronicle-YYYYMMDD-HHmm.md without ending the session. It uses the same markdown format as /chronicle:end, but refuses to overwrite an existing file (fail closed) and warns when the session has no marks or beats yet. Use export for mid-session checkpoints; use end to finalize with an optional closing note and overwrite the same deterministic filename. The snapshot's ended: timestamp is the write time, not session finish.

See docs/chronicle-format.md for format details and overwrite rules.

Distill follow-up artifacts

/chronicle:distill does not call an LLM directly or synchronously write a file. It renders a bounded follow-up prompt from the active session and sends it through Pi, recommending an output file under the project's Progress/ folder:

Progress/chronicle-distill-<format>-YYYYMMDD-HHmm.md

Choose the format by use case:

  • flow — chronological work flow, decisions, blockers, reverts, milestones, and next action
  • textbook — learner-facing explanation with background, steps, cautions, and terms
  • essay — reflective prose about what changed, why, and what was learned
  • fiction — short narrative entrypoint aligned with /chronicle:novel, but reached from the format chooser

The prompt includes the session name, project key, start time, mark/beat counts, and chronological mark/beat labels. No active session or an empty session produces a warning instead; cancelling the selector is a no-op.

Novel follow-up

/chronicle:novel does not call an LLM directly or synchronously write a file. It renders a bounded follow-up prompt from the active session and sends it through Pi, asking the follow-up agent to write one Markdown file in the project root:

novel-YYYYMMDD-HHmm.md

The prompt includes the session chronicle text rendered from marks and beats. No active session or a session with no marks or beats yet produces a warning instead — sessions auto-start when Pi loads, so an empty session usually means you have not recorded any marks or beats yet.

Package contents

PathPurpose
extensions/Pi TypeScript extension entrypoints
lib/Shared session and output logic
docs/Supporting docs, including pi-sdk-compatibility.md

Development

npm install
npm run ci
npm pack --dry-run

npm run ci runs typecheck, tests, and npm run pack:check (equivalent to npm pack --dry-run). The CI suite also runs npm run smoke:pi against the pinned Pi SDK on Linux and Windows.

Release

npm Trusted Publishing — no NPM_TOKEN required.

npm version patch
git push

See docs/release.md for setup details.

Security

Pi packages can execute code with your local permissions. Review extensions before installing third-party packages.

For vulnerability reporting, see SECURITY.md.

License

MIT