This isn't just another CLI tool; it's a game-changing AI companion for develope...
GitHub RepoImpressions775

This isn't just another CLI tool; it's a game-changing AI companion for develope...

@githubprojectsPost Author

Project Description

View on GitHub

Crush: The AI-Powered CLI That Feels Like Pair Programming

If you've ever been deep in a terminal workflow and wished you had a pair programmer to bounce ideas off of, or just someone to handle that tedious data transformation, you know the feeling. Most AI coding tools live in your IDE or a browser tab, creating a context switch that breaks your flow. What if your AI companion lived right where you work—in the command line?

That's exactly what Crush from Charmbracelet is. It’s not just another CLI tool to memorize; it's a context-aware AI assistant that integrates directly into your shell. It understands your current directory, your open files, and your git status, turning natural language requests into precise shell commands and scripts.

What It Does

Crush is a TUI (Terminal User Interface) application that connects to an AI model (like OpenAI's GPT-4) and acts as a bridge between your plain English requests and your shell environment. You ask it a task—"find all the Go test files modified in the last week"—and it suggests the correct find or git command. More impressively, it can write small scripts, explain complex commands, and process the files in your current project, all while staying within the terminal.

Why It's Cool

The magic of Crush is in its context awareness. When you run it, it automatically gathers information about your current working directory, recent git history, and even the contents of relevant files. This means you can ask things like "What did I change in the last commit?" or "Add a comment to this function in my open file," and it has the information needed to help.

It's built with the Charmbracelet ecosystem, known for tools like Glow and Lip Gloss, which means the TUI is polished, responsive, and a genuine pleasure to use. It feels like a native part of your terminal, not a clunky web app grafted on.

Beyond generating commands, it can execute them for you after confirmation, creating a safe, interactive loop. This makes it an incredible learning tool for newer developers and a massive productivity booster for veterans who don't want to leave the keyboard to look up arcane awk syntax.

How to Try It

You'll need Go installed to build it from source. Getting started is straightforward:

  1. Clone the repo:

    git clone https://github.com/charmbracelet/crush.git
    cd crush
    
  2. Build it:

    go build
    
  3. Set your OpenAI API key: You need an API key from OpenAI.

    export OPENAI_API_KEY='your-key-here'
    
  4. Run it:

    ./crush
    

From there, you're in the interface. Type your request, review the suggested command or code, and choose to run it, copy it, or ask for a revision.

Final Thoughts

Crush nails the feeling of having a helpful teammate in your terminal. It reduces the friction of looking up commands or writing quick scripts, letting you stay in the zone. It's particularly powerful for exploratory work, data munging, and automating those one-off tasks you can't quite remember the syntax for.

It's early days, and you're effectively "paying per query" via the OpenAI API, so it might not be your first choice for every single shell operation. But for complex tasks or when you're learning a new toolchain, it's a game-changer. It feels less like running a command and more like starting a conversation with your shell.

Check out the project on GitHub to see it in action and contribute.


Follow us for more cool projects: @githubprojects

Back to Projects
Project ID: 9e4ae2f1-6dcc-496f-b38f-5f480adfa8b3Last updated: December 4, 2025 at 02:55 PM