chore: tune .claude/ for speed without sacrificing quality#2459
Merged
Conversation
- designer agent: opus → sonnet (checklist-driven work, no measurable quality cost) - trio_check.sh: skip the reminder on internal tooling, hooks, rules, dependency, and .claude/ prompts (false-positives wasted a full trio fan-out per fire) - engineer.md: drop sections duplicated from CLAUDE.md / .claude/rules/ / /review-pr (security guardrails, framework-specific patterns, contributor-PR review flow) - pm.md: drop "Technical landscape" — CLAUDE.md already carries the tech stack - _trio.md: collapse the ship-ready gate into one paragraph Net: ~61 lines off the per-fork hot path; designer routed through sonnet; meta-tooling prompts no longer auto-trigger the trio. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for notion2anki ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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
Audit of
.claude/config focused on response speed and cost without trading output quality. Three high-impact, low-risk changes applied — the rest of the audit (CLAUDE.md consolidation,pmWebFetch removal,effort: lowfrontmatter on mechanical agents) is held for a follow-up.Changes
designeragent: opus → sonnet. Designer work in this repo is dominated by checklist evaluation (review-scoring order, banned-words sweep, action-hierarchy check). Sonnet handles this without measurable quality cost. Paid on every trio fan-out.trio_check.sh: narrow the heuristic. The hook injected a<trio_required>reminder on any product-keyword match. Adding a tooling/CI/dependency/.claude/exclusion ahead of the keyword check — every false positive previously cost a full trio (opus + opus + sonnet, full prompts each), so the asymmetry favors a tighter guard.Cut duplicated sections from
engineer.md,pm.md,_trio.md. Removed ~61 lines of content already loaded viaCLAUDE.mdimports or covered by slash commands:engineer.md: "Reviewing PRs" (lives in/review-pr), "Security guardrails (from CLAUDE.md)" (literal duplicate of.claude/rules/security.md), most of "Framework-specific patterns" (kept the non-obvious gotchas:ErrorHandlersignature, React 19forwardRef,REACT_APP_*env prefix, Jest-vs-Vitest,create_deck/JSON contract).pm.md: "Technical landscape" (duplicatesCLAUDE.mdtech stack)._trio.md: ship-ready gate collapsed from a bullet list to one paragraph.What was deliberately left for a follow-up
WebFetchfrompm's tool list (forcesgh issue viewconsistency).effort: lowtodead-code-auditor,dependabot-triage,/check,/pr-checks(no-op if the runtime doesn't honoreffort:).worktree.sparsePathsfortest-writerandbatch-tasks/dependabot(no-op if unsupported).Test plan
.claude/config and confirm the trio reminder no longer fires.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.