Scan your whole stack
From OX Research Newsroom
Are you using @fenlyin/pi-ask?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.1
@fenlyin/pi-ask was last scanned on 28 Nov 2026 at version 1.2.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.2.1 LATEST | 28 Nov 2026 | No rules fired |
Findings for v1.2.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.2.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
[!IMPORTANT] Contributions are welcome in chill mode: please open an issue and link your fork or branch instead of expecting rapid pull-request reviews.
@fenlyin/pi-ask is an ask tool that cares about your answers.
It lets an agent pause, ask structured questions in a terminal UI, and continue with normalized answers instead of guessing.
High-quality video: demo.mp4
This open source project is something I care about, and it genuinely brings me joy to see it help people. That said, I cannot promise rapid reviews or a normal pull-request turnaround.
If you have an idea, bug report, or change, please open an issue. If you already have code, link to your fork or branch with the changes. I will review it carefully when I have time, then either incorporate the forked changes or implement the idea myself.
I value contributions and will do my best to credit the people who help, whether that means a shout-out, a co-authored commit, or another fitting form of attribution.
pi install npm:@fenlyin/pi-ask
You can also install from git:
pi install git:github.com/fenlyin0420/pi-ask
Or try it without installing (load once for the current run):
pi -e npm:@fenlyin/pi-ask
Once installed, this package gives the agent a native way to ask for clarification instead of guessing.
(recommended) markers that do not preselect answersType your own answers@ file references inside answer and note editorsElaborate on the review tab expands the same inline free-text editor as Type your own; the text is appended after the submitted answersSubmit, Elaborate, and Cancel/answer extraction config/answer extracts questions from the latest assistant message into an ask flow/answer:again reopens the latest /answer form on the current branch/ask:replay replays the latest real ask_user form on the current branchask_user form after startup, resume, or fork@ file referencesUse pi-style @ file path autocomplete inside free-form answers and note editors.
Attach clarification notes to a specific option (n) or add broader question-level context (Shift+N).
| Option notes | Question notes |
|---|---|
Elaborate expands an inline free-text row that behaves like Type your own: Enter submits the answers with the typed text appended, Esc keeps the draft. Submit returns the answers as they are.
| Elaborate | Submit |
|---|---|
Pick one option when answers are mutually exclusive, or choose multiple options when several answers apply.
| Single-select | Multi-select |
|---|---|
Use a dedicated preview pane when options need richer detail.
Type your own)Capture free-form input inline without leaving the flow.
Open ask settings with ? during the ask flow, or with the /ask-settings command from pi.
Keymaps are context-aware and configurable in ~/.pi/agent/extensions/eko24ive-pi-ask.json.
Each action accepts a key string or an array of aliases.
Default contexts:
global: dismiss (Ctrl+C) and settings (?)main: confirm/cancel/toggle, tab navigation, option navigation, and note shortcutseditor: custom answer and review-tab appended-text submit/close, plus empty-editor navigationnoteEditor: question/option note save/close and empty-editor navigationsettingsModal: close, next/previous setting, and toggleFixed bindings:
| Key | Context | Effect |
|---|---|---|
1..9 |
Options list | Select or toggle matching option |
1 2 3 |
Review tab | Trigger Submit / Elaborate (opens the inline input) / Cancel |
j k |
Options list / Review tab | Move to the next / previous option or review action (not while an editor is open) |
↑ ↓ |
Review tab | Move between Submit, Elaborate, and Cancel |
@ |
Editors | File-reference affordance |
Arrow keys / Tab |
Non-empty editor | Stay in editor for cursor movement |
Review-tab shortcuts can optionally require the same number key twice via behaviour.doublePressReviewShortcuts. behaviour.presentSingleAsMulti can render future single-select questions as multi-select while preserving the requested type in results; use main.changeQuestionType (t by default) to change the active question type live.
You can edit the config file yourself, ask pi to edit it for you, or use /ask-settings to find the exact config path, toggle behaviour/notification settings, or reset config to defaults with a guarded double press. pi-ask treats the config file as user-owned: load-time migrations and invalid files are handled in memory without rewriting or backing up the file, and read-only/externally managed configs fail gracefully with a manual-edit message.
/answer keeps extraction within the current session model scope. Check a configured model before use with pi auth check --provider <provider> --model <id>.
{
"schemaVersion": 5,
"answer": {
"extractionModels": [
{ "provider": "openai-codex", "id": "gpt-5.4-mini" },
{ "provider": "github-copilot", "id": "gpt-5.4-mini" },
{ "provider": "anthropic", "id": "claude-haiku-4-5" }
],
"extractionTimeoutMs": 30000,
"extractionRetries": 1
},
"behaviour": {
"autoSubmitWhenAnsweredWithoutNotes": false,
"confirmDismissWhenDirty": true,
"doublePressReviewShortcuts": true,
"presentSingleAsMulti": false,
"showFooterHints": true
},
"keymaps": {
"global": { "dismiss": ["ctrl+c"], "settings": ["?"] },
"main": {
"confirm": ["enter"],
"cancel": ["esc"],
"toggle": ["space"],
"changeQuestionType": ["t"],
"nextTab": ["tab", "right"],
"previousTab": ["shift+tab", "left"],
"nextOption": ["down"],
"previousOption": ["up"],
"optionNote": ["n"],
"questionNote": ["shift+n"]
},
"editor": {
"submit": ["enter"],
"close": ["esc"],
"nextTabWhenEmpty": ["tab", "right"],
"previousTabWhenEmpty": ["shift+tab", "left"],
"nextOptionWhenEmpty": ["down"],
"previousOptionWhenEmpty": ["up"]
},
"noteEditor": {
"save": ["enter"],
"close": ["esc"],
"nextTabWhenEmpty": ["tab", "right"],
"previousTabWhenEmpty": ["shift+tab", "left"],
"nextOptionWhenEmpty": ["down"],
"previousOptionWhenEmpty": ["up"]
},
"settingsModal": {
"close": ["esc", "ctrl+c", "?"],
"nextOption": ["down"],
"previousOption": ["up"],
"toggle": ["enter", "space"]
}
},
"notifications": {
"enabled": true,
"channels": ["bell"]
}
}
Accepted notation follows pi-tui key ids. Common aliases are normalized, for example escape → esc, return → enter, control+c → ctrl+c, and Shift+N → shift+n.
After installation, the extension registers the ask_user tool plus /ask-settings, /answer, /answer:again, and /ask:replay commands.
Agents can auto-discover and call ask_user when they need clarification instead of guessing. They can mark any number of grounded preferences with recommended: true and use option descriptions for reasons. In interactive sessions, it opens a terminal UI flow for structured answers, supports native pi-style @ file references while typing answers or notes, and returns normalized answers back to the agent. Ask settings are available both from ? in the ask flow and from the /ask-settings command. Behaviour and notification settings are binary on/off toggles that save immediately when the config file is writable; save failures revert the toggle and show a manual-edit message. The settings overlay includes a guarded double-press reset-to-defaults action; keymaps, notification channels, and extraction settings are changed by editing the shown config file path.
/answer is useful when the agent asked questions in plain text instead of using ask_user. It extracts questions from the latest completed assistant message and opens the same ask UI.
Replay commands are branch-aware. They read persisted entries from the current pi session branch, so they work naturally with /resume, /tree, and conversation branching:
/answer:again reopens the latest form created by /answer on this branch/ask:replay reopens the latest real ask_user form on this branchCancellation is local to the UI: closing a replayed form does not start a new agent turn. Submitted answers are sent back as a normal user follow-up message.
If Pi stops while an ask_user form is open, the tool call remains without a result. Starting, resuming, or forking that session reopens the newest unanswered form once. Submitting sends the result as a user message because the original tool execution no longer exists. Cancelling dismisses the automatic recovery. Either outcome prevents another automatic reopen, while /ask:replay remains available.
New sessions and extension reloads do not trigger recovery.
Kudos to @k0valik for the /answer idea.
You can also talk to pi to configure this extension. When asked to customize pi-ask settings, keymaps, notifications, or extraction behavior, the agent is instructed to read the bundled docs/configuration.md guide first and then edit the config file accordingly.
This package also bundles the ask-user skill profile from skills/ask-user/SKILL.md. It reinforces when to use the tool, is enabled by default when installed, and can be disabled via pi config. The skill was inspired by https://github.com/edlsh/pi-ask-user.
You can still add your own agent instruction if you want to further reinforce usage.
For exact input/output and UX guarantees, see docs/contract.md.
pi -e ./src/index.ts
pnpm dev
pnpm dev ../test
pnpm dev [path] runs pi with --no-extensions --no-skills --no-prompt-templates --no-themes --no-context-files, loads this repo’s extension and skills/ask-user, and starts pi from [path] by changing directories before launch (defaults to .).
pnpm install
lefthook is not installed automatically. If you want the local commit hooks used by this repo, run:
pnpm exec lefthook install
pnpm format
pnpm lint
pnpm check
pnpm typecheck
pnpm test
This repo uses lefthook, Commitizen, conventional commitlint, and semantic-release.
If you want local hooks, install them once after pnpm install:
pnpm exec lefthook install
Recommended flow:
pnpm commit
src/ — TypeScript extension implementationtests/ — behavior-focused testsdocs/ — small docs set for contract and architecturedocs/media/ — repository-only README media assetsDocs stay intentionally small:
docs/README.md — indexdocs/contract.md — external behaviordocs/architecture.md — module boundaries and invariantsFind threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.