Add function header comments to agent-side plugin