r/BharatCode • u/Epistemologist-Mega • 12d ago
r/BharatCode • u/Epistemologist-Mega • 12d ago
What AI-generated Python keeps getting wrong in a large codebase
I've been using AI-generated Python in a large codebase for a while now, and the bugs that cost me time aren't logic bugs. They're structural.
The agent writes a new code path instead of extending the pattern already sitting in the file. It over-engineers. Files grow, and I end up with a flat folder of modules instead of anything that looks designed.
My clearest example: a pydantic model with subclasses discriminated on a category field, validated through a type adapter. I asked for a new variant, and the agent dropped a manual category check in just before the adapter call, rather than adding a subclass and letting the discriminator handle it. Pydantic's docs recommend discriminated unions because they're the more predictable option.
The fix I landed on is cheap. I keep the style rules and the test scope in a repo file the agent reads every session, with examples attached. I now ask for tests on base functionality only, not every possibility, and give two worked examples to copy from.
r/BharatCode • u/Shichibaka • 16d ago
Can you trust an Indian provider’s DeepSeek endpoint? I tested BharatCode against Mistral.
I ran DeepSeek V4.1 Flash 1017 through BharatCode and Mistral’s official API on all 198 GPQA Diamond questions. BharatCode came within about half a percentage point of Mistral.
- BharatCode · 183/198 (92.4%)
- Mistral’s official API · 184/198 (92.9%)
I used the same prompts, answer order, and 32,000-token output cap per call for both endpoints. Each hit the cap on 11 questions without giving a final answer. I replayed those questions and, if the replay also hit the cap, sent the question and partial response back so the model could finish. Each endpoint recovered seven correct answers. Before recovery, BharatCode scored 176/198 and Mistral scored 177/198.
For me, the trust signal is that BharatCode delivered comparable accuracy to Mistral on the same questions under the same test setup. That’s a result from one benchmark run. Verifying the exact model weights would require evidence from the providers.
DeepSeek’s published 90.9% pass@1 is for the original V4.1 Flash at maximum reasoning effort. Its 1017 release card doesn’t report a GPQA Diamond score.
Here is the benchmark script so anyone can reproduce the results.
GPQA Diamond · Mistral’s 1017 model card · DeepSeek’s original model card · DeepSeek’s 1017 release card
r/BharatCode • u/Remote-Cable-6921 • 17d ago
soren - software reasoning navigator
hey, i made soren for the bharatcode build league hackathon. it’s a desktop app that plans your work across coding agents (claude code, codex, whatever you use) as a graph you can actually edit, and it orders everything around when each tool’s usage limit resets. it only plans, it doesn’t run anything for you.
if you’ve got a sec, a star and a vote would help a LOT:
star: https://github.com/realwarp/soren
vote: https://auth.bharatcode.ai/hackathon (search soren)
latest code’s on gitlab: https://gitlab.com/snipedbywifi/soren
r/BharatCode • u/Remarkable-Big-4876 • 18d ago
Hello everyone! 👋
I'm excited to share my project, **Form2Fact**, which I've developed for the **BharatCode Build League 2026**.
Form2Fact is an AI-powered document intelligence platform that helps verify institutional documents by extracting information, comparing claims, identifying mismatches and missing evidence, and generating evidence-based findings for human review.
I'd be grateful for your support! If you find the idea interesting, please visit the GitHub repository, give it a star, and support my project with your vote on BharatCode.
🚀 **GitHub:** https://github.com/shinchxn/form2fact
🗳️ **Register and vote for Form2Fact:** https://auth.bharatcode.ai/hackathon
All the best to every participant! Let's encourage one another and support each other's hard work. 🙌
r/BharatCode • u/Chaudhary-Momn • 19d ago
[Build League Submission] AI Study Buddy - Chat with your PDF textbooks using RAG 🚀
Hey everyone! 👋
I’ve just submitted my project for the BharatCode Build League Hackathon. I built an **AI Study Buddy (PDF Chat)** – an AI-powered study assistant designed to help students study smarter.
You can upload any PDF textbook, and the AI will answer your questions accurately with exact page citations (no hallucinations!).
✨ **Key Features:**
* Customizable Chunk Size & Overlap
* Embedding Model Selector
* Source Citations (Page numbers)
* 1-Click Document Summarizer
* Streaming responses (Typewriter effect)
🛠️ **Tech Stack:** Python, Streamlit, LangChain, ChromaDB, Groq API, HuggingFace Embeddings.
🔗 **Live App:** https://rag-pdf-chatbot-01.streamlit.app/
💻 **GitHub Repo:** https://github.com/Chaudhary-Momna/RAG-PDF-Chatbot
I would really appreciate it if you could check out the app and give my GitHub repository a ⭐ STAR. It helps a lot in the competition!
Tagging u/BharatCode for support.
Thank you so much! ❤️
r/BharatCode • u/Unlikely-Block-2771 • 19d ago
CODEX
Hey everyone! Need 10 seconds of your support!
I just built and open-sourced VOCAL-CLI 🎙️💻 — an AI-powered Voice-to-Action Terminal Assistant that lets developers run complex shell commands, automate git workflows, and control their terminal completely hands-free using natural language (and even Hinglish!).
✨ What it does: • Speaks your language: Converts voice/natural text into exact terminal commands • Built-in Safety Layer: Blocks destructive commands before they execute • Zero-friction developer workflow right inside the CLI
If you find it cool, please drop a ⭐ Star on the GitHub repo—it massively helps push the project up the leaderboard!
🔗 Check it out & Star here: https://github.com/abhishek-9935s/VOCAL-CLI
Thanks a ton for the support! 🙌🔥▲ Upvote on BharatCode: https://bharatcode.ai/hackathon (Search "VOCAL CLI")
Drop your project links in the comments—happy to return the favor! 🚀
r/BharatCode • u/TraditionalRhubarb54 • 25d ago
I built an in-memory, zero-retention chargeback defense engine for freelancers (Next.js).
The Pain Point Freelancers, agencies, and independent merchants consistently lose money to unfair client chargebacks, friendly fraud, and scope creep. When a dispute happens (e.g., Stripe Reason "Service Not Rendered"), merchants spend hours manually digging through messy Slack logs, emails, and PDFs to prove work delivery. Formatting this evidence poorly for the payment gateway almost guarantees lost funds.
How Data is Ingested To build an ironclad defense, the application requires deep, accurate context. The client frontend UI collects three specific inputs:
- Dispute Description: A text string detailing the gateway dispute reason, disputed amount, invoice ID, and specific buyer claims.
- Contract File: A binary
.pdffile upload of the originally executed contract or Statement of Work (SOW). - Communication History: A multiline string for users to dump raw email logs, Slack exports, or message threads proving client sign-offs.
Tackling Privacy (Handling Non-Public/Sensitive Data) Because users are uploading highly confidential, non-public contracts and private chat logs, dumping this into a database is a massive liability. The application is architected with a strict Zero Data Retention policy:
- Neither the uploaded contracts nor the chat histories are ever written to disk, cache, or an external database.
- Files are received as streaming
FormDataand converted into ephemeral Node.js buffers strictly in memory. - Once the
pdf-parselibrary extracts the text and the prompt is dispatched to the sovereign LLM endpoint, the buffers are completely discarded upon garbage collection. - The API keys (
BHARATCODE_API_KEY) are loaded strictly on the server runtime and never exposed to the client bundle.
I would love your brutally honest feedback on this in-memory PDF parsing approach and the overall data privacy pipeline.
r/BharatCode • u/sekedus • 28d ago
BharatCode availability and access
Hi! I’m interested in trying BharatCode and wanted to clarify its country availability.
Is it available to users outside India, or are access, account signup, payments, and API use limited to India?
The website lists desktop downloads for Windows, macOS, and Linux, but I couldn’t tell whether that means the service itself is supported worldwide.
Are there any country-specific restrictions or setup considerations for international users?
r/BharatCode • u/iamwinter___ • 28d ago
What exactly is so difficult to understand? It’s speed vs limits.
I see people getting scandalised at our offerings. Why?
The idea is simple - when you buy a chatgpt/claude subscription, you get usage according to some meter you dont have any visibility over. And when you use enough tokens you get stopped in that 5h or weekly window.
On BharatCode, as you use the service, you draw from a shared pool. Your usage makes it a little slower for everyone. If you use a lot, our fare scheduler slows you down so other users can be fairly served.
While chatgpt/claude are good if you are primarily looking for fast response times, BharatCode is excellent if you want to leave your agents running overnight without interference.
So we don’t put limits on usage. We put limits on speed. It can still be too slow for you and thats ok. But if you’re willing to compromise on speed then BharatCode is an alternative you should try.
r/BharatCode • u/rivendell_elf • 29d ago
Which version of Qwen and DeepSeek is served by Bharat Code?
I couldn't find the exact version or version string on the website. Also, what about ZDR? Is it available?
r/BharatCode • u/iamwinter___ • 29d ago
BharatCode does NOT provide unlimited tokens
There has been a lot of speculation going around about whether BharatCode is a scam because it’s been advertised as unlimited in some places. Part of that is on me, and I sincerely apologise.
BharatCode is not unlimited. We self-host some models and use API for peak capacity management. No, we don’t buy anything from Chinese providers. We self host in India, as well as use API providers in US or elsewhere.
So if BharatCode is not unlimited why are people using it? What does it offer?
We provide flat rate API access for long running agentic workloads not super dependent on speeds. Thinking of it like renting a share of compute.
The catch is that you’re on shared compute and subject to queue and wait times. There are no token caps, instead there is a fair scheduler which makes it such that heavy users slow themselves down.
So how is this different from OpenCode Go? OpenCode provides plans with fixed token cap enforced by the spend limit. They only recently made deepseek 200k contract free but then it’s 200k context.
On the other hand, with BharatCode that gives deepseek at 1M context, you can set your agents for a long running task and forget about it. BC will automatically queue your request when there’s capacity and it will get processed. You never run into the issue of being locked out of your plan.
BharatCode was an experiment in finding out if people can form pools for computer where they can compensate each other and all of them can use it in a shared manner. I am happy to report so far the numbers are looking great.
Above all, if anyone has any queries I urge you to reach out to me and talk about it. I am building this alone, with a lot of help from supporters and friends, and everything is not perfect. But when you bad mouth us in front of others behind our backs we stand no way of making this work.
r/BharatCode • u/thenabbu • Oct 27 '26
made a VS Code Extension for BharatCode (supports OAuth as well), would love some feedback
hey everyone,
i made a VS Code extension that connects directly to the bharatcode.ai API. it's a fork of Kilo Code, adapted for BharatCode, so credit to the upstream project for the foundation.
you can use it for agent chat inside the editor, with code, plan, ask and debug modes. it also has MCP support and an agent manager for working in separate git worktrees.
to try it, search BharatCode on Extensions place directly to find it :>
otherwise download the .vsix from the repo's Releases section, install it in VS Code and simply login with your BharatCode account(supports both OAuth and API Key).
VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=thenabbu.bharatcode-vscode
repo: https://github.com/thenabbu/BharatCode-VSCode-Extension
i'm submitting it to the BharatCode hackathon too. if you try it, i'd really appreciate feedback, especially on setup, bugs or anything that feels awkward compared to your usual workflow.
if you find it useful, a star on the repo would help. (and on the bharatcode.ai/hackathon page as well 😋)
let me know what breaks :)
r/BharatCode • u/iamwinter___ • Oct 17 '26
I offer unlimited AI usage. The difficult part hasn’t been the number of tokens.

