@kyaulabs/prism-core
v0.3.1
Published
KYAULabs coding harness — language-agnostic core (pi)
Downloads
527
Readme
@kyaulabs/prism-core
The language-agnostic core of the prism coding harness for pi.
prism re-expresses a disciplined engineering pipeline — brainstorm → spec → plan → TDD → verify → review — as pi-native skills, prompt templates, and one safety extension, run by a single pi agent. This package is the language-neutral half; install it globally so it runs in every project.
What it provides
- Pipeline & discipline skills —
brainstorming,grilling,to-spec,writing-plans,executing-plans,tdd,verification-before-completion,code-review,architect,wayfinder,finishing-a-development-branch, … - Collapsed-agent skills —
consult,from-issue,debug,explore,resolve-merge-conflicts,tracker-operator,docs-writer, and the review trio (code-review/spec-review/standards-review/test-audit). - Prompt templates (slash commands) —
/check,/issue,/pr,/release,/router,/security,/doctor,/prime,/teach, … - The safety extension — a
tool_callgate that enforces a credential-path deny floor and anrm -rfsafe-zone policy, with an independent denial circuit breaker and fatal failed-commit latch. - Research skills —
websearch,searxng(CLI-shell; no MCP). - The always-on
AGENTS.md+APPEND_SYSTEM.md, deployed to~/.pi/agent/byinstall-global.shso the core is "always running". - The managed
prism-toollauncher, backed by the installed core package and verified against mandatory Semgrep and OCR readiness. - Managed lockstep npm releases —
/setupdiscovers publishable root and declared-workspace packages, displays the exact package list, and installs the Core-owned release configuration plus canonical workflow only after explicit enablement and displayed-diff mutation approval. Package-release setup remains independent of language adapters. The operation lock records its owner PID in.pi/prism-tool/package-release.lock; after a crash, a human must verify that PID is no longer running before removing that exact lock file. Prism does not auto-remove an existing lock.
Install
Semgrep >=1.173.0 <2.0.0 and OCR >=1.9.1 <2.0.0 must already be installed.
Configure OCR directly with its own provider/model commands; Prism never reads
or writes its credentials.
From a Prism checkout, install the local core without registry access:
bash packages/prism-core/scripts/install-global.shTo install the published npm package, approve registry access independently:
PRISM_CORE_SOURCE=npm:@kyaulabs/prism-core \
bash packages/prism-core/scripts/install-global.sh \
--network-approved=yesThe installer performs offline doctor --local-only readiness only. It never
creates an OCR-consent record or runs ocr llm test. After installation, run
/setup to inspect or grant global standing OCR consent and complete live
readiness.
The installer deploys prism-tool to ${PRISM_BIN_DIR:-$HOME/.local/bin} and
does not edit shell startup files or PATH. It refuses to overwrite or remove
an unrelated executable. Remove only a Prism-owned launcher with:
bash packages/prism-core/scripts/install-global.sh --uninstall-launcherA readiness failure leaves the installed package, launcher, and context
resources available for remediation but does not report toolchain GO. After a
successful install, run pi in any trusted project. Authenticate with /login
for your provider. Model and thinking selection is yours at any time —
Ctrl+P cycles models, Shift+Tab sets thinking; the harness prescribes
nothing (ADR-0067). Run /setup to write your own session defaults and manage
standing OCR consent.
Adapter
For PHP/Aurora web projects, add the stack adapter per-project:
pi install -l npm:@kyaulabs/prism-php-webToolchain readiness
The package declares its owned tools in toolchain.json: bundled core tools
(commitlint, git-cliff) resolve through prism-tool; Semgrep
>=1.173.0 <2.0.0 and OCR >=1.9.1 <2.0.0 are mandatory external
prerequisites that Prism verifies but never installs, configures, or
authenticates (ADR-0063). Registry access and consumer mutation remain separate
operation-specific approvals. /setup manages one explicit global standing
OCR consent covering only connectivity checks and reviewed-code egress through
the dedicated prism-tool code-review ocr operation (ADR-0074). Full
/doctor validates that consent before one live ocr llm test; local-only
readiness and installation remain offline. Revoke through /setup with
prism-tool consent revoke-ocr. CI provisions compatible Semgrep/OCR releases
only to construct its ephemeral verification environment and never creates a
consent record.
Approval-free operational boundaries
Ordinary and release commits use one standalone
prism-tool commit create call. The launcher owns attribution, commitlint,
hooks, signing, and HEAD verification. A failed, unsafe, ambiguous, or
non-exclusive commit attempt aborts the agent and blocks every tool until the
human runs /reload; Prism never retries automatically.
After implementation and ADR-0027 artifact cleanup, the
finishing-a-development-branch skill pauses once for finalization acceptance.
One acceptance authorizes one synchronization, attestation, full /check,
four-axis review, SHA revalidation, and automatic /pr preparation attempt.
The first accepted review creates a bounded review chain with all four axes.
After a Blocking repair, fresh acceptance reviews only the continuous repair delta and records closure evidence. Advisory findings do not block /pr and
need no waiver. Base or history changes, discontinuity, malformed state, or a
HEAD mismatch invalidate the chain and require a new complete initial review.
Existing branches without chain state follow that initial-review path; Prism
never migrates session-only evidence. Chain state is untracked under
.pi/prism-tool/code-review/. /pr does not create issues or mutate GitHub.
Any failed gate stops before /pr and requires fresh finalization acceptance
after repair.
/pr remains preparation-only: humans push, create pull requests, and merge.
License
AGPL-3.0-only. See NOTICE for the full attribution chain (obra/superpowers, mattpocock/skills, anthropics/skills, glebis/claude-skills, @earendil-works/pi-coding-agent).
