It's not really a completion function like `_ag` etc, so it needs to be sourced. I believe we only add `zsh/completion` to the fpath so ZSH's built-in completion handles it, but that won't work for `compdef`.