Grist is an open-source CLI coding harness that routes tasks to the cheapest capable AI model, learns from your codebase, and bills inference to your own provider key. It uses confidence-gating and institutional memory to optimize costs while keeping source code local and private.