ghost-shell

ghostSHELL — a tiny software factory that turns shaped specs into reliable software, shipped as a pi coding-harness extension.

Packages

Package details

extension

Install ghost-shell from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:ghost-shell
Package
ghost-shell
Version
0.1.5
Published
Nov 23, 2026
Downloads
498/mo · 498/wk
Author
decon232
License
MIT
Types
extension
Size
144.7 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ],
  "changelogPath": ""
}

Security note

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

README

ghostSHELL

Being rebuilt. ghostSHELL 1.0 is a ground-up rebuild: specs shaped in plain words, graded before work starts, built as vertical slices against a signed contract, and approved once, as one PR. The plan is filed as GitHub issues (#57–#60, with a foundation spec to come).

This package is being built slice by slice against the spec 0 plan. The tracer bullet is in: /ghostINIT sets up git, .ghost/ and the labels in a checkout; /ghostIMP <n> hands it an issue; /ghost switches the factory on — the lead plans the issue into small steps on ghost/issue-<n>, a fresh builder session carries each step, the step's proof command gates it (exit code alone), each green step is a commit, the battery runs, a PR opens and waits for you, and an approved or merged PR lands, closes the issue and releases the hold. Esc switches it off.

Nothing builds past the checks: before the first step, a checks writer turns the issue's acceptance criteria into tests, the reviewer confirms each test against the issue, and the tests are committed and locked — the builder cannot touch them, and a tampered lock, a shortcut (a suppression, a skip marker, a weakened test, an empty catch) or a red proof sends the step back, nothing committed. When the same failure repeats, the factory restarts the step clean once — a fresh worktree from the last green commit — and if it stays red the run halts and shows as needing you: reshape the issue on GitHub and type /ghost, and it restarts from a clean plan, or withdraw it. A runaway build is caught by its own rules — the same failed call looping, many turns with no progress, context swelling, cold re-caches, a stall, or spend racing past what a step or a run should cost — each trip goes through the same restart-then-halt policy with the rule and its numbers in plain words. An optional per-issue spend cap warns at 80% and pauses at 100% — nothing lost — with one chat question: raise the cap or withdraw; spend never continues past the cap without your raise. The starting thresholds and the default cap live in .ghost/settings.json for you to edit.

When the factory needs the owner, the dashboard closes, a question is asked in chat with the recommended answer, and your next chat message answers it — “dashboard resuming” — and the dashboard reopens. Held issues are walked in GitHub's own blocked-by order, one build at a time: while a PR waits, the next independent issue builds, a dependent one waits for that merge, and no new issue starts while a chat question is pending. The previous 0.x factory is retired; its source is kept for reference in legacy/ghost-shell and is no longer maintained.