pi-papertrail1.1.0
Pi extension and skill for papertrail, the markdown work tracker for harnesses
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-papertrail
Pi package (pi-papertrail) for papertrail, the markdown work tracker. See the papertrail README and CLI reference for the item model and commands.
Install
Install from npm:
pi install npm:pi-papertrail
Or install from a local clone of the papertrail repository:
git clone https://github.com/grainologic/papertrail.git
pi install ./papertrail/integrations/pi
Add -l to write the package entry to .pi/settings.json for a single project instead of ~/.pi/agent/settings.json.
Installing pt and initializing a workspace
Once the extension is loaded, you or the agent can install pt and initialize a workspace without leaving pi:
/papertrail install [--url URL] [--tag TAG] [--dir DIR](or thepapertrail_installtool): fetches and runsinstall.shorinstall.ps1from GitHub, installsptto~/.papertrail/bin(Linux/macOS) or%LOCALAPPDATA%\papertrail\bin(Windows), adds that directory toPATH, and updates the current pi session'sPATH./papertrail init(or thepapertrail_inittool): runspt initin the current working directory. Ifptis not installed yet, it runs the installer first.
The /papertrail command provides tab completion for both /papertrail and its init / install subcommands.
What it does during a session
session_start: walks up from the working directory looking for.papertrail/config.toml; when found, runspt sync(10 second timeout) and notifies on failure.before_agent_start: resolves the configured item root (rootin.papertrail/config.toml, default.papertrail) and appends a system prompt block with the item root, path toFRONTIER.md, command summary, pointer to thepapertrailskill, and the first 50 lines ofHEALTH.md.- Native Pi tools: inside a papertrail workspace Pi exposes
pt_section_set(replace one item section with multiline content) andpt_batch(create many items from one JSON array). They are gated on the workspace:session_startandbefore_agent_startadd them to the active tool set only when.papertrail/config.tomlis found above the working directory, and scrub them again when it is not. - Skill (
src/skills/papertrail/): the project-management doctrine.SKILL.mdsets the working rules for picking work, types, statuses, and handoffs; the reference guides go deeper (cli.md,decomposition.md,debate.md,spike.md,research.md,feedback.md).references/cli.mdis the authoritative command, flag, and value reference. Agents pick work fromFRONTIER.md, setin_progress, write results viapt section set, and close items with outcomes.
Development
Run typecheck and tests inside integrations/pi/:
npm run check
npm test