ridinCLIgun

Your terminal has a copilot now.
It watches. It warns. It helps.
You stay in control.

A split-terminal TUI that spots risky commands before execution, explains what you're typing, and helps you learn safer moves in a real shell. Fast and low-friction. Friendly when you want help. Firm when it matters.

The only seatbelt that fits a terminal.

ridinCLIgun showing an AI review of a piped install command — shell on the left, detailed advisory pane on the right

What it is

ridinCLIgun is a split-screen terminal interface. On the left: your actual shell — with colors, completion, history, everything you expect. On the right: an advisory pane that watches your input before you hit Enter and gives you useful context while the command is still harmless text.

That means more than just danger labels. Local pattern checks catch risky commands instantly. The built-in offline command catalog follows the variant you are typing: subcommands, relevant examples, and useful flag notes ALWAYS available locally. Optional AI review provides a deep and detailed analysis. The history browser lets you revisit past reviews later. Secret Mode keeps every external call shut off when privacy matters.

Instant local warnings

Offline checks catch destructive patterns before execution. No network round-trip, no waiting.

📖

Variant-aware command help

When git becomes git commit --amend, the advisory pane does not stay stuck on the base command. It narrows to the matching variant, ranks examples and adds useful flag notes.

🤖

AI review on demand

Ask Claude, GPT, or Mistral for a deeper review of what a command or script actually does.

📜

Review history

Use the history browser to revisit past reviews, recover useful suggestions, and learn from what already happened.

🦪

Real shell, not a cage

Full PTY with colors, completions, and history. Your shell, with a seatbelt and ALL features — not a sandbox.

🔒

Secret Mode

One toggle. Zero data leaves your machine. The AI features go silent, the local help and warnings stay sharp.

Person pausing before pressing Enter while an AI assistant appears on a split-screen terminal

Why I built it

I set up agent systems (together with my agents) on my own machine — and if you want to do this properly, you need the terminal. It's only when you issue the commands yourself that you find your learning curve and stay in control. Your trusted agent might explain what you're doing, but that takes time, disrupts your flow, and it might just be hallucinating. I need the explanation straight away, right next to the command line – the moment my finger hovers over Enter. That's how the idea for ridinCLIgun came about. Because the person at the Enter key should be the learner — not just the rubber-stamper.

See it in action

ridinCLIgun flagging a curl pipe command and showing safer guidance plus offline curl examples
Local warning + command help

It catches the risky part and shows a safer path

A piped install command can look routine. ridinCLIgun flags the risky pattern locally, explains why it matters, and immediately offers a review-first workflow instead of “just trust it.”

A good copilot does more than shout. It helps you steer.

ridinCLIgun showing the review history browser with past AI reviews and a detailed side panel
Review history

It helps you remember what you already learned

Revisit past AI reviews, compare patterns, and recover useful suggestions without re-running the whole analysis. Helpful for repeated tasks, onboarding, and learning by accumulation.

ridinCLIgun showing offline tar command help with syntax and examples while the user types
Variant-aware offline help

It follows the command you are actually building

Start with a base command, keep typing a subcommand or flag, and the advisory pane narrows from general help to the matching variant. So the local catalog feels less like a static manual and more like help that keeps up with your thought.

Who it's for

Protects you and your loved ones from rm -rf. Also from dd, mkfs, and that clipboard you forgot about.

🌱

Newcomers and students

The terminal is exciting — until it bites. ridinCLIgun explains what a command does before you run it, turning every mistake into a lesson instead of a recovery job.

"Did I just break something?"
💻

Junior developers

You know enough to be dangerous: rm -rf, chmod 777, accidental sudo on the wrong directory. ridinCLIgun catches the classics before they become war stories.

"I just wanted to clean up some files."

DevOps and sysadmins

Installation scripts via curl | bash, disk-level tools like dd and mkfs, deployment pipelines that touch production. ridinCLIgun reviews scripts and flags risky patterns before execution.

"What does this script actually do?"
🔒

Security engineers

Obfuscated payloads, clipboard injection attacks, supply-chain risks in piped scripts. ridinCLIgun adds a second pair of eyes where it matters — between intent and execution.

"Does this command match the intent?"
🗃

Data engineers

One wrong DROP TABLE or a deployment to the wrong environment, and it's an incident. ridinCLIgun catches dangerous database operations and ambiguous targets before the query runs.

"Am I on prod or staging?"
🧑‍🎓

Educators and trainers

Teaching the command line means watching students type dangerous things.... and collecting typos. ridinCLIgun turns the terminal into a safer learning environment — with support and warnings that explain, not just block.

"Please don't run that in the shared environment."
🤖

Agent builders and AI-copilot users

Trust, but verify! Your agent suggests chmod, launchctl, or a curl | bash — and will happily explain it if you ask. ridinCLIgun puts that explanation next to your prompt unasked, so you understand what you run instead of just trusting it.

"The agent sounded very confident."

Why it matters

The terminal is powerful. It's also unforgiving. One misplaced flag and you're restoring from backup — or explaining to your team why main looks different now.

Developer working confidently with ridinCLIgun warnings visible on screen

Learn without fear

I built ridinCLIgun in order to make the command line less intimidating for the curious. Warnings teach you what a command does, or how to combine it, not just that it's dangerous.

Danger signals being filtered before reaching the terminal

Catch before you crash

The local information and warning engine runs before execution — no round-trip, no delay. The dangerous command never leaves your input line.

