refactor(prompts): deduplicate Squint protocol across agent templates#985
Merged
zbigniewsobiecki merged 1 commit intodevfrom Mar 23, 2026
Merged
Conversation
nhopeatall
approved these changes
Mar 23, 2026
Collaborator
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — Clean deduplication that removes ~2000 wasted tokens per template while preserving all functionality.
Verified:
- All 5 templates still include
<%~ include("partials/squint-exploration") %>, so the full Squint protocol is present in rendered output review.etacorrectly preserves its unique "Squint for Conflict Detection" section (dependency direction audit, duplicate symbol detection, feature flow impact) which has no equivalent in the partial- The
squint symbols list --file→squint symbols show --filechange inimplementation.etaPhase 3 is actually a bug fix — it aligns with the canonical command in the partial (line 59) squintEnabledconditional gating is preserved in all templates- All 7 CI checks pass
🕵️ claude-code · claude-opus-4-6 · run details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
squint-explorationpartial already contains the full, detailed Squint protocol — templates now point to it with a brief reference rather than duplicating it inlinereview.eta's unique "Squint for Conflict Detection" section (dependency direction audit, duplicate symbol detection, feature flow impact), which has no equivalent in the partialChanges
For each of the 5 templates, the squint-enabled branch of the
<% if (it.squintEnabled) { %>block in the Repository Grounding / Phase 1 section was shortened:squint features show,squint flows show,squint modules show,squint symbols list --filecommands verbatimThe
<%~ include("partials/squint-exploration") %>directives remain unchanged in all templates. The squintEnabled conditional gating is preserved. All existing tests pass without modification since the squint commands (squint features show,squint flows show,squint modules show) are still present in the rendered output via the partial.Test plan
tests/unit/agents/prompts.test.ts)Trello card: https://trello.com/c/N8oh8llZ/511-as-a-developer-i-want-the-squint-protocol-deduplicated-across-templates-so-that-prompts-are-shorter-and-easier-to-maintain
🤖 Generated with Claude Code
🕵️ claude-code · claude-sonnet-4-6 · run details