Repository navigation
Let Sharpie edit their last answer when asked to correct it - #12
Merged
Merged
Conversation
A new edit_answer tool takes the whole corrected answer. The bot edits Sharpie's most recent answer in place, keeping its buttons, and replies "Edited my answer" with a link and Sharpie's note on what changed. The tool refuses empty, too-long or banned wording so Sharpie fixes it and calls again; an answer split over several messages gets the correction as a new answer instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 9 billable files and costs up to $2.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 29 minutes for your next included review. View limit details
|
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.
Requested by Grave · project thread
This PR is stacked on #11 and targets its branch. GitHub retargets it to
mainwhen #11 is merged.What changes
edit_answertool: It takes the whole corrected answer. The rules tell Sharpie to use it when a member asks them to correct, fix or change something in their earlier answer in the post, or when they spot a mistake themselves, and then to write one short line saying what changed.DocsToolsrefuses an edit that is empty, longer than one message (1,900 characters), or thatWritingCheckflags (banned wording, softcode outside code). The tool result asks for a fix, and Sharpie calls again. Edits don't get the one-shot rewrite a final reply gets, so this is their quality gate.Edited my answer: <link>and Sharpie's note.[Edited]prefix, with the corrected text and the note.Testing
DocsToolsTests(new): an edit carries the text, and empty, banned or too-long edits are refused. These tests didn't build beforeEditAnswerexisted.PromptTests: the rule is in the system prompt.dotnet buildhas no warnings, anddotnet format --verify-no-changesis clean.ModifyAsyncon Sharpie's own message, the jump link). After you redeploy, ask Sharpie a question, then reply "that's wrong, X should be Y" in the post.🤖 Generated with Claude Code