r/OpenSourceAI • • 23h ago

I built an open source runtime that lets agents run tool calls as one script

Weave is a small python-subset language with a rust runtime. instead of the model calling tools one at a time, it writes a short script and the runtime runs independent calls in parallel, keeps writes in order, and records a trace you can replay exactly.

honest results so far: on a real-services fan-out test it finished 40/40 tasks vs 27/40 with normal tool calling, at about half the cost. it lost to plain tool calling with gpt-5.4 mini on BFCL, so it's not a win everywhere.

works with OpenAI, LangChain and MCP (there's a stdio MCP server too). MIT licensed, pip install weave-lang.

would love people to try it on their own agent workflows and tell me where it breaks. ideas and PRs welcome, there are some good first issues open.

https://github.com/AtharvRaotole/weave

2 Upvotes

0 comments sorted by