maxritter/pilot-shell
How real engineers run Claude Code and Codex: spec-driven planning, enforced TDD, persistent memory, and quality enforcement on all levels. Make your agents production-ready.
Pilot Shell – AI‑augmented command‑line for Claude Code & Codex
What it is – A thin shell/CLI that sits on top of Anthropic’s Claude Code (primary) or OpenAI’s Codex and adds a structured, test‑driven development workflow. It turns raw code‑generation prompts into repeatable, quality‑checked pipelines that cover requirement gathering, specification, implementation, bug‑fixing and autonomous building.
Why it exists – Claude Code and Codex can write code quickly, but without a framework they:
- skip tests and linting,
- lose context between sessions,
- produce inconsistent results. Pilot Shell injects spec‑driven and goal‑driven processes, quality gates, and persistent “memory” so the AI behaves more like a disciplined engineering teammate.
Core concepts & commands
| Command | When to use | What it does |
|---|---|---|
/prd |
You have a vague idea or problem statement. | Brainstorms, does optional web research, and produces a Product Requirements Document saved under docs/prd/. |
/spec |
You have a clear feature or bug to work on. | Guides the AI through Plan → Approve → Implement (TDD) → Verify → Done, with automatic lint/format/type checks and optional collaborative spec review. |
/build |
You want to reach a concrete goal without a full spec. | Generates a short task list + acceptance criteria, then iteratively builds, judges, and refines until the criteria pass. |
/fix |
You need a bug‑fix that fits a test‑driven flow. | Runs a focused TDD loop; aborts if the fix becomes too complex. |
pilot (admin alias) |
Managing the installation, updates, and configuration. | Installs/uninstalls the runtime, activates licenses, switches models, etc. |
Highlighted features
- Quality hooks – linting, formatting, type‑checking and test execution are enforced automatically for every edit.
- Context engineering & memory sharing – decisions, rules, and “memories” are persisted in
~/.pilot/and can be shared via the project repo. - Semantic search (Semble) + code‑knowledge graph (CodeGraph) – fast, accurate code‑base look‑ups that reduce token usage.
- Token optimization – 60‑90 % cost reduction through RTK compression and the Semble search.
- Pilot Bot – a persistent background agent that can run scheduled tasks or long‑running jobs.
- Extensions – reusable rules, skills, and MCP (Message‑Control‑Protocol) servers that teams can share.
- Console – a local web dashboard showing real‑time notifications, session logs and the current requirements/specs.
Installation (quick‑start)
# one‑liner works on macOS, Linux and Windows (WSL2)
curl -fsSL https://raw.githubusercontent.com/maxritter/pilot-shell/main/install.sh | bash
The installer:
- Checks for Homebrew, Node, Python 3.12+, git, jq.
- Detects a supported AI agent (Claude Code or Codex) – you must install one beforehand.
- Deploys Pilot assets under
~/.pilot/and agent‑specific adapters. - Installs supporting tools (Semble, RTK, CodeGraph, Playwright, Chrome‑DevTools MCP, language servers, etc.).
- Adds shell aliases (
pilot,claude/codexwrappers) for bash, fish and zsh.
To uninstall while keeping your data:
curl -fsSL https://raw.githubusercontent.com/maxritter/pilot-shell/main/uninstall.sh | bash
Add --purge-data to delete ~/.pilot/.
Prerequisites
- Claude Code – native installer (requires an Anthropic subscription) or
- Codex CLI / ChatGPT desktop (requires an OpenAI subscription).
- A modern terminal (Zentty recommended, but iTerm2, Ghostty, etc. work).
Typical workflow example
# start Claude Code (or Codex)
claude # or: codex
# 1️⃣ Create a PRD
> /prd "Add real‑time notifications for team updates"
# 2️⃣ Turn it into a spec and implement
> /spec "Add real‑time notifications for team updates"
# – Pilot walks you through planning, writes E2E tests, implements with TDD, verifies and merges.
# 3️⃣ If you later need a quick fix
> /fix "Notifications stop after page reload"
All steps are logged, and the generated specs, rules and memories live in the repo for future reuse.
Who might benefit?
- Software engineers who already use Claude Code or Codex and want a disciplined, repeatable workflow.
- Teams that need shared specifications, quality gates and a way to persist AI‑generated knowledge across members.
- Solo developers looking to reduce token costs while keeping AI assistance safe and test‑driven.
Links
- Docs: https://pilot-shell.com/docs
- Blog: https://pilot-shell.com/blog
- Releases: https://github.com/maxritter/pilot-shell/releases
- License & activation:
pilot activate <key>(keys obtained from the Pilot members area).
Related
- Project
- Project
- Project
- Dispatch
- Project