Nowadays agents know a lot of tricks on how to effectively prompt subagents

Generally speaking the ouput of a subagent is sent directly to the calling agent, that can make the final edits. Or, the subagent can edit the file in a local copy, and the calling agent can diff it