Documentation
Everything you need to get started with Context Pilot — from installation to advanced workflows.
Getting Started
Install Context Pilot, configure your LLM provider, and run your first session in under 2 minutes.
Context Management
Understand how Context Pilot manages what your AI sees — panels, elements, tokens, and the context budget.
Tools Reference
All 58 tools organized by category — file editing, git, web search, memory, console, and more.
Modules
14 independent modules that power Context Pilot — activate, deactivate, and configure each one.
Agents & Skills
Custom system prompts, loadable knowledge skills, slash commands, and the library system.
Keyboard Shortcuts
Navigate the TUI efficiently — panel switching, scrolling, configuration, and input shortcuts.
Advanced Usage
Autonomous workflows, callbacks, presets, web search, PDF generation, and power-user tips.
Configuration
LLM providers, API keys, environment variables, and runtime settings.
Quick Overview
What is Context Pilot?
Context Pilot is a terminal application (TUI) that wraps around LLM providers to give AI coding assistants structured context management. It provides 58 specialized tools, persistent memory, file edit callbacks, and a modular architecture — all in ~15K lines of pure Rust.
Why does it exist?
Every AI coding assistant — Cursor, Copilot, Claude Code — starts each session blind. No memory of past decisions. No structured view of your codebase. No automatic validation of AI-generated edits. Context Pilot solves all three problems.
Key features
- Persistent memory — survives restarts, remembers architecture decisions and preferences
- Structured context — directory tree, file panels, git status, GitHub issues — all as managed context elements
- File edit callbacks — automatic compilation checks, tests, linters on every AI edit
- 58 tools — file editing, git, web search, PDF generation, console management, and more
- 5 LLM providers — Anthropic, Claude Code, DeepSeek, Grok, Groq
- Autonomous workflows — auto-continuation with cost/time/token guard rails
- Modular architecture — 14 independent crates, activate only what you need
Architecture
Context Pilot is organized as a Cargo workspace with 14 crates. Each module
(cp-mod-*) owns its tools, panels, and persistence. The core binary
orchestrates the TUI, LLM communication, and tool execution pipeline.
context-pilot/
├── src/ # Core TUI binary (~15K lines)
│ ├── app/ # Application state & event loop
│ ├── modules/ # Module integration layer
│ ├── llms/ # LLM provider implementations
│ └── ui/ # Terminal rendering
├── crates/
│ ├── cp-base/ # Shared types & state
│ ├── cp-mod-files/ # File management module
│ ├── cp-mod-git/ # Git integration
│ ├── cp-mod-memory/# Persistent memory
│ ├── cp-mod-brave/ # Web search (Brave)
│ └── ... # 9 more modules
└── yamls/ # Embedded config