{"id":266020,"target_id":"35bfc7ed3e3bda33","observed_at":"2026-12-03T21:21:34Z","from_subject":"sha256-vlcExo4AbREhDsbuT5EOHoVKlmgbgJVqh37NxnctIdM=","to_subject":"sha256-qJCdbdg9ODi4xChWEccae01tmxKZw6AsSQE0voP1Ibk=","from_toolset":"sha256-EimzJ1DzJaOkRFkUCCn77BKRCqC1dtyg6BUAFMebsDw=","to_toolset":"sha256-g0L5APWTYMJ8zHS+2lA7OiGi8vndteFFlvpZd0+ctHg=","summary":{"added":[],"removed":[],"modified":[{"tool":"aide_brain","fields":{"description":[["=","On-demand brain entry-point tool. Call this when you need to reach the brain mid-task — do NOT call it on every /aide boot. Boot-time brain precondition state is already reported by aide_info.brain.status; firing aide_brain at boot duplicates that work unnecessarily. It is also how a brain config is set up, repaired or written for any backend, one decision at a time. Every mode is read-only: no call writes to disk.\n\n**Optional `source` parameter** — which read runs. Omitted means `\"host\"`.\n- `\"host\"` — one section of the host's `.aide/config/brain.aide`, described below.\n- `\"template\"` — `{ template, purpose }`: one section of the bundled template (or its launcher, with `kind: \"launcher\"`) as verbatim bytes, and that section's one-line purpose from the published contract. The answer is the same whatever state the host's config is in. Use it as a worked example when writing that section for another backend.\n- `\"contract\"` — `{ sections }`: every contract section in order, each with `marker`, `role` (`live` or `seed`) and `purpose`, and no section text.\n- `\"draft\"` — a structural check of the draft config at `path`, with the same rules and fault vocabulary as the host config check, so a draft that passes is ready to swap in. Returns `{ outcome, instructions }`: `valid`; `invalid` with `fault` (`missing-sections` and its `sections`, or `malformed` and its `reason`); `absent` when no file is at `path`; `refused` when `path` is outside the project, and nothing is read. It checks structure, never content.\n\n**Optional `kind` parameter** — host and template reads only: any section marker of the published brain contract (see the enum), live or seed; `\"launcher\"` only with `source: \"template\"`. Omitting it means `\"orientation\"`, the runtime briefing for reaching the brain mid-task. `\"config\"` is the integration's wiring flow that "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`"],["+","`aide-brain` config flow"],["="," runs. Seed sections are fetched one per call while seeding. `path` is required with `source: \"draft\"` and accepted nowhere else; any other combination is rejected before the tool runs.\n\n**Host read response shape: exactly `{ status, instructions, found, purpose? }`.** No `backend`, no `connector`, no `name`, no `kind`.\n\n- `found: true` — `instructions` is that section's verbatim bytes from the host's `.aide/config/brain.aide`: no trimming, no normalization, no `${...}` substitution. `purpose` is that section's one-line purpose from the published contract; use it when adapting the section for another backend.\n- `found: false` — `instructions` is remediation, and `purpose` is absent. An absent file → run "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`."],["+","`aide-brain` config flow."],["="," A requested section missing from the file → with the user's consent, call `aide_upgrade` with `category: \"brain\"`. A malformed or unreadable file → the exact fault, a hand fix with the user, then re-check with `aide_info`. Do not proceed as if the section were available.\n\nThe section is returned on every status where the config exists and is well-formed, including `brain-aide-invalid` with missing sections, `no-mcp-entry` and `mcp-drift`.\n\n`status` mirrors the `BrainState` tagged union from `buildBrainState`, with five values: `ok`, `no-brain-aide`, `brain-aide-invalid`, `no-mcp-entry`, `mcp-drift`. Branch on `found` for \"did I get the section\" and on `status` for \"is the brain healthy\"."]]}},{"tool":"aide_info","fields":{"description":[["=","Boot-time reporter called by the orchestrator at startup. Returns independent top-level fields that the orchestrator must branch on separately:\n\n**`outdated` (array of stale artifact keys) — soft notification.**\nCompares the host's `.aide/versions.json` against the canonical manifest shipped with this running server — never against the latest published version, so files that match the version the project runs are current even when a newer release exists. Each element names an artifact key that is behind; the key `hooks` means the project's Claude Code hooks are missing or differ from what this server installs (judged the way `aide_upgrade` judges them). An empty array means everything is current. A missing `.aide/versions.json` (old install predating version tracking) reports no stale files but still reports `hooks`. Staleness is informational — the orchestrator continues with a heads-up to the user.\n\n**`behind` (`{ installed, latest, launch, versionsBehind, highlights }` or null) — soft notification.** Non-null when the running server is older than the latest published version, whatever launch the project's `aide` entry uses — a global install or npx, pinned or not. `installed` is the running server's version. `launch` (`global` or `local`) picks the remedy: `global` → `npm i -g "],["-","@aidemd-mcp/aidemd@{latest}`;"],["+","@aidemd-mcp/aidemd-mcp@{latest}`;"],["="," `local` → first install `latest` into the npx cache, then move the project's aide pin to it with `aide_upgrade({ category: \"mcp\", targetVersion: latest })`, never a hand edit of `.mcp.json`; if the install fails, switch nothing; once the newer server runs, "],["-","`/aide:upgrade`"],["+","the `aide-upgrade` skill"],["="," offers to switch the entry to the global command. `versionsBehind` (1 or more) counts the published releases after `installed` up to `latest`; `highlights` holds 0–3 one-line notes of what they added or fixed (empty when the release notes were unavailable). Show the count and highlights briefly, never the changelog. Either upgrade takes effect only in a new session. It never gates the pipeline. Null when there is no `aide` entry, the running version is unknown, the server is current, or the version check could not run (offline checks pass silently).\n\n**`brainMigration` (`{ staleSections, legacyLauncher }` or null) — soft notification.** Non-null when the brain config has sections whose text matches an earlier template version, or a legacy brain launcher (`legacyLauncher` lists the reasons: npx-launch, unpinned, unversioned, older-pin, missing-auto-confirm). Mention it once and suggest "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`;"],["+","`aide-brain` config flow;"],["="," it never gates the pipeline and never changes `brain.status`.\n\n**`brain` (precondition state) — hard gate.**\nReports whether the host's brain MCP entry is wired and consistent. Shape: `{ status, name?, fault?, hints }` — `name` is absent on `no-brain-aide` and `brain-aide-invalid`; `fault` is present only on `brain-aide-invalid`. The orchestrator must halt and direct the user to resolve the issue before continuing if `status` is not `'ok'`. No path validation is performed — the package never stats any directory on disk; state derives entirely from comparing `.aide/config/brain.aide` against `.mcp.json`.\n\nThe five `brain.status` values:\n- `ok` — `.aide/config/brain.aide` exists, satisfies the required-section contract, and the host's `.mcp.json` `brain` entry matches the parsed `mcpServerConfig`. `name` is the user-declared descriptive label from brain.aide. The pipeline may proceed.\n- `no-brain-aide` — `.aide/config/brain.aide` is absent. No `name` field. Remediation: run "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`,"],["+","`aide-brain` config flow,"],["="," which creates the config.\n- `brain-aide-invalid` — the file exists but falls short. `fault.kind` is `missing-sections` (with `fault.sections` naming each missing required section) or `malformed` (with `fault.reason`). No `name` field. Remediation: run "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`."],["+","`aide-brain` config flow."],["=","\n- `no-mcp-entry` — brain.aide parsed successfully but the host's `.mcp.json` is absent, malformed, or has no `mcpServers.brain` key. `name` is present. Remediation: run sync with the same launcher the project's `aide` MCP entry uses — `aidemd-mcp sync` when the project's `aide` MCP entry runs the globally installed `aidemd-mcp`, or `npx -y "],["-","@aidemd-mcp/aidemd@<version>"],["+","@aidemd-mcp/aidemd-mcp@<version>"],["="," sync` with the version that entry pins when it runs through npx.\n- `mcp-drift` — brain.aide and `.mcp.json` both exist but their `brain` entries disagree on `command` or `args`. `name` is present. Remediation: run sync with the same launcher the project's `aide` MCP entry uses — `aidemd-mcp sync` when the project's `aide` MCP entry runs the globally installed `aidemd-mcp`, or `npx -y "],["-","@aidemd-mcp/aidemd@<version>"],["+","@aidemd-mcp/aidemd-mcp@<version>"],["="," sync` with the version that entry pins when it runs through npx.\n\n`hints` is always present on every status — an array of candidate brain root paths the orchestrator can surface during recovery.\n\nNo parameters needed — uses the server's working directory."]]}},{"tool":"aide_init","fields":{"description":[["=","Bootstrap the AIDE development environment into a project. Returns structured JSON for agent consumption — not prose.\n\nThe tool uses a two-call pattern for progressive disclosure:\n\n**First call (no `category` param):** Returns a lightweight summary — every step with `name`, `status` (would-create/would-overwrite/would-skip/exists), `category`, and `filePath`, but NO `content` fields. Also returns `brainHints` (brain root candidates) and detected `framework`. Use this to understand what needs to be done and which categories require user prompts.\n\n**Second call (with `category` param):** The tool writes all `would-create` AND approved `would-overwrite` files directly to disk itself and returns a manifest — steps with `filePath`, `status` (`created`, `overwritten`, or `exists`), and `name`, but NO `content`. `would-skip` steps stay `would-skip` in the manifest (tool writes nothing for them). The agent never sees file content and never uses the Write tool for new files.\n\n**Exception — MCP steps:** For MCP steps, the manifest includes `prescription` data (key name and entry object) so the agent can read the existing config, merge, and write. The tool never touches MCP config directly.\n\n**Exception — brain category:** The `Brain config (brain.aide)` step carries `brainSummary` on every call, including the summary: `sections` (each section's `marker`, `role`, `seedPath` for seeds, and `templateBytes`), `missingSections`, `staleSections`, `legacyLauncher` reasons and `templateIntegration`. It never carries section text, purposes, repair blocks or before/after bodies. Missing sections are inserted with `aide_upgrade` `category: \"brain\"`, seeds are read one at a time with `aide_brain`, and migrations are previewed and applied one at a time through `aide_upgrade`. Sections the user edited and custom launchers are never offered. The tool creates `.aide/config/brain.aide` when it is absent and never overwrites an existing one.\n\n**Exception — session record:** The `Session record (session.aide)` step never carries content and the tool never writes it. When it is `would-create`, its `instructions` tell you to call `aide_scaffold` with directory \".\" and type \"session\" — do that, unprompted. When `.aide/session.aide` exists it is `exists` and is never overwritten.\n\n**Exception — IDE VS Code steps:** IDE steps that need external tooling (VS Code CLI) return instructions for the agent to execute, since those aren't simple file writes.\n\n**Agent branch logic — silent-on-create, prompt-on-overwrite:**\n\nAfter the first call, walk the categories using this rule:\n- **Pure-create category** (all steps are `would-create`, `would-skip`, or `exists`): apply silently by calling with `category=X` immediately — no AskUserQuestion. A category with nothing on disk to overwrite has no decision the user can inform.\n- **Overwrite-bearing category** (any step is `would-overwrite`): pause and use AskUserQuestion with structured options. Name the files that would be overwritten. If the user approves, call with `category=X` — the tool overwrites and returns `overwritten` in the manifest. If the user declines an overwrite but wants the new files, call with `category=X` — the tool writes only `would-create` steps; the `would-overwrite` step stays `would-overwrite` in the manifest.\n- **Inherent-decision categories** (framework, brain root path, MCP config merge, IDE choice): always use AskUserQuestion regardless of disk state. These are not file-write decisions — filesystem contents cannot resolve them.\n\n**IMPORTANT — one-at-a-time wizard pattern using AskUserQuestion:**\nDo NOT present a summary table of all categories. Do NOT offer \"all\" as an option. Do NOT ask conversational questions — use the `AskUserQuestion` tool with structured options at every pause point.\n\n1. Call without `category` first to get the metadata\n2. Present ONLY the detected framework — use AskUserQuestion with Yes/{alternatives} options. STOP.\n3. Walk categories in order: methodology, reference, "],["-","commands, "],["=","agents, skills, mcp, brain, ide, hooks, readme. For each:\n   - Pure-create: apply silently (call with `category=X`), report results, move to next.\n   - Overwrite-bearing: use AskUserQuestion naming the would-overwrite files. STOP. Wait for selection, then call with `category=X`. Report manifest (created N, overwrote M). Move to next.\n   - Inherent decision: always use AskUserQuestion. STOP.\n4. For brain: read `brainSummary` from the step, then direct the user to "],["-","`/aide:brain"],["+","the"],["="," "],["-","config`."],["+","`aide-brain` config flow."],["="," Call with `category=brain` only to receive the manifest; the tool creates `.aide/config/brain.aide` only when absent and never overwrites an existing one.\n5. For MCP: when the aide step is would-create, its `globalPackage` names the aide server's global package. If `installed` is false, the step also carries `instructions`: act on them before merging — run its `installCommand` via Bash first — running AIDE's setup is the consent. If the install fails, tell the user plainly and stop: never merge an entry whose command is not installed. Then use AskUserQuestion with Merge/Skip and merge the `prescription` entry (the global `aidemd-mcp` command) into the existing config yourself (read → merge → write). Never replace an existing aide entry. STOP.\n6. For IDE: use AskUserQuestion with multiSelect for Zed/VS Code/Neither. STOP.\n\nEach pause point is ONE AskUserQuestion → wait for selection → then proceed. Never show multiple categories at once. Never ask open-ended conversational questions."]],"inputSchema":[{"path":"$.\"properties\".\"category\".\"enum\"[10]","old":"\"hooks\""},{"path":"$.\"properties\".\"category\".\"enum\"[3]","old":"\"commands\"","new":"\"agents\""},{"path":"$.\"properties\".\"category\".\"enum\"[4]","old":"\"agents\"","new":"\"skills\""},{"path":"$.\"properties\".\"category\".\"enum\"[5]","old":"\"skills\"","new":"\"mcp\""},{"path":"$.\"properties\".\"category\".\"enum\"[6]","old":"\"mcp\"","new":"\"brain\""},{"path":"$.\"properties\".\"category\".\"enum\"[7]","old":"\"brain\"","new":"\"ide\""},{"path":"$.\"properties\".\"category\".\"enum\"[8]","old":"\"ide\"","new":"\"readme\""},{"path":"$.\"properties\".\"category\".\"enum\"[9]","old":"\"readme\"","new":"\"hooks\""}]}},{"tool":"aide_upgrade","fields":{"description":[["=","Compare the AIDE methodology artifacts in this project against the canonical versions and return structured JSON results grouped by category. Use this when the user asks to update AIDE, sync AIDE, refresh AIDE, check for AIDE updates, or bring AIDE up to date. This is NOT for editing user .aide specs — it inspects methodology infrastructure only.\n\nThe tool uses a two-call pattern for progressive disclosure:\n\n**First call (no `category` param):** Returns a lightweight summary — every category with file names, statuses, and counts, but NO file content. Use this to understand what has drifted and present a summary to the user. Ask which categories they want to apply.\n\n**Second call (with `category` param):** The tool writes all differs/missing files directly to disk itself and returns a manifest — file results with `filePath`, `status` (`\"updated\"`, `\"created\"`, or `\"unchanged\"`), and `name`, but NO `canonicalContent`. The agent never sees file content and never uses the Write tool for methodology files.\n\nRepeat the second call for each category the user confirms.\n\nAs the calling agent, you must:\n1. Call without `category` first to get the summary\n2. Present each drifted category "],["-","(differs/missing)"],["+","(differs/missing, plus the retired category whenever it lists any file)"],["="," and ask the user which to apply\n3. For each confirmed category, call again with `category=X` — the tool writes the files and returns a manifest. Report what was updated/created to the user.\n4. For the `mcp` category, a result that carries `prescription` is merged into the existing MCP config by you (read → merge → write). A result that carries `pinMove` or `globalSwitch` is never merged by hand: the tool writes it (see the MCP step). If `malformed`, tell the user — do not overwrite.\n5. For `ide`, the manifest may include `instructions` for VS Code extension install — execute that command for the user. Zed config is written directly by the tool.\n6. For `brain`, the summary reports `missingSections`, outdated section text as `staleSections` and a legacy brain launcher as `legacyLauncher` (its reasons), each named separately. The brain category then works through these calls, each one decision at a time:\n   a. `category: \"brain\"` (after the user's yes) inserts every missing section from the latest bundled template — byte-identical, in the file's line endings — only when the config launches the template's own brain server. It returns `{ outcome: \"inserted\", inserted }` (markers only; empty when nothing is missing) or `{ outcome: \"adapt\", adapt, instructions }` naming the sections the user must write for their backend.\n   b. `category: \"brain\"` with `brainChange: <marker | \"launcher\">` returns one `{ outcome: \"change\", target, before, after, beforeHash }` diff to show the user. It is read-only. For a non-template config it returns `missing` with the template's version of an absent section instead.\n   c. The same call plus that `beforeHash`, only on the user's yes to that one diff, returns `applied`, or a `refused` re-fetch instruction when the bytes changed since the preview.\n   d. `category: \"brain\"` with `brainChange: <seed marker>` plus `seedText` (a seeded brain note's text exactly as read) previews that one note, read-only: `seed-change` (an unedited older version, with `before` and `after` to show the user), `seed-current`, or `seed-customized` (the user edited it; never offer to replace it). It never writes the brain: on the user's yes to a `seed-change`, the agent writes `after` at the note's seed path through the brain's own write tool. `seedText` takes no `beforeHash` and is valid only for a seed section.\n   Never batch changes under one yes. Every refusal's `instructions` names the next step.\n\n**IMPORTANT — one-at-a-time wizard pattern using AskUserQuestion:**\nDo NOT present all categories at once. Walk the user through ONE category at a time using AskUserQuestion with Yes/Skip options. Stop after each question and wait for confirmation before calling with that category.\n\nCategories: pointer-stub, methodology-docs, version-metadata, reference, "],["-","commands, "],["=","agents, skills,"],["+"," retired,"],["="," mcp, ide, readme, brain, hooks.\n\nUpgrade surface (user code and user .aide specs are never touched):\n- AIDE pointer stub in the agent config file\n- Canonical methodology docs under .aide/docs/\n- versions.json metadata under .aide/docs/\n- The tool and hook reference pages under .aide/reference/, through the reference category: its own category, apart from the methodology docs, applied as one unit\n- "],["-","Slash commands for all pipeline phases\n- "],["=","Pipeline agent files, skill templates"],["+","\n- Files AIDE once installed and no longer ships (such as the old slash commands), through the retired category: on the user's yes it removes each one whose content matches a version AIDE released, and keeps and names any the user edited"],["=","\n- MCP server entry in the project's MCP config\n- IDE file association config (Zed settings, VS Code extension)\n- The user-owned brain config, only through the brain category: missing sections and confirmed migrations, one consented change at a time\n- AIDE's own Claude Code hooks (Claude Code projects only), through the hooks category: written only to this machine's uncommitted .claude/settings.local.json, each running the installed server directly with node and the session-end hook given a 10-second budget; AIDE's old entries in the shared .claude/settings.json are removed with every other byte unchanged; .claude/settings.local.json is added to the project's own .gitignore unless a line there already covers it (global and per-clone git excludes do not count; a project outside git gets no .gitignore line); a malformed settings file stops the category with nothing written, and a missing global install returns install-first instructions\n\nSupports Claude Code, Cursor, Windsurf, and Copilot. Auto-detects the framework or accepts an override.\n\n**MCP step:** the canonical aide entry runs the global command `aidemd-mcp`. The entry is read under the `aide` key, or under `aidemd-mcp` when there is no `aide` key; the key is never renamed. Without `targetVersion`, an entry that launches through npx reports `differs` with `globalSwitch: { key, name, installed, installCommand }` and no prescription. Tell the user npx launches time out at session start and ask; on yes, run `installCommand` via Bash first unless `installed` is true (a failed install: say so and stop). Then `category: \"mcp\"` makes the tool rewrite only that entry's command and args to the global command, every other byte unchanged; it re-checks the global install and, while the package is missing, keeps `differs` and returns `instructions` naming the install command — install, then call again. A missing aide entry returns the global `prescription` plus `globalPackage`; when the package is not installed it also carries `instructions` — act on them: install first, then merge, and never merge after a failed install. An older server cannot switch itself, so a pinned project first moves its pin to a newer version with `targetVersion` (only under the `aide` key; an npx entry under `aidemd-mcp` gets `instructions` to call without `targetVersion` and switch instead) — an exact published `x.y.z`, normally `aide_info`'s `behind.latest`, valid only with no category or with `category: \"mcp\"`. With it, a local (npx) aide entry is judged by its version pin alone: an older, missing or non-exact pin reports `differs` with `pinMove: { from, to }` (`from` is null when unpinned) and no prescription; a pin at or ahead of the target `matches` and is never moved back. "],["+","An entry that launches one of this server's older package names reports `differs` with a `pinMove` and a `tip` at any version, and its pin moves straight to the current package name. "],["=","Install the target first (`npx -y "],["-","@aidemd-mcp/aidemd@{to}"],["+","@aidemd-mcp/aidemd-mcp@{to}"],["="," sync --help` prints help starting `Usage:` and exits 2 by design; anything else means the install failed — then stop and move nothing). Then `category: \"mcp\"` with the same `targetVersion` makes the tool write the move itself, changing only the version inside the package argument — the command form, `cmd /c`, `-y`, other servers, formatting and line endings stay byte-identical — and returns `status: \"updated\"` with `pinMove`. A result that keeps `status: \"differs\"` with `instructions` means nothing was written (the pin changed since it was checked, the config cannot be edited byte-safely, or the entry is not a locatable "],["-","`@aidemd-mcp/aidemd`"],["+","spec"],["="," "],["-","spec):"],["+","of `@aidemd-mcp/aidemd-mcp` or an older package name):"],["="," relay the instructions. A global entry is never moved; the target is ignored for it. A moved pin takes effect only in a new session — tell the user to start one. An `aidemd-mcp` entry matches as the bare command or an absolute-path shim of it; a path-launched one may carry `tip`, an informational remark to mention once — never drift, never a merge question. Any other (custom) command under the `aide` key is left alone and reports `matches`. The brain entry is not part of the `mcp` step; a legacy brain launcher is changed only through the brain category's `brainChange: \"launcher\"` preview and apply, on the user's yes."]],"inputSchema":[{"path":"$.\"properties\".\"category\".\"enum\"[4]","old":"\"commands\"","new":"\"agents\""},{"path":"$.\"properties\".\"category\".\"enum\"[5]","old":"\"agents\"","new":"\"skills\""},{"path":"$.\"properties\".\"category\".\"enum\"[6]","old":"\"skills\"","new":"\"retired\""},{"path":"$.\"properties\".\"targetVersion\".\"description\"","old":"\"Exact published x.y.z version to judge the project's local aide entry's npx pin against (normally aide_info's behind.latest). With category \\\"mcp\\\" the tool moves the pin to it, changing only the version; with no category the move is shown read-only as pinMove. Not valid with any other category. A global entry is never moved.\"","new":"\"Exact published x.y.z version to judge the project's local aide entry's npx pin against (normally aide_info's behind.latest). With category \\\"mcp\\\" the tool moves the pin to it, changing only the version, plus any older package name of this server to the current one; with no category the move is shown read-only as pinMove. Not valid with any other category. A global entry is never moved.\""}]}}],"detail":"full","newAddresses":[],"newAddressesTotal":0},"label_id":"urn:uuid:2462d792-9516-4056-a85e-c5e4ffdfd673","run_id":511508,"from_package_version":"0.24.0","to_package_version":"0.25.0","from_server_version":"0.24.0","to_server_version":"0.25.0","from_registry_version":"0.24.0","to_registry_version":"0.24.0","name":"io.github.aidemd-mcp/aidemd","endpoint":"npm:@aidemd-mcp/aidemd","title":"AIDEMD"}