I've resorted to adding instructions like, "do not insert any comments unless they will be exceptionally useful in clarifying blocks of code for future developers."
Same. Claude consistently ignores my instructions related to comments, and continues to be extremely verbose, often irrelevant, or too specific in terms of the current task. When called out on it, it says sorry.
I've resorted to having a final pass where comments are evaluated separately. This is much more successful than trying to get it to write good comments while writing the code.
Comments
I've resorted to adding instructions like, "do not insert any comments unless they will be exceptionally useful in clarifying blocks of code for future developers."
Adding it to AGENTS.md seems to do nothing.
Same. Claude consistently ignores my instructions related to comments, and continues to be extremely verbose, often irrelevant, or too specific in terms of the current task. When called out on it, it says sorry.
I've resorted to having a final pass where comments are evaluated separately. This is much more successful than trying to get it to write good comments while writing the code.