AI agents should write sync scripts, not sync content manually
When splitting work between agents in separate projects, you often run into this problem: the same content is needed in different forms. The format may differ, or one project may need extra passages inserted into the text—see the example below. This only becomes a problem when the content needs repeated updates: each update consumes a lot of tokens, and, more importantly, there is no guarantee that the agent will synchronize everything with 100% accuracy every time.
Today I ran into this while synchronizing the CVs on this site with a separate project containing full information about me. It would make little sense to clutter the site developer agent’s context with all that information. But I have encountered this at work too: for example, synchronizing product descriptions between the company website project and the project used to prepare commercial proposals.
In these situations, use scripts—program code—and take advantage of the fact that modern agents are excellent programmers who need very little explanation when it comes to software. Today I wrote:
I want you to update the website versions whenever you update your own versions. Suggest a workflow with a script.
The website files used different markup: some homepage text lived in YAML fields, alongside site-only paragraphs, illustrations and SEO metadata. The agent wrote a script to convert the ordinary Markdown into the website’s format, with the site-specific differences stored in a separate configuration file. I did nothing else: it delivered the working script, tests and instructions for future updates, including a rule telling future agents to run it after editing the CVs.