developing-agent-forge 2.4.0 → 2.5.0

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 (60) hide show
  1. package/README.md +17 -48
  2. package/README.zh-CN.md +17 -48
  3. package/developing-forge.yaml +0 -10
  4. package/dist/agents/developer.d.ts.map +1 -1
  5. package/dist/agents/developer.js +7 -15
  6. package/dist/agents/developer.js.map +1 -1
  7. package/dist/agents/factory.d.ts.map +1 -1
  8. package/dist/agents/factory.js +0 -2
  9. package/dist/agents/factory.js.map +1 -1
  10. package/dist/agents/index.d.ts +0 -1
  11. package/dist/agents/index.d.ts.map +1 -1
  12. package/dist/agents/index.js +0 -1
  13. package/dist/agents/index.js.map +1 -1
  14. package/dist/agents/manager.d.ts.map +1 -1
  15. package/dist/agents/manager.js +7 -15
  16. package/dist/agents/manager.js.map +1 -1
  17. package/dist/agents/prompts.d.ts +0 -1
  18. package/dist/agents/prompts.d.ts.map +1 -1
  19. package/dist/agents/prompts.js +0 -3
  20. package/dist/agents/prompts.js.map +1 -1
  21. package/dist/agents/reviewer.d.ts.map +1 -1
  22. package/dist/agents/reviewer.js +1 -5
  23. package/dist/agents/reviewer.js.map +1 -1
  24. package/dist/agents/types.d.ts +0 -1
  25. package/dist/agents/types.d.ts.map +1 -1
  26. package/dist/agents/types.js.map +1 -1
  27. package/dist/cli.js +2 -2
  28. package/dist/cli.js.map +1 -1
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/pipeline/index.d.ts +0 -1
  34. package/dist/pipeline/index.d.ts.map +1 -1
  35. package/dist/pipeline/index.js +0 -1
  36. package/dist/pipeline/index.js.map +1 -1
  37. package/dist/pipeline/pipeline.d.ts +0 -9
  38. package/dist/pipeline/pipeline.d.ts.map +1 -1
  39. package/dist/pipeline/pipeline.js +2 -9
  40. package/dist/pipeline/pipeline.js.map +1 -1
  41. package/dist/pipeline/project-devloop.d.ts +1 -1
  42. package/dist/pipeline/project-devloop.d.ts.map +1 -1
  43. package/dist/pipeline/project-devloop.js +2 -3
  44. package/dist/pipeline/project-devloop.js.map +1 -1
  45. package/dist/pipeline/task-devloop.d.ts +1 -1
  46. package/dist/pipeline/task-devloop.d.ts.map +1 -1
  47. package/dist/pipeline/task-devloop.js +1 -2
  48. package/dist/pipeline/task-devloop.js.map +1 -1
  49. package/package.json +2 -5
  50. package/dist/agents/trajectory-optimizer.d.ts +0 -11
  51. package/dist/agents/trajectory-optimizer.d.ts.map +0 -1
  52. package/dist/agents/trajectory-optimizer.js +0 -33
  53. package/dist/agents/trajectory-optimizer.js.map +0 -1
  54. package/dist/pipeline/pipelineskill.d.ts +0 -109
  55. package/dist/pipeline/pipelineskill.d.ts.map +0 -1
  56. package/dist/pipeline/pipelineskill.js +0 -45
  57. package/dist/pipeline/pipelineskill.js.map +0 -1
  58. package/metaskills/coding-style/METASKILL.md +0 -214
  59. package/skills/coding-style/SKILL.md +0 -802
  60. package/skills/coding-style/agents/openai.yaml +0 -4
package/README.md CHANGED
@@ -11,7 +11,6 @@ Goal-driven code development pipelines for coding agents, built on `coding-agent
11
11
  The usual entry point is [`develop.sh`](develop.sh), which calls `npm run developing` with paths for:
12
12
 
13
13
  - the goal file passed with `--goal-path`
14
- - `skills/coding-style/SKILL.md`
15
14
  - the project progress memory directory passed with `--project-progress-memory-path`
16
15
  - the code design memory directory passed with `--code-design-memory-path`
17
16
  - the target codebase directory
@@ -23,31 +22,23 @@ The pipeline works in the configured `--target-path`, reads the current high-lev
23
22
 
24
23
  `package.json` publishes an ESM package named `developing-agent-forge` for Node.js `>=20.19`.
25
24
 
26
- - CLI bin: `developing-agent-forge`, backed by [`src/cli.ts`](src/cli.ts), with `developing` and `developing-skill` pipelines.
25
+ - CLI bin: `developing-agent-forge`, backed by [`src/cli.ts`](src/cli.ts), with the `developing` pipeline.
27
26
  - Public imports: `developing-agent-forge`, `developing-agent-forge/agents`, and `developing-agent-forge/pipeline`.
28
27
  - Runtime dependencies: `coding-agent-forge` for agent/pipeline CLI execution and `memory-agent-forge` for durable memory.
29
- - Published assets include `dist`, `developing-forge.yaml`, `skills`, `metaskills`, both READMEs, and `LICENSE`.
28
+ - Published assets include `dist`, `developing-forge.yaml`, both READMEs, and `LICENSE`.
30
29
 
31
30
  TypeScript API import examples:
32
31
 
33
32
  ```ts
34
- import { developingPipeline, developingSkillPipeline } from "developing-agent-forge";
33
+ import { developingPipeline } from "developing-agent-forge";
35
34
  import { CodingManagerAgent } from "developing-agent-forge/agents";
36
35
  import { ProjectDevLoop } from "developing-agent-forge/pipeline";
