How to edit publication's generation_leveling_threshold configuration value I dont know where I put this code:

update sysmergepublications set [generation_leveling_threshold] = 0

I only need do it. But I need edited any funcion of agent.
I think what you may be looking for is sp_changemergepublication.

This stored procedure will allow you to modify generation_leveling_threshold value.