@vpxa/aikit 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/README.md +8 -8
  2. package/package.json +1 -1
  3. package/packages/aikit-client/dist/types.d.ts +3 -3
  4. package/packages/cli/dist/aikit-init.d.ts +1 -1
  5. package/packages/cli/dist/aikit-init.js +1 -1
  6. package/packages/cli/dist/commands/context-cmds.js +1 -1
  7. package/packages/cli/dist/commands/environment.js +1 -1
  8. package/packages/cli/dist/commands/init/config.d.ts +1 -1
  9. package/packages/cli/dist/commands/init/config.js +2 -2
  10. package/packages/cli/dist/commands/init/constants.d.ts +3 -3
  11. package/packages/cli/dist/commands/init/index.d.ts +4 -4
  12. package/packages/cli/dist/commands/init/index.js +4 -4
  13. package/packages/cli/dist/commands/init/templates.js +12 -12
  14. package/packages/cli/dist/commands/init/user.d.ts +3 -3
  15. package/packages/cli/dist/commands/init/user.js +2 -2
  16. package/packages/cli/dist/commands/search.js +1 -1
  17. package/packages/cli/dist/commands/system.js +4 -4
  18. package/packages/cli/dist/commands/upgrade.js +1 -1
  19. package/packages/cli/dist/commands/workspace.js +1 -1
  20. package/packages/cli/dist/helpers.js +1 -1
  21. package/packages/cli/dist/index.d.ts +1 -1
  22. package/packages/core/dist/constants.d.ts +3 -3
  23. package/packages/core/dist/global-registry.d.ts +7 -1
  24. package/packages/core/dist/global-registry.js +1 -1
  25. package/packages/core/dist/index.d.ts +2 -2
  26. package/packages/core/dist/index.js +1 -1
  27. package/packages/core/dist/types.d.ts +6 -2
  28. package/packages/dashboard/dist/assets/{index-BjA4YODs.js → index-CO2S9BKY.js} +2 -2
  29. package/packages/dashboard/dist/assets/index-CO2S9BKY.js.map +1 -0
  30. package/packages/dashboard/dist/index.html +2 -2
  31. package/packages/enterprise-bridge/dist/er-client.d.ts +1 -1
  32. package/packages/flows/dist/git.js +1 -1
  33. package/packages/flows/dist/registry.d.ts +3 -3
  34. package/packages/flows/dist/registry.js +1 -1
  35. package/packages/flows/dist/symlinks.js +1 -1
  36. package/packages/indexer/dist/filesystem-crawler.js +1 -1
  37. package/packages/indexer/dist/hash-cache.js +1 -1
  38. package/packages/indexer/dist/incremental-indexer.js +1 -1
  39. package/packages/kb-client/dist/direct-client.d.ts +37 -0
  40. package/packages/kb-client/dist/direct-client.js +1 -0
  41. package/packages/kb-client/dist/index.d.ts +5 -0
  42. package/packages/kb-client/dist/index.js +1 -0
  43. package/packages/kb-client/dist/mcp-client.d.ts +19 -0
  44. package/packages/kb-client/dist/mcp-client.js +4 -0
  45. package/packages/kb-client/dist/parsers.d.ts +35 -0
  46. package/packages/kb-client/dist/parsers.js +2 -0
  47. package/packages/kb-client/dist/types.d.ts +62 -0
  48. package/packages/kb-client/dist/types.js +1 -0
  49. package/packages/present/dist/index.html +28 -28
  50. package/packages/server/dist/background-task.d.ts +47 -0
  51. package/packages/server/dist/background-task.js +1 -0
  52. package/packages/server/dist/config.js +1 -1
  53. package/packages/server/dist/idle-timer.d.ts +33 -0
  54. package/packages/server/dist/idle-timer.js +1 -0
  55. package/packages/server/dist/index.js +1 -1
  56. package/packages/server/dist/memory-monitor.d.ts +37 -0
  57. package/packages/server/dist/memory-monitor.js +1 -0
  58. package/packages/server/dist/prompts.js +5 -5
  59. package/packages/server/dist/resource-links.d.ts +1 -1
  60. package/packages/server/dist/resource-links.js +1 -1
  61. package/packages/server/dist/resources/curated-resources.d.ts +2 -2
  62. package/packages/server/dist/resources/curated-resources.js +2 -2
  63. package/packages/server/dist/resources/resource-notifier.d.ts +1 -1
  64. package/packages/server/dist/resources/resource-notifier.js +1 -1
  65. package/packages/server/dist/resources/resources.js +1 -1
  66. package/packages/server/dist/server.d.ts +4 -2
  67. package/packages/server/dist/server.js +3 -3
  68. package/packages/server/dist/tool-metadata.d.ts +1 -1
  69. package/packages/server/dist/tool-metadata.js +1 -1
  70. package/packages/server/dist/tool-timeout.d.ts +27 -0
  71. package/packages/server/dist/tool-timeout.js +1 -0
  72. package/packages/server/dist/tools/bridge.tools.d.ts +1 -1
  73. package/packages/server/dist/tools/bridge.tools.js +3 -3
  74. package/packages/server/dist/tools/config.tool.d.ts +8 -0
  75. package/packages/server/dist/tools/config.tool.js +12 -0
  76. package/packages/server/dist/tools/evolution.tools.js +1 -1
  77. package/packages/server/dist/tools/flow.tools.js +1 -1
  78. package/packages/server/dist/tools/infra.tools.js +1 -1
  79. package/packages/server/dist/tools/onboard.tool.js +1 -1
  80. package/packages/server/dist/tools/present/browser.js +9 -9
  81. package/packages/server/dist/tools/present/tool.js +4 -4
  82. package/packages/server/dist/tools/reindex.tool.js +1 -1
  83. package/packages/server/dist/tools/search.tool.js +4 -4
  84. package/packages/server/dist/tools/status.tool.d.ts +1 -1
  85. package/packages/server/dist/tools/status.tool.js +3 -3
  86. package/packages/store/dist/sqlite-graph-store.d.ts +3 -0
  87. package/packages/store/dist/sqlite-graph-store.js +3 -3
  88. package/packages/tools/dist/checkpoint.js +1 -1
  89. package/packages/tools/dist/config-extractor.js +1 -1
  90. package/packages/tools/dist/evidence-map.js +1 -1
  91. package/packages/tools/dist/find.d.ts +1 -1
  92. package/packages/tools/dist/forge-ground.d.ts +1 -1
  93. package/packages/tools/dist/guide.js +1 -1
  94. package/packages/tools/dist/lane.js +1 -1
  95. package/packages/tools/dist/onboard.d.ts +2 -2
  96. package/packages/tools/dist/onboard.js +2 -2
  97. package/packages/tools/dist/queue.js +1 -1
  98. package/packages/tools/dist/replay.js +1 -1
  99. package/packages/tools/dist/response-envelope.d.ts +1 -1
  100. package/packages/tools/dist/restore-points.js +1 -1
  101. package/packages/tools/dist/schema-validate.js +1 -1
  102. package/packages/tools/dist/snippet.js +1 -1
  103. package/packages/tools/dist/stash.js +1 -1
  104. package/packages/tools/dist/synthesis-engine.js +2 -2
  105. package/packages/tools/dist/workset.js +1 -1
  106. package/packages/tui/dist/{App-DU2KEylW.js → App-DpjN3iS-.js} +1 -1
  107. package/packages/tui/dist/App.d.ts +1 -1
  108. package/packages/tui/dist/App.js +1 -1
  109. package/packages/tui/dist/LogPanel-Db-SeZhR.js +3 -0
  110. package/packages/tui/dist/hooks/useKBClient.d.ts +1 -1
  111. package/packages/tui/dist/{index-BXafekwr.d.ts → index-MXJeXmCf.d.ts} +3 -3
  112. package/packages/tui/dist/index.d.ts +1 -1
  113. package/packages/tui/dist/index.js +1 -1
  114. package/packages/tui/dist/panels/LogPanel.js +1 -1
  115. package/scaffold/README.md +192 -192
  116. package/scaffold/definitions/bodies.mjs +16 -16
  117. package/scaffold/definitions/plugins.mjs +1 -1
  118. package/scaffold/definitions/prompts.mjs +6 -6
  119. package/scaffold/definitions/protocols.mjs +12 -12
  120. package/scaffold/definitions/tools.mjs +1 -1
  121. package/scaffold/flows/aikit-advanced/skills/execute/SKILL.md +124 -124
  122. package/scaffold/flows/aikit-advanced/skills/plan/SKILL.md +100 -100
  123. package/scaffold/flows/aikit-advanced/skills/spec/SKILL.md +100 -100
  124. package/scaffold/flows/aikit-advanced/skills/task/SKILL.md +99 -99
  125. package/scaffold/flows/aikit-advanced/skills/verify/SKILL.md +122 -122
  126. package/scaffold/flows/aikit-basic/skills/assess/SKILL.md +82 -82
  127. package/scaffold/flows/aikit-basic/skills/implement/SKILL.md +105 -105
  128. package/scaffold/flows/aikit-basic/skills/verify/SKILL.md +96 -96
  129. package/scaffold/general/agents/Debugger.agent.md +2 -2
  130. package/scaffold/general/agents/Documenter.agent.md +2 -2
  131. package/scaffold/general/agents/Explorer.agent.md +2 -2
  132. package/scaffold/general/agents/Frontend.agent.md +1 -1
  133. package/scaffold/general/agents/Implementer.agent.md +2 -2
  134. package/scaffold/general/agents/Orchestrator.agent.md +1 -1
  135. package/scaffold/general/agents/Planner.agent.md +2 -2
  136. package/scaffold/general/agents/Refactor.agent.md +2 -2
  137. package/scaffold/general/agents/Security.agent.md +2 -2
  138. package/scaffold/general/agents/_shared/architect-reviewer-base.md +1 -1
  139. package/scaffold/general/agents/_shared/code-agent-base.md +6 -6
  140. package/scaffold/general/agents/_shared/code-reviewer-base.md +1 -1
  141. package/scaffold/general/agents/_shared/forge-protocol.md +1 -1
  142. package/scaffold/general/agents/_shared/researcher-base.md +3 -3
  143. package/scaffold/general/prompts/ask.prompt.md +4 -4
  144. package/scaffold/general/prompts/debug.prompt.md +1 -1
  145. package/scaffold/general/prompts/plan.prompt.md +1 -1
  146. package/scaffold/general/skills/aikit/SKILL.md +5 -5
  147. package/scaffold/general/skills/multi-agents-development/SKILL.md +435 -435
  148. package/scaffold/general/skills/present/SKILL.md +424 -424
  149. package/packages/dashboard/dist/assets/index-BjA4YODs.js.map +0 -1
  150. package/packages/tui/dist/LogPanel-Bo8a8QXB.js +0 -3
