{"slug":"claude-code-drop-a-commit-or-path-into-the-prompt-with-fzf","title":"Drop a commit or a path into the Claude Code prompt with fzf","summary":"Claude Code stays the agent you are typing to. fzf, via tmux, inserts a commit hash or a path into that prompt so you do not retype it. Nothing is committed.","agent":"Claude Code","agentSlug":"claude-code","category":"Coding","categorySlug":"coding","roles":["Software engineer"],"roleSlugs":["software-engineer"],"industries":["Software"],"industrySlugs":["software"],"jobs":["shipping-code"],"topic":"Dev & Coding","topicSlug":"dev-and-coding","score":18,"difficulty":"medium","estCost":"fzf and tmux are local tools. Claude Code is whatever plan you already use. The guide names fzf 0.74.0 or later, Ruby, and tmux 3.7 or later for a floating pane.","costTier":"low","timeSaved":"Retyping hashes and paths into the agent prompt. An estimate, not a measurement.","prompt":"I will paste a commit hash or a file path into this prompt using the picker on my side. Do not guess a hash or a path I did not paste.\n\nWhen I ask you to summarize changes since a hash, use only that hash. When I ask you to elaborate on a sentence I pasted, quote that sentence and stay inside it.\n\nDo not commit, push, or merge. Do not run a command that changes git history. Stop after the explanation I asked for.","steps":[{"title":"Run Claude Code inside tmux","detail":"The guide uses tmux key bindings because the shell bindings no longer see your keys once the agent prompt is focused. A floating pane needs tmux 3.7 or later. Older tmux uses a popup."},{"title":"Install the two pickers the guide names","detail":"tmux-fzf-complete needs fzf 0.74.0 or later and Ruby. The guide shows set -g @plugin 'junegunn/tmux-fzf-complete', or run-shell of fzf-complete.tmux. fzf-git.sh is the git-object picker. Prefix Ctrl-T starts the file and screen picker. Prefix g reaches git objects."},{"title":"Insert the selection, then send the prompt","detail":"Type the start of the request, pick the hash or the path, and send it. You still decide whether any later edit is committed."}],"sourceUrl":"https://junegunn.github.io/fzf/tips/using-fzf-with-ai-agents/","sourceNote":"fzf guide page. It returned HTTP 200 on 17 Oct 2026. The same page was posted to Hacker News the same day: https://news.ycombinator.com/item?id=50126880. The screencast in the guide uses Claude Code. Prompt and stop rules are an AI Playbook Gems adaptation, not a vendor quote; unverified.","date":"2026-10-17","verified":false,"status":"unverified","sponsorUrl":"","metrics":[{"label":"Hands-on time","value":"Picking the hash or path and reading the reply"},{"label":"You still approve","value":"Any commit, push, or merge"}],"faq":[{"question":"Has this Claude Code playbook been re-run for the catalog?","answer":"No. Status is unverified. The fzf guide and the Hacker News submission were checked on 17 Oct 2026. The prompt is an adaptation."},{"question":"What stays human?","answer":"Choosing the hash or path, and any git write. The picker only inserts text into the prompt."}],"url":"https://aiplaybookgems.com/usecases/claude-code-drop-a-commit-or-path-into-the-prompt-with-fzf","jsonUrl":"https://aiplaybookgems.com/api/usecases/claude-code-drop-a-commit-or-path-into-the-prompt-with-fzf"}