Fix
zsh wrapper that auto-corrects typos and runs Claude Code—no shell config changes.
Fix multi-line shell commands before they hit your terminal
Fixes malformed paste content that bracketed paste mode doesn't actually solve.
Terminal users who copy commands from READMEs and ChatGPT
shell-plugin · thefuck
SmartClip hooks into your shell's paste widget (zsh, bash, fish) and silently fixes multi-line commands before the shell sees them. You paste with Cmd+V as usual — no new keybindings, no daemon, no background process.
It uses score-based heuristics to detect shell commands (so it won't mangle your JSON or prose), joins lines intelligently (backslash continuations, pipes, `&&`), strips prompt characters, and validates everything with `bash -n` before inserting. If it's not confident or the fix has invalid syntax, it passes through unchanged.
~150 lines of bash. Zero dependencies.
`brew install akshaydeshraj/smartclip` or `npm install -g smartclip-cli`
zsh wrapper that auto-corrects typos and runs Claude Code—no shell config changes.
Trajectory tracking beats diffs for agent memory, but terminal recording isn't new.
Splits compound bash commands so rm -rf slips through git status allow patterns no more.
Tree-sitter AST parsing auto-approves safe commands for AI agents.
CLI for managing shell aliases, but editing .zshrc directly is usually faster.
Capability flags for AI shell commands when nothing else guards agent execution.