37
36
  ```
38
37
 
39
- ## Core Idea: Developing And Coding Style
38
+ ## Core Idea
40
39
 
41
40
  `src` turns the current goal into a repeatable code-writing trajectory. `coding-manager` reads the current repository, the goal, and remembered context, writes one bounded Task Brief or `FINISHED`, `developer` edits the target repository, and `code-reviewer` returns `ACCEPT`, `REVISE`, or `REDIRECT`.
42
41
 
43
- The coding-style skill is [`skills/coding-style/SKILL.md`](skills/coding-style/SKILL.md). Its job is to control the code-writing agent's code structure and style. The upstream user task decides what to implement; this skill decides how to keep the implementation readable, local, low-coupling, and consistent with the current framework.
44
-
45
- Every developer run loads the configured coding-style skill through `--coding-style-skill-path`. [`agents/developer.ts`](src/agents/developer.ts) prepends the instruction from [`agents/prompts.ts`](src/agents/prompts.ts): load and follow that skill before reading the repository, current goal, context documents named by the goal, and Task Brief. That makes the writing agent use the same code-structure and style preferences across features, refactors, harness/test work, exports, and framework docs.
46
-
47
- `coding-style` is generic for code-writing tasks. It does not decide task priority or repository template initialization. It only keeps code concise, readable, low-friction, easy to modify, and aligned with the existing repository structure.
48
-
49
- Put durable code-structure and style preferences in [`metaskills/coding-style/METASKILL.md`](metaskills/coding-style/METASKILL.md), then run [`develop-skill.sh`](develop-skill.sh) from the repository root to update the skill.
50
-
51
42
  ## Quick Start
52
43
 
53
44
  From the repository root, run the prepared wrapper:
@@ -83,14 +74,13 @@ Useful local script entry points:
83
74
 
84
75
  - `npm run dev -- ...` runs `tsx src/cli.ts`.
85
76
  - `npm run developing -- ...` runs `tsx src/cli.ts developing`.
86
- - `npm run developing-skill -- ...` runs `tsx src/cli.ts developing-skill`.
87
77
  - `npm run clean`, `npm run format`, and `npm run format:check` handle generated output and formatting.
88
78
 
89
79
  ## Goal File And Memory Context
90
80
 
91
- `developing` and `developing-skill` both accept `--goal-path <path>`. The pipeline reads that file once at the start of the run and passes its contents to `coding-manager`, `developer`, `code-reviewer`, and `trajectory-optimizer` as the current high-level objective.
81
+ `developing` accepts `--goal-path <path>`. The pipeline reads that file once at the start of the run and passes its contents to `coding-manager`, `developer`, and `code-reviewer` as the current high-level objective.
92
82
 
93
- Each time you want to execute the next new task, update the file passed to `--goal-path` before rerunning [`develop.sh`](develop.sh) or [`develop-skill.sh`](develop-skill.sh). Put any stable project contract, task context paths, constraints, or task focus directly in that goal file.
83
+ Each time you want to execute the next new task, update the file passed to `--goal-path` before rerunning [`develop.sh`](develop.sh). Put any stable project contract, task context paths, constraints, or task focus directly in that goal file.
94
84
 
95
85
  The configured `--project-progress-memory-path` stores project progress memory used by `coding-manager` for task selection and project continuity. The configured `--code-design-memory-path` stores code design memory used by `developer` while completing the selected task. If old context is no longer useful, delete or edit the memory files under the relevant directory before rerunning the pipeline.
96
86
 
@@ -106,7 +96,6 @@ npm run developing -- \
106
96
  --achive-dir "output/developing-archives" \
107
97
  --project-progress-memory-path "output/developing/project-progress-memory" \
108
98
  --code-design-memory-path "output/developing/code-design-memory" \
109
- --coding-style-skill-path "skills/coding-style" \
110
99
  --goal-path "output/goal.md" \
111
100
  --max-iterations "100" \
112
101
  --max-task-devloop-iterations "10" \
@@ -127,7 +116,6 @@ When using the published package bin directly, replace `npm run developing --` w
127
116
  | `--achive-dir` | Project development archive directory. |
128
117
  | `--project-progress-memory-path` | Memory directory used for project progress continuity. |
129
118
  | `--code-design-memory-path` | Memory directory used for code design continuity. |
130
- | `--coding-style-skill-path` | Configured coding-style skill. |
131
119
  | `--goal-path` | Markdown file containing the current objective and task context. |
132
120
  | `--max-iterations` | Stops the outer loop if `coding-manager` has not returned `FINISHED`. |
133
121
  | `--max-task-devloop-iterations` | Limits developer/reviewer attempts for each selected task. |
@@ -141,7 +129,7 @@ When using the published package bin directly, replace `npm run developing --` w
141
129
  Each iteration does the following:
142
130
 
143
131
  1. `coding-manager` decides what should be recalled, the pipeline recalls the matching memory, then `coding-manager` scans the current repository, the goal from `--goal-path`, and remembered context before writing one Markdown Task Brief or `FINISHED`. If its select output does not start with `FINISHED` or `# Task Brief`, the manager agent asks the same thread to correct the format.
144
- 2. `developer` loads the configured coding-style skill, edits the repository, and reports what changed for review.
132
+ 2. `developer` edits the repository and reports what changed for review.
145
133
  3. `code-reviewer` reads the Task Brief, Developer report, and recalled code-design memory, then returns `ACCEPT`, `REVISE`, or `REDIRECT`. If its output does not start with one of those decisions, the reviewer agent asks the same thread to correct the format.
146
134
  4. `REVISE` sends feedback back to `developer`; `REDIRECT` returns control to `coding-manager`; `ACCEPT` finishes the task.
147
135
  5. After the review loop ends, the pipeline archives the full transcript, writes `task_round_summary.md` with the Task Brief, final decision, and Developer/Reviewer report text, asks the memory update prompts what should be remembered, and stores that content through `memory-agent-forge`.
@@ -149,23 +137,6 @@ Each iteration does the following:
149
137
  7. On the next project iteration, `coding-manager` receives the previous `task_round_summary.md` content as `lastTaskRoundSummary` during recall and task selection, so a `REDIRECT` can directly guide the next Task Brief.
150
138
  8. The pipeline stops when `coding-manager` returns `FINISHED` or `--max-iterations` is reached.
151
139
 
