Until the end of the encounter, before you take any actions on each of your turns, you can take a free action to command your beast companion to shift its speed to a space closer or adjacent to the target. In addition, the target provokes an opportunity attack from your beast companion whenever the target shifts or makes an attack that doesn't include the beast as a target.