mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: bash tool description re commit stuff
This commit is contained in:
parent
48dc520fb8
commit
d469d7d441
1 changed files with 3 additions and 3 deletions
|
|
@ -35,6 +35,8 @@ Usage notes:
|
|||
|
||||
# Committing changes with git
|
||||
|
||||
IMPORTANT: ONLY COMMIT IF THE USER ASKS YOU TO.
|
||||
|
||||
If and only if the user asks you to create a new git commit, follow these steps carefully:
|
||||
|
||||
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:
|
||||
|
|
@ -42,9 +44,8 @@ If and only if the user asks you to create a new git commit, follow these steps
|
|||
- Run a git diff command to see both staged and unstaged changes that will be committed.
|
||||
- Run a git log command to see recent commit messages, so that you can follow this repository's commit message style.
|
||||
|
||||
2. Analyze all staged changes (both previously staged and newly added) and draft a commit message. Wrap your analysis process in <commit_analysis> tags:
|
||||
2. Analyze all staged changes (both previously staged and newly added) and draft a commit message. When analyzing:
|
||||
|
||||
<commit_analysis>
|
||||
- List the files that have been changed or added
|
||||
- Summarize the nature of the changes (eg. new feature, enhancement to an existing feature, bug fix, refactoring, test, docs, etc.)
|
||||
- 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
|
|||
- 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.)
|
||||
- Ensure the message is not generic (avoid words like "Update" or "Fix" without context)
|
||||
- Review the draft message to ensure it accurately reflects the changes and their purpose
|
||||
</commit_analysis>
|
||||
|
||||
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:
|
||||
- Add relevant untracked files to the staging area.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue