APE

Analyze. Plan. Execute.

Currently available for GitHub Copilot. More targets coming soon.

v0.0.14
PowerShell irm https://www.ccisne.dev/finite_ape_machine/install.ps1 | iex

Installs to %LOCALAPPDATA%\ape\, adds to PATH, and deploys APE agents to your AI coding tool.

APE finite state machine diagram showing IDLE → ANALYZE → PLAN → EXECUTE → END → IDLE cycle, with backward transitions and opt-in EVOLUTION state.

APE structures your AI coding assistant as a five-state finite machine — one specialized agent per phase, transitions verified by the CLI. The bet is methodology over model: if the framework carries the weight, a smaller or free model following it should stay useful where freestyling falls apart. That's the thesis APE exists to test.

The phases

ANALYZE

Clarify the problem. Capture requirements, assumptions, and edge cases before any code is written.

diagnosis.md

PLAN

Decompose the work. Order the steps, verify each, enumerate nothing missed.

plan.md

EXECUTE

Implement under the constraints of the tests. Each change small enough to merge confidently.

code + commits

Backward transitions from PLAN or EXECUTE back to ANALYZE are allowed — re-analysis is part of the contract.

Quick start

# verify prerequisites (ape, git, gh, gh auth)
ape doctor

# deploy APE agent + skills to your AI tool (Copilot today)
ape target get

# scaffold .ape/ in your repo
cd your-repo && ape init

Commands

9 commands total — see the full table on GitHub.

Targets

APE deploys agent prompts and skills to the global configuration of your AI coding tool.

Adapters for Claude, Codex, Crush, and Gemini already exist — awaiting a stable agent prompt API before being wired in (ADR D20).

Go deeper