How I code with AI on a budget/free
TL;DR Highlight
Pasting only needed code into free web chats beat expensive agents, cutting AI coding costs
Who Should Read
A developer whose Cursor or Cline API bills keep growing and who wants to cut costs with free tiers
Core Mechanics
- Web chat beats agents for problem solving
- The author says web chats like AI Studio, ChatGPT and OpenRouter usually beat agents like Cline, Trae and Copilot.
- He claims agents send lots of tool and MCP instructions that make the model 'dumber'.
- Agents send too much or too little context
- He says Cline, Copilot, Cursor and Windsurf often send far too much code or far too little.
- So he picks the files himself and sends only what is needed.
- Big model plans, small model edits
- A big model in a web chat finds the cause, designs the fix and writes a prompt for Cline.
- The unlimited GPT 4.1 does the actual file edits, saving Claude credits.
- Put the question above and below the code
- AI Code Prep can place the question on top, at the bottom, or both.
- The author says OpenAI claims this helps, but he hasn't tested it.
- Keep many free-tier tabs open
- He lists z.ai GLM 4.5, Gemini 2.5 Pro, Poe, OpenRouter, DeepSeek, Grok and lmarena as free options.
- He asks the same question to several models and compares the answers.
Community Reactions
- Agents can be slow and wasteful, one commenter says
- One commenter said OpenAI Codex took 200 requests with o4-mini to change about 3 lines.
- They shifted from the best model to the dumbest model that gets the job done.
- Dumping the whole codebase into the prompt works
- One commenter dumps src/ into the prompt instead of letting an agent browse the filesystem.
- Another packs code with repomix and feeds it to Qwen3 Coder or AI Studio with good results.
- Free access tips shared
- A commenter said depositing $10 on OpenRouter gives 1000 free queries a day on free models.
- Another said the free Gemini 2.5 Pro API has a high limit that they haven't hit while benchmarking.
- Skeptical voices
- Several commenters said writing the code yourself is simpler than this setup.
- One commenter noted that free tiers mean giving up your code and data.
How to Apply
- Paste your current bug into web chats
- Bundle only the relevant files as `filename: <code>...</code>` and put your question above and below.
- Paste it into two free web chats such as Gemini 2.5 Pro and GLM 4.5 and compare answers.
- Have the big model write the agent prompt
- Once you have a fix, ask for it as a task-list prompt for an agent.
- Paste it into Cline and run it with a cheap model like GPT 4.1.
- Automate context packing with a tool
- Use repomix or AI Code Prep to skip node_modules and .git and bundle code in one go.
- Check first whether private code is OK to send to free tiers.
Try It
# Paste into Claude, ChatGPT or Gemini web chat (fill in the placeholders)
{{question: why does my program do x when y?}}
{{filename1}}:
<code>
{{file contents}}
</code>
{{filename2}}:
<code>
{{file contents}}
</code>
{{question: why does my program do x when y?}}
First analyze the cause. Once you have a fix, write a prompt for Cline, the AI coding agent. Enclose the whole prompt in a single code block, break the work into small tasks with enough detail, and use plain-language search-and-replace blocks to show where to edit.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls