Refactor to packages. Add command to apply AI changes globally or per world