| Crates.io | qwak |
| lib.rs | qwak |
| version | 0.1.0 |
| created_at | 2025-06-23 04:01:44.673817+00 |
| updated_at | 2025-06-23 04:01:44.673817+00 |
| description | Quick agentic aliases. |
| homepage | |
| repository | https://github.com/BlueBlazin/qwak |
| max_upload_size | |
| id | 1722157 |
| size | 55,713 |
A command-line tool for creating shortcuts to AI agent prompts. Store agentic prompts as simple aliases and execute them with your preferred AI agent.
You can create a shortcut like fastapi and provide one-time instructions on what it should do. From then on you can just run:
qwk fastapi
# Claude starts installing FastAPI, create your custom boilerplate, etc.
Qwak allows you to save frequently used AI prompts as shortcuts and execute them quickly. Instead of retyping long prompts or searching through your history, create an alias once and run it with a simple command.
cargo install qwak
Or build from source:
git clone https://github.com/your-username/qwk.git
cd qwk
cargo build --release
Set an alias for a prompt:
qwk --set react-setup "Create a new React project with Vite, install styled-components, and set up a basic component structure"
Configure your AI agent (defaults to 'claude'):
qwk --agent claude
Run your shortcut:
qwk react-setup
Enjoy autocompletion:
qwk <TAB> shows all available shortcutsqwk --<TAB> shows all available commandsCreate Vite app with bun and clean up starter code.
qwk --agent "claude --dangerously-skip-permissions"
qwk vite-react-swc
with this prompt mapped to vite-react-swc:
Run `bun create vite . --template react-swc`
Run `bun install`.
Delete `src/assets/react.svg`, `public/vite.svg`, `App.css`
Run `bun add styled-components`.
Replace `src/index.css` with a very simple css reset containing just:
```css
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
```
Replace `src/App.jsx` with a simple component that creates a styled-components `Container` styled div and returns just `<Contianer>App</Container>`.
Have `Container` in `src/App.jsx` take up 100vw and 100vh.
Set a shortcut with an inline prompt:
qwk --set my-alias "Your prompt here"
Set a shortcut by piping from a file:
cat my-prompt.txt | qwk --set my-alias
Set a shortcut interactively (paste your prompt):
qwk --set my-alias
# Paste your prompt and press Ctrl+D (Unix) or Ctrl+Z (Windows)
Execute a shortcut:
qwk my-alias
Execute with additional agent arguments:
qwk my-alias -- --temperature=0.7 --max-tokens=1000
Set the AI agent command (default: claude):
qwk --agent your-agent-command
Set an agent with default arguments that will be passed on every call:
qwk --agent "claude --dangerously-skip-permissions"
List all available shortcuts:
qwk --list
Remove a specific shortcut:
qwk --remove my-alias
Set up autocompletion manually (usually automatic):
qwk --setup-completion
Reset all shortcuts (creates backup):
qwk --reset
Qwk stores its configuration in ~/.config/qwk/:
aliases.json - Your shortcuts and promptsagent - Your configured AI agent commandaliases_backup_YYYYMMDD_HHMMSS.json - Automatic backups when resettingWeb development:
qwk --set debug-css "Help me debug this CSS layout issue. Look at the HTML and CSS and suggest fixes for alignment problems."
qwk debug-css
Code review:
qwk --set review "Review this code for potential bugs, performance issues, and suggest improvements."
qwk review -- --model=claude-3-sonnet
Documentation:
qwk --set docs "Generate comprehensive documentation for this code including usage examples."
qwk docs
Managing shortcuts:
# List all available shortcuts
qwk --list
# Remove a shortcut you no longer need
qwk --remove old-alias
# Reset all shortcuts (creates backup first)
qwk --reset
Using agent with default arguments:
# Set agent with default args that apply to every call
qwk --agent "claude --dangerously-skip-permissions --max-tokens=2000"
# This will execute: claude --dangerously-skip-permissions --max-tokens=2000 "your prompt"
qwk my-alias
# This will execute: claude --dangerously-skip-permissions --max-tokens=2000 --temperature=0.7 "your prompt"
qwk my-alias -- --temperature=0.7
Qwk automatically sets up shell autocompletion on first run for bash, zsh, and fish. This provides:
-- commands~/.bashrc or ~/.bash_profile~/.zshrc~/.config/fish/config.fishIf autocompletion wasn't set up automatically:
qwk --setup-completion
Then restart your shell or source your configuration file.
| Command | Description |
|---|---|
qwk <alias> |
Execute a saved shortcut |
qwk <alias> -- <args> |
Execute shortcut with agent arguments |
qwk --set <alias> [prompt] |
Create or update a shortcut |
qwk --agent <command> |
Set the AI agent command (with optional default args) |
qwk --list |
List all available shortcuts with previews |
qwk --remove <alias> |
Remove a specific shortcut |
qwk --setup-completion |
Set up shell autocompletion manually |
qwk --reset |
Reset all shortcuts (with backup) |
qwk --help |
Show help information |
claude, codex, etc.)Contributions are welcome! Please feel free to submit a Pull Request.