- What is Pilot?
- Prerequisites
- Installing pilot
- Usage
- How It works
- Limitations
- Future improvements
- Contributing & Feedback
Pilot is an AI-powered CLI agent with access to your filesystem via terminal. It takes your natural language prompt, generates the shell commands needed, and executes them automatically.
You'll need two things before installing:
Deno is a JavaScript runtime. Pilot uses it to compile and run.
curl -fsSL https://deno.land/install.sh | shirm https://deno.land/install.ps1 | iexGet your free API key from Google AI Studio.
Lets not wait anymore and install pilot -
git clone https://github.com/jayanth-14/pilot
cd pilot./install.shAdd your Gemini API key to the shell config file.
echo 'export GEMINI_API_KEY="your-api-key"' >> ~/.zshrc
source ~/.zshrcReplace "your-api-key" with your actual key from Google AI Studio.
Now that the boring setup is done, let's move on to the fun part.
Basic Syntax:
pilot "your task in plain English"Examples: Here are a few interactive examples to get started.
pilot "rename all the .js files to .ts"pilot "analyze the git history and show me the most active contributors"pilot "show me the last 10 commit messages"pilot "analyze git log and create a summary of changes from last week"When you run Pilot, it reads your natural language prompt, combines it with system rules, sends that prompt to the Gemini AI along with a system prompt. Then executes the response as shell commands.
The pipeline
- Pilot reads the prompt.
- Reads for any context provided from
stdin. - Builds a complete prompt with system rules(To only output shell commands).
- Sends to Gemini AI for command generation.
- Executes the shell commands via
zsh.
Smart recursion: If pilot needs more info, it can call itself with context:
git log --oneline | pilot "summarize these commits"Pilot is powerful, but not perfect. Keep these in mind:
- Mac/zsh only - No Windows or Linux support yet
- No confirmation prompts - Commands execute immediately (be careful!)
- AI can make mistakes - Gemini might misunderstand or hallucinate commands
- API dependency - Requires internet and valid Gemini API key
Pilot v1 works, but here's what's coming:
Safety First:
- Dry-run mode - Preview commands before execution (
pilot --dry-run "...") - Confirmation prompts - Require approval for dangerous operations (rm, sudo, etc.)
Better Experience:
- Command history - Track all executed commands in a log file (
pilot --historyto view) - Multi-platform support - Auto-detect OS and shell (Windows PowerShell, Linux bash)
Smarter AI:
- Auto model selection - Complex tasks use powerful models, simple tasks use fast ones
Pilot is still in its early days. Found a bug? Have a cool idea? Want to contribute?
- Open an issue on GitHub
- Submit a PR if you're feeling adventurous
All feedback welcome—even the brutal kind. Let's make pilot better together!