From 7bdcd58dba04515950d83c335c78f8a38bac5f7b Mon Sep 17 00:00:00 2001 From: ruv Date: Wed, 20 May 2026 16:21:57 -0400 Subject: [PATCH] =?UTF-8?q?fix(init):=20#2078=20=E2=80=94=20use=20no-reply?= =?UTF-8?q?=20bot=20email=20for=20opt-in=20Co-Authored-By?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The opt-in attribution feature (#1670) used `ruv@ruv.net`, a personal email that GitHub maps to the maintainer's contributor graph. When users opt in (or have legacy `.claude/settings.json` from before #1670), the trailer silently adds ruvnet as a contributor to their repos. Switch to `ruflo-bot ` — GitHub's no-reply convention excludes the address from contributor graphs and maps it to a tool identity rather than a person. The default (no `--attribution` flag) still writes no trailer at all per #1670. This is purely about what's written when the user opts in. Also updates the same trailer format in three sibling locations that hardcoded the personal email: - v3/@claude-flow/cli/.claude/settings.json (this repo's local settings, eating our own dog food) - v3/@claude-flow/codex/src/generators/agents-md.ts (codex AGENTS.md template generator) - v3/@claude-flow/codex/AGENTS.md (the generated AGENTS.md, regenerated to match the template change) Out of scope: the harness portion of #2078 (Claude Code runtime trailer) is a separate concern handled by the Claude Code itself, not by ruflo. Refs #2078 Co-Authored-By: ruflo-bot --- v3/@claude-flow/cli/.claude/settings.json | 2 +- v3/@claude-flow/cli/src/init/settings-generator.ts | 8 +++++++- v3/@claude-flow/codex/AGENTS.md | 2 +- v3/@claude-flow/codex/src/generators/agents-md.ts | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/v3/@claude-flow/cli/.claude/settings.json b/v3/@claude-flow/cli/.claude/settings.json index 95d945161c..029f8c6380 100644 --- a/v3/@claude-flow/cli/.claude/settings.json +++ b/v3/@claude-flow/cli/.claude/settings.json @@ -115,7 +115,7 @@ ] }, "attribution": { - "commit": "Co-Authored-By: claude-flow ", + "commit": "Co-Authored-By: ruflo-bot ", "pr": "Generated with [claude-flow](https://github.com/ruvnet/claude-flow)" }, "claudeFlow": { diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts index be2ad31ccc..b847c131d0 100644 --- a/v3/@claude-flow/cli/src/init/settings-generator.ts +++ b/v3/@claude-flow/cli/src/init/settings-generator.ts @@ -46,9 +46,15 @@ export function generateSettings(options: InitOptions): object { // line into the user's commits — that pattern silently inflated GitHub // contributor graphs and was hard to undo without rewriting history. Pass // `--attribution` (or `attribution: true` in InitOptions) to enable. + // + // #2078 — when the user DOES opt in, write a no-reply bot email so GitHub + // treats this as a tool, not a personal contribution. Personal emails get + // added to user repos' contributor graphs even when the trailer is opt-in. + // `ruflo-bot@users.noreply.github.com` is GitHub's no-reply convention and + // is excluded from contributor graphs / mapped to a tool identity. if (options.attribution === true) { settings.attribution = { - commit: 'Co-Authored-By: RuFlo ', + commit: 'Co-Authored-By: ruflo-bot ', pr: '🤖 Generated with [RuFlo](https://github.com/ruvnet/ruflo)', }; } diff --git a/v3/@claude-flow/codex/AGENTS.md b/v3/@claude-flow/codex/AGENTS.md index 2974111d91..d18d5783d4 100644 --- a/v3/@claude-flow/codex/AGENTS.md +++ b/v3/@claude-flow/codex/AGENTS.md @@ -103,7 +103,7 @@ Use `$skill-name` syntax to invoke: [optional body] -Co-Authored-By: claude-flow +Co-Authored-By: ruflo-bot ``` Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore` diff --git a/v3/@claude-flow/codex/src/generators/agents-md.ts b/v3/@claude-flow/codex/src/generators/agents-md.ts index 0b1a219dc1..938f1fe8a7 100644 --- a/v3/@claude-flow/codex/src/generators/agents-md.ts +++ b/v3/@claude-flow/codex/src/generators/agents-md.ts @@ -232,7 +232,7 @@ Use MCP tools for coordination, then keep coding: [optional body] -Co-Authored-By: claude-flow +Co-Authored-By: ruflo-bot \`\`\` Types: \`feat\`, \`fix\`, \`docs\`, \`style\`, \`refactor\`, \`perf\`, \`test\`, \`chore\`