Expands !{command} patterns in user prompts before sending to the LLM.
What's in !{pwd}?
The branch is !{git branch --show-current} and status: !{git status --short}
My node version is !{node --version}
The !{command} patterns are executed and replaced with their output. Regular !command syntax (whole-line bash) is preserved.
| Event | Action |
|---|---|
input |
Detect and expand !{...} patterns |
- 30s timeout per command
- Error output shown inline as
[error: message] - UI notification summarizing expansions
- Preserves existing
!commandwhole-line bash behavior
Based on pi-mono example extension.