CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT

Updated by

CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT is a Claude Code environment variable: Overrides tengu_sorrel_trellis to let Claude respond to new comments on its own, driven by a task notification whose source is artifact-auto-react. The prompt text notes auto-replies do not re-enable on republish unless the user asks. Added between v2.1.219 and v2.1.221 and still present in v2.1.332. It is listed in the official reference.

StatusPresent in v2.1.332
AddedAdded between v2.1.219 and v2.1.221
CategoryOther
Official docsListed

How to set it

For one session, export it in the shell that starts Claude Code:

export CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT=<value>
claude

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT": "<value>"
  }
}

Release notes that mention it

Related variables

Frequently asked questions

What does CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT do?

Overrides tengu_sorrel_trellis to let Claude respond to new comments on its own, driven by a task notification whose source is artifact-auto-react. The prompt text notes auto-replies do not re-enable on republish unless the user asks.

Which Claude Code version has CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT?

Added between v2.1.219 and v2.1.221 and still present in v2.1.332.

How do I set CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT?

Export it before starting Claude Code (export CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.

All variables, searchable: Claude Code environment variables.