npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sasacode-plugin-ask-user

v0.2.0

Published

Let the model ask you multiple-choice questions in sasacode instead of guessing

Downloads

326

Readme

sasacode-plugin-ask-user

モデルが推測で進めずに、選択肢つきの質問であなたに判断を仰げるようにする sasacode プラグイン。API ^1.8.0、ビルド不要、追加依存なし。

試す

sasacode plugin install ./plugins/ask-user --project

sasacode を再起動し、「DB の選び方を ask_user で聞いてから進めて」のように依頼します。公開後は sasacode plugin install sasacode-plugin-ask-user で導入できます。

動き

  • ask_user ツールは1回で1〜4問を尋ねます。1問あたりの選択肢は2〜6個です。質問は順に選択パネルへ表示されます。
  • 選択肢が排他的でない質問では、モデルが multiSelect を指定できます。space で複数を選び、enter で決定します(API 1.10 以降の本体)。
  • どの質問にも最後に「その他」が付きます。API 1.10 以降の本体では、その場で自由に答えを入力できます。1.8 / 1.9 の本体では「その他(チャットで答える)」になり、選ぶとそこで打ち切ります。モデルにはターンを終えてあなたの返信を待つよう伝えます。
  • Esc で閉じた場合、空のまま入力を確定した場合、複数選択で何も選ばずに確定した場合は、そこで打ち切ります。モデルには、答えを推測しないよう伝えます。
  • 実行中に中断すると、ツールはエラーで終わります。
  • 非対話実行(headless)では何も尋ねません。モデル自身が判断し、置いた前提を返信に書くよう返します。

権限

質問するための承認を求めても意味がないので、ask_user の allow ルールを追加します。ask モードでも確認なしで表示されます。止めたい場合は、設定の permissions.deny に ask_user を書いてください。ユーザーの deny ルールが優先されます。

対応する本体

manifest の要求は API ^1.8.0 です。自由入力(ui.input)と複数選択(ui.selectMany)は、本体にあるときだけ使います。1.8 / 1.9 の本体では単一選択とチャットでの回答になります。

English

Adds an ask_user tool: the model asks 1-4 multiple-choice questions (2-6 options each) in the selection panel instead of guessing. Questions may allow several answers (multiSelect). Every question offers "Other": on API 1.10+ hosts you type the answer on the spot; on 1.8/1.9 hosts it ends the call and tells the model to wait for your message in the chat. Dismissing a question tells the model not to assume an answer. Headless runs ask nothing and tell the model to decide and state its assumption. Adds an allow rule for ask_user, so asking needs no approval; a user deny rule still wins. API ^1.8.0, no build and no dependencies.

Apache-2.0.