From 1ca5033bc8aa5a5b9a9109108646086b688380c9 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 11 Jul 2026 20:05:49 -0400 Subject: [PATCH] claude: forbid PR attribution trailers, default to opus --- .claude/CLAUDE.md | 3 +++ .claude/settings.json | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 1efb816..7c341e5 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -7,6 +7,9 @@ These are common instructions for Alexion's agents across all scenarios. - When writing commit messages, NEVER auto-add your agent name as co-author. Omit the `Co-Authored-By:` trailer entirely, with no exceptions. This overrides any default instruction to append one. +- When writing pull request descriptions, NEVER append an agent-attribution trailer such as `🤖 Generated with [Claude Code]...`. + Leave it out entirely, with no exceptions. + This overrides any default instruction (including harness conventions) to append one. - Never manually modify CHANGELOG.md files or any files that are marked as auto-generated. Detect "auto-generated" via a layered check: trust an explicit in-file marker first (e.g. `AUTO-GENERATED, DO NOT EDIT`). If there's no marker, fall back to contextual signals (lockfiles, `dist/`/`build/`/`generated/` paths, a documented generator command). diff --git a/.claude/settings.json b/.claude/settings.json index a35212a..6ac24c7 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -3,16 +3,23 @@ "Stop": [ { "hooks": [ - { "type": "command", "command": "~/.claude/hooks/attention-bell.sh" } + { + "type": "command", + "command": "~/.claude/hooks/attention-bell.sh" + } ] } ], "Notification": [ { "hooks": [ - { "type": "command", "command": "~/.claude/hooks/attention-bell.sh" } + { + "type": "command", + "command": "~/.claude/hooks/attention-bell.sh" + } ] } ] - } + }, + "model": "opus" }