152
- ## Developing-Skill And Trajectory Feedback
153
-
154
- [`develop-skill.sh`](develop-skill.sh) calls the related `developing-skill` pipeline in [`pipeline/pipelineskill.ts`](src/pipeline/pipelineskill.ts). It runs the same project development workflow, adds `--metaskill-path`, and invokes `trajectory-optimizer` before and after the developer/reviewer loop so the coding-style skill can be improved from concrete development feedback.
155
-
156
- The first `trajectory-optimizer` call runs in `scan` mode before the developer starts. It reads the target repository, the current coding-style skill, and the goal context so the optimizer has the same project context as the code-writing loop.
157
-
158
- The second `trajectory-optimizer` call runs in `optimize` mode after the iteration finishes. It reads the metaskill, target repository, goal context, Task Brief, and task round summary; evaluates whether the skill produced a good modification trajectory; then edits the coding-style skill directly. The prompt focuses the optimizer on missing, misleading, or redundant guidance that affected task selection, coding, or review.
159
-
160
- The intended loop is:
161
-
162
- 1. Add code-style preferences, failure modes, and review tips to [`metaskills/coding-style/METASKILL.md`](metaskills/coding-style/METASKILL.md).
163
- 2. Run `bash develop-skill.sh`.
164
- 3. Let `developer`, `code-reviewer`, `coding-manager`, and `trajectory-optimizer` expose where the current skill helped or failed.
165
- 4. Inspect the updated [`skills/coding-style/SKILL.md`](skills/coding-style/SKILL.md), keep the useful changes, and repeat when new code-style preferences appear.
166
-
167
- This is the coding-style version of skill self-improvement: the metaskill states what "good style guidance" means, the trajectory records how the agent actually modified code, and `develop-skill` uses that evidence to make the reusable skill more precise over time.
168
-
169
140
  ## Output Artifacts
170
141
 
171
142
  The pipeline maintains:
@@ -177,18 +148,16 @@ The pipeline maintains:
177
148
 
178
149
  ## Important Files
179
150
 
180
- | Path | Purpose |
181
- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
182
- | [`pipeline/pipeline.ts`](src/pipeline/pipeline.ts) | CLI argument parsing and the base `developing` pipeline wrapper. |
183
- | [`pipeline/project-devloop.ts`](src/pipeline/project-devloop.ts) | Outer project workflow, archive creation, memory recall/update, last task summary handoff, and per-agent coordination. |
184
- | [`pipeline/task-devloop.ts`](src/pipeline/task-devloop.ts) | Inner developer/reviewer loop for one selected task. |
185
- | [`pipeline/pipelineskill.ts`](src/pipeline/pipelineskill.ts) | `developing-skill` wrapper that adds trajectory optimization callbacks around the base loop. |
186
- | [`agents/factory.ts`](src/agents/factory.ts) | Registers the developing coding manager, developer, and reviewer agents. |
187
- | [`agents/types.ts`](src/agents/types.ts) | Shared workspace-aware base class and variables. |
188
- | [`agents/manager.ts`](src/agents/manager.ts) | Decides what to recall, selects outer-loop tasks, validates select output format, and outputs what should be remembered. |
189
- | [`agents/developer.ts`](src/agents/developer.ts) | Edits the target repository using the shared coding-style skill. |
190
- | [`agents/reviewer.ts`](src/agents/reviewer.ts) | Performs the read-only code review gate, validates review output format, and returns `ACCEPT`, `REVISE`, or `REDIRECT`. |
191
- | [`agents/trajectory-optimizer.ts`](src/agents/trajectory-optimizer.ts) | Scans the trajectory and proposes coding-style skill improvements for `developing-skill`. |
151
+ | Path | Purpose |
152
+ | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
153
+ | [`pipeline/pipeline.ts`](src/pipeline/pipeline.ts) | CLI argument parsing and the base `developing` pipeline wrapper. |
154
+ | [`pipeline/project-devloop.ts`](src/pipeline/project-devloop.ts) | Outer project workflow, archive creation, memory recall/update, last task summary handoff, and per-agent coordination. |
155
+ | [`pipeline/task-devloop.ts`](src/pipeline/task-devloop.ts) | Inner developer/reviewer loop for one selected task. |
156
+ | [`agents/factory.ts`](src/agents/factory.ts) | Registers the developing coding manager, developer, and reviewer agents. |
157
+ | [`agents/types.ts`](src/agents/types.ts) | Shared workspace-aware base class and variables. |
158
+ | [`agents/manager.ts`](src/agents/manager.ts) | Decides what to recall, selects outer-loop tasks, validates select output format, and outputs what should be remembered. |
159
+ | [`agents/developer.ts`](src/agents/developer.ts) | Edits the target repository. |
160
+ | [`agents/reviewer.ts`](src/agents/reviewer.ts) | Performs the read-only code review gate, validates review output format, and returns `ACCEPT`, `REVISE`, or `REDIRECT`. |
192
161
 
193
162
  ## Troubleshooting
194
163
 
package/README.zh-CN.md CHANGED
@@ -11,7 +11,6 @@
11
11
  常用入口是 [`develop.sh`](develop.sh),它会调用 `npm run developing`,并传入以下路径:
12
12
 
13
13
  - 通过 `--goal-path` 传入的目标文件
14
- - `skills/coding-style/SKILL.md`
15
14
  - 通过 `--project-progress-memory-path` 传入的项目进度 memory 目录
16
15
  - 通过 `--code-design-memory-path` 传入的代码设计 memory 目录
17
16
  - 目标代码库目录
@@ -23,31 +22,23 @@ pipeline 会在配置的 `--target-path` 中继续写代码,从 `--goal-path`
23
22
 
24
23
  `package.json` 发布的是名为 `developing-agent-forge` 的 ESM package,要求 Node.js `>=20.19`。
25
24
 
26
- - CLI bin:`developing-agent-forge`,由 [`src/cli.ts`](src/cli.ts) 提供,包含 `developing` 和 `developing-skill` 两个 pipeline。
25
+ - CLI bin:`developing-agent-forge`,由 [`src/cli.ts`](src/cli.ts) 提供,包含 `developing` pipeline。
27
26
  - 公开 import:`developing-agent-forge`、`developing-agent-forge/agents` 和 `developing-agent-forge/pipeline`。
28
27
  - 运行时依赖:`coding-agent-forge` 负责 agent/pipeline CLI 执行,`memory-agent-forge` 负责持久化 memory。
29
- - 发布内容包含 `dist`、`developing-forge.yaml`、`skills`、`metaskills`、两份 README 和 `LICENSE`。
28
+ - 发布内容包含 `dist`、`developing-forge.yaml`、两份 README 和 `LICENSE`。
30
29
 
31
30
  TypeScript API import 示例:
32
31
 
