Skip to content

Add ccline - type natural language at zsh prompt, get AI answer and run commands#724

Open
jianshuo wants to merge 1 commit into
alebcay:masterfrom
jianshuo:master
Open

Add ccline - type natural language at zsh prompt, get AI answer and run commands#724
jianshuo wants to merge 1 commit into
alebcay:masterfrom
jianshuo:master

Conversation

@jianshuo

Copy link
Copy Markdown

What does this add?

ccline — hijacks zsh's command_not_found_handler so you can type a natural-language thought directly at your prompt (no command, no prefix). It calls Claude or Codex, renders the answer as Markdown, and if the response contains shell commands, shows an interactive arrow-key menu to confirm and run them.

$ how do I find files bigger than 100MB here

    find . -maxdepth 1 -type f -size +100M

Commands found — ↑/↓ to choose, Enter to run, q to cancel:
 ❯ find . -maxdepth 1 -type f -size +100M
   find . -type f -size +100M
   ➤ Run all of them
   ✗ Cancel
  • No extra dependencies: just zsh + claude or codex CLI
  • One-word inputs (typos) pass through normally — no accidental API calls
  • Selected commands run in the live shell (so cd, export etc. actually persist)

Added near thefuck under Command-Line Productivity as it solves the same "I don't know the exact command" problem with an AI-powered approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant