ape
Integrates with GitHub as the shipping provider, enabling APE to push run branches, open or reuse pull requests, wait for required checks, and squash-merge with optional auto-merge.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apeStart a phase run to add optimistic locking to invoices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
APE
APE turns AI coding from session-driven improvisation into durable, evidence-gated engineering runs. It keeps Plan → Build → Ship state outside the chat, resumes across sessions, and accepts progress only when the working tree, tests, reviews, and configured gates support it.
Under the hood, APE is a deterministic runtime for Claude Code and Codex that coordinates each host's native agents. The scheduler—not the model—owns stage order, retries, lane selection, receipts, recovery, and merge decisions. Agents and tooling can still be wrong; APE reduces the chance that an unsupported claim advances by requiring the evidence it knows how to verify.
Current status
Codex CLI is supported end to end and is the sole host required for live release certification.
Claude Code integration remains shipped and structurally and marketplace validated at its pinned CLI version, but Claude live operation is unverified in this release.
The public surface is seven skills backed by four MCP tools.
Runs are explicit. Installing APE does not start agents or change a repository.
GitHub is the only shipping provider.
Node.js 22.12.0 or newer is required.
Claude and Codex install from this repository's marketplace files. Both launch the bundled MCP server locally over stdio. A hosted broker and universal cloud-directory submission are outside the current release scope.
Codex IDE integrations and ChatGPT web, mobile, and cloud runtimes are not supported.
Related MCP server: claude-swarm
Install
Claude Code
Run these commands inside Claude Code:
/plugin marketplace add AAWWCC/ape
/plugin install ape@ape
/reload-pluginsCodex CLI
Run these commands in a terminal:
codex plugin marketplace add AAWWCC/ape
codex plugin add ape@apeEach host uses an allowlisted package from plugins/. The package starts
dist/ape-mcp.bundle.mjs with local Node and communicates over stdio; it does not send APE state
to an APE-operated service.
Compatibility
compatibility.json is the machine-readable source of truth for supported
platforms and blocking host versions. The detailed host compatibility contract
explains how pull-request, release, and informational edge checks consume it.
Host | Package | MCP transport | Agent integration | Live release status |
Codex CLI |
| Local stdio | Native Codex subagents and lifecycle hooks | Required; certification is supplied by the tagged-release ledger. |
Claude Code |
| Local stdio | Claude Agent tool and supplemental hooks | Packaged and structurally validated; authenticated live operation is unverified. |
Node.js 22.12.0 and the pinned Node.js 24 release runtime are exercised on Windows, Linux, and macOS. External MCP discovery, availability, and permissions remain entirely host/operator owned; APE does not intercept or attest them.
For development from this checkout, rebuild the packages before using a host reinstall helper:
npm ci
npm run bundle
npm run package:plugins
npm run reinstall:codexThe Codex wrapper validates a small allowlisted package, promotes it under a new immutable cache version, and leaves both the source manifest and versions used by open tasks unchanged. Start a new host task after reinstalling.
Use
APE is useful when work must survive session boundaries, has meaningful tests or review gates, or
needs an auditable Plan → Build → Ship record. It is usually excessive for a one-line local edit,
throwaway exploration, or work whose cost is lower than setting up claims and evidence. Use
debug or spike for bounded read-only investigation; do not start a stateful run merely because
the plugin is installed.
Invoke a skill explicitly:
/ape:run Add optimistic locking to invoice updates
/ape:status
/ape:resumeAvailable skills:
Skill | Purpose |
| Start a |
| Show the active run and roadmap summary. |
| Continue an interrupted run. |
| Query runs, explain one run, import history, or maintain old artifacts. |
| Inspect, change, diagnose, or wire APE configuration. |
| Abort, reset, or expire a dispatch with an audit reason. |
| Inspect or update the optional project roadmap. |
Every state-changing skill requires explicit operator invocation. history, roadmap, run,
resume, config, and override are also explicit-only at the host-discovery layer; only the
read-only status skill may be selected implicitly when relevant.
Pipelines
Mode | Pipeline |
| Plan, test, implement, review, gate, and ship. The selected lane controls how much of that pipeline is needed. |
| Run one read-only debugger. |
| Run one read-only researcher. |
| Review, gate, and ship a finished non-empty diff based on the current default branch. APE does not edit it. |
The building lanes are:
mechanical: documentation, generated output, non-behavioral configuration, or tracked data.fast: behavioral work with at most six production files and no high-risk trigger.full: larger or sensitive work, including security, auth, migrations, dependencies, public APIs, schemas, concurrency, and destructive operations.
auto lets the runtime classify the run. Scope may escalate during a run, but it never downgrades.
Generated host bundles under plugins/<host>/dist/ and release staging under
release/generated/ are recognized as mechanical output without treating arbitrary nested
dist or build directories as generated code.
Behavioral phase work in the fast and full lanes follows a test-first protocol: a test writer is
assigned failing tests in test_paths, then a separate implementer owns production
claimed_paths, and read-only reviewers judge the result. APE verifies the artifacts and receipts
available to it; it cannot guarantee that a test is meaningful or a review is correct. This
protocol does not describe mechanical work, read-only debug/spike, or land, which reviews and
ships an existing diff without editing it. High-risk runs add a security review. Each failed stage
can be retried once; distinct blocking findings receive a bounded remediation budget, while repeated
findings stop immediately as no-progress failures.
Non-behavioral fast/full phase work keeps its planning, implementation, review, and merge gates but
does not schedule a test writer or demand fabricated red-test evidence. It runs targeted stage
checks only when test_paths were explicitly supplied. Plan contract v2 is therefore accepted only
for behavioral fast/full phase runs, where its required preflight can actually be scheduled.
land accepts both dirty finishing edits and already-committed feature work when HEAD descends from
the resolved default tip; the complete default-to-working-tree diff must remain inside the combined
production and test claims.
New code and security reviews classify each blocking finding as production-, test-, or both-owned. APE serializes the matching remediation writers: production goes to the implementer, test goes to the test writer, and mixed/both goes to the test writer then implementer before the applicable review group reconvenes. Versioned remediation-test tickets mark their test scope exact; authored tests remain test-writer-owned, while unversioned legacy tickets retain sibling widening.
Gates and shipping
APE verifies receipt integrity, path scope, tree identity, targeted tests, plugin validity when
relevant, the configured suite, conditional security evidence, and remote checks. Local suites and
remote checks can rest in gating or shipping; next advances either watch, and wait_ms can
keep one call open for a bounded period.
By default, a green run is held at merge until the audited ship action re-proves the gates. With
shipping.auto_merge: true, APE instead pushes the run branch, opens or reuses a GitHub pull
request, waits for required checks, and squash-merges. Public/native starts require explicit
per-run authorization (auto_merge_authorized: true) when this setting is enabled; the stored
setting alone cannot authorize a new run. APE also verifies the server-advertised base tip at start
and again before shipping so stale merge-base evidence cannot be published.
If branch policy requires GitHub auto-merge, APE enables it and remains in shipping until a later
poll proves the exact pushed head merged. APE first honors the repository's normal commit-signing
configuration; only a signer/passphrase failure on the scheduler-owned feature commit is retried
with signing disabled. Once the remote merge is proven, a local checkout/worktree cleanup failure
is recorded for ape_run resume instead of rewriting the merged run as a shipping failure.
Configuration
Configuration is a sparse overlay at .ape/runtime/config.json. Start with:
/ape:config init
/ape:config doctorinit detects common test runners and proposes commands; it does not apply them without approval.
Use wire to opt into the full APE statusline on Claude or Codex's closest native footer. LARP MODE
notifications are available on both hosts and are off by default. Public packages contain no
sound files; operators may configure their own files, and a private package overlay may provide the
closed package-local sound manifest described in the configuration guide.
See configuration, pipelines, and the documentation index.
Development
npm ci
npm run typecheck
npm run test:v2
npm run bundle
npm run package:plugins
npm run package:check
npm run package:reproducible
npm run public:check
npm run eval:prompts:check
npm run operational:canary
npm run release:live-certification -- --head <certification-commit> --tag <version-tag>
npm run validatenpm run release:artifacts produces the two host tarballs, checksum ledger, release manifest, and
SPDX SBOM under release/. npm run release:reproducible builds that set twice and compares every
artifact digest. Tagged releases run the same gates, a clean full-source export, and GitHub
provenance attestation before publication. The credential-free prompt-evaluation check validates
the synthetic scenario matrix, prompt hashes, schema, scorer, and release thresholds. It makes no
model calls. Live prompt evaluation has separate explicit paid-call guards, and
npm run eval:prompts:verify verifies a supplied result artifact offline; see
the evaluation guide.
npm run operational:canary replays normalized failure classes covering dispatch, planning,
test-contract disputes, review remediation, scope guidance, shipping, pipeline selection, and
terminal diagnostics. It is deterministic and credential-free. A release candidate must also pass
live Codex dogfooding before publication. Tagged releases fail closed unless the real raw Codex
ledger is the only change in a dedicated certification commit over the exact tested source; see
operational readiness. Claude remains packaged and receives pinned
structural and marketplace validation, but those checks do not constitute live certification. The
verifier is offline, so it does not pretend CI can manufacture host lifecycle delivery or remote
shipping evidence.
npm test runs the standalone suite with six workers. When several agents may test concurrently,
use npm run test:agent -- <paths...> for the three-worker profile. Run
npm run test:claude-schema when changing Claude plugin schemas.
Pull-request CI exercises all three packages and local MCP startup on Node 22 and 24 across Linux, macOS, and Windows, performs clean isolated marketplace installs for Claude and Codex, and runs the complete test inventory exactly once as one smoke set plus three duration-balanced Ubuntu shards. The committed timing snapshot and the qualified measurement and certification procedure are documented in performance baselines. Once the repository is public, a least-privilege CodeQL workflow runs on pushes, pull requests, and weekly analysis. Dependabot alerts and security updates cover npm and GitHub Actions; routine version-update pull requests stay disabled for this solo-maintained repository. CI and release automation do not perform live paid prompt evaluations.
License
APE's source code and original project materials are available under MIT. Public plugin packages contain no audio. The private source overlay's optional third-party notification sounds are excluded from the MIT grant; see third-party notices.
Use the incident-reporting guide and GitHub Issues for reproducible defects, GitHub Discussions for questions and ideas, and the security policy for suspected vulnerabilities.
See Contributing for the regression-first runtime-defect workflow and repository development expectations.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Coordinate coding agents through MCP using existing AI plans, saved work, and independent checks.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides comprehensive session management for Claude Code with automatic initialization/cleanup, quality checkpoints, and local conversation memory with semantic search for capturing learnings across coding sessions.62BSD 3-Clause
- AlicenseNot gradedqualityCmaintenanceOrchestrates parallel Claude Code worker swarms with protocol-based behavioral governance for multi-hour autonomous coding sessions.11110MIT
- FlicenseNot gradedqualityDmaintenanceCoordinates multiple Claude Code agents to work collaboratively on projects with role-based task management, shared state, and automated code review.82-
- AlicenseNot gradedqualityBmaintenanceOrchestrates Claude Code and OpenAI Codex to plan, implement, review, and verify code changes via pull requests with security controls.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AAWWCC/ape'
If you have feedback or need assistance with the MCP directory API, please join our Discord server