Context-Aware History With mcfly
Replace Ctrl-R with a neural-ish ranked history search that adapts to your project.
Bind mcfly to Ctrl-R via shell init, then press Ctrl-R and type to search.
01Command
Command
$ mcfly search02What it does
mcfly trains a small model on your shell history and prioritizes commands likely to be useful in the current directory, also showing a short description of what each command does. It runs as a fast Rust TUI.
03Risk
!Warning: It needs a one-time shell hook to record history; without that hook it falls back to the plain history file.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: mcflyEvidence: Packages mcfly, a shell history search tool that ranks by context and recency.
Last verified: 2026-09-22 · Category: Developer