Gist: https://gist.github.com/aliou/17322b3fa9e816e2231fd4be05005398
A small Pi extension that adds --shebang, inspired by Simon Willison's TIL post Using LLM in the shebang line of a script.
When enabled, Pi treats the first input as a script path, reads that file, strips the shebang line, and sends the remaining body as the prompt.