pi-vigilant
v0.1.2
Published
A diligence layer for pi: auto-continue after output-length stops, premature stops, and threshold compaction, plus spec-memory (hard specification tracking & verification) and feedback-memory (behavior criticism checkpoints).
Readme
pi-vigilant
A diligence layer for pi. Auto-continue after interruptions, track hard specifications, and keep agent behavior honest.
⚠️ Security: pi packages run with full system access. Extensions execute arbitrary code. Review the source before installing. See pi package security.
What it does
| Feature | Description | |---|---| | Auto-continue | Resumes work after output-length stops, premature stops, and threshold auto-compaction — so long tasks don't die silently. | | Spec-memory | Captures hard specifications (requirements, constraints, acceptance criteria) you state during a task, stores them hierarchically, and injects them for verification when the task finishes. | | Feedback-memory | Captures user criticism of agent behavior (project or global scope) and surfaces it as checkpoints before declaring work complete. | | Final verification | After a complex task, prompts the agent to verify every captured spec against the deliverable — and keeps working until every MUST spec is met. |
Installation
pi install npm:pi-vigilantOr from git:
pi install git:github.com/brunoj/pi-vigilantOr locally during development:
pi install /path/to/pi-vigilantRun /reload (or restart pi) after installing.
Configuration
pi-vigilant.json (sits next to the extension; defaults to all features on):
{
"prematureStopDetection": true,
"lengthStopContinuation": true,
"compactionContinuation": true,
"finalVerification": true,
"feedbackMemoryIntegration": true,
"specMemoryIntegration": true
}Usage
- Capturing specs: just state requirements while building. The agent calls
capture_specautomatically (or you can ask it to). - Viewing specs: ask the agent to "show the task specs", or the agent calls
get_task_specsmid-task. - Verification: happens automatically at task end. The agent marks each spec met/not-met with evidence via
update_spec_status. - Clearing:
/clear-feedbackand/clear-specsare user-only commands (with confirmation). - Feedback: when you criticize the agent ("you always..."), it should call
capture_feedback. Checkpoints are injected automatically before the agent declares work complete.
Tools & commands
| Tool | Purpose |
|---|---|
| capture_spec | Capture a hard spec (area, priority, parentId, supersedes, dedup guard) |
| get_task_specs | Show the current task's spec tree |
| update_spec_status | Mark specs met/not-met/partial with evidence |
| capture_feedback | Capture behavior criticism (project/global) |
| resolve_feedback | Mark a feedback item resolved |
| get_feedback_checkpoints | Compiled, categorized checkpoints |
| /clear-specs | User-only: archive current spec task + start fresh |
| /clear-feedback | User-only: clear all feedback |
Development
npm install # devDependencies for type-checking
npm run check # tsc --noEmit
npm run release # bump version + changelog + tag + publish (see below)Test suites used during development live in the repo history (see the 0.1.0-era commits for the 11-scenario test matrix and design notes).
Releasing (auto-versioning)
npm run release patch # 0.1.0 → 0.1.1
npm run release minor # 0.1.0 → 0.2.0
npm run release major # 0.1.0 → 1.0.0This bumps the version, updates CHANGELOG.md, commits, tags v0.1.x, pushes to GitHub, and publishes to npm.
License
MIT © Bruno Jakic — Ai Applied
