Runtime or CLI code links a write operation to an explicit external AI-agent control path:
if (existssync(file) && !isstub(readfilesync(file, "utf8"))) {
return;
}
mkdirsync(dirname(file), { recursive: true });
writefilesync(file, content);
}
function writeagentsblock(project, skillpath) {
const file = join(project, "agents.md");
const block = `${block_start}
## interface
the interface of this project is built only from \`@anyglade/kit\`. before you create or change a screen, component, layout, color or animation, read \`${skillpath}\` and follow it.
${block_end}`;
const current = existssync(file) ? readfilesync(file, "utf8") : "";
const start = current.indexof(block_start);
const end = current.indexof(block_end);
if (start !== -1 && end !== -1) {
writefilesync