Skip to content

T001: Filter boilerplate from SESSION_STATE.md#21

Merged
grobomo merged 1 commit intomainfrom
002-T001-filter-boilerplate
Apr 16, 2026
Merged

T001: Filter boilerplate from SESSION_STATE.md#21
grobomo merged 1 commit intomainfrom
002-T001-filter-boilerplate

Conversation

@grobomo
Copy link
Copy Markdown
Owner

@grobomo grobomo commented Apr 16, 2026

Summary

  • Add _is_boilerplate_user_msg() to detect and skip hook/system noise in transcript tails
  • Filters: stop hook feedback, self-analysis agent prompts, SESSION START INSTRUCTIONS, context reset prompts
  • Saves ~500+ tokens per session handoff by dropping noise that wastes context budget

Test plan

  • 11 new tests for boilerplate detection and filtering
  • 93 total tests passing
  • Real user messages ("looks good", "fix the bug") pass through unchanged
  • Boilerplate is filtered but assistant responses adjacent to boilerplate are kept

Add _is_boilerplate_user_msg() to detect and skip hook/system noise:
- Stop hook feedback ("DO NOT STOP...")
- Self-analysis agent prompts
- SESSION START INSTRUCTIONS
- Context reset prompts

Saves ~500+ tokens per session handoff. 11 new tests, 93 total passing.
@grobomo grobomo merged commit ec1a97c into main Apr 16, 2026
1 check passed
@grobomo grobomo deleted the 002-T001-filter-boilerplate branch April 16, 2026 03:58
@grobomo grobomo mentioned this pull request Apr 16, 2026
1 task
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.

1 participant