zhangroley76

AI Shell — AI skill for Claude Code

AI community

A local-first, privacy-friendly natural-language Linux/macOS command assistant.

How to install AI Shell

This entry records only its repository, not the path inside it, so there is no exact command to give. Open zhangroley76/ai-shell and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Shell does

A local-first, privacy-friendly natural-language Linux/macOS command assistant. Ask in plain English or Chinese — it generates, explains, and teaches shell commands with your local LLM (Ollama), Claude/Codex CLI, or any OpenAI-compatible API. Single Rust binary.

Alternatives in AI

  • Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
  • Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
  • Codebase Digest — 🗜️ Codebase-digest is your AI-friendly codebase packer and analyzer 375 ★

README

ai-shell

A local-first, privacy-friendly natural-language Linux command assistant.
Ask in plain English (or Chinese). It generates, explains, and teaches shell commands — with your local LLM, no cloud required.

ai-shell demo

Install · Usage · Backends · Safety · Config · License

English · 简体中文


Why ai-shell?

Most "AI shell" tools send everything to a paid cloud API. **ai-shell runs against a local model by default** (via [Ollama](https://ollama.com)), so your queries never leave your machine — and it's free to run. When you want more power, you can switch to Claude/Codex CLIs or any OpenAI-compatible cloud API with a single flag.

It's not just a command generator — it's a **learning tool**. It reads the *real* `--help`/`man` pages on your machine, so explanations are grounded in your actual system instead of the model's (often outdated) memory.

Features

  • 🧠 Understands intent automatically — generate a command, explain a command, break one down, or answer a concept question. No modes to memorize.
  • 📖 Grounded explanations — reads real --help / man output on your machine, so even obscure or third-party commands are explained correctly.
  • 🛡️ Safety first — every command is shown before it runs. Three-tier confirmation: normal (Enter), sudo (type y), catastrophic like rm -rf / (must type yes).
  • 📝 Script generation — ai script "..." produces a hardened Bash script (set -euo pipefail, quoted vars, dry-run for deletes), runs shellcheck, and warns on any destructive command before saving. Never auto-executes.
  • 🔀 Multiple backends — local Ollama, Clau