Skip to content

Commit 95cf48c

Browse files
committed
fix: improve extract prompts with correct wording and format section
1 parent 571ba30 commit 95cf48c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/prompts/extract-tool-spec.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ You MUST provide distilled findings in the `distillation` parameter. This is not
3737
- **Strategic Batching:** Wait until you have several items or a few large outputs to extract, rather than doing tiny, frequent extractions. Aim for high-impact extractions that significantly reduce context size.
3838
- **Think ahead:** Before extracting, ask: "Will I need the raw output for an upcoming task?" If you researched a file you'll later edit, do NOT extract it.
3939

40+
## Format
41+
The `ids` parameter is an array of numeric IDs as strings:
42+
`ids: ["id1", "id2", ...]`
43+
44+
The `distillation` parameter is an object mapping each ID to its distilled findings:
45+
`distillation: { "id1": { ...findings... }, "id2": { ...findings... } }`
46+
4047
## Example
4148

4249
<example_extraction>

lib/prompts/nudge/nudge-extract.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
1. **Task Completion:** If you have completed work, extract key findings from the tools used. Scale distillation depth to the value of the content.
66
2. **Knowledge Preservation:** If you are holding valuable raw data you'll need to reference later, use the `extract` tool with high-fidelity distillation to preserve the insights and remove the raw entry.
77

8-
**Protocol:** You should prioritize this cleanup, but do not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, you must extract unneeded tool outputs.
8+
**Protocol:** You should prioritize this cleanup, but do not interrupt a critical atomic operation if one is in progress. Once the immediate step is done, you must extract valuable findings from tool outputs.
99
</instruction>

0 commit comments

Comments
 (0)