@prjct.app/pi-answer

Pi extension: optional structured replies for changes, answers, diagnoses, questions and blockers, with prose accepted by default.

Packages

Package details

extension

Install @prjct.app/pi-answer from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@prjct.app/pi-answer
Package
@prjct.app/pi-answer
Version
0.1.7
Published
Oct 13, 2026
Downloads
961/mo · 38/wk
Author
jlopezlira
License
MIT
Types
extension
Size
1.7 MB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "image": "https://raw.githubusercontent.com/prjct-app/pi-answer/main/docs/cover.png",
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

pi-answer

pi-answer — for PI Agent

Optional structured replies for PI Agent. A typed result can describe a change, an answer, a diagnosis, a request for input, or a blocker.

The extension renders the result in the terminal. Code stays in files, with file references in the reply; explanations are included when requested.

Install

pi install npm:@prjct.app/pi-answer

How it works

The extension registers an answer tool for structured results. Normal prose also finishes a turn, without a reminder or another model request. Invalid tool arguments are validated without silently dropping evidence. Repeated invalid calls remain errors: they never turn raw JSON into a delivered answer or end the turn. The model can correct the fields or finish in normal prose. JSON-looking assistant prose remains unchanged. Only explicitly required mode may convert a valid structured reply written as text into a tool call.

Set PI_ANSWER_REQUIRED=1 before starting Pi to require the tool for every reply. In that mode, a turn without the tool gets at most one reminder.

Reply kinds are change, answer, diagnosis, needs_input, and blocked. The result displays the fields relevant to that kind, including file references, verification results, or the decision needed from you.

License

MIT