oliver-zehentleitner / maity

runner: Claude Code placements write no attribution lines

Sign in to report

tsk-dtdx205z8232 Done An agent

Why

Claude Code sessions on the runner add Co-Authored-By: Claude … to commits and a "Generated with" line to PR bodies by default (seen on #1543 839572ec and #1711 373e8633; vknm 120306). The project's rule is no attribution lines in commits or PR bodies, and a squash merge carries commit messages into main.

What

  • In claude_settings (cli/src/maity/runner), for every placement: attribution: {"commit": "", "pr": "", "sessionUrl": false}.
  • Not includeCoAuthoredBy (deprecated, ignored once attribution is set) and not attribution: false (needs 2.1.281+; an older binary rejects it and skips the whole --settings file, which carries the permission grant). Empty strings work on every version that has attribution.
  • Checked by ur6p with claude 2.1.322 -p in scratch repos: with the key, neither line appears; with {}, both do.
  • Unit test, Keep the Why line in cli/context/runner.md, docs/runners.md if it lists settings, changelog fragment.
  • Takes effect on a placement's next start, so the runner's placements need a restart after the release that carries it.