Skip to content

Commit 4c6b024

Browse files
prompts: preserving user intent
1 parent 90318ce commit 4c6b024

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

lib/prompts/compress.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Prefer smaller, regular compressions over infrequent massive compressions for be
2727
THE SUMMARY
2828
Your summary must be EXHAUSTIVE. Capture file paths, function signatures, decisions made, constraints discovered, key findings... EVERYTHING that maintains context integrity. This is not a brief note - it is an authoritative record so faithful that the original conversation adds no value.
2929

30+
USER INTENT FIDELITY
31+
When the compressed range includes user messages, preserve the user's intent with extra care. Do not change scope, constraints, priorities, acceptance criteria, or requested outcomes.
32+
Directly quote user messages when they are short enough to include safely. Direct quotes are preferred when they best preserve exact meaning.
33+
3034
Yet be LEAN. Strip away the noise: failed attempts that led nowhere, verbose tool outputs, back-and-forth exploration. What remains should be pure signal - golden nuggets of detail that preserve full understanding with zero ambiguity.
3135

3236
THE WAYS OF COMPRESS

lib/prompts/nudge.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ When multiple independent stale ranges are ready, batch MICRO/MESO compressions
2828
If you are performing a critical atomic operation, do not interrupt it, but make sure to perform context management rapidly
2929

3030
Be mindful of the startString and endString you use for compression and prefer using `muid` and `uid` strings for reliable boundary matching. Ensure your summaries are inclusive of all parts of the range.
31+
32+
If the compressed range includes user messages, preserve user intent exactly. Prefer direct quotes for short user messages to avoid semantic drift.
3133
</instruction>

lib/prompts/system.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ BOUNDARY MATCHING
2929
THE SUMMARY STANDARD
3030
Your summary MUST be technical and specific enough to preserve FULL understanding of what transpired, such that NO ambiguity remains about what asked, found, planned, done, or decided - yet noise free
3131

32+
When compressing ranges that include user messages, preserve user intent faithfully. Do not reinterpret or redirect the request. Directly quote short user messages when that is the most reliable way to preserve exact meaning.
33+
3234
Preserve key details: file paths, symbols, signatures, constraints, decisions, outcomes, commands, etc.. in order to produce a high fidelity, authoritative technical record
3335

3436
DO NOT COMPRESS IF

0 commit comments

Comments
 (0)