33
32
  ```ts
34
- import { developingPipeline, developingSkillPipeline } from "developing-agent-forge";
33
+ import { developingPipeline } from "developing-agent-forge";
35
34
  import { CodingManagerAgent } from "developing-agent-forge/agents";
36
35
  import { ProjectDevLoop } from "developing-agent-forge/pipeline";
37
36
  ```
38
37
 
39
- ## 核心思想:Developing 和 Coding Style
38
+ ## 核心思想
40
39
 
41
40
  `src` 会把当前 goal 变成一条可重复执行的代码编写 trajectory。`coding-manager` 读取当前 repo、goal 和记下来的上下文,写出一个有边界的 Task Brief 或 `FINISHED`;`developer` 修改目标 repo;`code-reviewer` 返回 `ACCEPT`、`REVISE` 或 `REDIRECT`。
42
41
 
43
- coding-style skill 是 [`skills/coding-style/SKILL.md`](skills/coding-style/SKILL.md)。它的功能是控制写代码 agent 的代码结构和代码风格。上游用户任务决定要实现什么;这个 skill 决定如何让实现保持 readable、local、low-coupling,并和当前 framework 保持一致。
44
-
45
- 每次 developer run 都会通过 `--coding-style-skill-path` 加载配置的 coding-style skill。[`agents/developer.ts`](src/agents/developer.ts) 会把 [`agents/prompts.ts`](src/agents/prompts.ts) 里的说明放到 developer prompt 前面:先 load and follow 这个 skill,再读取 repo、current goal、goal 中提到的上下文文档和 Task Brief。这样负责写代码的 agent 在 feature、refactor、harness/test work、result exports 和 framework docs 等各种任务里,都会用同一套代码结构和风格偏好,保证输出的代码结构和风格统一。
46
-
47
- `coding-style` 对代码编写任务是通用的。它不决定 task priority 或 repository template initialization;它只关心代码结构和风格,让代码 concise、readable、low-friction、easy to modify,并贴合现有 repo 结构。
48
-
49
- 任何对代码结构和代码风格的长期偏好,都放进 [`metaskills/coding-style/METASKILL.md`](metaskills/coding-style/METASKILL.md),然后在仓库根目录运行 [`develop-skill.sh`](develop-skill.sh) 来更新这个 skill。
50
-
51
42
  ## 快速开始
52
43
 
53
44
  在仓库根目录运行预设 wrapper:
@@ -83,14 +74,13 @@ npm run build
83
74
 
84
75
  - `npm run dev -- ...` 运行 `tsx src/cli.ts`。
85
76
  - `npm run developing -- ...` 运行 `tsx src/cli.ts developing`。
86
- - `npm run developing-skill -- ...` 运行 `tsx src/cli.ts developing-skill`。
87
77
  - `npm run clean`、`npm run format` 和 `npm run format:check` 分别处理生成产物和格式化。
88
78
 
89
79
  ## Goal 文件和 Memory 上下文
90
80
 
91
- `developing` `developing-skill` 都接受 `--goal-path <path>`。pipeline 会在运行开始时读取这个文件,并把其中内容作为当前 high-level objective 传给 `coding-manager`、`developer`、`code-reviewer` 和 `trajectory-optimizer`。
81
+ `developing` 接受 `--goal-path <path>`。pipeline 会在运行开始时读取这个文件,并把其中内容作为当前 high-level objective 传给 `coding-manager`、`developer` 和 `code-reviewer`。
92
82
 
93
- 每次想执行下一个新任务时,先更新 `--goal-path` 指向的文件,再重新运行 [`develop.sh`](develop.sh) 或 [`develop-skill.sh`](develop-skill.sh)。稳定的项目 contract、任务上下文路径、约束和这一次的任务重点都直接写进这个 goal 文件。
83
+ 每次想执行下一个新任务时,先更新 `--goal-path` 指向的文件,再重新运行 [`develop.sh`](develop.sh)。稳定的项目 contract、任务上下文路径、约束和这一次的任务重点都直接写进这个 goal 文件。
94
84
 
95
85
  配置的 `--project-progress-memory-path` 存放给 `coding-manager` 做任务选择和项目连续性判断的项目进度记忆。配置的 `--code-design-memory-path` 存放给 `developer` 完成当前任务时使用的代码设计记忆。如果旧上下文不再有用,可以在下一次运行前删除或编辑对应目录下的 memory 文件。
96
86
 
@@ -106,7 +96,6 @@ npm run developing -- \
106
96
  --achive-dir "output/developing-archives" \
107
97
  --project-progress-memory-path "output/developing/project-progress-memory" \
108
98
  --code-design-memory-path "output/developing/code-design-memory" \
109
- --coding-style-skill-path "skills/coding-style" \
110
99
  --goal-path "output/goal.md" \
111
100
  --max-iterations "100" \
112
101
  --max-task-devloop-iterations "10" \
@@ -127,7 +116,6 @@ npm run developing -- \
127
116
  | `--achive-dir` | Project development archive 目录。 |
128
117
  | `--project-progress-memory-path` | 用于保持项目进度连续性的 memory 目录。 |
129
118
  | `--code-design-memory-path` | 用于保持代码设计连续性的 memory 目录。 |
130
- | `--coding-style-skill-path` | 配置的 coding-style skill。 |
131
119
  | `--goal-path` | 包含当前 high-level objective 和 task context 的 Markdown 文件。 |
132
120
  | `--max-iterations` | 当 `coding-manager` 尚未返回 `FINISHED` 时限制外层循环。 |
133
121
  | `--max-task-devloop-iterations` | 限制每个 selected task 的 developer/reviewer 尝试次数。 |
@@ -141,7 +129,7 @@ npm run developing -- \
141
129
  每轮迭代执行以下步骤:
142
130
 
143
131
  1. `coding-manager` 先判断需要回忆什么,pipeline 再召回匹配的记忆,然后 `coding-manager` 扫描当前 repo、`--goal-path` 中的 goal 和记下来的上下文,写出一个 Markdown Task Brief 或 `FINISHED`。如果 select 输出不是以 `FINISHED` 或 `# Task Brief` 开头,manager agent 会要求同一个 thread 修正格式。
144
- 2. `developer` 加载配置的 coding-style skill,修改 repo,并报告自己改了哪些内容给 reviewer。
132
+ 2. `developer` 修改 repo,并报告自己改了哪些内容给 reviewer。
145
133
  3. `code-reviewer` 阅读 Task Brief、Developer report 和召回的 code-design memory,返回 `ACCEPT`、`REVISE` 或 `REDIRECT`。如果输出不是以这三个决策之一开头,reviewer agent 会要求同一个 thread 修正格式。