Persons walking confidently along a guarded path

Stay in control

This is not an auto-corrector. It does not modify, block, or rewrite your commands. It informs. You decide. You are in control. Guardrails, not handcuffs.

Office chaos with dangerous commands everywhere — one developer stays calm with ridinCLIgun

While others panic

Somewhere, someone just ran rm -rf / without thinking. Somewhere else, someone got warned first. Who do you want to be?

In the land of sudo, the careful man is king.

Roadmap

Where ridinCLIgun is heading. Vision, not promises — this is a personal project with no fixed timeline.

v0.3 — shipped 2026-03-21

"This tool is careful."

Settings UI, toast notifications, clipboard safety, onboarding flow, AI review with redaction preview, deep script analysis, API key management, CI pipeline, and security hardening.

shipped macOS Python 3.12+
v0.4 — shipped 2026-04-14

"This tool is genuinely useful."

Offline command knowledge with a 6,600+ command catalog, typo detection, German and French locale overlays, smarter AI prompts, AI replies in your language, Explorer mode, review history, full UI localisation, and persistent provider/model settings.

shipped
v0.4.5 — shipped 2026-06-04

"Pop the bottle. Homebrew is here."

Homebrew tap installation is live on macOS. Homebrew installs a prebuilt bottle on Apple Silicon and falls back to a source build on Intel. Small release, real milestone, fully worth a little confetti.

shipped Homebrew macOS
v0.4.7 — shipped 2026-06-20

"This tool listens more closely."

Variant-aware offline help is live: subcommand resolution, deterministic example ranking, and flag notes make the advisory pane follow the command you are actually typing. Still local. Still fast. Still without an API key.

shipped offline help local
v0.6 — planned

"This tool teaches."

A learning game with real terminal challenges, Linux support, custom risk catalogs, and OS-aware advisory.

planned
v1.0 — vision

"This tool runs your workflows."

Agent cockpit for proposed commands, multi-agent integration, a full local audit log, and reusable workflow templates — with the human always in control.

vision

FAQ

Does ridinCLIgun execute or block my commands?

No. ridinCLIgun is a helper, not an autopilot. It can watch, warn, explain, and cover your back before execution, but your shell stays yours and you are always the one who decides whether to press Enter.

I work with AI agents that suggest commands. Why would I need ridinCLIgun?

That is exactly the situation it was born from. Agents explain commands well — when you ask. They might hallucinate. ridinCLIgun makes that explaining moment a quick and permanent default — unprompted: it shows what a suggested command does before you run it, and you stay the human in control who consciously presses Enter.

That makes you a better-informed operator. And you learn the terminal along the way.

Does it send my commands to the cloud?

By default, local warnings and offline command help stay on your machine. AI review data only goes to your chosen provider when you actively request a review.

One current exception exists: if AI is already enabled and a valid key is configured, turning AI on or switching provider can trigger a minimal provider-validation request instead of sending your current shell command. Secret Mode suppresses that AI traffic.

Which shells are supported?

ridinCLIgun uses your default shell and currently documents POSIX shells such as bash and zsh. It wraps that shell rather than replacing it, so your config, aliases, completions, and normal habits still work.

Does it work on Linux or Windows?

Right now it is macOS-only. Linux support is planned, and Windows is on the longer path after that. The intent is to keep the same helper-first experience across platforms, not build a separate stripped-down version.

Is it free?

Yes. ridinCLIgun is free and open source under GPL-3.0-or-later. No paid tier, no premium lock-in, no usage limits. If you want AI review, you bring your own API key and keep control over which provider is used.

How do I install it?

On Apple Silicon, Homebrew installs a prebuilt bottle:

brew tap inference-garden/ridincligun
brew install ridincligun

Then run ridincligun. Local warnings and offline command help work without an API key; AI review is optional.

Using an Intel Mac? The same commands work, but Homebrew currently builds ridinCLIgun from source. The first install requires the Xcode Command Line Tools (xcode-select --install), downloads the Rust/LLVM toolchain (about 2 GB), and takes a few minutes. If the build fails, please open an issue with the build log.

Can I add my own warning rules?

Not yet — custom rules are planned for a future version. Today the built-in rule set covers a wide range of risky patterns out of the box, and later versions are meant to let teams and instructors tailor the helper to their own environment.

What's the difference between local warnings and AI review?

Local warnings are instant, offline, and pattern-based — they catch known risky commands quickly. Variant-aware offline help adds examples, syntax, and flag notes while you type. AI review is the deeper layer you can call in when you want explanation, script analysis, or a second opinion. Together they make the tool feel less like a siren and more like a capable copilot.

Western stagecoach scene — a cowboy drives while a coder rides shotgun with a laptop
Shotgun — not the weapon. The seat.
CLI — not the fear. The frontier.
The gun was never the point. The ride was.
That's ridinCLIgun.

Saddle up

ridinCLIgun is open source, early-stage, and built in the open.
On macOS, the main path is now Homebrew. Source install stays as the fallback.

Install via Homebrew

Main install path on macOS:

brew tap inference-garden/ridincligun
brew install ridincligun

Then run ridincligun. Local warnings and offline command help work without an API key.

AI review is optional with ANTHROPIC_API_KEY, OPENAI_API_KEY, or MISTRAL_API_KEY.

Prefer source install? The GitHub README keeps the pip-based path as the fallback.

View on GitHub