@@ -117,7 +117,7 @@ Batch 2 (after batch 1):
117
117
  2. **Break tasks small** — 1-3 files per dispatch, clear scope, clear acceptance criteria
118
118
  3. **Maximize parallelism** — independent tasks MUST run as parallel \`runSubagent\` calls in the SAME function block. Sequential dispatch of parallelizable tasks is a protocol violation.
119
119
  4. **Fresh context per subagent** — paste relevant code, don't reference conversation history
120
- 5. **Search KB before planning** — check past decisions with \`search()\`
120
+ 5. **Search AI Kit before planning** — check past decisions with \`search()\`
121
121
  6. **Route correctly** — brainstorming for design, decision protocol for tech choices
122
122
  7. **Never proceed without user approval** at 🛑 stops
123
123
  8. **Max 2 retries** then escalate to user
@@ -182,7 +182,7 @@ At session start, check for an active flow:
182
182
  | \`flow_status\` | Check current execution state |
183
183
  | \`flow_reset\` | Clear flow state to start over |`,
184
184
 
185
- Planner: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
185
+ Planner: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
186
186
 
187
187
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
188
188
 
@@ -199,7 +199,7 @@ At session start, check for an active flow:
199
199
 
200
200
  ## Planning Workflow
201
201
 
202
- 1. **KB Recall** — Search for past plans, architecture decisions, known patterns. Check \`list()\` for stored knowledge.
202
+ 1. **AI Kit Recall** — Search for past plans, architecture decisions, known patterns. Check \`list()\` for stored knowledge.
203
203
  2. **FORGE Classify** — \`forge_classify({ task, files, root_path: "." })\` to determine complexity tier
204
204
  3. **FORGE Ground** — \`forge_ground\` to scope map, seed unknowns, load constraints
205
205
  4. **Research** — Delegate to Explorer and Researcher agents to gather context
@@ -252,7 +252,7 @@ At session start, check for an active flow:
252
252
  | \`adr-skill\` | When the plan involves non-trivial technical decisions — create executable ADRs |
253
253
  | \`session-handoff\` | When context window is filling up, planning session ending, or major milestone completed |`,
