Experimented with a barebones agent that forced the model to reply only in Python, and then automatically executed the generated python. I tried it with Qwen-2.5-Coder, Gemma4 E4B, and Qwen3-4B-Instruct. The idea was to remove the need for a bash/powershell tool, and have the agent write complex tool call chains in a single program output. The first approach extracted python code blocks from the reply and executed them. The second approach exposed python as a regular tool.