Agentic Engineering Patterns
AEP is a native CLI, aep, that keeps a software project's context, work and verification together so coding agents can plan, implement and deliver with evidence. The agent decides what to do; aep serves the procedures, maintains the records, isolates implementation in Git worktrees, runs the project's checks and records what actually happened.
Current release: 5.0.1 (Linux x86_64, macOS Apple Silicon). The earlier skill bundle, v4, is kept for existing installs and is being retired; see Coming from v4.
Install
curl -fsSL https://raw.githubusercontent.com/memorysaver/agentic-engineering-patterns/main/scripts/install.sh | bash
The script picks the archive for your platform from the newest v5 release, verifies its SHA-256, keeps the binary under ~/.aep/builds/<sha16>/ and links ~/.local/bin/aep. AEP_VERSION=v5.x.y pins a tag; AEP_HOME and AEP_BIN_DIR change the locations. Runtime needs are git on PATH and nothing else: no Node, no LLM key, no per-agent skill copies.
To build from source, install the pinned Rust toolchain with rustup and run cargo install --locked --path crates/aep-cli from this checkout.
Quick start
In a Git repository:
aep init # .aep/config.toml, AGENTS.md, project-rules/README.md, .gitignore entry
aep doctor # installation, project compatibility, available tools
aep --skill # the agent entrypoint: how to work in this project
aep --skill project # set up stores, checks and the verification procedure
The generated AGENTS.md is two sentences: read README.md, run aep --skill. aep init --claude also writes a CLAUDE.md that points at AGENTS.md. Existing AGENTS.md content is kept and only gains that pointer if it lacks one. Running init again changes nothing.
From there the agent reads the procedure it needs (aep --skill design, --skill implement, and so on), creates records with aep <kind> new --file, and moves work through the lifecycle below. A human can follow along with aep status, aep context <id> and aep timeline.
How it works
Records and stores
Everything is a YAML or Markdown record with an ID, status, references and typed data, kept in plain directories that Git retains:
| Store | Default path | Holds |
|---|
| Ledger | project-ledger/ | Stories, changes with BDD specs, layers, waves, releases, gates, attempts, reviews, evidence, deliveries, events |
| Roadmap | project-roadmap/ | Product direction, journeys, decisions (ADRs), published specifications |
| Rules | project-rules/ | Project-specific code, testing and release rules, indexed for agents |
| Designs | docs/design/ | Design drafts and research behind a change |
| Lessons | lesson-learned/ | Observations that should change future work |
Stores are created when first needed. aep check validates every record, reference and specification and warns about containers with no members. Every write records an event with the affected IDs, status transitions and revision hashes; add --note "<reason>" to any write command and the reason is stored with that event.
Lifecycle
The agent chooses skills and order; the CLI enforces structure.
- roadmap: state direction, group a multi-story concept in a layer, record decisions with attribution.
- design: write the change contract with BDD scenarios, accept it under the user's authority, create its stories.
- implement:
aep dispatch start checks readiness (dependencies, gates, capacity) and opens an isolated worktree for one attempt.
- validate:
aep verify run executes the project's configured checks in that worktree and records revision-bound evidence; policy can require an independent review.
- deliver:
aep deliver merge or deliver pr records the actual integration with a receipt tied to the verified tree, then spec publish and change close.
- reflect: turn what was observed into lessons, rules or context updates.
Readiness comes from explicit dependencies, gates and accepted contracts, never from numbering or folder order. Delivery is recorded separately from intent, so aep status reports what is integrated, what is ready and why something is blocked.
Commands
| Group | Commands |
|---|
| Start | init, doctor, status, context, check |
| Plan | query, timeline, story, roadmap, change, decision, layer, wave |
| Implement and verify | dispatch, worktree, attempt, verify, review, gate |
| Deliver and learn | deliver, release, spec, lesson, reflect, rule |
| Maintain | config, migrate, recover |
| Observe | eval, runbook |
Every command accepts --json for structured output, --dry-run for supported writes and --note for the reason. aep --skill [name] [--ref name] prints the embedded guidance; it is the only place agents read procedures from.