Installation
Install
brew install imdevan/prompter/prompteryay -S prompter-cliDownload the latest binary from GitHub Releases:
# macOS (Apple Silicon)curl -L https://github.com/imdevan/prompter/releases/latest/download/prompter-darwin-arm64 -o prompter
# macOS (Intel)curl -L https://github.com/imdevan/prompter/releases/latest/download/prompter-darwin-amd64 -o prompter
# Linuxcurl -L https://github.com/imdevan/prompter/releases/latest/download/prompter-linux-amd64 -o prompter
chmod +x promptersudo mv prompter /usr/local/bin/Requires Go 1.21+ and just:
git clone https://github.com/imdevan/prompter.gitcd prompterjust buildsudo just installVerify Installation
prompter --versionQuick Start
Add a template:
prompter add question "This is a question. Do not generate code."Generate your first prompt:
prompter -q "how can i debug this code?"The prompt will be copied to your clipboard by default, ready to paste into your AI coding agent.
How It Works
Prompter builds a single prompt by combining your base request with reusable templates and real project context:
- Load the
index.mdtemplate if it exists - Apply selected templates in the order you pass them
- Insert the base prompt where it appears in that order
- Append files, directory contents, and piped input if provided
Interactive vs Non-Interactive
- Interactive mode (default) prompts for a base prompt and lets you select templates
- Non-interactive mode (
--yes) uses flags and arguments only
To control the default, set interactive_default in your config.