omp packages

@manflo912/pi-code-harness0.1.4

Strategic Programming Workflow for the Pi coding agent: grill, spec, tickets, TDD, implement, review, retro.

GitHub Actions Published 1 day ago MIT ~0 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-code-harness

npm npm provenance

A Pi package that installs the Strategic Programming Workflow: plan in one unbroken context (grill → spec → tickets), then build each ticket in a fresh context (TDD → implement → review → retro).

It ships text and one small extension only: zero runtime dependencies.

Install

pi install npm:@manflo912/pi-code-harness@0.1.4

Pin a version and review the diff before upgrading. Skills and prompts are instructions your agent follows, so treat an upgrade like a code change:

npm diff --diff=@manflo912/pi-code-harness@0.1.4 --diff=@manflo912/pi-code-harness@<new-version>

Every release is published from GitHub Actions with npm Trusted Publishing and carries a provenance attestation linking it to the exact commit and workflow run. Verify with npm audit signatures. CI can only stage a release: each version stays hidden until a maintainer approves it with 2FA (npm staged publishing), so a compromised workflow cannot ship on its own.

Updates

Pinned installs never change on their own. When a newer version is on npm, Pi shows a notice at startup with the npm diff command to review it and the pinned pi install command to upgrade. The check only reads the public npm registry, never installs anything, and is skipped when PI_OFFLINE is set. Silence it with PI_CODE_HARNESS_NO_UPDATE_CHECK=1. After an upgrade, Pi shows the new entries of CHANGELOG.md.

Install from git (fallback)

pi install git:github.com/Nando0912/pi-code-harness@v0.1.4

Pin a tag; an unpinned git source follows the default branch.

Prerequisites

Two extensions are not bundled, by design (zero runtime dependencies). Run /harness-setup inside Pi: it installs the missing ones at pinned versions, asking before each (/harness-setup --yes skips the questions), then reloads Pi. They stay separate Pi packages, so they upgrade on their own.

Package Gives you
npm:@tintinweb/pi-subagents@0.26.3 Agent tool: /skill:implement-spec, /skill:code-review
npm:@juicesharp/rpiv-ask-user-question@2.16.0 ask_user_question tool: structured grilling (optional)

Prefer to do it by hand? pi install each source in the table.

MCP uses Pi's built-in support (.pi/mcp.json or ~/.pi/agent/mcp.json). /harness-init adds Context7 and Playwright entries for you, pinned to @upstash/context7-mcp@4.9.2 and @playwright/mcp@0.0.86 (see extensions/core/mcp.ts). Existing entries are never changed.

First run in a repo

/harness-setup    install the missing prerequisite extensions (pinned), then reload
/harness-init     scaffold GLOSSARY.md, docs/adr, docs/specs, tickets, AGENTS.md commands, .pi/mcp.json
/harness-doctor   check the tool shed; every failure prints the exact fix
/workflow         tell me which stage I am at and the next command

/harness-init never overwrites a file. Fill in the commands it stubs in AGENTS.md (test, test <file>, typecheck, lint, dev).

Stages

Pi invokes skills as /skill:<name>.

# Command Output
1 /skill:setup-matt-pocock-skills issue tracker + docs config (once per repo)
2 /skill:grill-with-docs <idea> zero open decisions; GLOSSARY.md and ADRs updated
3 /skill:to-spec docs/specs/<name>.md with explicit test seams
4 /skill:to-tickets vertical-slice tickets with blocked-by edges
5 /skill:tdd failing tests at the agreed seams
6 /skill:implement <ticket> or /skill:implement-spec <spec> green tests, ticket closed
7 /skill:code-review findings: standards ∥ spec fidelity
8 /skill:retro lessons landed in AGENTS.md, skills or mcp.json
– /skill:improve-codebase-architecture every 3–5 specs, pick one item
– /skill:zoom-out multi-session direction check

Stages 2–4 must share one context window: never /compact or clear between them. The full contract lives in the strategic-workflow skill.

Already have mattpocock/skills installed?

Pi keeps the first skill it finds for a given name and warns about the rest. To use your own copies, filter this package's skills in settings.json:

{
  "packages": [
    { "source": "npm:@manflo912/pi-code-harness@0.1.4", "skills": ["skills/strategic-workflow", "skills/zoom-out"] }
  ]
}

What's inside

  • skills/: skills vendored from mattpocock/skills (MIT), adapted for Pi, plus strategic-workflow and zoom-out. See VENDOR.md for the pinned source and license, and CHANGES.md for every edit made to the vendored files.
  • prompts/workflow.md: the /workflow prompt.
  • extensions/: /harness-setup, /harness-doctor and /harness-init. Node built-ins only.

License

MIT. Vendored skills keep their upstream MIT license (see VENDOR.md).