Disabling co-authoring. #665

Closed
opened 2026-02-16 17:27:47 -05:00 by yindo · 2 comments
Owner

Originally created by @nickcorin on GitHub (Jul 12, 2025).

Originally assigned to: @thdxr on GitHub.

By default, all commits made with opencode are tagged:

https://github.com/sst/opencode/blob/fd4648da177d264a0bb0239455355e045f892c19/packages/opencode/src/tool/bash.txt#L60-L66
https://github.com/sst/opencode/blob/fd4648da177d264a0bb0239455355e045f892c19/packages/opencode/src/tool/bash.txt#L80-L89

I can't seem to find an option to disable this for opencode, even by providing explicit prompt instructions not to co-author.

Here's an example:

You're absolutely right to question this.  Looking at my prompt, I can see there are conflicting instructions:

In the git commit section, it instructs me to end commit messages with:
🤖 Generated with opencode

Co-Authored-By: opencode noreply@opencode.ai

But in the DEVELOPMENT-FLOW.md file that was just committed, there are explicit requirements stating:
• "AI/agent generation MUST NOT be mentioned"
• "Commits MUST NOT be co-authored by the AI/agent"

This is a clear contradiction in the instructions.  The repository's own development flow documentation explicitly prohibits what my general prompt instructs me to do.  I should have followed the repository-specific guidelines rather than the general co-authoring instruction.

Would you like me to amend the commit to remove the co-authoring and generation attribution?

This could probably be fixed with better user prompting, but the correct fix would be to provide some way to disable the co-authoring. It's pretty standard for tools to provide configuration to disable this. For example, claude code provides this config option:

| Key                 | Description (default)                       | Example |
|---------------------|---------------------------------------------|---------|
| includeCoAuthoredBy | Whether to include the co-authored-by Claude byline in git commits and pull requests (default: true) | false |
Originally created by @nickcorin on GitHub (Jul 12, 2025). Originally assigned to: @thdxr on GitHub. By default, all commits made with `opencode` are tagged: https://github.com/sst/opencode/blob/fd4648da177d264a0bb0239455355e045f892c19/packages/opencode/src/tool/bash.txt#L60-L66 https://github.com/sst/opencode/blob/fd4648da177d264a0bb0239455355e045f892c19/packages/opencode/src/tool/bash.txt#L80-L89 I can't seem to find an option to disable this for `opencode`, even by providing explicit prompt instructions **not** to co-author. Here's an example: ``` You're absolutely right to question this. Looking at my prompt, I can see there are conflicting instructions: In the git commit section, it instructs me to end commit messages with: 🤖 Generated with opencode Co-Authored-By: opencode noreply@opencode.ai But in the DEVELOPMENT-FLOW.md file that was just committed, there are explicit requirements stating: • "AI/agent generation MUST NOT be mentioned" • "Commits MUST NOT be co-authored by the AI/agent" This is a clear contradiction in the instructions. The repository's own development flow documentation explicitly prohibits what my general prompt instructs me to do. I should have followed the repository-specific guidelines rather than the general co-authoring instruction. Would you like me to amend the commit to remove the co-authoring and generation attribution? ``` This could probably be fixed with better user prompting, but the correct fix would be to provide some way to disable the co-authoring. It's pretty standard for tools to provide configuration to disable this. For example, claude code provides this config option: ```markdown | Key | Description (default) | Example | |---------------------|---------------------------------------------|---------| | includeCoAuthoredBy | Whether to include the co-authored-by Claude byline in git commits and pull requests (default: true) | false | ```
yindo closed this issue 2026-02-16 17:27:47 -05:00
Author
Owner

@syntext commented on GitHub (Sep 13, 2025):

Is there already a way of modifying this? And/or disabling git commits generally?

4da039e4 OpenCode <opencode@example.com> on 13/09/2025 at 17:00
@syntext commented on GitHub (Sep 13, 2025): Is there already a way of modifying this? And/or disabling git commits generally? ``` 4da039e4 OpenCode <opencode@example.com> on 13/09/2025 at 17:00 ```
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#665