Skip to content
pi-c Check-in [bb88ac58ac]
Login

Check-in [bb88ac58ac]

Overview
Comment:Prompt templates, as Pi's

Markdown files in ~/.pic/prompts/ and, once the workspace is trusted, WORKSPACE/.pic/prompts/ become /name commands: Pi's frontmatter (description, argument-hint), shell-like arguments and substitutions ($1, $@, $ARGUMENTS, ${1:-default}, ${@:N}, ${@:N:L}). They expand where text becomes a request, so ask, chat and the terminal agree; the slash menu lists them, built-in commands win a name clash, and /reload re-reads them. pic prompts [--json] lists them. Files are read through the platform's input reader, which gains a directory listing. Fixes a pollfd array one entry too small when a catalog refresh runs during a reply.

Timelines: family | ancestors | descendants | both | templates
Files: files | file ages | folders
SHA3-256: bb88ac58ac0809383bb0367049662bb3e205f23899758ce6215b377a08dfecd5
User & Date: dmestas on 2026-11-19 20:35:01.092
Other Links: branch diff | manifest | tags
Context
2026-11-19
20:39
Merge the TUI race fixes into prompt templates closed check-in: f76faff78e user: dmestas tags: templates
20:35
Prompt templates, as Pi's

Markdown files in ~/.pic/prompts/ and, once the workspace is trusted, WORKSPACE/.pic/prompts/ become /name commands: Pi's frontmatter (description, argument-hint), shell-like arguments and substitutions ($1, $@, $ARGUMENTS, ${1:-default}, ${@:N}, ${@:N:L}). They expand where text becomes a request, so ask, chat and the terminal agree; the slash menu lists them, built-in commands win a name clash, and /reload re-reads them. pic prompts [--json] lists them. Files are read through the platform's input reader, which gains a directory listing. Fixes a pollfd array one entry too small when a catalog refresh runs during a reply. check-in: bb88ac58ac user: dmestas tags: templates

19:34
CI green on 44df2d733792; Fil-C pass (164) check-in: 06ac29aa05 user: dmestas tags: trunk
Changes