Read AGENTS.md for codebase conventions.
Default to no comments. Add one only when something is truly not understandable from the code alone (a non-obvious constraint, a subtle invariant, a workaround for a specific bug) — and even then, keep it to a single concise line, not a paragraph. Never write multi-paragraph rationale, alternatives-considered, or "built this way because X" explanations inline.
If context is valuable enough to write down at length — design rationale, a
wire protocol's quirks, a UX bug's history — and future work (including a
future AI session) would need to rediscover it, put it in a doc under
docs/*.md instead of inline in the source.
Use Conventional Commits for every commit message and PR title (fix:, feat:, chore:, …) — see "Semantic commits & releases" in AGENTS.md. PR titles matter most: squash-merged PRs use the title as the commit semantic-release reads. When suggesting a PR title, pick the type based on consumer impact (fix/feat release, everything else does not).
CHANGELOG.md (formerly WORKLOG.md) is generated by semantic-release. Read it for prior context, but never edit it by hand.