@spences10/pi-factory

Experimental reviewed local Pi execution on pi-harness

Packages

Package details

extension

Install @spences10/pi-factory from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@spences10/pi-factory
Package
@spences10/pi-factory
Version
0.0.13
Published
Jul 28, 2026
Downloads
1,862/mo · 251/wk
Author
spences10
License
MIT
Types
extension
Size
67.5 KB
Dependencies
2 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/index.js"
  ],
  "image": "https://raw.githubusercontent.com/spences10/my-pi/main/assets/pi-package-preview.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@spences10/pi-factory

Experimental reviewed execution for one local Pi child. Factory is disabled by default in my-pi and must be explicitly enabled for evaluation.

Scope

The entire normal path is one operation:

pi-harness contract → one owned local executor → contract validation → independent diff-bound reviewer → structured report

Create a harness first, then call factory_start with its directory. The harness is authoritative for the task, workspace, runtime path, command and test policy, role models, dirty baseline, and validation commands. The report distinguishes validated completion, failure, refusal, and interruption and records lifecycle, changed files, validation evidence, review, and model/provider identity.

factory_start uses normal object-schema tool calling because its optional timeout is not portable across providers' strict-schema rules.

Non-goals

There is no classifier, workflow graph, path ledger, peer transfer, SSH/remote mode, external intake, policy authoring, recommendations, learning, calibration, or adaptive routing. Use direct Pi for ordinary work, pi-harness for bounded contracts, and Team Mode for peer coordination. Issues #358-#360 remain the source of truth for future first-party child-agent lifecycle primitives; this package does not duplicate them.

Evaluation boundary

The replacement is unsupported until the ten-task benchmark in BENCHMARK.md passes. Restoring default loading requires separate evidence and review. If the benchmark fails, deprecate and archive this package rather than expanding its scope.

Development

pnpm --filter @spences10/pi-factory run check
pnpm --filter @spences10/pi-factory run test
pnpm --filter @spences10/pi-factory run build