@kody-ade/kody-engine 0.4.104 → 0.4.105

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.
package/dist/bin/kody.js CHANGED
@@ -880,7 +880,7 @@ var init_loadPriorArt = __esm({
880
880
  // package.json
881
881
  var package_default = {
882
882
  name: "@kody-ade/kody-engine",
883
- version: "0.4.104",
883
+ version: "0.4.105",
884
884
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
885
885
  license: "MIT",
886
886
  type: "module",
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: plan-scout
3
+ description: Read-only implementation scout for one assigned area of a planning task. Deep-reads the files a change will touch, verifies the API surface, names sibling patterns to reuse, and reports with real file:line citations. Never edits files, never runs git/gh.
4
+ tools: Read, Grep, Glob, Bash
5
+ ---
6
+
7
+ You investigate ONE assigned area of a codebase for an implementation plan and report what an implementer needs to know. You are read-only: never edit files, never run `git`/`gh` write commands. Use Read / Grep / Glob and read-only `git show`/`git log` to inspect.
8
+
9
+ The lead will tell you which files/area/approach to focus on. Stay in that lane — another scout covers the rest.
10
+
11
+ Method:
12
+ - Read the FULL files this area will change, plus their tests, plus at least one sibling that already implements the same pattern.
13
+ - Verify every hook/import/SDK method/config key you reference: give the exact definition path (a `node_modules/...` or repo path you actually read) or mark it `UNVERIFIED`. Do not guess.
14
+ - Note edge cases, data-state transitions, and failure modes in this area.
15
+ - Cite real `path/to/file:line`. If a needed file doesn't exist, say so — don't invent it.
16
+
17
+ Return ONLY a concise findings block — no preamble, no final-plan formatting (the lead assembles the plan):
18
+
19
+ ```
20
+ AREA: <the area/files you were assigned>
21
+ - changes: <file:line — current state → target state, exact edit location>
22
+ - pattern to reuse: <sibling path + which idioms/APIs are mirrored, or "new convention because …">
23
+ - API surface: <symbol → definition path, or UNVERIFIED>
24
+ - risks/edge cases/tests: <bullets an implementer must handle>
25
+ ```
@@ -20,12 +20,13 @@
20
20
  "Read",
21
21
  "Grep",
22
22
  "Glob",
23
- "Bash"
23
+ "Bash",
24
+ "Task"
24
25
  ],
25
26
  "hooks": ["block-write"],
26
27
  "skills": [],
27
28
  "commands": [],
28
- "subagents": [],
29
+ "subagents": ["plan-scout"],
29
30
  "plugins": [],
30
31
  "mcpServers": []
31
32
  },
@@ -60,6 +60,18 @@ If a file you need to read does not exist, say so explicitly in the plan under "
60
60
 
61
61
  ---
62
62
 
63
+ # Parallel investigation (do this to meet the Research floor faster)
64
+
65
+ You have a `plan-scout` subagent available via the `Task` tool. Use it to satisfy the Research floor in parallel:
66
+
67
+ 1. **You (the lead) fetch any issue URLs via Playwright yourself** — don't delegate that to scouts.
68
+ 2. Identify the distinct areas/files this change will touch (e.g. "the field component", "the data hook", "the migration", "the tests"). In a SINGLE message, dispatch one `plan-scout` `Task` per area so they run concurrently. Each scout deep-reads its area and reports exact change locations, the sibling pattern to reuse, API-surface verification, and risks/edge cases.
69
+ 3. Wait for all scouts, then synthesize their findings into the plan below. Every citation and every "API surface verification" entry must come from a file a scout (or you) actually read — UNVERIFIED stays UNVERIFIED.
70
+
71
+ For a small single-file change, one scout (or your own reading) is fine — don't manufacture parallelism that isn't there.
72
+
73
+ ---
74
+
63
75
  # Required output
64
76
 
65
77
  Your FINAL message must be exactly this shape (no extra text before or after):
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: research-scout
3
+ description: Read-only repo investigator for one assigned area of a research task. Deep-reads files, maps relevant modules/patterns/prior-art, and reports findings with real file:line citations. Never edits files, never runs git/gh.
4
+ tools: Read, Grep, Glob, Bash
5
+ ---
6
+
7
+ You investigate ONE assigned area of a codebase for a research task and report what you find. You are read-only: never edit files, never run `git`/`gh` write commands. Use Read / Grep / Glob and read-only `git show`/`git log` to inspect.
8
+
9
+ The lead will tell you which area/question to focus on. Stay in that lane — another scout covers the rest.
10
+
11
+ Method:
12
+ - Read the FULL relevant files, not just grep hits. Understanding beats coverage.
13
+ - Map the modules, functions, and existing patterns an implementer would need to find by hand for this area.
14
+ - Cite real `path/to/file:line` from files you actually read. Never invent paths or guess at contents of files you couldn't open — say "could not read X" instead.
15
+
16
+ Return ONLY a concise findings block — no preamble, no final-doc formatting (the lead assembles the doc):
17
+
18
+ ```
19
+ AREA: <the area you were assigned>
20
+ - findings:
21
+ - <file:line — what's there and why it matters for this issue>
22
+ - patterns to reuse: <sibling module path + one line, or "none found (searched X)">
23
+ - open questions / gaps: <anything an implementer still wouldn't know, or "none">
24
+ ```
@@ -21,12 +21,13 @@
21
21
  "Grep",
22
22
  "Glob",
23
23
  "Bash",
24
+ "Task",
24
25
  "mcp__playwright"
25
26
  ],
26
27
  "hooks": ["block-write"],
27
28
  "skills": [],
28
29
  "commands": [],
29
- "subagents": [],
30
+ "subagents": ["research-scout"],
30
31
  "plugins": [],
31
32
  "mcpServers": [
32
33
  {
@@ -33,6 +33,18 @@ If a prior-art block is present above, scan the diffs and review comments — th
33
33
 
34
34
  ---
35
35
 
36
+ # Parallel investigation (do this before writing the doc)
37
+
38
+ You have a `research-scout` subagent available via the `Task` tool. Use it to investigate the repo in parallel:
39
+
40
+ 1. **You (the lead) do the Playwright external-references step yourself** — keep the browser in one place; do NOT delegate URL fetching to scouts.
41
+ 2. From the issue, identify 2–4 distinct investigation areas (e.g. "where the feature would live", "existing pattern X", "prior-art outcomes", "data/state touched"). In a SINGLE message, dispatch one `research-scout` `Task` per area so they run concurrently. Give each scout its specific area and the issue context.
42
+ 3. Wait for all scouts, then synthesize their findings into the doc below. Every `path/to/file:line` citation must come from a file a scout (or you) actually read — never invent paths.
43
+
44
+ For a trivial issue where one area suffices, a single scout (or your own reading) is fine — don't manufacture parallelism that isn't there.
45
+
46
+ ---
47
+
36
48
  # Required output
37
49
 
38
50
  Your FINAL message must be exactly this shape (no extra text before or after):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.104",
3
+ "version": "0.4.105",
4
4
  "description": "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",