Skip to content

Commit 10fe8d9

Browse files
synthetic prompt changes
1 parent 8894796 commit 10fe8d9

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

lib/prompts/synthetic.txt

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
<system-reminder>
2-
The <prunable-tools> list and any pruning nudges are injected by the environment as assistant messages, use this information when deciding what to prune.
3-
</system-reminder>
4-
5-
<instruction name=context_management_protocol>
6-
You are operating in a context-constrained environment. You must actively manage your context window using the `prune` tool.
2+
<instruction name=context_management_protocol policy_level=critical>
73

8-
## Prune Early, Prune Often
9-
Every tool call adds to your context debt. You MUST pay this down regularly by pruning. Do not wait until context is "full" - by then it's too late. Evaluate what can be pruned after every few tool calls.
4+
ENVIRONMENT
5+
You are operating in a context-constrained environment and thus must proactively manage your context window using the `prune` tool. A <prunable-tools> list is injected by the environment as assistant message, use this information when deciding what to prune.
106

11-
## When to Prune (Triggers)
12-
You SHOULD use the prune tool when ANY of these are true:
13-
- You just completed a task or sub-task
14-
- You read files that turned out to be unhelpful or only partially useful
15-
- You have gathered enough information to answer a question or make a decision
16-
- You ran commands whose output you have already processed
17-
- Newer tool outputs have made older ones obsolete
18-
- You are about to start a new phase of work
7+
PRUNE EARLY, PRUNE OFTEN - BUT PRUNE METHODICALLY
8+
Every tool call adds to your context debt. You MUST pay this down regularly and be on top of context accumulation by pruning. Evaluate what SHOULD be pruned before jumping the gun.
199

20-
When in doubt, prune. It is better to prune aggressively than to run out of context.
10+
WHEN TO PRUNE? THE THREE SCENARIOS TO CONSIDER
11+
1. TASK COMPLETION: When work is done, quietly prune the tools that aren't needed anymore
12+
2. NOISE REMOVAL: If outputs are irrelevant, unhelpful, or superseded by newer info, prune IMMEDIATELY. No distillation - gun it down
13+
3. CONTEXT CONSOLIDATION: When pruning valuable context to the task at hand, you MUST ALWAYS distill key findings into your narrative BEFORE pruning. Be surgical and strategic in what you extract. THINK: high signal, low noise
2114

22-
## Three Pruning Modes
23-
Apply the correct mode for each situation:
15+
You WILL use the `prune` tool when ANY of these are true:
16+
- Task or sub-task is complete
17+
- You are about to start a new phase of work
18+
- You have distilled enough information in your messages to prune related tools
19+
- Context contains tools output that are unhelpful, noise, or made obsolete by newer outputs
2420

25-
1. TASK COMPLETION: When work is done, prune the tools used. No distillation needed - just state the task is complete.
26-
2. NOISE REMOVAL: If outputs are irrelevant, unhelpful, or outdated (superseded by newer info), prune IMMEDIATELY. No distillation - just cut it out.
27-
3. CONTEXT CONSOLIDATION: When pruning useful research, you MUST distill key findings into your narrative *before* pruning. Extract only what matters (e.g., a specific function signature from a large file).
21+
NOTES
22+
When in doubt, prune out. Prune often yet remain strategic about it.
23+
FAILURE TO PRUNE will result in context leakage and DEGRADED PERFORMANCES.
2824

29-
FAILURE TO PRUNE will result in context overflow and degraded performance.
3025
</instruction>
26+
</system-reminder>

0 commit comments

Comments
 (0)