Check for agent before batch processes
grep: add new pass grep command

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>