extract tool definitions and dispatch into sheesh-tools crate#5
Merged
Cicolas merged 1 commit intorelease/v1.0.5from Mar 10, 2026
Merged
extract tool definitions and dispatch into sheesh-tools crate#5Cicolas merged 1 commit intorelease/v1.0.5from
Cicolas merged 1 commit intorelease/v1.0.5from
Conversation
Move all_tools(), shell_quote(), and tool dispatch logic out of anthropic.rs into a new workspace crate (crates/sheesh-tools). Providers now call sheesh_tools::dispatch() and map the returned ToolResult to their own LLMEvent, making tool support reusable across all LLM backends. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Merged
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.
Summary
all_tools(),shell_quote(), and tool dispatch logic out ofanthropic.rsinto a newsheesh-toolsworkspace crate (crates/sheesh-tools/)ToolResultenum (Local/Command) as a provider-agnostic dispatch resultanthropic.rsnow callssheesh_tools::dispatch()and maps the result toLLMEvent— reducing the dispatch block from ~40 lines to 3sheesh_tools::all_tools()andsheesh_tools::dispatch()without duplicating logicCargo.tomlto a Cargo workspace withresolver = "2"Notes
Part of a batch of worktree changes targeting
release/v1.0.5.Tests
cargo build)cargo clippy -- -D warnings)🤖 Generated with Claude Code