Skip to content

Pair Program with Bhai

Ask Bhai to build or debug a change and give it enough context to follow your project’s conventions.

Bhai is the pair-programming agent you talk to in BhaiCode Desktop and Cloud Studio. Use it to build a feature, debug a runtime error, or coordinate a change that spans several files. Describe the expected behavior and the boundaries of the work so you can review the result against the same request.

Give Bhai the shape of the change

Start with what the app should do. For example, ask for a filter that narrows an existing list without changing the API response. Name the list component and the route, and call out any existing behavior that must stay in place.

Bhai reads the project structure, imports, and dependencies to follow the patterns already in use. It can write the UI component, CSS, API route, and database schema that a full-stack change needs. If your request spans those parts of the app, say which ones it may change. A UI-only request is easier to review when you say the API and database should stay as they are.

Use English, Hindi, Hinglish, or another validated language for the request. BhaiCode supports twelve validated Indic languages plus English, with best-effort coverage for 30 more. Keep filenames and identifiers literal so Bhai can match them to the project.

Debug from a concrete failure

Show what went wrong

Give Bhai the action that triggers the bug, what you expected, and what actually happened. Include the runtime exception or stack trace if you have it.

Follow the error back to the code

Bhai can inspect the stack trace, look at the code it points to, and apply a targeted fix. Mention if the problem only occurs on a particular route or with a particular input.

Check the fix

Open the diff and confirm the fix matches the failure you described. Repeat the same action to verify it works before asking for another change.

Let Bhai route the parts that need a specialist

Bhai writes delegation prompts and coordinates the work. It can ask Planner to structure a complicated change, Executor to carry out a large refactor, Explorer to trace the code without editing it, or Auditor to check for risks. You keep talking to Bhai while those specialists report their findings back to it.

Next

Was this page helpful?