Keep tool pairs and fold reminders into the last result #12

Merged
weichen merged 1 commits from feature/context-engineering into main 2026-10-03 16:25:36 +00:00
Owner

Why: Old tool results were filling the window, compaction could split a tool group or commit a stale summary, and reminders arrived as extra user messages.

Evidence: Compaction retries a conflict and opens the circuit after three failures. Clearing keeps the last five tool results. A stale file write is rejected. RPC reports started, queued, or handled.

Impact: Requests over the context window replace older tool results with a placeholder. Rewriting an existing file requires a read in the same run. Subagent text over 32000 characters is capped.

Refs: feature/context-engineering

Why: Old tool results were filling the window, compaction could split a tool group or commit a stale summary, and reminders arrived as extra user messages. Evidence: Compaction retries a conflict and opens the circuit after three failures. Clearing keeps the last five tool results. A stale file write is rejected. RPC reports started, queued, or handled. Impact: Requests over the context window replace older tool results with a placeholder. Rewriting an existing file requires a read in the same run. Subagent text over 32000 characters is capped. Refs: feature/context-engineering
weichen added 1 commit 2026-10-03 16:24:55 +00:00
Keep tool pairs and fold reminders into the last result
ci / vet-and-test (pull_request) Successful in 45s
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
6fd1d441a9
Why: Old tool results were filling the window, compaction could split a tool group or commit a stale summary, and reminders arrived as extra user messages.
Evidence: Compaction retries a conflict and opens the circuit after three failures; clearing keeps the last five tool results; a stale file write is rejected; RPC reports started, queued, or handled.
Impact: Requests over the context window replace older tool results with a placeholder. Rewriting an existing file now requires a read in the same run. Subagent text over 32000 characters is capped.
Refs: feature/context-engineering
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit 3851bfb8a7 into main 2026-10-03 16:25:36 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-Native#12