great job!
it reminds me genaiscript. https://microsoft.github.io/genaiscript/
// read files
const file = await workspace.readText("data.txt");
// include the file
content in the prompt in a context-friendly way def("DATA", file);
// the task
$`Analyze DATA and extract data in JSON in data.json.`;
replies(2):