Conversation
The assistant now has improved surgical staging capabilities with the addition of two new tools: `git_add_intent` and `git_stage_raw_patch`. Previously, untracked files were invisible to `git_list_patches`, making it difficult to stage new files incrementally. The `git_add_intent` tool solves this by using `git add --intent-to-add`, which records new files in the index as empty blobs so their content appears as insertions. Additionally, the `git_stage_raw_patch` tool allows the assistant to stage partial hunks by applying hand-edited unified diffs. This is particularly useful when `git_list_patches` provides a hunk containing mixed changes that cannot be separated by patch ID alone. The `stager` persona and `git-stage` skill have been updated with instructions and tool definitions to utilize these new workflows. The summary for `git_list_patches` was also updated to clarify its use of `--unified=0`, aligning with the requirements for surgical editing. Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The assistant now has improved surgical staging capabilities with the addition of two new tools:
git_add_intentandgit_stage_raw_patch.Previously, untracked files were invisible to
git_list_patches, making it difficult to stage new files incrementally. Thegit_add_intenttool solves this by usinggit add --intent-to-add, which records new files in the index as empty blobs so their content appears as insertions.Additionally, the
git_stage_raw_patchtool allows the assistant to stage partial hunks by applying hand-edited unified diffs. This is particularly useful whengit_list_patchesprovides a hunk containing mixed changes that cannot be separated by patch ID alone.The
stagerpersona andgit-stageskill have been updated with instructions and tool definitions to utilize these new workflows. The summary forgit_list_patcheswas also updated to clarify its use of--unified=0, aligning with the requirements for surgical editing.