# @xynogen/pix-ask

> Pi tool — structured questionnaire UI (ask_user)

Latest version **0.3.2** (published 2026-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xynogen/pix-ask
pnpm add @xynogen/pix-ask
yarn add @xynogen/pix-ask
bun add @xynogen/pix-ask
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2026-10-10 |
| First published | 2026-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 53.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | xynogen |
| Maintainers | xynogen |
| Keywords | pi, pi-package, pi-extension, ask |

## Links

- npm: https://www.npmjs.com/package/@xynogen/pix-ask
- Repository: https://github.com/xynogen/pix-mono
- Homepage: https://github.com/xynogen/pix-mono#readme
- Issues: https://github.com/xynogen/pix-mono/issues
- npm.io page: https://npm.io/package/@xynogen/pix-ask

## Dependencies (2)

- [@xynogen/pix-pretty](https://npm.io/package/@xynogen/pix-pretty.md) ^1.30.0
- [@xynogen/pix-runtime](https://npm.io/package/@xynogen/pix-runtime.md) ^0.13.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2026-10-10
- 0.3.1 — 2026-10-06
- 0.3.0 — 2026-10-01
- 0.2.30 — 2026-09-18
- 0.2.29 — 2026-09-05
- 0.2.28 — 2026-09-03
- 0.2.27 — 2026-09-03
- 0.2.26 — 2026-09-02
- 0.2.24 — 2026-08-29
- 0.2.23 — 2026-08-27
- 0.2.22 — 2026-08-22
- 0.2.21 — 2026-08-18
- 0.2.20 — 2026-08-10
- 0.2.19 — 2026-08-08
- 0.2.16 — 2026-08-07
- … 21 more at https://npm.io/package/@xynogen/pix-ask/versions

## README

# pix-ask

Pi tool — structured questionnaire UI (`ask_user`).

## What it does

Registers the `ask_user` tool — up to 4 structured multiple-choice questions in a TUI dialog when the agent needs to resolve ambiguous requirements, instead of guessing.

- Each question: 2–4 options with labels + descriptions. Supports multi-select and markdown side-by-side previews.
- **Single-select** (no preview) → appends a "Type something." free-form row.
- **Single-select with `preview`** → skips the free-form row to fit the side-by-side layout.
- **Multi-select** → appends a "Next" row to advance.
- Non-interactive (RPC/JSON) mode falls back to text prompts.

**Away notifications** — while the dialog is open, `ask_user` holds the shared **agent-state** coordinator `blocked` (via `withAgentBlock` from [`@xynogen/pix-runtime`](https://www.npmjs.com/package/@xynogen/pix-runtime)), so a herdr pane pings an away user when a question waits.

## Install

```bash
pi install npm:@xynogen/pix-ask
```

> Bundled in [`@xynogen/pix-core`](https://www.npmjs.com/package/@xynogen/pix-core). Install it alone only if you do not use pix-core.

## Full distro

This package is part of [Pix](https://github.com/xynogen/pix-mono). The installer sets up Pi and the full distro. See [Install](https://github.com/xynogen/pix-mono#install) for the notes for each OS.

```bash
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/xynogen/pix-mono/main/scripts/install.sh | sh
```

```powershell
# Windows
irm https://raw.githubusercontent.com/xynogen/pix-mono/main/scripts/install.ps1 | iex
```

## License

MIT

---
_Source: https://npm.io/package/@xynogen/pix-ask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
