Combining with other tools
The bash tool pairs well with the Text editor tool: Claude edits a file with one tool and requests the command that runs it with the other.
If you're also using the Code execution tool, Claude has access to two separate execution environments: your local bash session and Anthropic's sandboxed container. State is not shared between them. See Using code execution with other execution tools for guidance on prompting Claude to distinguish between environments.