When you install via the Agent Kit CLI (npx @dadado/agent-kit-cli@latest install), it does not copy the kit repository into your project. It writes just the files your project needs: a few rules and commands under .cursor/, a git routine under autogit/, and a small manifest that tracks what was installed. This page shows exactly what lands where and why.
your-project/
├── .cursor/
│ ├── agent-kit.json # manifest: version, installed packs, files to protect
│ ├── hooks.json # Cursor-native agent hooks (phase/context)
│ ├── rules/ # always-on rules (base install; more if you add packs)
│ ├── commands/ # slash commands (/start-project, /handoff, /git-prod, …)
│ ├── hooks/
│ │ ├── pre-commit/ # secrets check (git)
│ │ └── agent/ # thin Cursor adapters (shell out to agent-kit CLI)
│ ├── skills/ # only if you add skills
│ ├── agents/ # only if a pack or skill brings them
│ ├── plans/ # your plans (created as you work)
│ ├── memory/ # notes the agent keeps between chats
│ ├── context/ # working context files
│ └── HANDOFF.md # where the last session stopped
└── autogit/
├── gitupdate.md # the staging → production routine
└── plan-routine.md # how the plan modes (manual / loop / orchestrated) work
Everything under plans/, memory/, context/, and HANDOFF.md is yours - the kit creates the folders but never overwrites what's inside them when it updates.
Optional extra: a prepare-commit-msg git hook you can copy from the kit's git-hooks/ folder (one file, not the whole tree).
Native agent hooks need Node and a resolvable agent-kit CLI (PATH, node_modules/.bin, or built dist). They are separate from git pre-commit hooks: one runs inside the IDE agent loop; the other runs at commit time. agent-kit doctor reports hooks: active | degraded (including missing / non-executable adapters and an unresolvable CLI).
If you copy .cursor/hooks/agent/*.sh by hand (chat / Port B install), run chmod +x .cursor/hooks/agent/*.sh afterward. Managed agent-kit install preserves the executable bit.
From your project's root:
npx @dadado/agent-kit-cli@latest installWith optional packs:
npx @dadado/agent-kit-cli@latest install --pack clean-code,context-managementWhat install does:
- Finds the source of the kit's files (a local copy, a
--registrypath, or a remote one from--url). - Copies the base rules, commands, hooks, and the
autogit/routine into your project. - Optionally adds any packs you asked for with
--pack. - Scans the repository, applies safe local readiness fixes, and writes
.cursor/context/readiness.json. - Writes
.cursor/agent-kit.jsonrecording the version and which of your files to leave untouched on update.
No CLI on your PATH? Open the project in your IDE, attach the root install.md, and ask the agent to install. It produces the same files, manifest, and readiness snapshot. After install (CLI or chat), the first step is /agent-kit-onboard for progressive repository preparation. Chat install and onboarding use Ask questions (clickable options in the IDE, with chat fallback when tool unavailable) for confirmations and choices. The CLI path (agent-kit init / install) keeps @clack/prompts in the terminal; it does not call IDE Ask questions.
The kit can update itself against the same source without ever touching your plans, notes, or local tweaks:
| Command | What it does |
|---|---|
agent-kit add <id> |
Add a pack or skill |
agent-kit update --check |
Notify only: compare installed version to the latest public release tag (no L0 writes) |
agent-kit update |
Explicit apply: refresh installed rules/commands; skips protected files; preserves customized agents/skills/commands/hooks/scripts overlay and names each preserved file |
agent-kit diff |
Show what's changed vs the latest |
agent-kit status |
Version, installed packs, readiness summary |
agent-kit doctor |
Refresh or repair repository readiness |
Multi-workspace safety: each project keeps its own .cursor/agent-kit.json manifest and .cursor/agent-kit.managed-hashes.json overlay ledger. The CLI confirms the absolute root before writing (interactive prompt; --yes skips). The shared registry cache (~/.cache/agent-kit/registry/) is directory-locked so parallel installs cannot race.
Check ≠ apply. The update notice is on by default and check-only: at most once a day, sessionStart prints one line when the CLI is behind npm or a registered install is behind the CLI; it never rewrites .cursor/. Turn it off with updateCheck.enabled: false in .cursor/context/config.json or AGENT_KIT_NO_UPDATE_CHECK=1; it is always off under CI. Applying still requires /update with Ask confirmation (or an explicit terminal agent-kit update). updateApply.auto defaults to false and is not a silent background path.
Cursor product updates (separate): opt-in cursorUpdateCheck.enabled (default false) plus agent-kit cursor-awareness --check / /cursor-update-awareness report advisory gaps vs docs/cursor-native-audit.md (walk-up from cwd; use --cwd when the inventory is not under the shell directory). Confirmed work routes through Ask → /backlog-add or /dogfood. Never auto Field Reports. See cursor-update-awareness.md.
Factory/dogfood installs (manifest registry URL agent-kit-dev or pre-prod refs such as staging) skip the public check with a warning so the factory is not treated as a consumer.
This path is distinct from three other lanes:
| Lane | Direction | Trigger | L0 writes? |
|---|---|---|---|
| Public consumer update | public release → consumer project | agent-kit update or /update HITL |
Yes, explicit |
| Factory self-consumer | factory source → factory .cursor/ |
agent-kit update --cwd . --seed-overlay (first), then agent-kit update --cwd . |
Yes, local loop |
| Public sync | factory → public mirror | v* tag CI or manual workflow |
No L0 writes; opens public PR |
| Remote-cache refresh | registry git → local cache | --refresh on resolve |
No; refreshes cache before apply |
The factory self-consumer loop is documented for maintainers in CONTRIBUTING.md.
Older setups sometimes copied the whole Agent Kit repo into the project as a nested agent-kit/ folder. That made it impossible to tell which version you had or to update safely. If you have one:
- Note anything that only lives in that folder and is unique to your project (custom rules, local skills, plans, notes).
- Run
agent-kit install(or the chat install) so the manifest exists. - Move your unique files into
.cursor/. - Delete the nested
agent-kit/folder (and itsnode_modules, if any). - Run
agent-kit diffandstatusto confirm.
Step-by-step: migrate-consumer.md.
- Getting started - install, commands, workflow
- Layers - how the base install, packs, and your own files layer together
- Manifest - the
.cursor/agent-kit.jsonfile