> ## Documentation Index
> Fetch the complete documentation index at: https://a5eb32f-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://a5eb32f-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://a5eb32f-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://a5eb32f-docs-2.manicule.dev/.well-known/llms-manifest.json

# Pair Program with Bhai (/agents/bhai)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 613 · updated: 2026-11-25 -->
Related: [Choose How Bhai Delegates Work](/agents/overview.md), [Plan a Multi-File Change](/agents/planner.md), [Carry Out a Refactor or Migration](/agents/executor.md), [Prompt Bhai in an Indic Language](/agents/multilingual.md)

> 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

<Steps>
<Step title="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.</Step>

<Step title="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.</Step>

<Step title="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.</Step>
</Steps>

## 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

* [See how the agents work together](/agents/overview).
* [Prompt in an Indic language](/agents/multilingual).
