Init custom agent