Updating define and templates for agent configuration