Batch API Cost-Effective for Multi-File Code Changes

A developer on r/ClaudeAI shared their experience using batch processing with Claude Sonnet and Opus for coding tasks, highlighting its cost-effectiveness and workflow.
Key Details from the Source
The developer achieved significant code changes across over 30 different files, generating around 3,000 lines of code for approximately £2. They initially focused on RAG (Retrieval-Augmented Generation) but found it unnecessary for their use case.
Their workflow involved:
- Using Claude Opus to determine which files were needed for large requests
- Employing a two-step batch process with relatively simple prompts
- Using Repomix to gather content to send to the models
- Utilizing Minimax m2.5/Qwen Coder to clean up issues from Sonnet after search/replace operations
Specific cost examples mentioned:
- First prompt: $0.30
- Second prompt with code changes: $1.42
- Minimax cleanup costs: described as "barely anything"
The developer completed API development and replaced all mock data tables in their Flutter app with actual API data. They noted learning about caching across multiple prompts, describing the ability to cache certain parts of batches across different requests as "a game changer."
Their model usage strategy evolved:
- Originally used Opus for planning and Sonnet for implementation
- Later experimented with GPT for planning, then feeding that output to Sonnet
- Found this approach better for token efficiency than using Opus throughout
The developer acknowledged making mistakes initially, particularly with caching across multiple prompts, and invited questions about their experience.
📖 Read the full source: r/ClaudeAI
👀 See Also

Using Claude as a Critical Marketing Foil for SaaS Product Refinement
A developer used Claude not for code generation but as a contrarian marketing lead, asking it to provide brutally honest criticism of their SaaS product Prompt Optimizer. This approach helped identify weak messaging and refine the value proposition from features to user relief.

Master Thesis Written Mostly with Claude: Economics Student Passes with Top Grade
An economics student used Claude for literature review, data analysis with Python scripts and Excel, and presentation — passed with a top grade near PhD level. Appendix disclosed AI use, no questions asked.

Developer uses Claude Code to iterate spending chart from wireframe to production quality in one night
A developer building a personal finance app solo used Claude Code to redesign a spending chart through four rounds of fixes in a single session, going from basic wireframe to near-production quality in about 3 hours.

Building a Linux Distro with Claude AI: A Developer's Practical Breakdown
A developer with 23 years in tech built NubiferOS, a security-hardened Linux distro, using Claude AI as the entire development team. The project involved 10-15 simultaneous Claude sessions, generated ~39,300 lines of code and ~57,500 lines of documentation, with zero human-written code.