146
134
  4. `REVISE` 会把反馈送回 `developer`;`REDIRECT` 会把控制权交回 `coding-manager`;`ACCEPT` 表示当前 task 完成。
147
135
  5. review 循环结束后,pipeline 归档完整 transcript,写出包含 Task Brief、最终决策和 Developer/Reviewer report 正文的 `task_round_summary.md`,让 memory update prompts 输出有什么需要记下,并通过 `memory-agent-forge` 写入记忆。
@@ -149,23 +137,6 @@ npm run developing -- \
149
137
  7. 下一轮 project iteration 里,`coding-manager` 的 recall 和 task selection 会收到上一轮 `task_round_summary.md` 正文作为 `lastTaskRoundSummary`,所以 `REDIRECT` 可以直接影响下一次 Task Brief。
150
138
  8. 当 `coding-manager` 返回 `FINISHED` 或达到 `--max-iterations` 时停止。
151
139
 
152
- ## developing-skill 和 Trajectory Feedback
153
-
154
- [`develop-skill.sh`](develop-skill.sh) 会调用 [`pipeline/pipelineskill.ts`](src/pipeline/pipelineskill.ts) 中的 `developing-skill` pipeline。它复用同一套 project development workflow,额外传入 `--metaskill-path`,并在 developer/reviewer 循环前后调用 `trajectory-optimizer`,让 coding-style skill 能根据具体开发反馈继续优化。
155
-
156
- 第一次 `trajectory-optimizer` 调用发生在 developer 开始前,使用 `scan` 模式。它会读取目标 repo、当前 coding-style skill 和 goal context,让 optimizer 拿到和代码编写循环相同的项目上下文。
157
-
158
- 第二次 `trajectory-optimizer` 调用发生在迭代结束后,使用 `optimize` 模式。它会读取 metaskill、target repo、goal context、Task Brief 和 task round summary;根据 [`metaskills/coding-style/METASKILL.md`](metaskills/coding-style/METASKILL.md) 中写的偏好评估这次修改 trajectory 的质量;然后直接修改 coding-style skill。这个 prompt 会重点检查哪些 guidance 缺失、误导或冗余,并看这些问题是否影响 task selection、coding 或 review。
159
-
160
- 推荐的使用循环是:
161
-
162
- 1. 把代码风格偏好、failure modes 和 review tips 写进 [`metaskills/coding-style/METASKILL.md`](metaskills/coding-style/METASKILL.md)。
163
- 2. 运行 `bash develop-skill.sh`。
164
- 3. 让 `developer`、`code-reviewer`、`coding-manager` 和 `trajectory-optimizer` 暴露当前 skill 在真实开发轨迹里哪里有效、哪里失效。
165
- 4. 检查更新后的 [`skills/coding-style/SKILL.md`](skills/coding-style/SKILL.md),保留有用修改;当出现新的代码偏好时继续重复。
166
-
167
- 这就是 coding-style 版本的 skill self-improvement:metaskill 说明什么是“好的代码风格 guidance”,trajectory 记录 agent 实际如何修改代码,`develop-skill` 根据这些证据修改可复用的 skill,让这个 skill 越用越强。
168
-
169
140
  ## 输出产物
170
141
 
171
142
  pipeline 会维护:
@@ -177,18 +148,16 @@ pipeline 会维护:
177
148
 
178
149
  ## 重要文件
179
150
 
180
- | 路径 | 作用 |
181
- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
182
- | [`pipeline/pipeline.ts`](src/pipeline/pipeline.ts) | CLI 参数解析和基础 `developing` pipeline 包装。 |
183
- | [`pipeline/project-devloop.ts`](src/pipeline/project-devloop.ts) | 外层 project workflow、archive 创建、memory recall/update、上一轮 task summary 传递和各 agent 之间的交接。 |
184
- | [`pipeline/task-devloop.ts`](src/pipeline/task-devloop.ts) | 针对一个 selected task 的内层 developer/reviewer 循环。 |
185
- | [`pipeline/pipelineskill.ts`](src/pipeline/pipelineskill.ts) | 给基础开发循环增加 trajectory optimization callbacks `developing-skill` 包装。 |
186
- | [`agents/factory.ts`](src/agents/factory.ts) | 注册 developing coding manager、developer 和 reviewer agents。 |
187
- | [`agents/types.ts`](src/agents/types.ts) | 共享的 workspace-aware base class 和变量定义。 |
188
- | [`agents/manager.ts`](src/agents/manager.ts) | 判断需要回忆什么、选择外层任务、校验 select 输出格式,并输出有什么需要记下。 |
189
- | [`agents/developer.ts`](src/agents/developer.ts) | 使用共享 coding-style skill 修改目标 repo。 |
190
- | [`agents/reviewer.ts`](src/agents/reviewer.ts) | 执行只读代码审阅 gate、校验 review 输出格式,并返回 `ACCEPT`、`REVISE` 或 `REDIRECT`。 |
191
- | [`agents/trajectory-optimizer.ts`](src/agents/trajectory-optimizer.ts) | 扫描开发轨迹,并为 `developing-skill` 提出 coding-style skill 优化建议。 |
151
+ | 路径 | 作用 |
152
+ | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
153
+ | [`pipeline/pipeline.ts`](src/pipeline/pipeline.ts) | CLI 参数解析和基础 `developing` pipeline 包装。 |
154
+ | [`pipeline/project-devloop.ts`](src/pipeline/project-devloop.ts) | 外层 project workflow、archive 创建、memory recall/update、上一轮 task summary 传递和各 agent 之间的交接。 |
155
+ | [`pipeline/task-devloop.ts`](src/pipeline/task-devloop.ts) | 针对一个 selected task 的内层 developer/reviewer 循环。 |
156
+ | [`agents/factory.ts`](src/agents/factory.ts) | 注册 developing coding manager、developer reviewer agents。 |
157
+ | [`agents/types.ts`](src/agents/types.ts) | 共享的 workspace-aware base class 和变量定义。 |
158
+ | [`agents/manager.ts`](src/agents/manager.ts) | 判断需要回忆什么、选择外层任务、校验 select 输出格式,并输出有什么需要记下。 |
159
+ | [`agents/developer.ts`](src/agents/developer.ts) | 修改目标 repo。 |
160
+ | [`agents/reviewer.ts`](src/agents/reviewer.ts) | 执行只读代码审阅 gate、校验 review 输出格式,并返回 `ACCEPT`、`REVISE` 或 `REDIRECT`。 |
192
161
 
