Code Samjha Nahi? Bhaicode Se Pooch.
An AI coding companion built for the way we actually think. You can explain code, debug errors, and vibe-code without any language barriers. Just talk to your terminal coding bhai and let the AI do the rest.
npm i -g bhaicode@latest Dekh bhai, tune dependency array data mein wahi state daal di hai jo tu andar update kar raha hai.
Infinite loop ban gaya hai. Array empty [] kar de agar sirf mount pe chahiye.
Meet the Agents
BhaiCode splits complex repository tasks into two specialized co-operating agents working in parallel.
BHAI (BUILDER)
Executes code, builds features, and performs direct filesystem writes. Bhai is the default full-access primary execution agent that handles the heavy lifting in your codebase.
.---.|[o_o]|_ \ - / _( \ /' '\ / )\ V / \ V /`-| |-`|___|/ \( )`---`
BEHEN (PLANNER)
Analyzes repository structure, plans refactors, checks edge cases, and guides step-by-step logic. Behen ensures code updates are structurally sound and architecturally complete.
/\/ \/ \/______\|[o__o]|\ == /| |/____\( )`----`
Key Architectural Features
MULTI-CLIENT
BhaiCode is client-agnostic. Work from a keyboard-driven TUI (bhaicode) or Web Console for remote tasks. Desktop and IDE integrations coming soon.
ACP v1 COMPLIANT
Runs a protocol-compliant Agent Client Protocol server (bhaicode acp) for editor integrations, handling capabilities, sessions, files, and tool execution.
SYNCING & EVENTS
Implements a single-writer event-sourcing sync system. All edits are recorded as ordered stream events (SyncEvent), allowing live session replays on client devices in real-time.
AST-BASED SURGERY
Performs precise, concrete syntax tree surgeries instead of raw regex or diff searches. Avoids unmatched braces, broken syntax trees, or malformed import statements.
PROVIDER AGNOSTIC (BYOK)
Never lock into a single vendor. Native support for OpenAI, Anthropic, Google, Groq, CrofAI, and local running instances (like Ollama). Use your own keys completely free.
SANDBOXED RUNTIME
Integrates natively with workspace tools, running test suites, typecheckers, and compilers in isolated containers to inspect and verify every code modification in real-time.
See BhaiCode in Action
See how our specialized builder and planner agents handle real-world development tasks inside your repository.
Likh diya bhai! Main index.js ko modify karke Express route create kar raha hoon, request validation body ke sath. File check kar le.
app.post('/api/items', (req, res) => {
const { name, price } = req.body;
if (!name || !price) {
return res.status(400).json({ error: 'Name aur price daalna zaroori hai!' });
}
const newItem = { id: Date.now(), name, price };
items.push(newItem);
res.status(201).json(newItem);
}); Plan ready hai bhai. Main aapke context hooks aur states ko analyze karke Zustand custom store design kar rahi hoon. Step-by-step refactoring steps ye hain:
// Zustand custom store setup (store/useUserStore.ts)
import { create } from 'zustand';
interface UserState {
user: User | null;
setUser: (user: User | null) => void;
logout: () => void;
}
export const useUserStore = create<UserState>((set) => ({
user: null,
setUser: (user) => set({ user }),
logout: () => set({ user: null }),
})); Arre simple hai! dependency array me callback state update kar raha tha, jiski wajah se loop ho raha tha. Empty dependency array set kar diya hai.
// fixed dependency loop
useEffect(() => {
const fetchStats = async () => {
const data = await getStats();
setStats(data); // State updates here
};
fetchStats();
}, []); // empty dependency to run only on mount Security audit done. Aap raw templates use kar rahe the routes me. Parameterized queries aur validation check lagane ka suggestion ye hai:
// Secure parameterized query representation
const userId = req.params.id;
// BEFORE: db.query(`SELECT * FROM users WHERE id = ${userId}`)
// AFTER (Parameterized):
const result = await db.query(
'SELECT * FROM users WHERE id = $1',
[userId]
); Traditional AI vs BhaiCode
| Feature | Traditional AI | BhaiCode |
|---|---|---|
| Hinglish Support | Limited / Robot Style | 100% Native Flavour |
| Terminal Native | Browser Required | CLI + Editor First |
| Explain Like A Senior | Academic/Dry | Dev-to-Dev Context |
| Open Source | Black Box | Public Repo |
| Price | $20/mo Subscription | Free (BYOK) / Pro & Teams |
| Model Freedom | Locked to single vendor | BYOK (Gemini, Claude, or Local Ollama) |
| Code Verification | Manual copy-paste & run | Sandboxed runs of test suites natively |
FREE
100% FREE (FOREVER)
Use your own API keys (BYOK) with OpenAI, Anthropic, Groq, Google, or local models. Self-hostable core CLI tools.
PRO
COMING SOON
No key management. Access premium models via our hosted gateway, plus cloud sync, shared sessions, and VSCode/JetBrains extensions.
TEAMS
COMING SOON
Shared workspaces, multi-user seat management, granular usage controls, repository snapshot sharing, and team collaboration features.
Upcoming Features
A sneak peek into the proprietary tools, custom gateways, and fine-tuned stealth models we are engineering behind the scenes.
BhaiCode X (api.bhaico.de)
Connect to top-tier models (OpenAI, Anthropic, Google, Groq, CrofAI) with ultra-low latency routing, zero-retention privacy, unified authentication, fallback chains, and cost tracking.
Custom Stealth Models
Support for fine-tuned specialized models: "Lil-Bro" (Greg 1 Mini) for general chat and quick edits, and "Big-Bro" (Mimo M2.5 Pro) for complex refactoring, multi-file edits, and agent orchestration.
Grateful to OpenCode, Dedicated to Indian Devs
We believe that agentic coding is the future of development. Bhaicode is our contribution to making this power accessible to everyone in India.
OpenCode Tribute
We are deeply grateful for OpenCode's pioneering work in terminal-first agentic coding. Their presence and ecosystem allowed us to create Bhaicode. We aspire to match and join their incredible standard of agentic execution, contributing to the developer tools ecosystem.
For Vibe Coders
Bhaicode is not a passive tutor—it does actual coding work (writing code, debugging, refactoring files). However, it is specifically curated for the Indian demographic, helping vibe coders and developers who speak Hinglish command their workspace without needing academic English terminology.