Purpose
Agentplane is a Git-native control plane for coding agents. Its core idea is: let agents write code, and keep authority and evidence in Git. It leaves judgment-heavy work (understanding intent, designing changes, writing code, resolving ambiguity) to coding agents, while moving repeatable workflow mechanics into a deterministic CLI, thereby constraining agent permissions, advancing lifecycle state, routing Git and pull-request work, observing check results, and recording how work was closed or resumed.
Main capabilities
- Separation of duties: Any sufficiently formalizable repetitive operation belongs in the CLI, so process orchestration does not consume model context and so different agents share the same repository contract.
- More focused agents: Model context is used to solve problems, not to reconstruct workflow state or memorize lifecycle commands.
- Deterministic mechanics: Permissions, state transitions, routing, schemas, and stop conditions are determined by code rather than model guesswork.
- Verifiable results: Reviewers see the repository facts and check results observed by the supervisor, not merely the agent's claim that the work succeeded.
- Inspectable repository state: The Agent Change Record records task intent, execution status, changed files, verification evidence, and review status in machine-readable form; optional Local Context supplements sourced repository knowledge without changing the task lifecycle.
- Separation of semantic reports from observable facts: Agents return plans, implementation summaries, findings, uncertainties, and semantic assessments; the supervisor observes repository changes, Git status, executed checks, and available provider telemetry. Missing telemetry is recorded as partial or unavailable, rather than replaced with zeros or guessed values.
- Humans retain decision authority: Decisions that change approved scope, accept significant risk, or cross external authority boundaries are retained by humans.
Usage
Requirements: Node.js 24+, Git, and a local terminal.
For an existing repository, run agentplane initin its root directory. Initialization creates the repository policy gateway and local workflow contract, and does not require an Agentplane account.ap The command is a short alias for CLI calls made by agents.
Run the first task:task create prints the task ID;task advance returns a constrained semantic episode for use by Codex, Claude Code, Cursor, Aider, or another repository-capable agent. The packet contains the goal, writable scope, relevant context, result schema, the exchange.result_pathfor typed results, and the exact exchange.resume_argv commands needed to return results.
When the action is agent_episode , hand it to the agent. The agent executes only that semantic goal and returns a typed result. After each state change, run the exact next command emitted by Agentplane. Agentplane performs formal state transitions and stops at approval, human, hosting, recovery, or termination boundaries.
Once an initial plan exists and is approved, a configured hosted runner can execute eligible semantic episodes through the same control plane. For the complete external agent and hosted runner contract, see the task lifecycle documentation.
How the Control Loop Works
This separation is enforced, not advisory:
- A semantic episode cannot perform or claim to perform formal lifecycle transitions.
- The writable roots and allowed effects are carried in that episode's WorkOrder.
- State fingerprints reject stale results instead of applying them to newer task state.
- Approval and external effect boundaries return control to a human or configured operator.
- Validation evidence is derived from declared effects and results observed by the supervisor.
The agent is responsible for meaning; the CLI is authoritative in mechanism and semantically neutral: it can prove which files were changed and which checks passed, but does not decide whether the implementation is a good approach. When planning, the agent declares scope, expected effects, uncertainties, and preferred mode. Agentplane combines the declaration with repository policy and strengthens routing when it observes that more isolation or evidence is needed, without requiring the agent to manually orchestrate Git branches, worktrees, releases, or integration.
When to Use It
- Changes from coding agents need to remain reviewable after the chat or IDE session disappears.
- Multiple coding agents need a unified contract for tasks, policy, validation, and recovery.
- Maintainers need agent-generated pull requests to carry intent, scope, checks, and evidence.
- Platform or security teams need local, policy-aware agent work that can be wired into CI gates.
Limitations
Agentplane is not a model provider, a prompt playground, a low-code chatbot builder, a replacement for Git or CI, or a black-box agent runtime. It governs the engineering workflow around coding agents and does not replace the agents that do the work. It does not make LLMs deterministic; rather, it makes the control plane around LLMs deterministic and inspectable.
Project status: Agentplane is pre-1.0 and under active development. Pin the CLI version in automation, and when upgrading, checkthe release notes. Use GitHub Discussions to report usage questions or abnormal behavior; report security issues according to SECURITY.md. Contributions are welcome, see CONTRIBUTING.md and the Code of Conduct.