add silence_output/enable_output spec_helper
add output capture
fix: duplicate code
add Agent#endpoint