254
254
 
255
- Implementer: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
255
+ Implementer: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
256
256
 
257
257
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
258
258
 
@@ -269,13 +269,13 @@ At session start, check for an active flow:
269
269
 
270
270
  - **Test-first always** — No implementation without a failing test
271
271
  - **Minimal code** — Don't build what isn't asked for
272
- - **Follow existing patterns** — Search KB for conventions before creating new ones
272
+ - **Follow existing patterns** — Search AI Kit for conventions before creating new ones
273
273
  - **Never modify tests to make them pass** — Fix the implementation instead
274
274
  - **Run \`check\` after every change** — Catch errors early
275
275
  - **Loop-break** — If the same test fails 3 times with the same error after your fixes, STOP. Re-read the error from scratch, check your assumptions with \`trace\` or \`symbol\`, and try a fundamentally different approach. Do not attempt a 4th fix in the same direction
276
276
  - **Think-first for complex tasks** — If a task involves 3+ files or non-obvious logic, outline your approach before writing code. Check existing patterns with \`search\` first. Design, then implement`,
277
277
 
278
- Frontend: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
278
+ Frontend: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
279
279
 
280
280
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
281
281
 
@@ -294,13 +294,13 @@ At session start, check for an active flow:
294
294
  - **Responsive by default** — Mobile-first, test all breakpoints
