How we built an agent harness that cuts token consumption by 90%