feat: add configurable shell option for tool execution#10
Merged
izumin5210 merged 3 commits intomainfrom Aug 24, 2025
Merged
Conversation
Add GitHub Actions-like shell option to allow custom interpreters for tool execution.
- Add `shell` field to ToolConfigSchema with default "bash -e {0}"
- Remove bash-specific logic (shebang and set -euo pipefail) from executor
- Remove unnecessary file extension detection
- Support any interpreter (Python, Node.js, Deno, Ruby, etc.)
- Update tests to verify shell option functionality
- Add comprehensive documentation with examples
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add examples showing how to implement AI agents with web search capabilities using Deno: - Gemini 2.5 Flash with Google Search integration - GPT-5 with web search preview tool These examples demonstrate the flexibility of the shell option for complex use cases. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add shell option documentation to Japanese README - Add yaml-language-server schema specification - Add advanced AI agent examples (Gemini and GPT-5) - Update examples to match the English version 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.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.
Summary
shelloption to allow custom interpreters for tool executionChanges
shellfield to ToolConfigSchema with default value"bash -e {0}"Test plan
{0}in shell commands🤖 Generated with Claude Code