Skip to content

yash113gadia/codepilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

35 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CodePilot

An AI-powered engineering cockpit for the terminal. Provider-agnostic, security-hardened, and built for complex, multi-agent workflows.

License: MIT GSoC 2026

CodePilot transforms your terminal from a basic shell into a Strategic Engineering Environment. It combines the architectural reasoning of top-tier models, the context of Gemini, and the precision of Aider into a single, transparent interface.

πŸš€ Key Features

  • Hierarchical Task Tree β€” Visualize nested sub-agent activities and tool calls in real-time.
  • Interactive Plan Mode (^P) β€” Mandate architectural research and side-effect analysis before execution.
  • Proactive Search β€” Automatically grounds technical knowledge using real-time web search for unknown libraries or errors.
  • Enterprise-Grade Security β€” Path Traversal Guards block any attempt to access files outside the project root.
  • Git-Backed Reliability β€” Automatic "Task Checkpoints" allow for atomic session rollbacks via the /revert command.
  • Massive Context Support β€” Native optimization for 2.5M+ token windows (Gemini 3.0).
  • Pro-Shortcuts β€” Direct terminal access (!command), context pinning (@file), and rapid undo (^Z).

πŸ“¦ Installation

Install CodePilot instantly into your terminal using any of these methods:

1. Direct Shell (Easiest)

curl -fsSL https://raw.githubusercontent.com/yash113gadia/codepilot/master/scripts/install.sh | bash

2. NPM (From Source)

npm install -g yash113gadia/codepilot

3. NPX (Instant Try)

Run CodePilot without installing it:

npx yash113gadia/codepilot chat

πŸš€ Quick Start

  1. Setup your API Key:
codepilot setup
  1. Start an interactive session:
codepilot chat
  1. Or pipe in context directly:
cat error.log | codepilot chat --pipe "fix this"

πŸ›  Strategic Comparison (2026)

Feature Claude Code Aider CodePilot (Upgraded)
UX Model Linear List Diff Stream Hierarchical Task Tree
Safety MCP-based User-manual Native Path Guards + Git Checkpoints
Planning Mandatory Optional Interactive Toggle (^P)
Logic Anthropic Only Multi-model Multi-model (Agnostic Hub)
Context 500k ~200k (Mapped) 2.5M+ (Full-Repo Native)

⌨️ Pro Shortcuts

Shortcut Action Description
^P Plan Mode Toggle the interactive planning and research state.
^Z Quick Undo Revert the last file modification instantly.
^L Clear Wipe the current session history and clear the screen.
! <cmd> Direct Bash Execute a local shell command without LLM intervention.
@ <file> Pin Context Force the agent to read and prioritize a specific file.
/revert Task Rollback Use Git to revert all changes made in the current session.

βš™οΈ Configuration

CodePilot uses a layered configuration system (.codepilot/config.yaml). Set your provider and model globally or per-project:

codepilot config set provider google
codepilot config set model gemini-3.0-pro-preview

πŸ— Built With

  • Ink (React for CLI) - Stateful, interactive TUI.
  • Vercel AI SDK - Provider-agnostic LLM abstraction.
  • TypeScript - Type-safe agent logic.
  • Git - Atomic task checkpointing and recovery.

🀝 Author

πŸ“„ License

MIT

About

πŸ€– Provider-agnostic AI coding agent for the terminal. Works with any LLM β€” Anthropic, OpenAI, Google, Ollama. Built with TypeScript, Ink & Vercel AI SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages