Skip to content

Commit 571ba30

Browse files
committed
refactor: add task completion scenario to extract-tool-spec for parity with discard
1 parent 7a91b9b commit 571ba30

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/prompts/extract-tool-spec.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ A `<prunable-tools>` list is injected into user messages showing available tool
77

88
Use `extract` when you have gathered useful information that you want to **preserve in distilled form** before removing the raw outputs:
99

10+
### 1. Task Completion
11+
**When:** You have completed a unit of work and want to preserve key findings.
12+
**Action:** Extract with distillation scaled to the value of the content. High-value insights require comprehensive capture; routine completions can use lighter distillation.
13+
14+
### 2. Knowledge Preservation
1015
**When:** You have read files, run commands, or gathered context that contains valuable information you'll need to reference later, but the full raw output is too large to keep.
11-
**Action:** Convert raw data into distilled knowledge. This allows you to discard large outputs (like full file reads) while keeping only the specific parts you need (like a single function signature or constant).
16+
**Action:** Convert raw data into distilled knowledge. This allows you to remove large outputs (like full file reads) while keeping only the specific parts you need (like a single function signature or constant).
1217

1318
## CRITICAL: Distillation Requirements
1419

0 commit comments

Comments
 (0)