# How to use Codex to check cart substitutions against budget

Codex built Forage’s shopping workflow; tests found incomplete carts, substitution budget drift and invented attributes, leading to explicit checks and limits.

Agent: Codex (via Codex build; GPT-5.6 Sol cart agent and Terra enrichment)
Tools: Codex, Shopify CSV, GPT-5.6 Sol, GPT-5.6 Terra, cart tools
Category: Shopping & errands
Date: 2026-07-21

Outcome: The creator reports a deployed cart-composition product with specific completion, substitution and enrichment safeguards; cheaper production cost and live inventory remain roadmap work.

## Steps

1. Kalidindi defined catalog and cart modules, and Codex implemented tasks from explicit acceptance criteria.
2. Tests exposed early completion, substitution budget drift and unsupported material-percentage claims.
3. The build added complete-request instructions, mandatory cart-summary rechecks and evidence confidence distinctions.

Human oversight: Kalidindi set architecture and failure criteria and reviewed the shopping behavior; current inventory and actual purchasing were not established by the demonstration.

Source: [Aditya Kalidindi — Devpost](https://devpost.com/software/forage-nhwv08)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-build-a-budget-checked-substitution-cart/
