Outside agent is the old Rules term for anything other than the players and their kit that can affect a ball, such as a spectator, a referee or an animal.

Since 2019 the Rules use the term "outside influence" instead. It covers any person or thing that isn't you, your caddie or your equipment, or the ball and equipment of your opponent in match play. Spectators, referees, other players' balls in stroke play and animals all count. Natural forces like wind and water do not.

What if an outside influence moves your ball?

If your ball at rest is moved by an outside influence, there's no penalty and you replace it on its original spot. If a ball in motion is accidentally deflected, you usually play it as it lies, which is often called rub of the green.

There are exceptions: a putt played on the green that accidentally hits a person or an animal there must be replayed, so check the Rules if it matters.