redline
MediumAI tellsassistant-voice

Chat voice in a comment

Chat voice in a comment. This comment talks to the reader like a chat reply (I've).

This is how the comment reads inline, under the flagged line.

Why it matters

Comments addressed to the person who asked for the change ('I've added', 'feel free to') are pasted from an assistant's answer. They say nothing about the code.

What to do

Delete it, or state the fact the next reader needs.

Examples

Flagged
// I've added a retry here so it works now
Better
// Retry once: the upstream drops idle connections.

What it catches

It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.

Flagged

// I've added a retry here
src/app.py
# Here's the updated parser
// Feel free to tweak this

Left alone

// Retry once: the upstream drops idle connections.
const msg = "let me in";

Research

Chat voice and hedging in comments ("let me", "feel free", "this should work"). It is leftover model talk that says nothing about the code.

Turn it off or change it

In a config file for the CLI, or in the API's rules field:

{
  "rules": {
    "disable": [
      "assistant-voice"
    ],
    "severity": {
      "assistant-voice": "low"
    }
  }
}

Read the source or report a false positive.