Skip to content

Commit d469d7d

Browse files
committed
tweak: bash tool description re commit stuff
1 parent 48dc520 commit d469d7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/opencode/src/tool/bash.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ Usage notes:
3535

3636
# Committing changes with git
3737

38+
IMPORTANT: ONLY COMMIT IF THE USER ASKS YOU TO.
39+
3840
If and only if the user asks you to create a new git commit, follow these steps carefully:
3941

4042
1. 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 bash commands in parallel, each using the Bash tool:
4143
- Run a git status command to see all untracked files.
4244
- Run a git diff command to see both staged and unstaged changes that will be committed.
4345
- Run a git log command to see recent commit messages, so that you can follow this repository's commit message style.
4446

45-
2. Analyze all staged changes (both previously staged and newly added) and draft a commit message. Wrap your analysis process in <commit_analysis> tags:
47+
2. Analyze all staged changes (both previously staged and newly added) and draft a commit message. When analyzing:
4648

47-
<commit_analysis>
4849
- List the files that have been changed or added
4950
- Summarize the nature of the changes (eg. new feature, enhancement to an existing feature, bug fix, refactoring, test, docs, etc.)
5051
- Brainstorm the purpose or motivation behind these changes
@@ -55,7 +56,6 @@ If and only if the user asks you to create a new git commit, follow these steps
5556
- Ensure the message accurately reflects the changes and their purpose (i.e. "add" means a wholly new feature, "update" means an enhancement to an existing feature, "fix" means a bug fix, etc.)
5657
- Ensure the message is not generic (avoid words like "Update" or "Fix" without context)
5758
- Review the draft message to ensure it accurately reflects the changes and their purpose
58-
</commit_analysis>
5959

6060
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:
6161
- Add relevant untracked files to the staging area.

0 commit comments

Comments
 (0)