Skip to content

v0.1.3 Bash Quoting & Structured History Replay

Choose a tag to compare

@igormcsouza igormcsouza released this 18 Oct 15:28
59f974a

Fixes

  • Bash quoting (#37, PR #42): the bash tool now receives the original command text instead of a shlex.split then " ".join rebuild, so quotes survive (sed -i 's/a b/c d/' f, grep -n "return list" f, python -c "print(1+1)") and pipelines, && and ; keep working. Previously any quoted argument with spaces or parentheses was re-split by the shell.
  • History replay (#38, PR #43): past actions are now replayed to Ollama, OpenAI-compatible and Anthropic providers as real tool_calls plus tool results (tool_use/tool_result on Anthropic) instead of act('...') assistant text, which small tool-calling models copied into real arguments and corrupted files. Replayed stdin is a real 400-char prefix, not a copyable <N chars> placeholder. Custom providers keep the textual form unless they set structured_history = True. The system prompt and tools array are unchanged.

Docs

  • New runnable example examples/course/ and a Troubleshooting page (symptom, cause, fix, known limitations); @tool argument parsing, the tools.py plus tools: requirement, gate and pipeline practices, observation-folding workarounds, Ollama in Docker and the awk/sed sandbox false positive.

Verified

End-to-end on qwen3-coder:30b (bug-fix task on a small FastAPI repo): 18 steps, one-line fix, all tests pass, no corrupted arguments. Before these fixes the same task failed in five attempts.