Update agent config