You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98741ec
Browse filesBrowse the repository at this point in the historyBrowse files
feat(config): add option to disable AI attribution in commits and PRs
Adds `disable_ai_attribution` config option that allows users to remove
the "🤖 Generated with opencode" and "Co-Authored-By: opencode" lines
from git commits and pull request descriptions when set to true.
Addresses anomalyco#1135
Copy file name to clipboardExpand all lines: packages/opencode/src/tool/bash.txt
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ When the user asks you to create a new git commit, follow these steps carefully:
59
59
60
60
3. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following commands in parallel:
61
61
- Add relevant untracked files to the staging area.
62
-
- Create the commit with a message ending with:
62
+
- Create the commit with a message. If the user's config has `disable_ai_attribution` set to true, use only the commit message without any attribution. Otherwise, end the commit message with:
63
63
🤖 Generated with [opencode](https://opencode.ai)
# Without attribution (when disable_ai_attribution is true):
92
+
git commit -m "$(cat <<'EOF'
93
+
Commit message here.
94
+
EOF
95
+
)"
89
96
</example>
90
97
91
98
# Creating pull requests
@@ -119,8 +126,9 @@ IMPORTANT: When the user asks you to create a pull request, follow these steps c
119
126
3. You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool calls together for optimal performance. ALWAYS run the following commands in parallel:
120
127
- Create new branch if needed
121
128
- Push to remote with -u flag if needed
122
-
- Create PR using gh pr create with the format below. Use a HEREDOC to pass the body to ensure correct formatting.
129
+
- Create PR using gh pr create with the format below. Use a HEREDOC to pass the body to ensure correct formatting. If the user's config has `disable_ai_attribution` set to true, omit the attribution line.
123
130
<example>
131
+
# With attribution (default):
124
132
gh pr create --title "the pr title" --body "$(cat <<'EOF'
0 commit comments