The hidden sophistication behind how AI agents edit files