@datfooldive/pi-ask

Read-only Q&A mode for Pi

Packages

Package details

extension

Install @datfooldive/pi-ask from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@datfooldive/pi-ask
Package
@datfooldive/pi-ask
Version
0.2.2
Published
Aug 28, 2026
Downloads
926/mo · 33/wk
Author
datfooldive
License
MIT
Types
extension
Size
11.6 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ]
}

Security note

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

README

pi-ask

Read-only Q&A mode for Pi.

Install

pi install npm:@datfooldive/pi-ask

Use

  • /ask toggles ask mode.
  • /ask-settings opens searchable TUI settings for allowed tools.
  • Settings persist globally in ~/.pi/agent/ask-settings.json (or configured Pi agent directory).

Ask mode enforces its tool and Bash restrictions. Bash allows common read-only commands by default, including git log, git status, git diff, and git show.

Custom Bash commands

Add bashAllow to ask-settings.json to extend default Bash allowlist:

{
  "allowedTools": ["bash", "find", "grep", "ls", "read"],
  "bashAllow": [
    "pwd",
    "/^git\\s+log(?:\\s+.*)?$/i"
  ]
}
  • Plain string matches exact command.
  • /pattern/flags matches regex; supported flags: i, m, s, u.
  • Custom rules are added to built-in defaults.
  • Invalid or empty rules are ignored.
  • Redirects, pipes, command substitution, and known write commands stay blocked.

Need broader shell access? Toggle /ask off.