feat(js): Anthropic SDK adapter — first-class Claude integration#956
Merged
feat(js): Anthropic SDK adapter — first-class Claude integration#956
Conversation
2a14ccb to
f3a3452
Compare
Add `@everruns/bashkit/anthropic` entry point that returns a ready-to-use
`{ system, tools, handler }` object for Claude's messages.create() API.
- bashTool() returns Anthropic-formatted tool definitions + handler
- Pre-populate VFS files via options.files
- Auto-fix mode: errors formatted as is_error tool_result for self-correction
- Configurable via standard BashOptions (limits, username, etc.)
Closes #931
f3a3452 to
ec28872
Compare
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
@everruns/bashkit/anthropicentry point withbashTool()helper{ system, tools, handler }for Anthropic'smessages.create()APIoptions.filesTest plan
npx tsc --noEmit— no errors in anthropic.ts)ANTHROPIC_API_KEY, CI-gated)Closes #931