295
295
  - **Test-first** — Component tests before implementation`,
296
296
 
297
- Debugger: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
297
+ Debugger: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
298
298
 
299
299
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
300
300
 
301
301
  ## Debugging Protocol
302
302
 
303
- 1. **KB Recall** — Search for known issues matching this error pattern
303
+ 1. **AI Kit Recall** — Search for known issues matching this error pattern
304
304
  2. **Reproduce** — Confirm the error, use \`parse_output\` on stack traces and build errors for structured analysis
305
305
  3. **Verify targets exist** — Before tracing, confirm the files and functions mentioned in the error actually exist. Use \`find\` or \`symbol\` to verify paths and signatures. **Never trace into a file you haven't confirmed exists**
306
306
  4. **Trace** — \`symbol\`, \`trace\`, follow call chains backwards
@@ -318,13 +318,13 @@ At session start, check for an active flow:
318
318
  - **Verify before asserting** — Don't claim a function has a certain signature without checking via \`symbol\`. Don't reference a config option without confirming it exists in the codebase
319
319
  - **Break debug loops** — If you apply a fix, test, and get the same error 3 times: your hypothesis is wrong. STOP, discard your current theory, re-examine the error output and trace from a different entry point. Return \`ESCALATE\` if a fresh approach also fails`,
320
320
 
321
- Refactor: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
321
+ Refactor: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
322
322
 
323
323
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
324
324
 
325
325
  ## Refactoring Protocol
326
326
 
327
- 1. **KB Recall** — Search for established patterns and conventions
327
+ 1. **AI Kit Recall** — Search for established patterns and conventions
328
328
  2. **Analyze** — \`analyze_structure\`, \`analyze_patterns\`, \`dead_symbols\`
329
329
  3. **Ensure test coverage** — Run existing tests, add coverage for untested paths
330
330
  4. **Refactor in small steps** — Each step must keep tests green
@@ -344,7 +344,7 @@ At session start, check for an active flow:
344
344
  |-------|--------------|
345
345
  | \`lesson-learned\` | After completing a refactor — extract principles from the before/after diff |`,
346
346
 
347
- Security: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
347
+ Security: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
348
348
 
349
349
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
350
350
 
@@ -359,7 +359,7 @@ At session start, check for an active flow:
359
359
 
360
360
  ## Security Review Protocol
361
361
 
362
- 1. **KB Recall** — \`search("security findings <area>")\` + \`list()\` for past security decisions and known issues
362
+ 1. **AI Kit Recall** — \`search("security findings <area>")\` + \`list()\` for past security decisions and known issues
363
363
  2. **Audit** — Run \`audit\` for a comprehensive project health check, then \`find\` for specific vulnerability patterns
364
364
  3. **OWASP Top 10 Scan** — Check each category systematically
365
365
  4. **Dependency Audit** — Check for known CVEs in dependencies
@@ -389,7 +389,7 @@ At session start, check for an active flow:
389
389
  1. **[SEVERITY]** Title — Description, file:line, remediation
390
390
  \`\`\``,
391
391
 
392
- Documenter: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
392
+ Documenter: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
393
393
 
394
394
  **Read _shared/code-agent-base.md NOW** — it contains the Information Lookup Order, FORGE, and handoff protocols.
395
395
 
@@ -404,7 +404,7 @@ At session start, check for an active flow:
404
404
 
405
405
  ## Documentation Protocol
406
406
 
407
- 1. **KB Recall** — \`search("documentation <area>")\` + \`list()\` for existing docs, conventions, architecture decisions
407
+ 1. **AI Kit Recall** — \`search("documentation <area>")\` + \`list()\` for existing docs, conventions, architecture decisions
408
408
  2. **Analyze** — \`analyze_structure\`, \`analyze_entry_points\`, \`file_summary\`
409
409
  3. **Draft** — Write documentation following project conventions
410
410
  4. **Cross-reference** — Link to related docs, ensure consistency
@@ -432,7 +432,7 @@ At session start, check for an active flow:
432
432
  | \`c4-architecture\` | When documenting system architecture — generate C4 Mermaid diagrams |
433
433
  | \`adr-skill\` | When documenting architecture decisions — create or update ADRs |`,
434
434
 
