This script requires PEAR (http://www.pear.net) and the Archive_Tar and Text_Diff packages to be installed.
To install these in most Linux environments:
sudo pear install Archive_Tar
sudo pear install Text_Diff
USAGE: php coreagent.php <drupal_installation_dir (optional)>
To use the shell script version, you first need to set the execute bit:
chmod a+x coreagent
NOTE: This has not been tested on PHP for Windows, and probably won't work