Skip to content

docs: rewrite AGENTS.md with <important if> blocks#431

Merged
tomasz-tomczyk merged 1 commit intomainfrom
improve-claude-md
May 2, 2026
Merged

docs: rewrite AGENTS.md with <important if> blocks#431
tomasz-tomczyk merged 1 commit intomainfrom
improve-claude-md

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

@tomasz-tomczyk tomasz-tomczyk commented May 2, 2026

Summary

  • Wraps domain-specific guidance (E2E setup, daemon, frontend, API reference, security calibration, etc.) in <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 the improve-claude-md skill.
  • Reconciled the file with the current code while rewriting:
    • Subcommands: added missing fetch, pr, plan, plan-hook, auth, check, _serve, --version/-v
    • Config keys: added auth_user_*, vcs
    • API endpoints: added /api/health, /api/qr, /api/review-cycle, /api/share, /api/focus, /api/picker, /api/branches, /api/base-branch, /api/files/list
    • Project map: added VCS abstraction trio, auth.go, focus/picker, PR cache/fetch/buckets, remote_files.go, comment_cli.go
    • Architecture decisions: added VCS abstraction (15) and focus mode (16)
    • Corrected E2E helpers path: ./helperse2e/tests/helpers.ts (with range-helpers.ts)
  • Removed: linter-territory rules (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

  • Code review: docs-only change, /crit-review not applicable
  • Independent validator pass: spawned a subagent to verify every claim against the codebase; corrections folded in before commit

Test plan

  • Doc-only change — no test surface
  • Validator confirmed: all listed file paths exist, all listed subcommands/config keys/API routes match main.go/config.go/server.go, helper names match frontend/app.js, six Playwright projects match e2e/playwright.config.ts

See also: tomasz-tomczyk/crit-web#165 (sibling rewrite)

🤖 Generated with Claude Code

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>
@tomasz-tomczyk tomasz-tomczyk merged commit dbc3167 into main May 2, 2026
6 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the improve-claude-md branch May 2, 2026 12:11
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.22%. Comparing base (38ee4e0) to head (8efa8e7).
⚠️ Report is 2 commits behind head on main.

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     
Flag Coverage Δ
e2e 33.89% <ø> (ø)
unit 63.49% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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