193
162
  ## 常见问题
194
163
 
@@ -3,13 +3,6 @@ runtimes:
3
3
  kind: codex
4
4
 
5
5
  threads:
6
- skill:
7
- runtime: codex
8
- options:
9
- model: gpt-5.5
10
- sandboxMode: danger-full-access
11
- workingDirectory: .
12
-
13
6
  develop:
14
7
  runtime: codex
15
8
  options:
@@ -47,9 +40,6 @@ agents:
47
40
  constants:
48
41
  workspacePath: *developerWorkspacePath
49
42
 
50
- trajectory-optimizer:
51
- thread: skill
52
-
53
43
  memory-reader:
54
44
  thread: memory
55
45
  constants:
@@ -1 +1 @@
1
- {"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../src/agents/developer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,KAAK,wBAAwB,GAAG,wBAAwB,GAAG;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,KAAK,yBAAyB,GAAG,wBAAwB,GAAG;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG,wBAAwB,GAAG;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,QAAQ,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,CAAC;AAE7B,qBAAa,cAAe,SAAQ,eAAe,CAAC,kBAAkB,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,MAAM;CAoCvE"}
1
+ {"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../src/agents/developer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,KAAK,wBAAwB,GAAG,wBAAwB,GAAG;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,KAAK,yBAAyB,GAAG,wBAAwB,GAAG;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG,wBAAwB,GAAG;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,QAAQ,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,CAAC;AAE7B,qBAAa,cAAe,SAAQ,eAAe,CAAC,kBAAkB,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,MAAM;CA2BvE"}
@@ -1,28 +1,24 @@
1
1
  import { ponytailSkillPrompt } from "./polytail.js";
2
- import { codingStyleSkillInstruction, goalInstruction } from "./prompts.js";
2
+ import { goalInstruction } from "./prompts.js";
3
3
  import { DevelopingAgent } from "./types.js";
4
4
  export class DeveloperAgent extends DevelopingAgent {
5
5
  buildPrompt(variables) {
6
- const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
7
6
  const targetPath = this.workspaceRelativePath(variables.targetPath);
8
- const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
9
7
  const goalInstructionText = goalInstruction(variables.goal);
10
8
  switch (variables.phase) {
11
9
  case "recall":
12
- return buildRecallPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, variables.taskBrief);
10
+ return buildRecallPrompt(goalInstructionText, targetPath, variables.taskBrief);
13
11
  case "develop": {
14
12
  const reviewerReport = variables.reviewerReport ?? "(none)";
15
- return buildDevelopPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, variables.taskBrief, variables.codeDesignMemory, reviewerReport);
13
+ return buildDevelopPrompt(goalInstructionText, targetPath, variables.taskBrief, variables.codeDesignMemory, reviewerReport);
16
14
  }
17
15
  case "update":
18
- return buildUpdatePrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, variables.taskBrief, variables.codeDesignMemory, variables.taskRoundSummary);
16
+ return buildUpdatePrompt(goalInstructionText, targetPath, variables.taskBrief, variables.codeDesignMemory, variables.taskRoundSummary);
19
17
  }
20
18
  }
21
19
  }