435
- Explorer: `**Read \`AGENTS.md\`** in the workspace root for project conventions and KB protocol.
435
+ Explorer: `**Read \`AGENTS.md\`** in the workspace root for project conventions and AI Kit protocol.
436
436
 
437
437
  ## MANDATORY FIRST ACTION
438
438
 
@@ -448,7 +448,7 @@ At session start, check for an active flow:
448
448
 
449
449
  ## Exploration Protocol
450
450
 
451
- 1. **KB Recall** — \`search\` for existing analysis on this area
451
+ 1. **AI Kit Recall** — \`search\` for existing analysis on this area
452
452
  2. **Discover** — Use \`find\`, \`symbol\`, \`scope_map\` to locate relevant files
453
453
  3. **Analyze** — Use \`analyze_structure\`, \`analyze_dependencies\`, \`file_summary\`
454
454
  4. **Compress** — Use \`compact\` for targeted file sections, \`digest\` when synthesizing 3+ sources, \`stratum_card\` for files you'll reference repeatedly
@@ -11,7 +11,7 @@
11
11
 
12
12
  export const PLUGINS = {
13
13
  aikit: {
14
- description: 'KB search, analysis, memory, and developer tools',
14
+ description: 'AI Kit search, analysis, memory, and developer tools',
15
15
  source: 'scaffold/general/skills/aikit/SKILL.md',
16
16
  required: true,
17
17
  },
@@ -10,17 +10,17 @@
10
10
 
11
11
  export const PROMPTS = {
12
12
  ask: {
13
- description: 'Quick research question — find answer using KB + web search',
13
+ description: 'Quick research question — find answer using AI Kit + web search',
14
14
  agent: 'Researcher-Alpha',
15
15
  tools: ['search', 'web_search', 'web_fetch', 'compact', 'file_summary', 'remember'],
16
16
  content: `## Quick Research
17
17
 
18
- 1. **KB Recall** — Search knowledge base for existing answers
19
- 2. **Web Search** — If KB has no relevant results, search the web
18
+ 1. **AI Kit Recall** — Search knowledge base for existing answers
19
+ 2. **Web Search** — If AI Kit has no relevant results, search the web
20
20
  3. **Synthesize** — Combine findings into a clear, concise answer
21
21
  4. **Remember** — If the answer is broadly useful, persist it to KB
22
22
 
23
- **Always cite sources** — KB entries, file paths, or URLs.`,
23
+ **Always cite sources** — AI Kit entries, file paths, or URLs.`,
24
24
  },
25
25
 
