docs: rewrite AGENTS.md with <important if> blocks#431
Merged
tomasz-tomczyk merged 1 commit intomainfrom May 2, 2026
Merged
Conversation
Use targeted relevance conditions per the improve-claude-md pattern so domain-specific guidance (E2E, daemon, frontend, API, etc.) only competes for attention when it actually applies. Foundational context (project map, key architecture decisions) stays bare. Also reconciled the file with current code: added missing subcommands (fetch, pr, plan, plan-hook, auth, check, _serve), config keys (auth_user_*, vcs), API endpoints (/api/health, /api/qr, /api/review-cycle, /api/share, /api/focus, /api/picker, /api/branches, /api/base-branch, /api/files/list), VCS abstraction + focus mode in architecture decisions, and project-map files (vcs/sapling, auth, focus, PR cache, comment_cli, remote_files). Corrected E2E helpers path to e2e/tests/helpers.ts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #431 +/- ##
==========================================
+ Coverage 67.18% 67.22% +0.03%
==========================================
Files 29 29
Lines 9814 9814
==========================================
+ Hits 6594 6597 +3
+ Misses 2698 2696 -2
+ Partials 522 521 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
<important if="...">blocks so each section only competes for attention when its trigger condition matches the current task. Foundational context (project map, key architecture decisions) stays bare. Pattern from theimprove-claude-mdskill.fetch,pr,plan,plan-hook,auth,check,_serve,--version/-vauth_user_*,vcs/api/health,/api/qr,/api/review-cycle,/api/share,/api/focus,/api/picker,/api/branches,/api/base-branch,/api/files/listauth.go, focus/picker, PR cache/fetch/buckets,remote_files.go,comment_cli.go./helpers→e2e/tests/helpers.ts(withrange-helpers.ts)let/const-vs-var,addEventListener-vs-inline), the 60-row E2E test inventory table (the project + naming-convention table covers it), and an inline JS state-model code snippet (replaced with file path reference).Review
Test plan
main.go/config.go/server.go, helper names matchfrontend/app.js, six Playwright projects matche2e/playwright.config.tsSee also: tomasz-tomczyk/crit-web#165 (sibling rewrite)
🤖 Generated with Claude Code