MIT team enables AI agent to build 85 tools on its own from FreeCAD compiled files alone to complete CAD tasks
The MIT team gave an AI agent only the compiled FreeCAD program files (no source code, no documentation, no network access); the agent dismantled the program and built 85 tools on its own, completing one CAD task in 44 seconds.
The MIT team had the agent build 85 tools on its own from only the compiled FreeCAD program, and it passed all five CAD tasks, providing a speed and token-consumption comparison against the screenshot-based operating approach.
an mit-led team gave an ai agent freecad, a 3d design app, as compiled program files only. no source code, no docs, no internet. it took the program apart, built itself 85 tools to control it, then did a cad job in 44 seconds.
the same model doing that job from screenshots clicked around for 40 minutes and passed 7 of 13 checks.
computer-use agents use apps the way a person does, through screenshots and the mouse. every step is a new image and a new model reply, so it's slow and eats tokens. on this job the screen run used 22.2M tokens, the tool run 0.64M.
in earlier studies people wrote the tools for the agent by hand, like an mcp server, and the app itself stayed the same.
how the agent built its own:
> it searched the program files for functions it could call from inside the app
> started freecad and tested its guesses on the running app, injecting code with a tool called frida
> wrote an mcp server plus a script that sits inside freecad and calls freecad's own functions
> ran the server against the real app and went back whenever something broke
one build took 37 minutes, and the agent never saw the tasks beforehand. on five cad tasks with deepseek v4.1 flash, it passed every check with its own tools. by screen it passed about 40%.
they also tried fruit ninja, which is closed source. kimi k3 found where the game keeps the fruit in memory and built a tool that slashes on its own. 305 points a round on average, vs 68 from the screen.
next they want the agent to keep changing its tools while it works. that part isn't built yet.
video via @pliang279
Source: Andrej Drats · x.com