26
26
  debug: {
@@ -40,7 +40,7 @@ export const PROMPTS = {
40
40
  content: `## Debug Workflow
41
41
 
42
42
  1. **Parse Error** — Use \`parse_output\` on the error message/stack trace
43
- 2. **KB Recall** — Search for known issues matching this pattern
43
+ 2. **AI Kit Recall** — Search for known issues matching this pattern
44
44
  3. **Reproduce** — Run the failing command/test to confirm
45
45
  4. **Trace** — Use \`symbol\` and \`trace\` to follow the call chain
46
46
  5. **Diagnose** — Form hypothesis, gather evidence
@@ -91,7 +91,7 @@ Refer to the Orchestrator agent's full instructions for the detailed workflow.`,
91
91
  ],
92
92
  content: `## Planning Workflow
93
93
 
94
- 1. **KB Recall** — Search for past plans, architecture decisions
94
+ 1. **AI Kit Recall** — Search for past plans, architecture decisions
95
95
  2. **FORGE Ground** — Classify tier, scope map, seed unknowns
96
96
  3. **Research** — Explore codebase, understand subsystems
97
97
  4. **Draft Plan** — 3-10 phases with agent assignments, TDD steps
@@ -14,12 +14,12 @@ export const PROTOCOLS = {
14
14
  ## Invocation Mode Detection
15
15
 
16
16
  You may be invoked in two modes:
17
- 1. **Direct** — you have full KB tool access. Follow the **Information Lookup Order** below.
17
+ 1. **Direct** — you have full AI Kit tool access. Follow the **Information Lookup Order** below.
18
18
  2. **Sub-agent** (via Orchestrator) — you may have limited MCP tool access.
19
- The Orchestrator provides context under "## Prior KB Context" in your prompt.
20
- If present, skip KB Recall and use the provided context instead.
19
+ The Orchestrator provides context under "## Prior AI Kit Context" in your prompt.
20
+ If present, skip AI Kit Recall and use the provided context instead.
21
21
 
22
- **Detection:** If your prompt contains "## Prior KB Context", you are in sub-agent mode.
22
+ **Detection:** If your prompt contains "## Prior AI Kit Context", you are in sub-agent mode.
23
23
 
24
24
  ---
25
25
 
@@ -82,7 +82,7 @@ list() // see all stored knowledge entries
82
82
 
83
83
  ### Step 4: Tool Discovery
84
84
 
85
- If unsure which KB tool to use → run \`guide({ topic: "what you need" })\` for recommendations.
85
+ If unsure which AI Kit tool to use → run \`guide({ topic: "what you need" })\` for recommendations.
86
86
 
87
87
  ## FORGE Protocol (Quality Gate)
88
88
 
@@ -176,7 +176,7 @@ remember({
176
176
 
177
177
  **If you complete a task without remembering anything, you likely missed something.** Review what you learned.
178
178
 
179
- For outdated KB entries → \`update(path, content, reason)\`
179
+ For outdated AI Kit entries → \`update(path, content, reason)\`
180
180
 
181
181
  ---
182
182
 
@@ -287,7 +287,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
287
287
 
288
288
  ## Research Methodology
289
289
 
290
- ### Phase 1: KB Recall (BLOCKING)
290
+ ### Phase 1: AI Kit Recall (BLOCKING)
291
291
  \`\`\`
292
292
  search("task keywords")
293
293
  scope_map("what you need to investigate")
@@ -358,8 +358,8 @@ When invoked for a decision analysis, you receive a specific question. You MUST:
358
358
 
359
359
  ## Invocation Mode Detection
360
360
 
361
- - **Direct** (has KB tools) → Follow the **Information Lookup Order** from code-agent-base
362
- - **Sub-agent** (prompt has "## Prior KB Context") → Skip KB Recall, use provided context
361
+ - **Direct** (has AI Kit tools) → Follow the **Information Lookup Order** from code-agent-base
362
+ - **Sub-agent** (prompt has "## Prior AI Kit Context") → Skip AI Kit Recall, use provided context
363
363
 
364
364
  ---
365
365
 
@@ -387,7 +387,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
387
387
 
388
388
  ## Review Workflow
389
389
 
390
- 1. **KB Recall** — \`search("conventions relevant-area")\` + \`list()\` for past review findings, patterns
390
+ 1. **AI Kit Recall** — \`search("conventions relevant-area")\` + \`list()\` for past review findings, patterns
391
391
  2. **Blast Radius** — \`blast_radius\` on changed files to understand impact
392
392
  3. **FORGE Classify** — \`forge_classify\` to determine review depth
393
393
  4. **Review** — Evaluate against all dimensions below
@@ -452,7 +452,7 @@ Follow the **MANDATORY FIRST ACTION** and **Information Lookup Order** from code
452
452
 
453
453
  ## Review Workflow
454
454
 
455
- 1. **KB Recall** — \`search("architecture decisions boundaries")\` + \`list()\` for past ADRs, patterns
455
+ 1. **AI Kit Recall** — \`search("architecture decisions boundaries")\` + \`list()\` for past ADRs, patterns
456
456
  2. **Analyze** — \`analyze_structure\`, \`analyze_dependencies\`, \`blast_radius\`
457
457
  3. **Evaluate** — Check all dimensions below
458
458
  4. **Report** — Structured findings with verdict
@@ -529,7 +529,7 @@ Trigger the decision protocol when there is an **unresolved non-trivial technica
529
529
 
530
530
  > Follow the FORGE (Fact-Oriented Reasoning with Graduated Evidence) protocol for all code generation and modification tasks.
531
531
 
532
- ## KB Tools for FORGE
532
+ ## AI Kit Tools for FORGE
533
533
 
534
534
  | Tool | Purpose | When |
535
535
  |------|---------|------|
@@ -5,7 +5,7 @@
5
5
  * `ide` — IDE-native tool permissions, keyed by role. Each IDE adapter
6
6
  * maps these to its own format (e.g., Copilot tool identifiers).
7
7
  *
8
- * When KB adds/removes a tool, update `kb` here — all agents pick it up.
8
+ * When AI Kit adds/removes a tool, update `kb` here — all agents pick it up.
9
9
  *
10
10
  * NOTE: The copilot adapter currently uses `aikit/*` wildcard instead
11
11
  * of listing individual tools. This array is kept as a reference and for future
@@ -1,124 +1,124 @@
1
- ---
2
- name: execute
3
- description: Implement all tasks from the task breakdown, dispatching agents in parallel where possible.
4
- ---
5
-
6
- # Execution
7
-
8
- ## Purpose
9
-
10
- Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
11
-
12
- ## Inputs
13
-
14
- - `.spec/<slug>/tasks.md` — the atomic task list with dependencies and agent assignments
15
-
16
- ## Process
17
-
18
- 1. **Load tasks** — Read task graph, dependencies, and parallelism map
19
- 2. **Execute by batch** — For each batch in the parallelism map:
20
- a. Dispatch assigned agents in parallel (different files = safe parallelism)
21
- b. Each agent receives: task scope, affected files, acceptance criteria, relevant code context via `compact()`/`digest()`
22
- c. Wait for all agents in batch to complete
23
- d. Run `check({})` + `test_run({})` after each batch
24
- e. Fix any failures before proceeding to next batch
25
- 3. **Track progress** — Update task checkboxes as each completes
26
- 4. **Handle failures** — If an agent reports `BLOCKED` or `NEEDS_CONTEXT`:
27
- - Max 2 retries per task with refined context
28
- - If still blocked, escalate to user
29
- 5. **Final validation** — After all batches: `check({})` + `test_run({})` must pass
30
-
31
- ## Outputs
32
-
33
- Produce `.spec/<slug>/progress.md` with:
34
-
35
- ```markdown
36
- # Execution Progress: <feature title>
37
-
38
- ## Task Status
39
- - [x] T1.1: <description> — DONE
40
- - [x] T1.2: <description> — DONE
41
- - [x] T2.1: <description> — DONE
42
- - [ ] T2.2: <description> — IN PROGRESS
43
- ...
44
-
45
- ## Changes Made
46
- | File | Change | Task |
47
- |------|--------|------|
48
- | <file> | <description> | T1.1 |
49
- | ... | ... | ... |
50
-
51
- ## Tests Added/Modified
52
- <list of test files and what they cover>
53
-
54
- ## Validation
55
- - check: PASS/FAIL
56
- - test_run: PASS/FAIL (<N> passed, <M> failed)
57
-
58
- ## Deviations
59
- <any changes from the task plan and why>
60
-
61
- ## Blocked Items
62
- <items that needed user intervention, if any>
63
- ```
64
-
65
- ## Agents
66
-
67
- | Agent | Role |
68
- |-------|------|
69
- | **Orchestrator** | Coordinates batch execution, handles failures and retries |
70
- | **Implementer** | Primary code writer for backend, logic, and infrastructure tasks |
71
- | **Frontend** | UI/UX implementation for React components, styling, responsive design |
72
- | **Refactor** | Code cleanup, restructuring, and pattern alignment tasks |
73
-
74
- **Parallelism rules**:
75
- - Read-only agents: unlimited parallelism
76
- - File-modifying agents: parallel ONLY on completely different files
77
- - Max 4 concurrent file-modifying agents
78
-
79
- ## Foundation Integration
80
-
81
- Load these skills BEFORE executing this step:
82
-
83
- | Skill | Purpose | When |
84
- |-------|---------|------|
85
- | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
86
- | `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
87
- | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
88
- | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
89
-
90
- ### Presentation Rules
91
- - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
92
- - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
93
- - Tables, charts, progress tracking, code review findings → always present
94
- - Artifact content and summaries → present with structured layout
95
- - Only use plain text for brief confirmations and simple questions
96
-
97
- ### Orchestrator Dispatch Protocol
98
-
99
- Follow the `multi-agents-development` skill patterns for dispatch:
100
-
101
- 1. **Independence Check** before parallelizing:
102
- - Same files? → sequential
103
- - Shared mutable state? → sequential
104
- - Execution-order dependent? → sequential
105
- - Need shared new types? → define contract first, then parallel
106
- - All clear? → **parallel dispatch**
107
-
108
- 2. **Subagent Context Template** (each dispatch includes):
109
- - **Scope**: exact files + boundary (do NOT touch)
110
- - **Goal**: acceptance criteria, testable
111
- - **Arch Context**: actual code snippets via `compact()`/`digest()`
112
- - **Constraints**: patterns, conventions, anti-patterns
113
- - **Self-Review**: checklist before declaring DONE
114
-
115
- 3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
116
- 4. **Max 2 retries** per task — then escalate to user
117
-
118
- ## Completion Criteria
119
-
120
- - [ ] All tasks marked completed
121
- - [ ] `check({})` passes
122
- - [ ] `test_run({})` passes
123
- - [ ] No blocked items remaining
124
- - [ ] `.spec/<slug>/progress.md` written
1
+ ---
2
+ name: execute
3
+ description: Implement all tasks from the task breakdown, dispatching agents in parallel where possible.
4
+ ---
5
+
6
+ # Execution
7
+
8
+ ## Purpose
9
+
10
+ Execute all tasks from the breakdown, dispatching implementation agents in batches for maximum parallelism while maintaining correctness.
11
+
12
+ ## Inputs
13
+
14
+ - `.spec/<slug>/tasks.md` — the atomic task list with dependencies and agent assignments
15
+
16
+ ## Process
17
+
18
+ 1. **Load tasks** — Read task graph, dependencies, and parallelism map
19
+ 2. **Execute by batch** — For each batch in the parallelism map:
20
+ a. Dispatch assigned agents in parallel (different files = safe parallelism)
21
+ b. Each agent receives: task scope, affected files, acceptance criteria, relevant code context via `compact()`/`digest()`
22
+ c. Wait for all agents in batch to complete
23
+ d. Run `check({})` + `test_run({})` after each batch
24
+ e. Fix any failures before proceeding to next batch
25
+ 3. **Track progress** — Update task checkboxes as each completes
26
+ 4. **Handle failures** — If an agent reports `BLOCKED` or `NEEDS_CONTEXT`:
27
+ - Max 2 retries per task with refined context
28
+ - If still blocked, escalate to user
29
+ 5. **Final validation** — After all batches: `check({})` + `test_run({})` must pass
30
+
31
+ ## Outputs
32
+
33
+ Produce `.spec/<slug>/progress.md` with:
34
+
35
+ ```markdown
36
+ # Execution Progress: <feature title>
37
+
38
+ ## Task Status
39
+ - [x] T1.1: <description> — DONE
40
+ - [x] T1.2: <description> — DONE
41
+ - [x] T2.1: <description> — DONE
42
+ - [ ] T2.2: <description> — IN PROGRESS
43
+ ...
44
+
45
+ ## Changes Made
46
+ | File | Change | Task |
47
+ |------|--------|------|
48
+ | <file> | <description> | T1.1 |
49
+ | ... | ... | ... |
50
+
51
+ ## Tests Added/Modified
52
+ <list of test files and what they cover>
53
+
54
+ ## Validation
55
+ - check: PASS/FAIL
56
+ - test_run: PASS/FAIL (<N> passed, <M> failed)
57
+
58
+ ## Deviations
59
+ <any changes from the task plan and why>
60
+
61
+ ## Blocked Items
62
+ <items that needed user intervention, if any>
63
+ ```
64
+
65
+ ## Agents
66
+
67
+ | Agent | Role |
68
+ |-------|------|
69
+ | **Orchestrator** | Coordinates batch execution, handles failures and retries |
70
+ | **Implementer** | Primary code writer for backend, logic, and infrastructure tasks |
71
+ | **Frontend** | UI/UX implementation for React components, styling, responsive design |
72
+ | **Refactor** | Code cleanup, restructuring, and pattern alignment tasks |
73
+
74
+ **Parallelism rules**:
75
+ - Read-only agents: unlimited parallelism
76
+ - File-modifying agents: parallel ONLY on completely different files
77
+ - Max 4 concurrent file-modifying agents
78
+
79
+ ## Foundation Integration
80
+
81
+ Load these skills BEFORE executing this step:
82
+
83
+ | Skill | Purpose | When |
84
+ |-------|---------|------|
85
+ | `aikit` | Core MCP tools — search, analyze, remember, validate | Always (auto-loaded) |
86
+ | `present` | Rich rendering for any structured output — assessments, reports, comparisons, reviews, status boards, tables, charts, and all artifact content | Use for ANY output that benefits from rich rendering, not just dashboards |
87
+ | `multi-agents-development` | Dispatch templates, task decomposition, review pipeline patterns | Before dispatching any subagent |
88
+ | `brainstorming` | Structured ideation for design/creative decisions | Before any design choice or new feature exploration |
89
+
90
+ ### Presentation Rules
91
+ - Use `present` for **any output** that benefits from rich rendering — not limited to dashboards
92
+ - Assessments, reports, comparisons, reviews, status boards → `present({ format: "html" })`
93
+ - Tables, charts, progress tracking, code review findings → always present
94
+ - Artifact content and summaries → present with structured layout
95
+ - Only use plain text for brief confirmations and simple questions
96
+
97
+ ### Orchestrator Dispatch Protocol
98
+
99
+ Follow the `multi-agents-development` skill patterns for dispatch:
100
+
101
+ 1. **Independence Check** before parallelizing:
102
+ - Same files? → sequential
103
+ - Shared mutable state? → sequential
104
+ - Execution-order dependent? → sequential
105
+ - Need shared new types? → define contract first, then parallel
106
+ - All clear? → **parallel dispatch**
107
+
108
+ 2. **Subagent Context Template** (each dispatch includes):
109
+ - **Scope**: exact files + boundary (do NOT touch)
110
+ - **Goal**: acceptance criteria, testable
111
+ - **Arch Context**: actual code snippets via `compact()`/`digest()`
112
+ - **Constraints**: patterns, conventions, anti-patterns
113
+ - **Self-Review**: checklist before declaring DONE
114
+
115
+ 3. **Status Protocol**: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
116
+ 4. **Max 2 retries** per task — then escalate to user
117
+
118
+ ## Completion Criteria
119
+
120
+ - [ ] All tasks marked completed
121
+ - [ ] `check({})` passes
122
+ - [ ] `test_run({})` passes
123
+ - [ ] No blocked items remaining
124
+ - [ ] `.spec/<slug>/progress.md` written