Skip to content

feat(python): Bash interface, examples, and docs#442

Merged
chaliy merged 4 commits intomainfrom
claude/check-bash-exports-UBDYE
Mar 1, 2026
Merged

feat(python): Bash interface, examples, and docs#442
chaliy merged 4 commits intomainfrom
claude/check-bash-exports-UBDYE

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 1, 2026

Summary

  • Export Bash class as primary Python interface alongside BashTool
  • Add bash_basics.py example demonstrating sync/async API, pipelines, variables, filesystem persistence, resource limits, and configuration
  • Add Bash class unit tests (construction, sync, async, reset, limits)
  • Add examples CI job to python.yml workflow
  • Clarify BashTool as a convenience wrapper for AI agents in README
  • Add PyPI badge to README
  • Update spec 013 with examples dir and CI job

Test plan

  • examples CI job runs bash_basics.py successfully
  • New Bash class tests pass in test CI job across Python 3.9/3.12/3.13
  • Ruff lint and format checks pass
  • Existing BashTool and ScriptedTool tests still pass

claude added 4 commits March 1, 2026 06:18
Add Bash class (thin wrapper around the Rust Bash interpreter) as the
primary export. BashTool remains as a secondary convenience wrapper that
adds LLM tool metadata (schema, description, system_prompt).

README rewritten: Bash first, BashTool second, added PyPI badge and
pip install instructions.

https://claude.ai/code/session_01RgRhPYysZPTpcEtFTcCDTy
- Add bash_basics.py example: sync/async API, pipelines, variables,
  filesystem persistence, resource limits, configuration
- Add Bash class unit tests (construction, sync, async, reset, limits)
- Add examples job to python.yml CI workflow
- Update spec 013 with examples dir and CI job

https://claude.ai/code/session_01RgRhPYysZPTpcEtFTcCDTy
@chaliy chaliy merged commit a39471c into main Mar 1, 2026
17 checks passed
@chaliy chaliy deleted the claude/check-bash-exports-UBDYE branch March 12, 2026 03:41
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.

2 participants