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) <noreply@anthropic.com> * style: format attribution substitution guide as table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * style: rename badge to "Compound Engineering v[VERSION]" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 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) <noreply@anthropic.com> * 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) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
19
CLAUDE.md
19
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 <noreply@anthropic.com>
|
||||
Co-Authored-By: [MODEL] ([CONTEXT] context, [THINKING]) <noreply@anthropic.com>
|
||||
```
|
||||
|
||||
**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)
|
||||
|
||||
Reference in New Issue
Block a user