22
- function buildRecallPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, taskBrief) {
20
+ function buildRecallPrompt(goalInstructionText, targetPath, taskBrief) {
23
21
  return `
24
- ${codingStyleSkillInstructionText}
25
-
26
22
  ${goalInstructionText}
27
23
 
28
24
  Target repository: ${targetPath}/.
@@ -35,12 +31,10 @@ Decide what code design memory helps complete the Task.
35
31
  Output concise code design memory recall guidance.
36
32
  `;
37
33
  }
38
- function buildDevelopPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, taskBrief, codeDesignMemory, reviewerReport) {
34
+ function buildDevelopPrompt(goalInstructionText, targetPath, taskBrief, codeDesignMemory, reviewerReport) {
39
35
  return `
40
36
  ${ponytailSkillPrompt}
41
37
 
42
- ${codingStyleSkillInstructionText}
43
-
44
38
  ${goalInstructionText}
45
39
 
46
40
  Related code design memory:
@@ -70,10 +64,8 @@ List any code relationships or design lessons that should be remembered separate
70
64
  ## Memory Candidates
71
65
  `;
72
66
  }
73
- function buildUpdatePrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, taskBrief, codeDesignMemory, taskRoundSummary) {
67
+ function buildUpdatePrompt(goalInstructionText, targetPath, taskBrief, codeDesignMemory, taskRoundSummary) {
74
68
  return `
75
- ${codingStyleSkillInstructionText}
76
-
77
69
  ${goalInstructionText}
78
70
 
79
71
  Target repository: ${targetPath}/.
@@ -1 +1 @@
1
- {"version":3,"file":"developer.js","sourceRoot":"","sources":["../../src/agents/developer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5E,O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AAS,CAAC,gBAAgB,EAC1B,cAAc,CACf,CAAC;YACJ,CAAC;YACD,KAAK,QAAQ;gBACX,OAAO,iBAAiB,CACtB,mBAAmB,EACnB,UAAU,EACV,SAAS,CAAC,SAAS,EACnB,SAAS,CAAC,gBAAgB,EAC1B,SAAS,CAAC,gBAAgB,CAC3B,CAAC;QACN,CAAC;IACH,CAAC;CACF;AAED,SAAS,iBAAiB,CACxB,mBAA2B,EAC3B,UAAkB,EAClB,SAAiB;IAEjB,OAAO;EACP,mBAAmB;;qBAEA,UAAU;;;EAG7B,SAAS;;;;;CAKV,CAAC;AACF,CAAC;AAED,SAAS,kBAAkB,CACzB,mBAA2B,EAC3B,UAAkB,EAClB,SAAiB,EACjB,gBAAwB,EACxB,cAAsB;IAEtB,OAAO;EACP,mBAAmB;;EAEnB,mBAAmB;;;EAGnB,gBAAgB;;mCAEiB,UAAU;;;EAG3C,SAAS;;;EAGT,cAAc;;;;;;;;;;;;;;;;CAgBf,CAAC;AACF,CAAC;AAED,SAAS,iBAAiB,CACxB,mBAA2B,EAC3B,UAAkB,EAClB,SAAiB,EACjB,gBAAwB,EACxB,gBAAwB;IAExB,OAAO;EACP,mBAAmB;;qBAEA,UAAU;;;EAG7B,SAAS;;;EAGT,gBAAgB;;;EAGhB,gBAAgB;;;;;;CAMjB,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/agents/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAO1D,eAAO,MAAM,cAAc,EAAE,eAK5B,CAAC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/agents/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAM1D,eAAO,MAAM,cAAc,EAAE,eAI5B,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import { DeveloperAgent } from "./developer.js";
2
2
  import { CodingManagerAgent } from "./manager.js";
3
3
  import { CodeReviewerAgent } from "./reviewer.js";
4
- import { TrajectoryOptimizerAgent } from "./trajectory-optimizer.js";
5
4
  export const agentFactories = {
6
5
  "coding-manager": (thread, constants) => new CodingManagerAgent(thread, constants),
7
6
  developer: (thread, constants) => new DeveloperAgent(thread, constants),
8
7
  "code-reviewer": (thread, constants) => new CodeReviewerAgent(thread, constants),
9
- "trajectory-optimizer": (thread, constants) => new TrajectoryOptimizerAgent(thread, constants),
10
8
  };
11
9
  //# sourceMappingURL=factory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/agents/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC;IAClF,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC;IACvE,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC;IAChF,sBAAsB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,wBAAwB,CAAC,MAAM,EAAE,SAAS,CAAC;CAC/F,CAAC"}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/agents/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC;IAClF,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC;IACvE,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC;CACjF,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export { CodingManagerAgent, type CodingManagerDecision, type CodingManagerVariables, } from "./manager.js";
2
2
  export { DeveloperAgent, type DeveloperVariables } from "./developer.js";
3
3
  export { CodeReviewerAgent, type CodeReviewerVariables, type ReviewDecision } from "./reviewer.js";
4
- export { TrajectoryOptimizerAgent, type TrajectoryOptimizerVariables, } from "./trajectory-optimizer.js";
5
4
  export { DevelopingAgent, type DevelopingAgentConstants, type DevelopingAgentVariables, } from "./types.js";
6
5
  export { agentFactories } from "./factory.js";
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export { CodingManagerAgent, } from "./manager.js";
2
2
  export { DeveloperAgent } from "./developer.js";
3
3
  export { CodeReviewerAgent } from "./reviewer.js";
4
- export { TrajectoryOptimizerAgent, } from "./trajectory-optimizer.js";
5
4
  export { DevelopingAgent, } from "./types.js";
6
5
  export { agentFactories } from "./factory.js";
7
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAGnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAA2B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAmD,MAAM,eAAe,CAAC;AACnG,OAAO,EACL,wBAAwB,GAEzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,GAGhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAGnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAA2B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAmD,MAAM,eAAe,CAAC;AACnG,OAAO,EACL,eAAe,GAGhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/agents/manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,KAAK,4BAA4B,GAAG,wBAAwB,GAAG;IAC7D,KAAK,EAAE,QAAQ,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,KAAK,4BAA4B,GAAG,wBAAwB,GAAG;IAC7D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,QAAQ,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,KAAK,4BAA4B,GAAG,wBAAwB,GAAG;IAC7D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,YAAY,CAAC;AAI9D,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,sBAAsB,CAAC;IAC9D,WAAW,CACxB,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AG,qBAAqB;IAQ3D,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,MAAM;CA6B3E"}
@@ -1,4 +1,4 @@
1
- import { codingStyleSkillInstruction, goalInstruction } from "./prompts.js";
1
+ import { goalInstruction } from "./prompts.js";
2
2
  import { DevelopingAgent } from "./types.js";
3
3
  const MANAGER_DECISION_PATTERN = /^(FINISHED|# Task Brief)\b/;
4
4
  const MAX_FORMAT_CORRECTION_ATTEMPTS = 3;
@@ -46,9 +46,7 @@ Please correct it.
46
46
  return match[1] === "FINISHED" ? "FINISHED" : "TASK_BRIEF";
47
47
  }
48
48
  buildPrompt(variables) {
49
- const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
50
49
  const targetPath = this.workspaceRelativePath(variables.targetPath);
51
- const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
52
50
  const goalInstructionText = goalInstruction(variables.goal);
53
51
  const lastTaskRoundSummary = "lastTaskRoundSummary" in variables && variables.lastTaskRoundSummary
54
52
  ? `Last task round summary:
@@ -56,18 +54,16 @@ ${variables.lastTaskRoundSummary}`
56
54
  : "";
57
55
  switch (variables.phase) {
58
56
  case "recall":
59
- return buildRecallPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, lastTaskRoundSummary);
57
+ return buildRecallPrompt(goalInstructionText, targetPath, lastTaskRoundSummary);
60
58
  case "select":
61
- return buildSelectPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, variables.projectProgressMemory, lastTaskRoundSummary);
59
+ return buildSelectPrompt(goalInstructionText, targetPath, variables.projectProgressMemory, lastTaskRoundSummary);
62
60
  case "update":
63
- return buildUpdatePrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, variables.projectProgressMemory, variables.taskBrief, variables.taskRoundSummary);
61
+ return buildUpdatePrompt(goalInstructionText, targetPath, variables.projectProgressMemory, variables.taskBrief, variables.taskRoundSummary);
64
62
  }
65
63
  }
66
64
  }
67
- function buildRecallPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, lastTaskRoundSummary) {
65
+ function buildRecallPrompt(goalInstructionText, targetPath, lastTaskRoundSummary) {
68
66
  return `
69
- ${codingStyleSkillInstructionText}
70
-
71
67
  ${goalInstructionText}
72
68
 
73
69
  Target repository: ${targetPath}/.
@@ -79,10 +75,8 @@ Decide what project progress memory helps select the next task for the current g
79
75
  Output concise project progress memory recall guidance.
80
76
  `;
81
77
  }
82
- function buildSelectPrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, projectProgressMemory, lastTaskRoundSummary) {
78
+ function buildSelectPrompt(goalInstructionText, targetPath, projectProgressMemory, lastTaskRoundSummary) {
83
79
  return `
84
- ${codingStyleSkillInstructionText}
85
-
86
80
  ${goalInstructionText}
87
81
 
88
82
  Target repository: ${targetPath}/.
@@ -122,10 +116,8 @@ When no further developing task is needed, return exactly:
122
116
  FINISHED
123
117
  `;
124
118
  }
125
- function buildUpdatePrompt(codingStyleSkillInstructionText, goalInstructionText, targetPath, projectProgressMemory, taskBrief, taskRoundSummary) {
119
+ function buildUpdatePrompt(goalInstructionText, targetPath, projectProgressMemory, taskBrief, taskRoundSummary) {
126
120
  return `
127
- ${codingStyleSkillInstructionText}
128
-
129
121
  ${goalInstructionText}
130
122
 
131
123
  Target repository: ${targetPath}/.
@@ -1 +1 @@
1
- {"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/agents/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AA0B5E,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAC9D,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAEzC,MAAM,OAAO,kBAAmB,SAAQ,eAAuC;IACpE,KAAK,CAAC,WAAW,CACxB,SAAiC,EACjC,QAAyB;QAEzB,IAAI,aAAa,GAAG,MAA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S,CAAC,qBAAqB,EAC/B,oBAAoB,CACrB,CAAC;YACJ,KAAK,QAAQ;gBACX,OAAO,iBAAiB,CACtB,mBAAmB,EACnB,UAAU,EACV,SAAS,CAAC,qBAAqB,EAC/B,SAAS,CAAC,SAAS,EACnB,SAAS,CAAC,gBAAgB,CAC3B,CAAC;QACN,CAAC;IACH,CAAC;CACF;AAED,SAAS,iBAAiB,CACxB,mBAA2B,EAC3B,UAAkB,EAClB,oBAA4B;IAE5B,OAAO;EACP,mBAAmB;;qBAEA,UAAU;;EAE7B,oBAAoB;;;;;CAKrB,CAAC;AACF,CAAC;AAED,SAAS,iBAAiB,CACxB,mBAA2B,EAC3B,UAAkB,EAClB,qBAA6B,EAC7B,oBAA4B;IAE5B,OAAO;EACP,mBAAmB;;qBAEA,UAAU;;;EAG7B,qBAAqB;;EAErB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AACF,CAAC;AAED,SAAS,iBAAiB,CACxB,mBAA2B,EAC3B,UAAkB,EAClB,qBAA6B,EAC7B,SAAiB,EACjB,gBAAwB;IAExB,OAAO;EACP,mBAAmB;;qBAEA,UAAU;;;EAG7B,SAAS;;;EAGT,qBAAqB;;;EAGrB,gBAAgB;;;;;CAKjB,CAAC;AACF,CAAC"}
@@ -1,3 +1,2 @@
1
- export declare function codingStyleSkillInstruction(codingStyleSkillPath: string): string;
2
1
  export declare function goalInstruction(goal: string): string;
3
2
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,2BAA2B,CAAC,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD"}
@@ -1,6 +1,3 @@
1
- export function codingStyleSkillInstruction(codingStyleSkillPath) {
2
- return `Load and follow the skill at ${codingStyleSkillPath}. It describes how to keep repository code concise, readable, low-friction, and easy to modify.`;
3
- }
4
1
  export function goalInstruction(goal) {
5
2
  return `
6
3
  Current goal:
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,2BAA2B,CAAC,oBAA4B;IACtE,OAAO,gCAAgC,oBAAoB,iGAAiG,CAAC;AAC/J,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO;;EAEP,IAAI;;;CAGL,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO;;EAEP,IAAI;;;CAGL,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reviewer.d.ts","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IAC5D,WAAW,CACxB,SAAS,EAAE,qBAAqB,EAChC,QAAQ,CAAC,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC;IAuClB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,cAAc;IAQrD,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,MAAM;CAmD1E"}
1
+ {"version":3,"file":"reviewer.d.ts","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IAC5D,WAAW,CACxB,SAAS,EAAE,qBAAqB,EAChC,QAAQ,CAAC,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC;IAuClB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,cAAc;IAQrD,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,MAAM;CA+C1E"}
@@ -1,5 +1,5 @@
1
1
  import { ponytailReviewSkillPrompt } from "./polytail.js";
2
- import { codingStyleSkillInstruction, goalInstruction } from "./prompts.js";
2
+ import { goalInstruction } from "./prompts.js";
3
3
  import { DevelopingAgent } from "./types.js";
4
4
  const REVIEW_DECISION_PATTERN = /^(ACCEPT|REVISE|REDIRECT)\b/;
5
5
  const MAX_FORMAT_CORRECTION_ATTEMPTS = 3;
@@ -45,15 +45,11 @@ Please correct it.
45
45
  return match[1];
46
46
  }
47
47
  buildPrompt(variables) {
48
- const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
49
48
  const targetPath = this.workspaceRelativePath(variables.targetPath);
50
- const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
51
49
  const goalInstructionText = goalInstruction(variables.goal);
52
50
  return `
53
51
  ${ponytailReviewSkillPrompt}
54
52
 
55
- ${codingStyleSkillInstructionText}
56
-
57
53
  ${goalInstructionText}
58
54
 
59
55
  Work in the target repository at ${targetPath}/.
@@ -1 +1 @@
1
- {"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AAS5E,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AAC9D,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAEzC,MAAM,OAAO,iBAAkB,SAAQ,eAAsC;IAClE,KAAK,CAAC,WAAW,CACxB,SAAgC,EAChC,QAAyB;QAEzB,IAAI,cAAc,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAClE,IAAI,CAAC;YACH,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;YACnC,OAAO,cAAc,CAAC;QACxB,CAAC;QAAC,MAAM,CAAC;YACP,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,IAAI,8BAA8B,EAAE,OAAO,EAAE,EAAE,CAAC;gBAC3E,cAAc,GAAG,CACf,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAC3B;;;;;;;;EAQV,cAAc;;;CAGf,EACW,QAAQ,CACT,CACF,CAAC,IAAI,EAAE,CAAC;gBACT,IAAI,CAAC;oBACH,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,CA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