@ludecker/aaac
v1.9.6
Published
Agentic Architecture as Code (AAAC) — installable Cursor agent framework
Maintainers
Readme
@ludecker/aaac
Agentic Architecture as Code (AAAC) — a complete agentic architecture framework for Cursor.
Commands are the public API. Skills, agents, and orchestrators are private implementation.
Quick start
1. Install into your repo (no global npm CLI required):
npx @ludecker/aaac@latest initpnpm dlx @ludecker/aaac@latest init --yesNon-interactive with a target path:
npx @ludecker/aaac@latest init --yes --dir /path/to/your/repo2. Open the project in Cursor and enable Hooks once: Settings → Hooks, then restart Cursor.
After that, slash commands work — no domain overlay, resolvers, or manual generate step required. init already generates graph.yaml and all commands.
Install report: init writes .cursor/aaac/state/install-sweep-report.md — a read-only inventory of docs, Cursor rules, AAAC framework markdown, and external prerequisites (Cursor Hooks, Node, Fallow, etc.).
Interactive extras: when you run init in a TTY (without --yes), AAAC lists those prerequisites and can install recommended tools (e.g. Fallow as a devDependency) if you answer Yes. Non-interactive --yes skips third-party installs and only documents them in the report.
Example commands
/create-module api "Add health check endpoint"
/fix-bug auth "Session expires too soon"
/check-module payments "Validate webhook idempotency"
/review-architecture system "Check layer boundaries"What you get
.cursor/hooks.json— Run lifecycle and edit enforcement.cursor/aaac/— ontology, graph, lifecycle, run model, enforcement.cursor/skills/shared/— full pipeline (discovery → execute → verify → report).cursor/agents/— generic subagent specs.cursor/commands/— ~130 generated slash commandsdocs/—master_rules.md,ui_design.md,project_context.md,architecture.md,agentic_architecture.md
Optional later: add domains under .cursor/domains/<slug>/ and resolvers in graph.project.yaml for slug routing (e.g. /update-module cms "…"). See docs/agentic_architecture.md Part 2.
Regenerate
Only needed after you edit ontology.json or graph.project.yaml:
npx @ludecker/aaac@latest generate
pnpm dlx @ludecker/aaac@latest generateExperience export (maintainers)
After runs accumulate evidence-backed lessons locally, export promote-able candidates (strips local run IDs; keeps evidence aggregates):
npx @ludecker/aaac@latest experience-export
npx @ludecker/aaac@latest experience-export --write packages/aaac/templates/cursor/aaac/experience/global-lessons.jsonReview before publishing an aaac-v* release. Project-local stores under .cursor/aaac/state/ are never published.
Links
- Install guide
- Package on npm
- Lüdecker — reference implementation (domain overlays, production deploy)
Publish (maintainers)
@ludecker/aaac depends on @ludecker/agentic-bridge. CI publishes the bridge first (if that version is not already on npm), then aaac.
Authenticate with a registry token in .npmrc (used by pnpm, not the npm CLI), or use tags:
# Preferred: tag aaac — workflow publishes bridge (if needed) then aaac
git tag aaac-v1.2.6
git push origin aaac-v1.2.6
# Optional: bridge-only release
git tag agentic-bridge-v0.1.0
git push origin agentic-bridge-v0.1.0CI: .github/workflows/publish-aaac.yml (aaac-v*) and .github/workflows/publish-agentic-bridge.yml (agentic-bridge-v*). Secret: NPM_TOKEN.
