When to create custom agent on publish in author instance of aem
Hi All,
i am new to replication so everything is going above my head, we have a custom agent on publish which is created on author instance and i am unable to activate it even. when do we create a agent on publish in author and how to activate it. We do have a custom transport handler code but control is never going to it while debugging. So confused.

Read adobe documents, still unclear.
Any help is appreciated.