Explores how to use the llm CLI tool within a script's shebang line by utilizing the env -S pattern. This approach allows plain text files to become executable via large language models, treating file contents as prompts. The article covers using flags like -f for fragments and -x for code extraction, integrating tools such as llm_time, and leveraging YAML templates with parameters or embedded Python tool functions to create highly functional scripts.
Main topics:
- Using env -S with the llm CLI
- Making text files executable via LLM
- Integrating tools within shebang lines
- Utilizing YAML templates for prompts
- Embedding Python functions in templates