Runtime or CLI code links a write operation to an explicit external AI-agent control path:
"utf-8") : "");
if (changed) writefilesync8(path, text8, "utf-8");
console.log(changed ? " added to scripts/__startup.lua (reaper runs it at launch)" : " already in scripts/__startup.lua");
console.log(" turn it off in the bridge window: settings > start with reaper.");
}
async function registersnapshotactions() {
console.log("\nregistering snapshot actions (quick save, next, previous)...");
const kbpath = join15(getreaperresourcepath(), "reaper-kb.ini");
const kb = existssync10(kbpath) ? readfilesync8(kbpath, "utf-8") : "";
const { added } = ensuresnapshotactions(kb);
if (!added.length) {
console.log(" already in the action list");
} else if (await isreaperrunning()) {