Skip to content

Latest commit

 

History

History
108 lines (77 loc) · 7.49 KB

bootstrap.md

File metadata and controls

108 lines (77 loc) · 7.49 KB

What a Mission Kit install puts in your project

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.

The layout you get

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.

Installing

From your project's root:

npx @dadado/agent-kit-cli@latest install

With optional packs:

npx @dadado/agent-kit-cli@latest install --pack clean-code,context-management

What install does:

  1. Finds the source of the kit's files (a local copy, a --registry path, or a remote one from --url).
  2. Copies the base rules, commands, hooks, and the autogit/ routine into your project.
  3. Optionally adds any packs you asked for with --pack.
  4. Scans the repository, applies safe local readiness fixes, and writes .cursor/context/readiness.json.
  5. Writes .cursor/agent-kit.json recording 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.

Keeping it current

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.

Moving off an old nested copy

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:

  1. Note anything that only lives in that folder and is unique to your project (custom rules, local skills, plans, notes).
  2. Run agent-kit install (or the chat install) so the manifest exists.
  3. Move your unique files into .cursor/.
  4. Delete the nested agent-kit/ folder (and its node_modules, if any).
  5. Run agent-kit diff and status to confirm.

Step-by-step: migrate-consumer.md.

Related

  • Getting started - install, commands, workflow
  • Layers - how the base install, packs, and your own files layer together
  • Manifest - the .cursor/agent-kit.json file