pi-mono/packages/coding-agent/src
Andrés Vinueza aa25726ebf
feat(coding-agent,tui): support argument-hint frontmatter in prompt templates (#2780)
* feat(coding-agent,tui): support argument-hint frontmatter in prompt templates

Parse argument-hint from prompt template frontmatter and display it
in the autocomplete dropdown description, matching Claude Code's
convention for custom commands.

Frontmatter format:
  ---
  description: Code review
  argument-hint: "[file | #PR | PR-URL]"
  ---

The hint renders in the description column of the autocomplete list:
  review   [file | #PR | PR-URL] — Code review

Closes #2761

* docs(coding-agent,tui): add argument-hint documentation, tests, and built-in hints

- Document argument-hint frontmatter in prompt-templates.md with <required>/[optional] convention
- Add argument-hint to built-in prompts: pr, is, wr
- Expand tests: required/optional hints, missing hints, empty hints, special characters
- Add changelog entries for coding-agent and tui
2026-04-16 23:02:35 +02:00
..
bun fix(coding-agent): suppress process warnings in CLI closes #2404 2026-03-19 22:21:48 +01:00
cli feat(coding-agent): add --no-context-files flag 2026-04-16 10:59:32 +02:00
core feat(coding-agent,tui): support argument-hint frontmatter in prompt templates (#2780) 2026-04-16 23:02:35 +02:00
modes feat(coding-agent,tui): support argument-hint frontmatter in prompt templates (#2780) 2026-04-16 23:02:35 +02:00
utils fix(coding-agent): kill tracked detached bash children on shutdown 2026-04-16 00:12:14 +02:00
cli.ts feat(coding-agent): set PI_CODING_AGENT=true env var at startup 2026-04-09 03:03:19 +02:00
config.ts fix(coding-agent): add earendil startup announcement 2026-04-08 11:13:40 +02:00
index.ts feat(coding-agent): export loadProjectContextFiles() standalone utility 2026-04-16 12:44:01 +02:00
main.ts feat(coding-agent): add --no-context-files flag 2026-04-16 10:59:32 +02:00
migrations.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
package-manager-cli.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00