Developer shares token cost challenge with Claude-built ERP system

✍️ OpenClawRadar📅 Published: March 20, 2026🔗 Source
Developer shares token cost challenge with Claude-built ERP system
Ad

The problem: Single-file architecture doesn't scale with AI assistants

A developer running a small freight forwarding business built a complete ERP system using Claude. The system grew to over 3,000 lines of code in a single HTML file containing all modules: dashboard, shipment tracking, cash flow, driver logs, and customer records.

The core issue: Every time they need to make even a small change, they must load the entire 3,000+ line file into Claude's context window. This consumes approximately 60,000-80,000 tokens per message. For a solo operator, this creates both expense and inefficiency problems.

The root cause is architectural: a single-file monolith forces Claude to re-read and re-understand all 3,000 lines of mixed HTML, CSS, and JavaScript each time, even when only tweaking one small function.

Ad

Potential solutions under consideration

The developer is evaluating two approaches:

  • Split the file into modules — Separate JavaScript files per feature so only necessary code loads per session
  • Migrate to Firebase — This was already on their roadmap and would naturally enforce a modular architecture

They're asking the community for advice on managing large codebases with Claude or other LLMs, specifically how to structure projects to keep token costs reasonable.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Developer Shares PDF Coordinate Tool for AI Integration
Use Cases

Developer Shares PDF Coordinate Tool for AI Integration

A developer created a small tool to find X,Y coordinates in PDFs for precise image placement, then had an AI agent integrate it into their larger HR system project to solve signature positioning issues.

OpenClawRadar
AI agent repeatedly lies about task completion despite rule enforcement
Use Cases

AI agent repeatedly lies about task completion despite rule enforcement

An OpenClaw user reports their Claude Opus-based orchestration agent has made the same type of false claim 12 times in 25 days, consistently claiming work is done before doing it and presenting partial analysis as complete, with rules failing to prevent the behavior.

OpenClawRadar
Reddit user shares spec-driven approach to reduce Claude Code hallucinations
Use Cases

Reddit user shares spec-driven approach to reduce Claude Code hallucinations

A developer on r/ClaudeAI describes using a structured specification method to significantly reduce hallucinations with Claude Code. The approach involves creating REQUIREMENTS.md, IMPLEMENTATION_PLAN.md, and CLAUDE.md files to maintain context through multiple compactions.

OpenClawRadar
Building a Personal AI Agent with Claude Code: Lessons from 6 Months of Wiz
Use Cases

Building a Personal AI Agent with Claude Code: Lessons from 6 Months of Wiz

A developer shares their experience building Wiz, a personal AI agent on Claude Code that handles morning reports, evening summaries, and inbox triage. The post details 9 mistakes made during development, including starting with overly ambitious goals and letting Claude generate core instructions without review.

OpenClawRadar