Squeeze is a background file compressor that takes advantage of the new filesystem compression technology included in Snow Leopard:
It does, however, have a few shortcomings (like not allowing you to compress files off your boot volume), and if you want to compress specific files manually you may find that afsctool does all you need (and includes source code).