Agents you can actually trust in a repository.
agent/plane (Agent Plane) is a policy-driven framework for running LLM agents inside real repositories. It turns "AI magic" into an engineering process: explicit approvals, role boundaries, and a reproducible execution pipeline. The goal is simple: make agents boring, safe, and auditable.
Traditional AI coding agents may behave unpredictably, modify files without clear intent, or act outside expected boundaries. agent/plane changes that by introducing:
- Policy-first execution - every run follows a defined pipeline.
- Approval & planning gates - nothing runs without explicit consent.
- Role-based workflows - ORCHESTRATOR, PLANNER, CREATOR, INTEGRATOR, etc.
- Safety guardrails by default - actions outside the repo, network access, or unrestricted writes are disabled unless explicitly approved.
- Support for team workflows - including
directandbranch_prmodes.
Agent behavior is not hidden: it's inspectable, reproducible, and constrained by policy.
-
Determinism over Magic Agents follow a reproducible path:
Preflight β Plan β Approval β Tasks β Verify β Finish β Export -
Guardrails by Default
- Network and external actions require explicit approvals.
- Writes are scoped to allow-listed paths.
- Nothing can "just change files" without a plan and audit trail.
-
Team-first workflows
directmode is suitable for solo work;branch_prenforces structured worktrees, single-writer flow, and an integrator role. -
Traceability Task states, artifacts, and agents are documented and versioned: no hidden side effects.
Install the CLI (or use npx):
npm install -g agentplaneInitialize a repo:
npx agentplane initSee the CLI quickstart:
npx agentplane quickstartNote: Full setup details, configuration options, and advanced workflows are in the docs (links below).
- Single-checkout mode.
- Agents and tasks run within the same working tree.
- Good for experiments and rapid iteration.
- Structured team workflow.
- Each task flows through its own worktree + tracked PR artifacts.
- Only the INTEGRATOR role merges changes back into the main branch.
Use:
npx agentplane config set workflow_mode branch_prThis repository contains a special policy file (AGENTS.md) that defines:
- Global guardrails
- Allowed actions
- Agent roles and permissions
- Workflow defaults
It acts as the canonical policy layer (the "constitution") for agents.
Notes:
agentplane initcreatesAGENTS.mdas a regular file at the repository root (if missing).agentplane upgradewrites a machine-readable review report under.agentplane/.upgrade/(for example.agentplane/.upgrade/agent/<runId>/review.jsonor.agentplane/.upgrade/last-review.json) that can signal when a semantic prompt merge is required.
Common roles include:
- ORCHESTRATOR: Drives the session and interprets user goals.
- PLANNER: Breaks goals into plan steps/tasks.
- CREATOR: Implements code/config changes.
- INTEGRATOR: Verifies and merges changes.
- Additional roles (e.g., TESTER, DOCS) can be defined per project.
Use agentplane role <ROLE> to print the built-in CLI guide and, when available, the project-defined agent profile from .agentplane/agents/<ROLE>.json.
Your project with agent/plane typically includes:
AGENTS.md # Policy & guardrails
.agentplane/ # Internal agent artifacts and config
.agentplane/tasks/ # Per-task records
.agentplane/config.json # agent/plane configuration
docs/ # Full reference docs (see docs/index.mdx)
agent/plane enforces:
- No external execution without explicit approval.
- No silent state changes.
- No unreviewed commits by agents.
This makes it suitable for enterprise, team, and audit-sensitive workflows.
The bulk of the guidance and API info lives in the docs:
- π§ Full documentation:
docs/index.mdx - π Workflow reference:
docs/user/workflow.mdx - βοΈ CLI commands:
docs/user/commands.mdx - π§± Project layout:
docs/developer/project-layout.mdx - π Canonical changelog:
docs/releases/v*.md(source of truth for release history) - π‘ Examples & recipes:
agentplane-recipes/README.md
Contributions are welcome. See CONTRIBUTING.md for guidelines and how to get involved.
agent/plane is released under the MIT License.
agent/plane is not about replacing developers - it's about giving developers predictable, auditable, and controlled agent workflows that scale with team and project complexity.
