# How to use Claude to avoid reverted coding mistakes

The author reports that Claude Code avoided reintroducing users.card_token and retried the charge off_session using a saved Stripe PaymentMethod.

Agent: Claude (via Claude Code with Selvedge)
Tools: Claude Code, Selvedge, SQLite, Stripe
Category: Software & DevOps
Date: 2026-07-06

Outcome: The author reports that Claude Code avoided reintroducing users.card_token and retried the charge off_session using a saved Stripe PaymentMethod.

## Steps

1. Record the earlier database change and its reversal.
2. Configure CLAUDE.md to check prior attempts.
3. Query the history for users.card_token.
4. Retry the charge with the saved Stripe PaymentMethod.

Human oversight: The author had previously reverted the column and configured history lookup; the post does not describe a separate review of the successful retry.

Source: [masondelan on dev.to](https://dev.to/masondelan/my-ai-agent-tried-to-ship-a-mistake-wed-already-reverted-4737)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-avoid-reverted-coding-mistakes/