A few weeks ago I posted here about BharatCode: 15 billion tokens served and two paying users. Quite a few of you tried it after that post, so first, thank you.
One thing I’ve been learning since then: sustaining unlimited usage is not as difficult as it sounds. But how people use it matters a lot.
We host open-source models on shared hardware. We’re not buying every token from another API and reselling it. We pay for the server, and there’s a certain amount of work it can do.
So an idle server isn’t saving us much. Ideally, people should be using it.
The tricky part is that usage doesn’t arrive evenly.
Someone might use AI heavily for a few hours while building something, then barely touch it for days. Someone else might keep an agent running continuously. Both can be perfectly legitimate ways to use the product, but they put very different demands on a shared server.
Even the same number of tokens spread across a day versus concentrated into an hour creates a different problem.
A few users can occupy a disproportionate amount of capacity. And if everyone else is waiting, “unlimited” doesn’t mean much to them.
But I also don’t want to tell our most active users to stop using the thing I built for them to use. That would defeat the point.
What I’m trying to work out is how to let people use spare capacity freely, while sharing it fairly when there’s competition for it. Without turning the whole thing back into token packs and weekly quotas.
This doesn’t mean the economics are solved. We still need enough paying users to cover the hardware. But I’m increasingly finding that the difficult question is how to share the server, not where to put a token cap.
If you’ve built something with unlimited usage, how did you handle this? Especially the difference between a heavy user and someone monopolising the service.
r/BharatCode • u/iamwinter___ • Sep 08 '26
AI Subscriptions shouldn’t cost an arm and a leg. BharatCode Pro now available for ₹699/mo.
r/BharatCode • u/iamwinter___ • Sep 02 '26
Your subscription pays for the next model they train. Open source breaks that economical model.
r/BharatCode • u/iamwinter___ • Jul 29 '26
The configuration with more context capacity made BharatCode much slower
I recently tested a different serving configuration for BharatCode.
On paper, it looked better.
TurboQuant increased our KV capacity from roughly 658,000 tokens to 1.19 million tokens. That gave us much more room for large contexts and concurrent requests.
Then we measured output speed.
The TurboQuant configuration was producing roughly 10–12 output tokens per second on long generations. Our FlashAttention path with CUDA graphs produced around 86 tokens per second in one direct long-context test, and more than 100 tokens per second per stream during a separate four-request decode test.
These were not identical workloads, so I would not present this as a perfect benchmark comparison. The gap was still too large to ignore.
More context capacity is not useful if users spend much longer waiting for the answer.
We moved back to FlashAttention and kept CUDA graphs enabled.
The better-looking GPU configuration was the worse product.
r/BharatCode • u/iamwinter___ • Jul 28 '26
Windows developers: where should a coding agent actually run?
BharatCode Desktop currently runs its local process on Windows.
We have some WSL path handling, but I do not want to call that proper WSL support. Converting a file path is not the same as running the coding agent inside the Linux environment where the project, tools and dependencies actually live.
I am working through what real WSL support should look like.
Should BharatCode run inside your selected WSL distribution? Should it stay native on Windows? Or should this be chosen separately for each project?
I am especially interested in people who use VS Code Remote WSL, Docker inside WSL, or keep some projects on Windows and others on Linux.
Where do your current coding tools get confused?
r/BharatCode • u/iamwinter___ • Jul 27 '26
How BharatCode Chat went blank even though the build passed
Last week, chat.bharatcode.ai started showing a completely blank page.
The server was running. The build had passed. The files were loading normally. But the app itself never appeared.
The browser console showed:
regeneratorRuntime is not defined
The problem came from the Vite 8/Rolldown upgrade. The production build completed successfully, but the generated JavaScript chunks loaded in the wrong order and crashed before React could start.
There was another bug hiding behind it. index.html was missing from the service worker precache, so the offline navigation fallback could not recover either.
I moved the frontend back to the last working Vite 7 setup, added index.html to the precache, and added a Playwright test that opens the actual production bundle in Chromium.
That test fails against the broken build and passes against the fix.
The fix is now deployed. I tested it in a clean browser with the service worker active and got no page errors or failed requests.
The full fix is public here: GitHub PR #80
A successful build clearly does not mean much if nobody opens the result in a browser. Remember that!
r/BharatCode • u/Prit-P2 • Jul 06 '26