@oh-my-pi/pi-coding-agent 13.2.0 → 13.2.1
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/CHANGELOG.md +26 -0
- package/package.json +7 -7
- package/scripts/format-prompts.ts +33 -14
- package/src/capability/index.ts +1 -2
- package/src/cli/args.ts +1 -2
- package/src/cli/config-cli.ts +1 -1
- package/src/cli/file-processor.ts +1 -2
- package/src/cli/grep-cli.ts +1 -1
- package/src/cli/jupyter-cli.ts +1 -1
- package/src/cli/plugin-cli.ts +1 -1
- package/src/cli/setup-cli.ts +1 -1
- package/src/cli/shell-cli.ts +1 -1
- package/src/cli/ssh-cli.ts +1 -1
- package/src/cli/stats-cli.ts +1 -2
- package/src/cli/update-cli.ts +1 -2
- package/src/cli/web-search-cli.ts +1 -1
- package/src/cli.ts +1 -1
- package/src/commands/launch.ts +2 -1
- package/src/commit/agentic/agent.ts +2 -1
- package/src/commit/agentic/index.ts +1 -2
- package/src/commit/agentic/prompts/system.md +3 -3
- package/src/commit/agentic/tools/propose-changelog.ts +30 -19
- package/src/commit/changelog/generate.ts +16 -6
- package/src/commit/changelog/index.ts +2 -1
- package/src/commit/pipeline.ts +1 -2
- package/src/commit/prompts/reduce-system.md +1 -1
- package/src/commit/types.ts +10 -1
- package/src/config/keybindings.ts +1 -2
- package/src/config/model-registry.ts +1 -1
- package/src/config/prompt-templates.ts +14 -2
- package/src/config/settings.ts +9 -2
- package/src/config.ts +1 -2
- package/src/debug/index.ts +1 -1
- package/src/debug/report-bundle.ts +1 -2
- package/src/debug/system-info.ts +1 -2
- package/src/discovery/agents.ts +2 -2
- package/src/discovery/builtin.ts +8 -9
- package/src/discovery/claude-plugins.ts +2 -2
- package/src/discovery/claude.ts +7 -7
- package/src/discovery/codex.ts +3 -3
- package/src/discovery/cursor.ts +5 -4
- package/src/discovery/gemini.ts +5 -5
- package/src/discovery/helpers.ts +47 -69
- package/src/discovery/mcp-json.ts +3 -3
- package/src/discovery/opencode.ts +7 -8
- package/src/discovery/ssh.ts +3 -3
- package/src/discovery/vscode.ts +3 -2
- package/src/discovery/windsurf.ts +3 -2
- package/src/exa/company.ts +1 -1
- package/src/exa/factory.ts +1 -6
- package/src/exa/linkedin.ts +1 -1
- package/src/exa/mcp-client.ts +19 -8
- package/src/exa/search.ts +2 -2
- package/src/exa/types.ts +3 -3
- package/src/exec/bash-executor.ts +2 -1
- package/src/exec/non-interactive-env.ts +43 -0
- package/src/export/custom-share.ts +1 -1
- package/src/export/html/index.ts +1 -2
- package/src/extensibility/custom-commands/loader.ts +1 -2
- package/src/extensibility/plugins/installer.ts +1 -2
- package/src/extensibility/plugins/loader.ts +1 -2
- package/src/extensibility/plugins/manager.ts +3 -2
- package/src/extensibility/skills.ts +59 -115
- package/src/index.ts +1 -3
- package/src/internal-urls/docs-index.generated.ts +1 -1
- package/src/ipy/executor.ts +1 -2
- package/src/ipy/gateway-coordinator.ts +1 -2
- package/src/ipy/modules.ts +1 -1
- package/src/ipy/runtime.ts +1 -3
- package/src/main.ts +1 -2
- package/src/mcp/config.ts +1 -1
- package/src/mcp/transports/stdio.ts +1 -2
- package/src/memories/index.ts +1 -2
- package/src/modes/components/extensions/extension-dashboard.ts +1 -1
- package/src/modes/components/extensions/inspector-panel.ts +8 -2
- package/src/modes/components/footer.ts +1 -2
- package/src/modes/components/status-line/segments.ts +1 -2
- package/src/modes/components/tool-execution.ts +3 -10
- package/src/modes/components/welcome.ts +1 -1
- package/src/modes/controllers/command-controller.ts +1 -2
- package/src/modes/controllers/mcp-command-controller.ts +1 -1
- package/src/modes/controllers/selector-controller.ts +1 -1
- package/src/modes/controllers/ssh-command-controller.ts +1 -1
- package/src/modes/interactive-mode.ts +2 -3
- package/src/modes/shared.ts +1 -2
- package/src/modes/theme/theme.ts +1 -2
- package/src/patch/index.ts +1 -25
- package/src/prompts/agents/designer.md +7 -10
- package/src/prompts/agents/explore.md +15 -23
- package/src/prompts/agents/init.md +23 -23
- package/src/prompts/agents/plan.md +14 -77
- package/src/prompts/agents/reviewer.md +6 -5
- package/src/prompts/agents/task.md +13 -11
- package/src/prompts/compaction/branch-summary.md +3 -3
- package/src/prompts/compaction/compaction-short-summary.md +7 -7
- package/src/prompts/compaction/compaction-summary-context.md +1 -1
- package/src/prompts/compaction/compaction-summary.md +5 -5
- package/src/prompts/compaction/compaction-turn-prefix.md +3 -3
- package/src/prompts/compaction/compaction-update-summary.md +11 -11
- package/src/prompts/memories/consolidation.md +5 -5
- package/src/prompts/memories/read-path.md +6 -6
- package/src/prompts/memories/stage_one_input.md +1 -1
- package/src/prompts/memories/stage_one_system.md +5 -5
- package/src/prompts/review-request.md +4 -4
- package/src/prompts/system/agent-creation-architect.md +17 -17
- package/src/prompts/system/agent-creation-user.md +2 -2
- package/src/prompts/system/custom-system-prompt.md +4 -4
- package/src/prompts/system/plan-mode-active.md +20 -20
- package/src/prompts/system/plan-mode-approved.md +7 -7
- package/src/prompts/system/plan-mode-reference.md +2 -2
- package/src/prompts/system/plan-mode-subagent.md +8 -8
- package/src/prompts/system/subagent-submit-reminder.md +5 -5
- package/src/prompts/system/subagent-system-prompt.md +29 -22
- package/src/prompts/system/subagent-user-prompt.md +7 -3
- package/src/prompts/system/summarization-system.md +1 -1
- package/src/prompts/system/system-prompt.md +201 -226
- package/src/prompts/system/title-system.md +2 -2
- package/src/prompts/system/ttsr-interrupt.md +1 -1
- package/src/prompts/system/web-search.md +16 -16
- package/src/prompts/tools/ask.md +1 -3
- package/src/prompts/tools/await.md +2 -4
- package/src/prompts/tools/bash.md +5 -7
- package/src/prompts/tools/browser.md +4 -6
- package/src/prompts/tools/calculator.md +1 -3
- package/src/prompts/tools/cancel-job.md +2 -4
- package/src/prompts/tools/exit-plan-mode.md +7 -7
- package/src/prompts/tools/fetch.md +0 -2
- package/src/prompts/tools/find.md +3 -5
- package/src/prompts/tools/gemini-image.md +6 -22
- package/src/prompts/tools/grep.md +4 -6
- package/src/prompts/tools/hashline.md +12 -15
- package/src/prompts/tools/lsp.md +1 -3
- package/src/prompts/tools/patch.md +7 -9
- package/src/prompts/tools/python.md +10 -14
- package/src/prompts/tools/read.md +0 -2
- package/src/prompts/tools/replace.md +5 -7
- package/src/prompts/tools/ssh.md +3 -5
- package/src/prompts/tools/task.md +6 -8
- package/src/prompts/tools/todo-write.md +7 -9
- package/src/prompts/tools/web-search.md +3 -5
- package/src/prompts/tools/write.md +3 -5
- package/src/sdk.ts +1 -2
- package/src/session/agent-session.ts +10 -26
- package/src/session/agent-storage.ts +1 -2
- package/src/session/history-storage.ts +1 -2
- package/src/session/session-manager.ts +10 -2
- package/src/ssh/connection-manager.ts +11 -2
- package/src/ssh/sshfs-mount.ts +7 -1
- package/src/system-prompt.ts +25 -103
- package/src/task/agents.ts +1 -1
- package/src/task/worktree.ts +1 -2
- package/src/tools/ask.ts +0 -1
- package/src/tools/bash-interactive.ts +2 -45
- package/src/tools/bash.ts +5 -5
- package/src/tools/browser.ts +1 -2
- package/src/tools/gemini-image.ts +8 -28
- package/src/tools/json-tree.ts +2 -1
- package/src/tools/python.ts +1 -1
- package/src/tools/read.ts +1 -2
- package/src/utils/tools-manager.ts +1 -2
- package/src/web/scrapers/artifacthub.ts +2 -1
- package/src/web/scrapers/aur.ts +2 -1
- package/src/web/scrapers/biorxiv.ts +2 -1
- package/src/web/scrapers/bluesky.ts +2 -1
- package/src/web/scrapers/chocolatey.ts +2 -1
- package/src/web/scrapers/cisa-kev.ts +2 -1
- package/src/web/scrapers/clojars.ts +2 -1
- package/src/web/scrapers/coingecko.ts +2 -1
- package/src/web/scrapers/crates-io.ts +2 -1
- package/src/web/scrapers/crossref.ts +2 -1
- package/src/web/scrapers/discogs.ts +3 -1
- package/src/web/scrapers/discourse.ts +2 -1
- package/src/web/scrapers/dockerhub.ts +2 -1
- package/src/web/scrapers/fdroid.ts +2 -1
- package/src/web/scrapers/firefox-addons.ts +2 -1
- package/src/web/scrapers/flathub.ts +2 -1
- package/src/web/scrapers/gitlab.ts +1 -1
- package/src/web/scrapers/go-pkg.ts +2 -1
- package/src/web/scrapers/hackage.ts +2 -1
- package/src/web/scrapers/hackernews.ts +2 -1
- package/src/web/scrapers/hex.ts +2 -1
- package/src/web/scrapers/huggingface.ts +2 -1
- package/src/web/scrapers/jetbrains-marketplace.ts +2 -1
- package/src/web/scrapers/lemmy.ts +2 -1
- package/src/web/scrapers/lobsters.ts +2 -1
- package/src/web/scrapers/mastodon.ts +2 -1
- package/src/web/scrapers/maven.ts +2 -1
- package/src/web/scrapers/mdn.ts +2 -1
- package/src/web/scrapers/metacpan.ts +2 -1
- package/src/web/scrapers/musicbrainz.ts +3 -1
- package/src/web/scrapers/npm.ts +2 -1
- package/src/web/scrapers/nuget.ts +2 -1
- package/src/web/scrapers/nvd.ts +2 -1
- package/src/web/scrapers/ollama.ts +2 -1
- package/src/web/scrapers/open-vsx.ts +2 -1
- package/src/web/scrapers/opencorporates.ts +2 -1
- package/src/web/scrapers/openlibrary.ts +2 -1
- package/src/web/scrapers/orcid.ts +3 -1
- package/src/web/scrapers/osv.ts +2 -1
- package/src/web/scrapers/packagist.ts +2 -1
- package/src/web/scrapers/pub-dev.ts +2 -1
- package/src/web/scrapers/pubmed.ts +2 -1
- package/src/web/scrapers/pypi.ts +2 -1
- package/src/web/scrapers/rawg.ts +2 -8
- package/src/web/scrapers/reddit.ts +2 -1
- package/src/web/scrapers/repology.ts +2 -1
- package/src/web/scrapers/rfc.ts +2 -1
- package/src/web/scrapers/rubygems.ts +2 -1
- package/src/web/scrapers/searchcode.ts +2 -1
- package/src/web/scrapers/sec-edgar.ts +2 -1
- package/src/web/scrapers/semantic-scholar.ts +2 -1
- package/src/web/scrapers/snapcraft.ts +2 -1
- package/src/web/scrapers/sourcegraph.ts +2 -1
- package/src/web/scrapers/spdx.ts +2 -1
- package/src/web/scrapers/stackoverflow.ts +2 -1
- package/src/web/scrapers/terraform.ts +2 -1
- package/src/web/scrapers/types.ts +0 -11
- package/src/web/scrapers/vimeo.ts +2 -1
- package/src/web/scrapers/vscode-marketplace.ts +2 -1
- package/src/web/scrapers/w3c.ts +2 -1
- package/src/web/scrapers/wikidata.ts +2 -1
- package/src/web/search/index.ts +10 -14
- package/src/web/search/provider.ts +2 -2
- package/src/web/search/providers/codex.ts +1 -2
- package/src/web/search/providers/exa.ts +1 -6
- package/src/web/search/providers/gemini.ts +1 -1
- package/src/web/search/providers/perplexity.ts +1 -2
- package/src/web/search/providers/utils.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<critical>
|
|
2
|
-
Plan mode active. You MUST perform READ-ONLY operations only.
|
|
2
|
+
Plan mode active. You **MUST** perform READ-ONLY operations only.
|
|
3
3
|
|
|
4
|
-
You MUST NOT
|
|
4
|
+
You **MUST NOT**:
|
|
5
5
|
- Creating/editing/deleting files (except plan file below)
|
|
6
6
|
- Running state-changing commands (git commit, npm install, etc.)
|
|
7
7
|
- Making any system changes
|
|
@@ -12,15 +12,15 @@ Supersedes all other instructions.
|
|
|
12
12
|
## Plan File
|
|
13
13
|
|
|
14
14
|
{{#if planExists}}
|
|
15
|
-
Plan file exists at `{{planFilePath}}`; you MUST read and update it incrementally.
|
|
15
|
+
Plan file exists at `{{planFilePath}}`; you **MUST** read and update it incrementally.
|
|
16
16
|
{{else}}
|
|
17
|
-
You MUST create a plan at `{{planFilePath}}`.
|
|
17
|
+
You **MUST** create a plan at `{{planFilePath}}`.
|
|
18
18
|
{{/if}}
|
|
19
19
|
|
|
20
|
-
You MUST use `{{editToolName}}` for incremental updates; use `{{writeToolName}}` only for create/full replace.
|
|
20
|
+
You **MUST** use `{{editToolName}}` for incremental updates; use `{{writeToolName}}` only for create/full replace.
|
|
21
21
|
|
|
22
22
|
<caution>
|
|
23
|
-
Plan execution runs in fresh context (session cleared). You MUST make the plan file self-contained: include requirements, decisions, key findings, remaining todos needed to continue without prior session history.
|
|
23
|
+
Plan execution runs in fresh context (session cleared). You **MUST** make the plan file self-contained: include requirements, decisions, key findings, remaining todos needed to continue without prior session history.
|
|
24
24
|
</caution>
|
|
25
25
|
|
|
26
26
|
{{#if reentry}}
|
|
@@ -41,16 +41,16 @@ Plan execution runs in fresh context (session cleared). You MUST make the plan f
|
|
|
41
41
|
|
|
42
42
|
<procedure>
|
|
43
43
|
### 1. Explore
|
|
44
|
-
You MUST use `find`, `grep`, `read`, `ls` to understand the codebase.
|
|
44
|
+
You **MUST** use `find`, `grep`, `read`, `ls` to understand the codebase.
|
|
45
45
|
### 2. Interview
|
|
46
|
-
You MUST use `ask` to clarify:
|
|
46
|
+
You **MUST** use `ask` to clarify:
|
|
47
47
|
- Ambiguous requirements
|
|
48
48
|
- Technical decisions and tradeoffs
|
|
49
49
|
- Preferences: UI/UX, performance, edge cases
|
|
50
50
|
|
|
51
|
-
You MUST batch questions. You MUST NOT ask what you can answer by exploring.
|
|
51
|
+
You **MUST** batch questions. You **MUST NOT** ask what you can answer by exploring.
|
|
52
52
|
### 3. Update Incrementally
|
|
53
|
-
You MUST use `{{editToolName}}` to update plan file as you learn; MUST NOT wait until end.
|
|
53
|
+
You **MUST** use `{{editToolName}}` to update plan file as you learn; **MUST NOT** wait until end.
|
|
54
54
|
### 4. Calibrate
|
|
55
55
|
- Large unspecified task → multiple interview rounds
|
|
56
56
|
- Smaller task → fewer or no questions
|
|
@@ -59,12 +59,12 @@ You MUST use `{{editToolName}}` to update plan file as you learn; MUST NOT wait
|
|
|
59
59
|
<caution>
|
|
60
60
|
### Plan Structure
|
|
61
61
|
|
|
62
|
-
You MUST use clear markdown headers; include:
|
|
62
|
+
You **MUST** use clear markdown headers; include:
|
|
63
63
|
- Recommended approach (not alternatives)
|
|
64
64
|
- Paths of critical files to modify
|
|
65
65
|
- Verification: how to test end-to-end
|
|
66
66
|
|
|
67
|
-
The plan MUST be concise enough to scan. Detailed enough to execute.
|
|
67
|
+
The plan **MUST** be concise enough to scan. Detailed enough to execute.
|
|
68
68
|
</caution>
|
|
69
69
|
|
|
70
70
|
{{else}}
|
|
@@ -72,28 +72,28 @@ The plan MUST be concise enough to scan. Detailed enough to execute.
|
|
|
72
72
|
|
|
73
73
|
<procedure>
|
|
74
74
|
### Phase 1: Understand
|
|
75
|
-
You MUST focus on the request and associated code. You SHOULD launch parallel explore agents when scope spans multiple areas.
|
|
75
|
+
You **MUST** focus on the request and associated code. You **SHOULD** launch parallel explore agents when scope spans multiple areas.
|
|
76
76
|
|
|
77
77
|
### Phase 2: Design
|
|
78
|
-
You MUST draft an approach based on exploration. You MUST consider trade-offs briefly, then choose.
|
|
78
|
+
You **MUST** draft an approach based on exploration. You **MUST** consider trade-offs briefly, then choose.
|
|
79
79
|
|
|
80
80
|
### Phase 3: Review
|
|
81
|
-
You MUST read critical files. You MUST verify plan matches original request. You SHOULD use `ask` to clarify remaining questions.
|
|
81
|
+
You **MUST** read critical files. You **MUST** verify plan matches original request. You **SHOULD** use `ask` to clarify remaining questions.
|
|
82
82
|
|
|
83
83
|
### Phase 4: Update Plan
|
|
84
|
-
You MUST update `{{planFilePath}}` (`{{editToolName}}` for changes, `{{writeToolName}}` only if creating from scratch):
|
|
84
|
+
You **MUST** update `{{planFilePath}}` (`{{editToolName}}` for changes, `{{writeToolName}}` only if creating from scratch):
|
|
85
85
|
- Recommended approach only
|
|
86
86
|
- Paths of critical files to modify
|
|
87
87
|
- Verification section
|
|
88
88
|
</procedure>
|
|
89
89
|
|
|
90
90
|
<caution>
|
|
91
|
-
You MUST ask questions throughout. You MUST NOT make large assumptions about user intent.
|
|
91
|
+
You **MUST** ask questions throughout. You **MUST NOT** make large assumptions about user intent.
|
|
92
92
|
</caution>
|
|
93
93
|
{{/if}}
|
|
94
94
|
|
|
95
95
|
<directives>
|
|
96
|
-
- You MUST use `ask` only for clarifying requirements or choosing approaches
|
|
96
|
+
- You **MUST** use `ask` only for clarifying requirements or choosing approaches
|
|
97
97
|
</directives>
|
|
98
98
|
|
|
99
99
|
<critical>
|
|
@@ -101,6 +101,6 @@ Your turn ends ONLY by:
|
|
|
101
101
|
1. Using `ask` gather information, OR
|
|
102
102
|
2. Calling `exit_plan_mode` when ready
|
|
103
103
|
|
|
104
|
-
You MUST NOT ask plan approval via text or `ask`; you MUST use `exit_plan_mode`.
|
|
105
|
-
You MUST keep going until complete.
|
|
104
|
+
You **MUST NOT** ask plan approval via text or `ask`; you **MUST** use `exit_plan_mode`.
|
|
105
|
+
You **MUST** keep going until complete.
|
|
106
106
|
</critical>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<critical>
|
|
2
|
-
Plan approved. You MUST execute it now.
|
|
2
|
+
Plan approved. You **MUST** execute it now.
|
|
3
3
|
</critical>
|
|
4
4
|
|
|
5
5
|
Finalized plan artifact: `{{finalPlanFilePath}}`
|
|
@@ -9,15 +9,15 @@ Finalized plan artifact: `{{finalPlanFilePath}}`
|
|
|
9
9
|
{{planContent}}
|
|
10
10
|
|
|
11
11
|
<instruction>
|
|
12
|
-
You MUST execute this plan step by step from `{{finalPlanFilePath}}`. You have full tool access.
|
|
13
|
-
You MUST verify each step before proceeding to the next.
|
|
12
|
+
You **MUST** execute this plan step by step from `{{finalPlanFilePath}}`. You have full tool access.
|
|
13
|
+
You **MUST** verify each step before proceeding to the next.
|
|
14
14
|
{{#has tools "todo_write"}}
|
|
15
|
-
Before execution, you MUST initialize todo tracking for this plan with `todo_write`.
|
|
16
|
-
After each completed step, you MUST immediately update `todo_write` so progress stays visible.
|
|
17
|
-
If a `todo_write` call fails, you MUST fix the todo payload and retry before continuing silently.
|
|
15
|
+
Before execution, you **MUST** initialize todo tracking for this plan with `todo_write`.
|
|
16
|
+
After each completed step, you **MUST** immediately update `todo_write` so progress stays visible.
|
|
17
|
+
If a `todo_write` call fails, you **MUST** fix the todo payload and retry before continuing silently.
|
|
18
18
|
{{/has}}
|
|
19
19
|
</instruction>
|
|
20
20
|
|
|
21
21
|
<critical>
|
|
22
|
-
You MUST keep going until complete. This matters.
|
|
22
|
+
You **MUST** keep going until complete. This matters.
|
|
23
23
|
</critical>
|
|
@@ -9,6 +9,6 @@ Plan file from previous session: `{{planFilePath}}`
|
|
|
9
9
|
</details>
|
|
10
10
|
|
|
11
11
|
<instruction>
|
|
12
|
-
If this plan is relevant to current work and not complete, you MUST continue executing it.
|
|
13
|
-
If the plan is stale or unrelated, you MUST ignore it.
|
|
12
|
+
If this plan is relevant to current work and not complete, you **MUST** continue executing it.
|
|
13
|
+
If the plan is stale or unrelated, you **MUST** ignore it.
|
|
14
14
|
</instruction>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<critical>
|
|
2
|
-
Plan mode active. You MUST perform READ-ONLY operations only.
|
|
2
|
+
Plan mode active. You **MUST** perform READ-ONLY operations only.
|
|
3
3
|
|
|
4
|
-
You MUST NOT
|
|
4
|
+
You **MUST NOT**:
|
|
5
5
|
- Creating, editing, deleting, moving, or copying files
|
|
6
6
|
- Running state-changing commands
|
|
7
7
|
- Making any changes to system
|
|
@@ -11,13 +11,13 @@ Supersedes all other instructions.
|
|
|
11
11
|
|
|
12
12
|
<role>
|
|
13
13
|
Software architect and planning specialist for main agent.
|
|
14
|
-
You MUST explore the codebase and report findings. Main agent updates plan file.
|
|
14
|
+
You **MUST** explore the codebase and report findings. Main agent updates plan file.
|
|
15
15
|
</role>
|
|
16
16
|
|
|
17
17
|
<procedure>
|
|
18
|
-
1. You MUST use read-only tools to investigate
|
|
19
|
-
2. You MUST describe plan changes in response text
|
|
20
|
-
3. You MUST end with a Critical Files section
|
|
18
|
+
1. You **MUST** use read-only tools to investigate
|
|
19
|
+
2. You **MUST** describe plan changes in response text
|
|
20
|
+
3. You **MUST** end with a Critical Files section
|
|
21
21
|
</procedure>
|
|
22
22
|
|
|
23
23
|
<output>
|
|
@@ -31,6 +31,6 @@ List 3-5 files most critical for implementing this plan:
|
|
|
31
31
|
</output>
|
|
32
32
|
|
|
33
33
|
<critical>
|
|
34
|
-
You MUST
|
|
35
|
-
You MUST keep going until complete.
|
|
34
|
+
You **MUST** operate as read-only. You **MUST NOT** write, edit, or modify files, nor execute any state-changing commands, via git, build system, package manager, etc.
|
|
35
|
+
You **MUST** keep going until complete.
|
|
36
36
|
</critical>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<system-reminder>
|
|
2
2
|
You stopped without calling submit_result. This is reminder {{retryCount}} of {{maxRetries}}.
|
|
3
3
|
|
|
4
|
-
You MUST call submit_result as your only action now. Choose one:
|
|
5
|
-
- If task is complete: you MUST call submit_result with your result data
|
|
6
|
-
- If task failed or was interrupted: you MUST call submit_result with status="aborted" and describe what happened
|
|
4
|
+
You **MUST** call submit_result as your only action now. Choose one:
|
|
5
|
+
- If task is complete: you **MUST** call submit_result with your result data
|
|
6
|
+
- If task failed or was interrupted: you **MUST** call submit_result with status="aborted" and describe what happened
|
|
7
7
|
|
|
8
|
-
You MUST NOT choose aborted if you can still complete the task through exploration (using available tools or repo context). If you abort, you MUST include what you tried and the exact blocker.
|
|
8
|
+
You **MUST NOT** choose aborted if you can still complete the task through exploration (using available tools or repo context). If you abort, you **MUST** include what you tried and the exact blocker.
|
|
9
9
|
|
|
10
|
-
You MUST NOT output text without a tool call. You MUST call submit_result to finish.
|
|
10
|
+
You **MUST NOT** output text without a tool call. You **MUST** call submit_result to finish.
|
|
11
11
|
</system-reminder>
|
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
{{base}}
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
{{SECTION_SEPERATOR "Acting as"}}
|
|
5
4
|
{{agent}}
|
|
6
5
|
|
|
7
|
-
{{
|
|
8
|
-
|
|
9
|
-
For additional parent conversation context, check {{contextFile}} (`tail -100` or `grep` relevant terms).
|
|
10
|
-
</context>
|
|
11
|
-
{{/if}}
|
|
12
|
-
|
|
13
|
-
<critical>
|
|
6
|
+
{{SECTION_SEPERATOR "Job"}}
|
|
7
|
+
You are operating on a delegated sub-task.
|
|
14
8
|
{{#if worktree}}
|
|
15
|
-
|
|
9
|
+
You are working in an isolated working tree at `{{worktree}}` for this sub-task.
|
|
10
|
+
You **MUST NOT** modify files outside this tree or in the original repository.
|
|
16
11
|
{{/if}}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{{
|
|
20
|
-
- If you cannot complete, you MUST call `submit_result` with `status="aborted"` and error message. You MUST NOT provide a success result or pretend completion.
|
|
21
|
-
{{else}}
|
|
22
|
-
- If you cannot complete, you MUST call `submit_result` with `status="aborted"` and error message. You MUST NOT claim success.
|
|
12
|
+
|
|
13
|
+
{{#if contextFile}}
|
|
14
|
+
If you need additional information, you can find your conversation with the user in {{contextFile}} (`tail` or `grep` relevant terms).
|
|
23
15
|
{{/if}}
|
|
16
|
+
|
|
17
|
+
{{SECTION_SEPERATOR "Closure"}}
|
|
18
|
+
No TODO tracking, no progress updates. Execute, call `submit_result`, done.
|
|
19
|
+
|
|
20
|
+
When finished, you **MUST** call `submit_result` exactly once. This is like writing to a ticket, provide what is required, and close it.
|
|
21
|
+
|
|
22
|
+
This is your only way to return a result. You **MUST NOT** put JSON in plain text, and you **MUST NOT** substitute a text summary for the structured `data` parameter.
|
|
23
|
+
|
|
24
24
|
{{#if outputSchema}}
|
|
25
|
-
|
|
25
|
+
Your result **MUST** match this TypeScript interface:
|
|
26
26
|
```ts
|
|
27
27
|
{{jtdToTypeScript outputSchema}}
|
|
28
28
|
```
|
|
29
29
|
{{/if}}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
|
|
31
|
+
{{SECTION_SEPERATOR "Giving Up"}}
|
|
32
|
+
If you cannot complete the assignment, you **MUST** call `submit_result` exactly once with `status="aborted"` and an error message describing what you tried and the exact blocker.
|
|
33
|
+
|
|
34
|
+
Aborting is a last resort.
|
|
35
|
+
You **MUST NOT** abort due to uncertainty or missing information obtainable via tools or repo context.
|
|
36
|
+
You **MUST NOT** abort due to requiring a design, you can derive that yourself, more than capable of that.
|
|
37
|
+
|
|
38
|
+
Proceed with the best approach using the most reasonable option.
|
|
39
|
+
|
|
40
|
+
You **MUST** keep going until this ticket is closed.
|
|
41
|
+
This matters.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{{#if context}}
|
|
2
|
-
|
|
2
|
+
{{SECTION_SEPERATOR "Background"}}
|
|
3
|
+
{{context}}
|
|
3
4
|
{{/if}}
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
{{SECTION_SEPERATOR "Task"}}
|
|
7
|
+
Your assignment is below. Your work begins now.
|
|
8
|
+
<goal>
|
|
9
|
+
{{assignment}}
|
|
10
|
+
</goal>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
You are a context summarization assistant. Your task is to read a conversation between a user and an AI coding assistant, then produce a structured summary following the exact format specified.
|
|
2
2
|
|
|
3
|
-
You MUST NOT continue the conversation. You MUST NOT respond to any questions in the conversation. You MUST ONLY output the structured summary.
|
|
3
|
+
You **MUST NOT** continue the conversation. You **MUST NOT** respond to any questions in the conversation. You **MUST** ONLY output the structured summary.
|