Skip to content

docs: add code comments guideline to agents guide#22

Open
aayushshah15 wants to merge 1 commit intomasterfrom
docs/add-code-comments-guideline
Open

docs: add code comments guideline to agents guide#22
aayushshah15 wants to merge 1 commit intomasterfrom
docs/add-code-comments-guideline

Conversation

@aayushshah15
Copy link
Copy Markdown

@aayushshah15 aayushshah15 commented Mar 16, 2026

Summary

Adds a Code Style section to AGENTS.md with a guideline encouraging contributors to write concise comments that explain the "why" (rationale) when it isn't obvious from the code itself — without over-commenting obvious logic. Examples include non-obvious business rules, workarounds, performance trade-offs, or constraints that would require digging through history to understand.


View Codesmith session


Open with Devin

Note

Low Risk
Documentation-only change adding a code commenting guideline; no runtime or behavioral impact.

Overview
Adds a new Code Style section to AGENTS.md that sets expectations for comments: avoid stating the obvious, but document the rationale (“why”) behind non-obvious decisions (e.g., business rules, workarounds, performance trade-offs, constraints).

Written by Cursor Bugbot for commit 0486571. This will update automatically on new commits. Configure here.

Co-authored-by: Codesmith <codesmith@blacksmith.sh>
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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