pip3 install git+https://github.com/ihucos/siesta.git
#!/usr/bin/env siesta
# vim: set ft=jinja
{% set commit|prompt("openai/gpt-4o-mini") %}
Write a git commit message for these changes. Use few words.
{% filter run(label=True) %}
git diff
{% endfilter %}
{% endset %}
{% filter run %}
git commit -am {{ commit|askedit|quote }}
{% endfilter %}
chmod +x ~/bin/s-commit
s-commit
Ask for completion by a LLM. See list of supported models: https://docs.litellm.ai/docs/providers
Print input and exit.
Run input in bash, return output
Cat all files found in input with labels
Ask the user to run something
Let the user edit a string
Filter out code blocks
Shell escape
Parse as JSON