Commit Graph

3 Commits

Author SHA1 Message Date
leetcrypt e4149ce502 fix(ai): strip inline backticks wrapping generated commands
Benchmarking showed qwen2.5-coder commonly wraps its one-liner in a single pair
of backticks (`cmd`), which the triple-fence stripper missed. Strip a matching
leading+trailing backtick pair only, leaving inline command substitution intact.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-09 14:27:56 -07:00
leetcrypt a699989088 feat(ai): make ai mode model-configurable + add --compare for A/B testing
Default the ai mode to qwen2.5-coder:1.5b instead of the hardcoded (and
uninstalled) westenfelder/NL2SH, which left ai mode broken. The model is now
configurable via SUPERMAN_AI_MODEL / --model, with markdown-fence stripping and
a coder-specific prompt wrapper so general coder models emit a single bare
one-liner. NL2SH still receives the raw query. Adds --compare to run multiple
models side by side (SUPERMAN_AI_COMPARE_MODELS) with timing for benchmarking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-09 14:24:40 -07:00
leetcrypt 2fb20b0682 refactor: rebrand bash-helper to super-man + ESC returns straight to menu
Rename bash-helper.sh -> super-man.sh and update all docs/tests to the
super-man name and alias. In interactive mode, pressing Esc in the flag
browser now returns directly to the home menu, removing the intermediary
"Press Enter to search another command" prompt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-05 20:52:18 -07:00