Recipes / Cookbook
Common patterns and workflows for getting the most out of Hash.
Data Processing
Convert CSV to JSON
cat data.csv | ?? convert to json array of objects
Extract fields from logs
cat access.log | ?? extract ip and status code, group by status
DevOps
Kubernetes Health Check
kubectl get pods -A | ?? show unhealthy pods and their restart counts
Docker Cleanup
docker ps -a | ?? find exited containers from last week
Completions
Teach Hash to complete any tool
Ask the agent to write a completion plugin for a tool, then steer it in plain language until it covers what you need:
completions generate kubectl
[a]ccept [r]evise <what to change> [q]uit: r also complete namespaces
Accepting activates the plugin immediately. kubectl delete pod <TAB> now lists live pods.
Git Workflows
Conventional Commits
git diff --staged | ?? generate conventional commit message
Branch Cleanup
git branch --merged | ?? list branches safe to delete (exclude main)