Rename 'agent' to 'repository'