I just ran this for just that purpose.
curl http://<local-ollama>:11434/api/generate -d "$(jq -n --arg hist "$(history)" '{ "model": "qwen3.5:35b-a3b-q4_K_M", "stream": false, "prompt": "The following is my bash shell history. Are there any bad patterns I should fix or commands I should learn or master? \($hist)" }')"