Skip to content

feat(coding-agent): reduce goal note frequency - #312

Merged
Pepps233 merged 3 commits into
docs/goal-modefrom
feat/goal-note-cadence
Nov 6, 2026
Merged

Pepps233 merged 3 commits into
docs/goal-modefrom
feat/goal-note-cadence

Conversation

@Pepps233

@Pepps233 Pepps233 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reduce repeated goal-mode context usage notes by reporting after the first completed tool batch and then every other batch.

Reasoning

Routine usage metadata does not need to repeat after every batch.
Keep context markers and request-fit checks on every batch, and report higher pressure tiers immediately so compaction remains timely.
Derive cadence from persisted request boundaries so retries do not advance it or rewrite history.

Changes

  • Alternate usage and guidance notes during tool loops; refresh for new input and request configuration changes.
  • Record the last reported usage in boundary metadata and validate it on replay.
  • Preserve per-exchange markers, compaction eligibility checks, and emergency recovery.
  • Document cadence and cover normal/error batches, pressure thresholds, retries, and sustained-loop marker stability.

Testing

  • npm run check.
  • Focused faux-provider tests for cadence, markers, cache stability, steering, compaction, and recovery.
  • ./test.sh: all scripts and other packages passed; found and updated one test's old every-batch expectation.
  • ./test.sh coding-agent: 3,380 passed, 49 skipped after updating that expectation.

- Reduce repetitive context metadata during tool loops
- Preserve immediate pressure guidance and per-batch safety checks
@Pepps233 Pepps233 added enhancement New feature or request coding-agent labels Nov 4, 2026
@Pepps233 Pepps233 self-assigned this Nov 4, 2026
@Pepps233
Pepps233 added this pull request to stack #315 November 6, 2026 00:56
@Pepps233
Pepps233 merged commit 9007e2b into main Nov 6, 2026
25 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coding-agent enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant