Demystifying AI Harnesses: How AI Agents Work