@cratis/pi

Configuration-aware Cratis AI integration for Pi

Packages

Package details

extension

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

$ pi install npm:@cratis/pi
Package
@cratis/pi
Version
2.20.0
Published
Sep 15, 2026
Downloads
920/mo · 920/wk
Author
einari
License
MIT
Types
extension
Size
1.2 MB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts",
    "./package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts",
    "./package/corpus/harnesses/pi/extensions/subagent/index.ts"
  ]
}

Security note

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

README

Cratis AI integration for Pi

This is the plugin path for repositories that do not use cratis ai. Install it into a Pi project:

pi install -l npm:@cratis/pi

The package reads the repository's .cratis/ai.json, resolves its profiles and languages through the packaged profile catalog, and contributes only the matching skills. It also loads packaged rules, prompts, agents, the subagent tool, and Cratis quality hooks. When no .cratis/ai.json exists, it exposes the complete packaged skill set. It therefore gives Pi the complete single-harness Cratis experience without requiring the Cratis CLI.

The managed CLI path remains the choice when one repository must configure and synchronize several harnesses. It writes the resolved corpus to .cratis/ai, creates every harness integration, and records hashes for safe update and uninstall. That managed setup loads rules through its own .pi/extensions/cratis-rules extension and does not require this package. If both paths are present, the package yields to the managed installation to avoid duplicate resources and hooks. The Pi package manages only Pi; it neither configures other harnesses nor owns a local managed corpus.