Skip to main content
Glama

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-plugins

Codex CLI

Run these commands in a terminal:

codex plugin marketplace add AAWWCC/ape
codex plugin add ape@ape

Each 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

plugins/ape

Local stdio

Native Codex subagents and lifecycle hooks

Required; certification is supplied by the tagged-release ledger.

Claude Code

plugins/ape-claude

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:codex

The 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:resume

Available skills:

Skill

Purpose

run

Start a phase, debug, spike, or land run.

status

Show the active run and roadmap summary.

resume

Continue an interrupted run.

history

Query runs, explain one run, import history, or maintain old artifacts.

config

Inspect, change, diagnose, or wire APE configuration.

override

Abort, reset, or expire a dispatch with an audit reason.

roadmap

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

phase

Plan, test, implement, review, gate, and ship. The selected lane controls how much of that pipeline is needed.

debug

Run one read-only debugger.

spike

Run one read-only researcher.

land

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 doctor

init 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 validate

npm 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.

Maintenance

ActivityMaintained
ResponsivenessSyncing

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

Related MCP Servers

Latest Blog Posts

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