From 91df20aa78f3eacf519cb097c395b1c9cdac753d Mon Sep 17 00:00:00 2001 From: agent-kit-sync Date: Mon, 30 Nov 2026 14:15:50 +0000 Subject: [PATCH] chore: sync private v6.26.0 (922d31229) --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- .cursor/agent-kit.json | 2 +- .cursor/agents/context-librarian.md | 2 +- .cursor/agents/git-autogit.md | 2 +- .cursor/agents/json-guardian.md | 2 +- .cursor/agents/n8n-workflows.md | 2 +- .cursor/agents/prompts-agents.md | 2 +- .cursor/agents/security-reviewer.md | 2 +- .cursor/agents/sql-schema.md | 2 +- .cursor/commands/archive-plan.md | 2 +- .cursor/commands/backlog-cancel.md | 2 +- .cursor/commands/cancel-plan.md | 2 +- .cursor/commands/context-status.md | 2 +- .cursor/commands/resolve-conflicts.md | 2 +- .cursor/commands/review-pack.md | 2 +- CHANGELOG.md | 15 + claude-directory/.claude-plugin/plugin.json | 2 +- claude-directory/README.md | 2 +- dashboard/dashboard.html | 6 +- dashboard/lib/guards.mjs | 1 + docs/README.md | 1 + docs/consumer-configuration.md | 44 +- docs/driver-events-protocol.md | 11 +- docs/model-roles-capability-matrix.md | 65 +- docs/pi-kit-surface.md | 65 ++ gemini-extension.json | 2 +- package.json | 2 +- packages/cli/package.json | 18 +- packages/cli/pi/agent-kit.ts | 224 ++++++ packages/cli/src/commands/countdown.test.ts | 271 ++++++- packages/cli/src/commands/countdown.ts | 123 +++- packages/cli/src/commands/hook.test.ts | 32 +- packages/cli/src/commands/hook.ts | 11 +- packages/cli/src/commands/models.ts | 50 ++ packages/cli/src/commands/paths.ts | 57 ++ packages/cli/src/commands/pi.test.ts | 218 ++++++ packages/cli/src/commands/pi.ts | 330 +++++++++ packages/cli/src/commands/run-plan.ts | 20 + .../generator/claude-command-adapters.test.ts | 77 +- .../src/generator/claude-command-adapters.ts | 43 +- .../src/hooks/format-session-start.test.ts | 14 + .../cli/src/hooks/format-session-start.ts | 13 +- packages/cli/src/hooks/hard-rules.ts | 10 + packages/cli/src/hooks/session-start.test.ts | 42 +- packages/cli/src/hooks/session-start.ts | 5 + packages/cli/src/index.ts | 3 + .../src/lifecycle/kit-surface-paths.test.ts | 134 ++++ .../cli/src/lifecycle/kit-surface-paths.ts | 82 +++ .../cli/src/lifecycle/overlay-known-hashes.ts | 5 + .../shipped-frontmatter-yaml.test.ts | 102 +++ packages/cli/src/lifecycle/version.ts | 13 +- .../cli/src/mission-control/live-feed.test.ts | 16 + packages/cli/src/plan-loop/backends.test.ts | 1 + packages/cli/src/plan-loop/backends.ts | 42 +- packages/cli/src/plan-loop/codex.ts | 4 +- packages/cli/src/plan-loop/detect.test.ts | 1 + packages/cli/src/plan-loop/detect.ts | 17 +- packages/cli/src/plan-loop/dispatch-driver.ts | 10 + packages/cli/src/plan-loop/dispatch.test.ts | 35 + packages/cli/src/plan-loop/dispatch.ts | 21 + .../cli/src/plan-loop/driver-events.test.ts | 279 ++++++- packages/cli/src/plan-loop/driver-events.ts | 19 +- .../claude-result-cost-basis-unknown.json | 107 +++ .../src/plan-loop/fixtures/fake-claude.mjs | 28 + .../cli/src/plan-loop/fixtures/fake-pi.mjs | 113 +++ .../cli/src/plan-loop/local-models.test.ts | 444 ++++++++++++ packages/cli/src/plan-loop/local-models.ts | 481 +++++++++++++ packages/cli/src/plan-loop/local.test.ts | 680 ++++++++++++++++++ packages/cli/src/plan-loop/local.ts | 640 +++++++++++++++++ packages/cli/src/plan-loop/model-roles.ts | 3 +- .../cli/src/plan-loop/run-loop-roles.test.ts | 27 + packages/cli/src/plan-loop/run-loop.ts | 88 ++- packages/cli/src/plan-loop/sentinel.ts | 25 + packages/cli/src/plan-loop/stream-events.ts | 21 +- .../cli/src/plan-loop/stream-render.test.ts | 73 ++ packages/cli/src/plan-loop/stream-render.ts | 61 +- packages/cli/src/utils/kit-paths.ts | 12 + packages/cli/src/welcome/help-groups.ts | 14 +- packages/cli/tsconfig.pi.json | 9 + plugin.json | 2 +- pnpm-lock.yaml | 36 +- scripts/verify-cli-dashboard-pack.mjs | 19 +- 84 files changed, 5338 insertions(+), 137 deletions(-) create mode 100644 docs/pi-kit-surface.md create mode 100644 packages/cli/pi/agent-kit.ts create mode 100644 packages/cli/src/commands/models.ts create mode 100644 packages/cli/src/commands/paths.ts create mode 100644 packages/cli/src/commands/pi.test.ts create mode 100644 packages/cli/src/commands/pi.ts create mode 100644 packages/cli/src/lifecycle/kit-surface-paths.test.ts create mode 100644 packages/cli/src/lifecycle/kit-surface-paths.ts create mode 100644 packages/cli/src/lifecycle/shipped-frontmatter-yaml.test.ts create mode 100644 packages/cli/src/plan-loop/fixtures/claude-result-cost-basis-unknown.json create mode 100644 packages/cli/src/plan-loop/fixtures/fake-pi.mjs create mode 100644 packages/cli/src/plan-loop/local-models.test.ts create mode 100644 packages/cli/src/plan-loop/local-models.ts create mode 100644 packages/cli/src/plan-loop/local.test.ts create mode 100644 packages/cli/src/plan-loop/local.ts create mode 100644 packages/cli/tsconfig.pi.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index c78e94a..9d20e4d 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "agent-kit", "displayName": "Mission Kit", - "version": "6.25.0", + "version": "6.26.0", "description": "Plan, build, ship, and keep shipping. Agent Kit for Claude Code: plans, handoff, durable memory and staging-to-prod gates for long-term projects, followed from Mission Control in your browser.", "author": { "name": "agent-kit-startup" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 96da27d..16e62a5 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agent-kit", - "version": "6.25.0", + "version": "6.26.0", "description": "Plan, build, ship, and keep shipping. Agent Kit skills for long-term projects with your own coding agents: plans, handoff, durable memory and staging-to-prod gates.", "author": { "name": "agent-kit-startup" diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 0201ba7..e826c4e 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -7,7 +7,7 @@ "description": "Plan, build, ship, and keep shipping. Agent Kit slash commands, rules and skills for long-term projects with your own coding agents: plans, handoff, durable memory and staging-to-prod gates. Follow the work in Mission Control.", "keywords": ["agents", "hitl", "handoff", "git-staging", "context", "multi-ide", "anti-slop"], "license": "Apache-2.0", - "version": "6.25.0", + "version": "6.26.0", "homepage": "https://github.com/agent-kit-startup/agent-kit", "websiteURL": "https://agent.missionkit.io/", "privacyPolicyURL": "https://github.com/agent-kit-startup/agent-kit/blob/main/PRIVACY.md", diff --git a/.cursor/agent-kit.json b/.cursor/agent-kit.json index 15be7a3..43d52f1 100644 --- a/.cursor/agent-kit.json +++ b/.cursor/agent-kit.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "version": "6.25.0", + "version": "6.26.0", "protected": [ ".claude/commands/agent-kit.md", ".cursor/HANDOFF.md", diff --git a/.cursor/agents/context-librarian.md b/.cursor/agents/context-librarian.md index bdc1b73..8acfb59 100644 --- a/.cursor/agents/context-librarian.md +++ b/.cursor/agents/context-librarian.md @@ -1,6 +1,6 @@ --- name: context-librarian -description: Working memory: summarize, update Context Pack and handoff. Use for long tasks, at end of phase or when context is getting full. +description: "Working memory: summarize, update Context Pack and handoff. Use for long tasks, at end of phase or when context is getting full." model: inherit readonly: false rules: diff --git a/.cursor/agents/git-autogit.md b/.cursor/agents/git-autogit.md index dfbbe92..5412c4e 100644 --- a/.cursor/agents/git-autogit.md +++ b/.cursor/agents/git-autogit.md @@ -1,6 +1,6 @@ --- name: git-autogit -description: Applies staging → production flow (git staging, git prod), CHANGELOG and Conventional Commits. Dogfood-only: not a pack member; consumers use L0 /git-staging and /git-prod. Optional Task isolation in the kit repo. +description: "Applies staging → production flow (git staging, git prod), CHANGELOG and Conventional Commits. Dogfood-only: not a pack member; consumers use L0 /git-staging and /git-prod. Optional Task isolation in the kit repo." model: inherit readonly: false rules: diff --git a/.cursor/agents/json-guardian.md b/.cursor/agents/json-guardian.md index 2fec4f5..70d52b4 100644 --- a/.cursor/agents/json-guardian.md +++ b/.cursor/agents/json-guardian.md @@ -1,6 +1,6 @@ --- name: json-guardian -description: JSON validation and normalization; schemas; robust parsing; clear error messages. Demoted (skill-first): prefer json-data-config skill; dogfood-only agent for rare Task isolation. +description: "JSON validation and normalization; schemas; robust parsing; clear error messages. Demoted (skill-first): prefer json-data-config skill; dogfood-only agent for rare Task isolation." model: inherit readonly: false rules: diff --git a/.cursor/agents/n8n-workflows.md b/.cursor/agents/n8n-workflows.md index 63b69df..d9c7ad0 100644 --- a/.cursor/agents/n8n-workflows.md +++ b/.cursor/agents/n8n-workflows.md @@ -1,6 +1,6 @@ --- name: n8n-workflows -description: Edit and document n8n workflows (JSON), setup, credentials and docs in docs/context/ and docs/n8n-manual-update-*.md. Demoted (skill-first): prefer n8n-workflows skill; dogfood-only agent for rare Task isolation. +description: "Edit and document n8n workflows (JSON), setup, credentials and docs in docs/context/ and docs/n8n-manual-update-*.md. Demoted (skill-first): prefer n8n-workflows skill; dogfood-only agent for rare Task isolation." model: inherit readonly: false rules: diff --git a/.cursor/agents/prompts-agents.md b/.cursor/agents/prompts-agents.md index 3341a16..a4bf8e6 100644 --- a/.cursor/agents/prompts-agents.md +++ b/.cursor/agents/prompts-agents.md @@ -1,6 +1,6 @@ --- name: prompts-agents -description: Create and edit agent prompts in Markdown; follow reference model and folder structure. Demoted (skill-first): prefer prompts-markdown skill; dogfood-only agent for rare Task isolation. +description: "Create and edit agent prompts in Markdown; follow reference model and folder structure. Demoted (skill-first): prefer prompts-markdown skill; dogfood-only agent for rare Task isolation." model: inherit readonly: false rules: diff --git a/.cursor/agents/security-reviewer.md b/.cursor/agents/security-reviewer.md index ef3d7ba..7e47103 100644 --- a/.cursor/agents/security-reviewer.md +++ b/.cursor/agents/security-reviewer.md @@ -1,6 +1,6 @@ --- name: security-reviewer -description: Review auth, PII, secrets, injection, logging. Modes: secure-by-default, passive detection, on-demand report. Use before merge, in PRs, or when asked. +description: "Review auth, PII, secrets, injection, logging. Modes: secure-by-default, passive detection, on-demand report. Use before merge, in PRs, or when asked." model: inherit readonly: true rules: diff --git a/.cursor/agents/sql-schema.md b/.cursor/agents/sql-schema.md index bc3dbc3..b8432bd 100644 --- a/.cursor/agents/sql-schema.md +++ b/.cursor/agents/sql-schema.md @@ -1,6 +1,6 @@ --- name: sql-schema -description: Create and modify SQL schemas (Postgres) for n8n and agents. Demoted (skill-first): prefer sql-postgres skill; dogfood-only agent for rare Task isolation. +description: "Create and modify SQL schemas (Postgres) for n8n and agents. Demoted (skill-first): prefer sql-postgres skill; dogfood-only agent for rare Task isolation." model: inherit readonly: false rules: diff --git a/.cursor/commands/archive-plan.md b/.cursor/commands/archive-plan.md index 2e9c3cf..e1bf075 100644 --- a/.cursor/commands/archive-plan.md +++ b/.cursor/commands/archive-plan.md @@ -1,6 +1,6 @@ --- name: archive-plan -description: Archive a parked plan: drop it from the HANDOFF parked list and move the file into .cursor/plans/archive/. +description: "Archive a parked plan: drop it from the HANDOFF parked list and move the file into .cursor/plans/archive/." context: plan audience: user --- diff --git a/.cursor/commands/backlog-cancel.md b/.cursor/commands/backlog-cancel.md index 2d72884..0c8d217 100644 --- a/.cursor/commands/backlog-cancel.md +++ b/.cursor/commands/backlog-cancel.md @@ -1,6 +1,6 @@ --- name: backlog-cancel -description: Soft-cancel a backlog plan: mark open to-dos cancelled and drop it from the Backlog, keeping the file. +description: "Soft-cancel a backlog plan: mark open to-dos cancelled and drop it from the Backlog, keeping the file." context: plan audience: user --- diff --git a/.cursor/commands/cancel-plan.md b/.cursor/commands/cancel-plan.md index f694281..c5327b7 100644 --- a/.cursor/commands/cancel-plan.md +++ b/.cursor/commands/cancel-plan.md @@ -1,6 +1,6 @@ --- name: cancel-plan -description: Cancel the active plan: mark open to-dos cancelled and clear the HANDOFF active-plan fields, keeping the file. +description: "Cancel the active plan: mark open to-dos cancelled and clear the HANDOFF active-plan fields, keeping the file." context: plan audience: user --- diff --git a/.cursor/commands/context-status.md b/.cursor/commands/context-status.md index b57c653..406b918 100644 --- a/.cursor/commands/context-status.md +++ b/.cursor/commands/context-status.md @@ -1,6 +1,6 @@ --- name: context-status -description: Show the current context state: active task, handoff, archived tasks. +description: "Show the current context state: active task, handoff, archived tasks." context: none audience: user --- diff --git a/.cursor/commands/resolve-conflicts.md b/.cursor/commands/resolve-conflicts.md index f6ee53d..bb3216f 100644 --- a/.cursor/commands/resolve-conflicts.md +++ b/.cursor/commands/resolve-conflicts.md @@ -1,6 +1,6 @@ --- name: resolve-conflicts -description: Proposal-only prompt for agent-kit conflicts propose: read a three-way conflict pack and reply with one JSON object of per-hunk proposals; no tools, no edits, no commits. +description: "Proposal-only prompt for agent-kit conflicts propose: read a three-way conflict pack and reply with one JSON object of per-hunk proposals; no tools, no edits, no commits." context: none audience: meta --- diff --git a/.cursor/commands/review-pack.md b/.cursor/commands/review-pack.md index ec6ef31..eeef254 100644 --- a/.cursor/commands/review-pack.md +++ b/.cursor/commands/review-pack.md @@ -1,6 +1,6 @@ --- name: review-pack -description: Review-only prompt for the CLI review job (agent-kit countdown --job review): read a bounded diff pack of unmerged branches and report findings; no edits, no commits. +description: "Review-only prompt for the CLI review job (agent-kit countdown --job review): read a bounded diff pack of unmerged branches and report findings; no edits, no commits." context: none audience: meta --- diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ed610..aa899a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,21 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and ## [Unreleased] +## [6.26.0] - 2026-11-30 + +### Added + +- New `--backend local` runs plan ticks on a model installed on this machine, through your own `pi`: `agent-kit run-plan --backend local --model :`, with the id from `agent-kit models` (for example `omarchy:qwen3.8-27b-gufo` or `ollama:llama3.1:8b`). An Omarchy model reaches pi through `omarchy-models overlay pi `, and a stopped Omarchy model that fits is started first with `omarchy-models start `; Ollama, LM Studio and llama.cpp models get a temporary provider extension with a placeholder key, removed after the tick. pi runs in rpc mode with no extensions but the kit's provider, no skills, no prompt templates, no project-local pi files, no session file, offline, and its own temporary agent directory, so nothing in `~/.pi`, `~/.config/omarchy` (apart from the overlay file Omarchy regenerates itself) or `~/.config/hypr` is written. HITL gates are answered in the same pi session, as on `claude`. The backend is explicit-only: `auto` never picks it, a missing pi, an unknown id or a model that does not fit stops the run with a message naming `agent-kit models`, `--on-limit` is refused with it, and a `tick` reviewer runs after a local tick only on a reviewer backend you named, so a local run never moves to a paid engine on its own. Small models may not finish a tick: a provider error, a prompt pi refuses, a non-zero pi exit, a tick with no `LOOP_TICK_RESULT` line and no to-do completed, or a `continue` tick that changed neither the plan nor HANDOFF, stops the run as a failed tick, never as a success; the loop does not check what HANDOFF says, and there is no turn or time cap, so stop a model that loops yourself. `agent-kit run --backend local` works the same way. Driver protocol 1.6.0 adds the `model_loading` event (`starting`, `loading`, `ready`, `failed`) while a stopped model starts. Details: `docs/consumer-configuration.md`, `docs/model-roles-capability-matrix.md`, `docs/driver-events-protocol.md`. +- New `agent-kit models [--json]` lists the text models installed on this machine, read-only: Omarchy recipes (`omarchy-models status --json`, when the command exists), Ollama (cloud and embedding tags left out), LM Studio and a llama.cpp server, all on `127.0.0.1` only, without following redirects. Each model has an id `:` (for example `omarchy:qwen3.8-27b-gufo` or `ollama:llama3.1:8b`), a label, its OpenAI-compatible `/v1` endpoint, a state (`running`, `stopped` or `not-fit`, with the reason) and whether it is runnable (pi on PATH and the model fits; a stopped Omarchy recipe counts, since a run starts it). A source that is missing, refuses the connection, times out (1.5 s) or answers with bad JSON gets a note and the others still list; the command exits 0 even when nothing answers. It never starts, stops or calls a model and reads no credentials. `--json` prints `{"schemaVersion":1,"models":[...],"sources":[{"source","ok","note"?}],"pi":{"found":...}}`. Details: `docs/model-roles-capability-matrix.md`. +- `agent-kit hook session-start --format pi` prints the session-start context as plain text for a pi session, with one added section that sets the approval path for pi, which has no question tool: one `HITL_GATE: |