mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-05 20:47:45 +01:00
96fa78e86e
Builders driven by our own loop (an API model such as Ollama) get file tools whose paths are relative to the project. Models often write the project's folders from the root (/app/src/…), which was refused as outside the project, so they could neither list, read nor write app/ and went round in circles while each check found nothing. A path from the root whose first folder the project has is now read inside the project (/etc/… and folders it doesn't have are still refused), and a write outside app/ says so in its result, so a model that leaves out app/ learns where the app goes. Refs #24