Skip to content

feat: mark nudge as system-generated, not user message - #60

Closed
Tyan66666 wants to merge 4 commits into
ranxianglei:masterfrom
Tyan66666:nudge-self-marker
Closed

Tyan66666 wants to merge 4 commits into
ranxianglei:masterfrom
Tyan66666:nudge-self-marker

Conversation

@Tyan66666

@Tyan66666 Tyan66666 commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds NUDGE_SELF_MARKER to the nudge text (src/nudge-text.ts): a system-generated-context notice prepended to both the efficiency nudge (EFFICIENCY_NOTE) and the emergency header (EMERGENCY_HEADER).

Why

The nudge instructs the model to compress context. Without a self-marker, the nudge text could be misattributed as a user request/user intent inside compress summaries.

Tests

  • npm test: 212 tests, all pass.

@ranxianglei

Copy link
Copy Markdown
Owner

link #59

@ranxianglei

Copy link
Copy Markdown
Owner

#62 这个分支用以支持用户自定义覆盖所有的提示词

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants