Migration to 1.0
Lean Agent Kit 1.0 changes the default from “everything ships dormant” to a lean core plus opt-in packs.

What changed
| Before (0.x) | After (1.0) |
|---|---|
| Full skill set copied on scaffold | Core only by default |
| Optional features dormant on disk | Packs installed via --enable-pack / --with |
| “Do not glob the repo” | Map-first; narrow search allowed |
| One heavy daily loop | Workflow sizes: trivial / normal / substantial |
| Upgrade never deletes | Still additive; new --prune-to-core archives pack files |
Recommended path
- Upgrade (preserves memory,
AGENTS.md, registries, user configs):
npx create-lean-agent-kit@latest . --upgradepnpm dlx create-lean-agent-kit@latest . --upgradeyarn dlx create-lean-agent-kit@latest . --upgradebunx create-lean-agent-kit@latest . --upgradeChoose footprint:
- Keep everything — stop here. Stamp may list inferred packs from on-disk skills.
- Go lean — prune, then re-enable what you need:
npx create-lean-agent-kit@latest . --prune-to-core
npx create-lean-agent-kit@latest . --enable-pack spec,stackspnpm dlx create-lean-agent-kit@latest . --prune-to-core
pnpm dlx create-lean-agent-kit@latest . --enable-pack spec,stacksyarn dlx create-lean-agent-kit@latest . --prune-to-core
yarn dlx create-lean-agent-kit@latest . --enable-pack spec,stacksbunx create-lean-agent-kit@latest . --prune-to-core
bunx create-lean-agent-kit@latest . --enable-pack spec,stacksPrune archives pack overlays (including PROGRESS/SCRATCH if the spec pack is removed) under .leanagentkit-backup/. Core ACTIVE_CONTEXT and LEARNINGS are preserved. User-authored docs/specs/<feature>.md files are left in place.
Merge current protocol into
AGENTS.md§6 if upgrade preserved your old file (it does). Keep §1–5; adopt ambient memory + LEARNINGS + Finalize rules from the core template. Upgrade installsdocs/memory/LEARNINGS.mdwhen missing — it does not rewrite yourAGENTS.md, so old ceremony-only §6 will coexist with the new LEARNINGS file until you merge. Clear §7 lines for packs you no longer have (prune does not rewrite AGENTS.md).Re-run
leanagentkit-wire-agent(Cursor / Claude).--upgradedoes not refresh.cursor/hooks.jsonorCLAUDE.md; re-wire (and opt in to refresh LAK hook entries) so ambient / LEARNINGS session prompts replace older start/end ceremony nudges.
Or ask the agent: Read .agent/skills/leanagentkit-migrate-1.md and follow it.
Prune details
- Moves pack-owned files to
.leanagentkit-backup/<timestamp>-prune/. - Refreshes core files (respecting preserve rules).
- Sets
installedPacksto[]or to--keep-packlist. - Does not delete your project code or user memory content that is not pack-owned.
New installs
npx create-lean-agent-kit@latest .
# optional:
npx create-lean-agent-kit@latest . --with spec,stackspnpm dlx create-lean-agent-kit@latest .
# optional:
pnpm dlx create-lean-agent-kit@latest . --with spec,stacksyarn dlx create-lean-agent-kit@latest .
# optional:
yarn dlx create-lean-agent-kit@latest . --with spec,stacksbunx create-lean-agent-kit@latest .
# optional:
bunx create-lean-agent-kit@latest . --with spec,stacks