@omaikit/agents 0.1.4 → 0.1.5
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/ai-provider/openai.d.ts.map +1 -1
- package/dist/ai-provider/openai.js +21 -29
- package/dist/ai-provider/openai.js.map +1 -1
- package/dist/ai-provider/provider.d.ts +4 -0
- package/dist/ai-provider/provider.d.ts.map +1 -1
- package/dist/coder/coder.d.ts +2 -1
- package/dist/coder/coder.d.ts.map +1 -1
- package/dist/coder/coder.js +16 -44
- package/dist/coder/coder.js.map +1 -1
- package/dist/coder/prompt-templates.d.ts +2 -1
- package/dist/coder/prompt-templates.d.ts.map +1 -1
- package/dist/coder/prompt-templates.js +19 -12
- package/dist/coder/prompt-templates.js.map +1 -1
- package/dist/manager/manager.d.ts.map +1 -1
- package/dist/manager/manager.js +4 -20
- package/dist/manager/manager.js.map +1 -1
- package/dist/planner/planner.d.ts.map +1 -1
- package/dist/planner/planner.js +5 -1
- package/dist/planner/planner.js.map +1 -1
- package/dist/planner/prompt-templates.d.ts +1 -0
- package/dist/planner/prompt-templates.d.ts.map +1 -1
- package/dist/planner/prompt-templates.js +4 -0
- package/dist/planner/prompt-templates.js.map +1 -1
- package/dist/utils/context-writer.d.ts +2 -2
- package/dist/utils/context-writer.d.ts.map +1 -1
- package/dist/utils/context-writer.js +1 -2
- package/dist/utils/context-writer.js.map +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +33 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/prompts/coder/instructions.md +42 -0
- package/prompts/coder/task.md +8 -54
- package/prompts/manager/context.md +1 -10
- package/prompts/manager/instructions.md +12 -0
- package/prompts/planner/instructions.md +74 -0
- package/prompts/planner/plan-milestones.md +14 -57
- package/prompts/planner/tasks.md +14 -73
- package/prompts/planner/clarification.md +0 -12
- package/prompts/planner/clarification.questions.md +0 -10
- package/prompts/planner/optimize.md +0 -75
- package/prompts/planner/repair.md +0 -6
- package/prompts/planner/summary.md +0 -22
- package/prompts/planner/system.md +0 -4
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
You are an expert project planner. Step 3: re-analyze and optimize the entire plan.
|
|
2
|
-
|
|
3
|
-
Execution phases (strict):
|
|
4
|
-
|
|
5
|
-
PHASE 1 – Discover and load the current plan and task files:
|
|
6
|
-
1. Use list_files to inspect the filesystem (starting from the project root in context).
|
|
7
|
-
2. Use list_files on ".omaikit/plans" to identify existing plan files and determine N (the same N used in previous steps).
|
|
8
|
-
3. Use read_file on ".omaikit/plans/P{NNN}.json" to:
|
|
9
|
-
- Confirm the exact current JSON structure.
|
|
10
|
-
- Load all milestones and tasks for analysis.
|
|
11
|
-
4. Use list_files on ".omaikit/tasks" to locate task files for the plan.
|
|
12
|
-
5. Use read_file on each task file to load task details.
|
|
13
|
-
6. Optionally use search_text ONLY to gather additional technical or structural context from other project files, but do NOT modify those files.
|
|
14
|
-
|
|
15
|
-
PHASE 2 – Analyze and optimize:
|
|
16
|
-
1. Analyze the loaded plan and corresponding task files to identify:
|
|
17
|
-
- Redundant or overlapping tasks.
|
|
18
|
-
- Overly complex or unnecessary dependencies.
|
|
19
|
-
- Vague or ambiguous titles and descriptions.
|
|
20
|
-
- Inconsistent or incorrect targetModule / affectedModules paths.
|
|
21
|
-
- Imbalanced milestones (too heavy or too light vs. others).
|
|
22
|
-
2. Optimize the task set by updating the in-memory task objects that map directly to existing task files:
|
|
23
|
-
- Remove or merge redundant tasks where appropriate by updating their existing task files (e.g. status, description, dependencies). Do NOT create any new plan or milestone records.
|
|
24
|
-
- Simplify and correct dependencies so they are:
|
|
25
|
-
- Minimal (no unnecessary links).
|
|
26
|
-
- Correct (match the logical execution order).
|
|
27
|
-
- Acyclic (no circular dependencies).
|
|
28
|
-
- Improve task titles and descriptions for clarity and actionability.
|
|
29
|
-
- Adjust targetModule and affectedModules so they align with the actual or intended project structure.
|
|
30
|
-
- Re-balance milestones so that scope and effort are realistic and consistent across the plan, using only fields available in the existing task files.
|
|
31
|
-
|
|
32
|
-
PHASE 3 – Persist the optimized tasks:
|
|
33
|
-
1. After optimization, use edit_file ONLY to update the task files under ".omaikit/tasks".
|
|
34
|
-
2. Do NOT modify ".omaikit/plans/P{NNN}.json" in this step.
|
|
35
|
-
3. Do NOT create any new plan files (e.g. no new ".omaikit/plans/PXXX.json" or alternative plan structures).
|
|
36
|
-
|
|
37
|
-
Tool usage requirements (mandatory):
|
|
38
|
-
- Use list_files to list files or find files by glob pattern (start from the project root from context).
|
|
39
|
-
- Use search_text to search content within files when project context is needed.
|
|
40
|
-
- Use read_file to inspect exact file contents and confirm the current structure of ".omaikit/plans/P{NNN}.json" BEFORE optimizing.
|
|
41
|
-
- Use read_file to inspect current task files under ".omaikit/tasks" BEFORE editing them.
|
|
42
|
-
- Use edit_file ONLY to update files under ".omaikit/tasks".
|
|
43
|
-
- Do NOT optimize or rewrite tasks without first using the tools as described in PHASE 1–3.
|
|
44
|
-
- Do NOT modify ".omaikit/plans/P{NNN}.json" in this step.
|
|
45
|
-
- Do NOT create any new plan JSON files or any new plan IDs.
|
|
46
|
-
- Do NOT introduce new milestones; only adjust existing tasks and their fields.
|
|
47
|
-
|
|
48
|
-
Plan source of truth:
|
|
49
|
-
|
|
50
|
-
Here is the current plan (before optimization), already persisted via existing task files under ".omaikit/tasks":
|
|
51
|
-
{{fullPlan}}
|
|
52
|
-
|
|
53
|
-
You MUST:
|
|
54
|
-
- Treat this plan as the single source of truth.
|
|
55
|
-
- For each task in this plan, locate the corresponding JSON file under ".omaikit/tasks" (by task id).
|
|
56
|
-
- Apply optimizations ONLY by editing those existing task files.
|
|
57
|
-
- If a task in {{fullPlan}} has no matching task file, skip changes for that task and do NOT invent a new task or plan.
|
|
58
|
-
- If some desired optimization cannot be represented by updating existing task files, leave that part unchanged instead of creating a new plan or structure.
|
|
59
|
-
|
|
60
|
-
Optimize the tasks by:
|
|
61
|
-
1. Removing or deprecating redundant or overlapping tasks while preserving required coverage and dependencies, by updating existing task files (do NOT create new plan objects).
|
|
62
|
-
2. Ensuring dependencies are minimal, correct, and form a Directed Acyclic Graph (no cycles).
|
|
63
|
-
3. Improving task titles and descriptions for clarity, using concise, action-oriented language.
|
|
64
|
-
4. Verifying that targetModule and affectedModules align with the project’s actual or intended file/folder structure, and correcting them in the existing task files if needed.
|
|
65
|
-
5. Balancing milestones so their scope, effort, and risk are realistic and coherent across the entire project, only through changes to existing task files.
|
|
66
|
-
|
|
67
|
-
Constraints:
|
|
68
|
-
- Do NOT create any new plan files (no new ".omaikit/plans/P*.json").
|
|
69
|
-
- Do NOT introduce new milestones or plan IDs.
|
|
70
|
-
- Only update existing task files under ".omaikit/tasks" that correspond to tasks in {{fullPlan}}.
|
|
71
|
-
- If something cannot be accurately represented by editing those existing task files, leave it unchanged instead of inventing a new plan or structure.
|
|
72
|
-
|
|
73
|
-
Final response format:
|
|
74
|
-
- Return ONLY a brief confirmation message indicating the task files were updated.
|
|
75
|
-
- No markdown, no surrounding text, no comments.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
You are an expert project planner. Step 4: read the latest plan file and summarize it.
|
|
2
|
-
|
|
3
|
-
Tool usage requirements (mandatory):
|
|
4
|
-
- Use list_files on .omaikit/plans to find the latest P{NNN}.json.
|
|
5
|
-
- Use read_file to read that plan file.
|
|
6
|
-
- Use list_files on .omaikit/tasks to find task files for the plan.
|
|
7
|
-
- Use read_file on task files to compute totals.
|
|
8
|
-
- Use edit_file ONLY if you must fix formatting in .omaikit/plans/P{NNN}.json before summarizing.
|
|
9
|
-
- If no plan file exists, state that clearly and stop.
|
|
10
|
-
|
|
11
|
-
Return JSON:
|
|
12
|
-
{
|
|
13
|
-
"planFile": "plans/P{NNN}.json",
|
|
14
|
-
"summary": [
|
|
15
|
-
"Short overview of plan scope",
|
|
16
|
-
"Number of milestones and tasks",
|
|
17
|
-
"Key dependencies or critical path",
|
|
18
|
-
"Notable risks"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
Return ONLY valid JSON, no markdown or extra text.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
You are an expert Agile project planner with 10+ years of experience planning software projects.
|
|
2
|
-
You excel at breaking down complex features into manageable tasks, identifying dependencies, and creating realistic effort estimates.
|
|
3
|
-
You always think about the critical path and bottlenecks.
|
|
4
|
-
You prefer generating plans in valid JSON format without any markdown formatting.
|