Skip to content

feat(js): Anthropic SDK adapter — first-class Claude integration#956

Merged
chaliy merged 1 commit intomainfrom
claude/issue-931-anthropic-adapter
Apr 2, 2026
Merged

feat(js): Anthropic SDK adapter — first-class Claude integration#956
chaliy merged 1 commit intomainfrom
claude/issue-931-anthropic-adapter

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 2, 2026

Summary

  • Add @everruns/bashkit/anthropic entry point with bashTool() helper
  • Returns { system, tools, handler } for Anthropic's messages.create() API
  • Eliminates boilerplate: tool definitions, tool call handling, error formatting
  • Pre-populate VFS files via options.files

Test plan

  • TypeScript type-checks cleanly (npx tsc --noEmit — no errors in anthropic.ts)
  • Follows established LangChain adapter pattern (langchain.ts)
  • Integration test with Claude Haiku (requires ANTHROPIC_API_KEY, CI-gated)

Closes #931

@chaliy chaliy force-pushed the claude/issue-931-anthropic-adapter branch from 2a14ccb to f3a3452 Compare April 2, 2026 04:50
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
@chaliy chaliy force-pushed the claude/issue-931-anthropic-adapter branch from f3a3452 to ec28872 Compare April 2, 2026 05:04
@chaliy chaliy merged commit e950882 into main Apr 2, 2026
20 checks passed
@chaliy chaliy deleted the claude/issue-931-anthropic-adapter branch April 2, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Anthropic SDK adapter — first-class Claude integration

1 participant