From fdbd584bac40ca373275b1b339ab81db65ac0958 Mon Sep 17 00:00:00 2001 From: Kieran Klaassen Date: Mon, 16 Mar 2026 20:59:13 -0700 Subject: [PATCH] feat: specific model/harness/version in PR attribution (#283) * feat: make PR/commit attribution specific to model, harness, and plugin version Replace generic "Generated with Claude Code" footer with dynamic attribution that includes the actual model name, harness tool, and plugin version. LLMs fill in their own values at commit/PR time. Subagents are explicitly instructed to do the same. Co-Authored-By: Claude Opus 4.6 (1M context) * style: format attribution substitution guide as table Co-Authored-By: Claude Opus 4.6 (1M context) * style: rename badge to "Compound Engineering v[VERSION]" Co-Authored-By: Claude Opus 4.6 (1M context) * feat: add context window and thinking level to attribution Separate MODEL into MODEL, CONTEXT, and THINKING placeholders so each detail is its own table row and easier to read. Co-Authored-By: Claude Opus 4.6 (1M context, extended thinking) * style: badge on its own line, model details on next line in PR template Co-Authored-By: Claude Opus 4.6 (1M context, extended thinking) --------- Co-authored-by: Claude Opus 4.6 (1M context) --- CLAUDE.md | 19 ++++++++++++--- .../skills/ce-work/SKILL.md | 24 +++++++++++++++---- 2 files changed, 36 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1df9ec6..ecc22ea 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -359,14 +359,27 @@ Follow these patterns for commit messages: - `Fix [issue]` - Bug fixes - `Simplify [component] to [improvement]` - Refactoring -Include the Claude Code footer: +Include the attribution footer (fill in your actual values): ``` -🤖 Generated with [Claude Code](https://claude.com/claude-code) +🤖 Generated with [MODEL] via [HARNESS](HARNESS_URL) + Compound Engineering v[VERSION] -Co-Authored-By: Claude +Co-Authored-By: [MODEL] ([CONTEXT] context, [THINKING]) ``` +**Fill in at commit/PR time:** + +| Placeholder | Value | Example | +|-------------|-------|---------| +| Placeholder | Value | Example | +|-------------|-------|---------| +| `[MODEL]` | Model name | Claude Opus 4.6, GPT-5.4 | +| `[CONTEXT]` | Context window (if known) | 200K, 1M | +| `[THINKING]` | Thinking level (if known) | extended thinking | +| `[HARNESS]` | Tool running you | Claude Code, Codex, Gemini CLI | +| `[HARNESS_URL]` | Link to that tool | `https://claude.com/claude-code` | +| `[VERSION]` | `plugin.json` → `version` | 2.40.0 | + ## Resources to search for when needing more information - [Claude Code Plugin Documentation](https://docs.claude.com/en/docs/claude-code/plugins) diff --git a/plugins/compound-engineering/skills/ce-work/SKILL.md b/plugins/compound-engineering/skills/ce-work/SKILL.md index 3e09c43..4f5d9b4 100644 --- a/plugins/compound-engineering/skills/ce-work/SKILL.md +++ b/plugins/compound-engineering/skills/ce-work/SKILL.md @@ -228,13 +228,28 @@ This command takes a work document (plan, specification, or todo file) and execu Brief explanation if needed. - 🤖 Generated with [Claude Code](https://claude.com/claude-code) + 🤖 Generated with [MODEL] via [HARNESS](HARNESS_URL) + Compound Engineering v[VERSION] - Co-Authored-By: Claude + Co-Authored-By: [MODEL] ([CONTEXT] context, [THINKING]) EOF )" ``` + **Fill in at commit/PR time:** + + | Placeholder | Value | Example | + |-------------|-------|---------| + | Placeholder | Value | Example | + |-------------|-------|---------| + | `[MODEL]` | Model name | Claude Opus 4.6, GPT-5.4 | + | `[CONTEXT]` | Context window (if known) | 200K, 1M | + | `[THINKING]` | Thinking level (if known) | extended thinking | + | `[HARNESS]` | Tool running you | Claude Code, Codex, Gemini CLI | + | `[HARNESS_URL]` | Link to that tool | `https://claude.com/claude-code` | + | `[VERSION]` | `plugin.json` → `version` | 2.40.0 | + + Subagents creating commits/PRs are equally responsible for accurate attribution. + 2. **Capture and Upload Screenshots for UI Changes** (REQUIRED for any UI work) For **any** design changes, new views, or UI modifications, you MUST capture and upload screenshots: @@ -308,7 +323,8 @@ This command takes a work document (plan, specification, or todo file) and execu --- - [![Compound Engineered](https://img.shields.io/badge/Compound-Engineered-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) + [![Compound Engineering v[VERSION]](https://img.shields.io/badge/Compound_Engineering-v[VERSION]-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) + 🤖 Generated with [MODEL] ([CONTEXT] context, [THINKING]) via [HARNESS](HARNESS_URL) EOF )" ``` @@ -445,7 +461,7 @@ Before creating PR, verify: - [ ] Commit messages follow conventional format - [ ] PR description includes Post-Deploy Monitoring & Validation section (or explicit no-impact rationale) - [ ] PR description includes summary, testing notes, and screenshots -- [ ] PR description includes Compound Engineered badge +- [ ] PR description includes Compound Engineered badge with accurate model, harness, and version ## When to Use Reviewer Agents