18772 - Publish and rewrite the package agent

Rework of the package agent