@ssk_dev/rpiv-ask-user-question-lean

Lean Pi ask-user-question extension with full features: 215 initial tokens (82.9% fewer than current upstream).

Packages

Package details

extension

Install @ssk_dev/rpiv-ask-user-question-lean from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ssk_dev/rpiv-ask-user-question-lean
Package
@ssk_dev/rpiv-ask-user-question-lean
Version
2.12.1
Published
Oct 2, 2026
Downloads
1,252/mo · 260/wk
Author
ssk_dev
License
MIT
Types
extension
Size
10.5 KB
Dependencies
2 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

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

README

@ssk_dev/rpiv-ask-user-question-lean

Token benchmark: Lean 220, upstream @juicesharp/rpiv-ask-user-question@2.12.0 1,258 — 82.5% fewer.

See my full setup for Pi

简体中文

A lightweight Pi wrapper for @juicesharp/rpiv-ask-user-question. It preserves interactive questionnaire prompts and structured validation while trimming repetitive prompt metadata.

Core Features

  • Interactive UI: Retains the full questionnaire interface, preview elements, and RPC fallback.
  • Structured validation: Supports single-select and multi-select questions, recommendation ordering, and strict option validation.
  • Compact prompt schema: Strips boilerplate descriptions from the tool definition, cutting prompt overhead without changing runtime behavior.

Installation

pi install npm:@ssk_dev/rpiv-ask-user-question-lean

Do not load this alongside another rpiv-ask-user-question wrapper to avoid registering duplicate tools.

Usage

The model interacts with a single tool:

ask_user_question

Use this tool when user clarification or decision-making is required. Each call can ask 1 to 4 structured questions with 2 to 4 clear options per question.

Context Footprint Benchmark

With only this extension enabled, its recurring model-facing initialization contribution is:

Variant Tool and prompt contribution Total
Lean @ssk_dev/rpiv-ask-user-question-lean@2.12.1 ask_user_question (220) 220
Upstream @juicesharp/rpiv-ask-user-question@2.12.0 ask_user_question (1,258) 1,258

This saves 1,038 tokens (82.5%). Measured with Pi 1.0.0 in separate temporary processes with empty working directories and configuration. Built-in tools, skills, context files, session history, user messages, unrelated extensions, runtime UI, and slash commands are excluded; before_agent_start additions are included. Tokens are a fixed character-proxy estimate using ceil(characters / 4), not provider tokenizer billing.

Versions

Upstream runtime is pinned to @juicesharp/rpiv-ask-user-question@2.12.0.

Development

npm ci
npm run check

The test suite runs with a local harness and does not launch the actual interactive questionnaire UI.

License

MIT. This project wraps the MIT-licensed @juicesharp/rpiv-ask-user-question.