> ## Documentation Index
> Fetch the complete documentation index at: https://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://docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://docs-2.manicule.dev/api/mcp.
> Every agent surface: https://docs-2.manicule.dev/.well-known/llms-manifest.json

# Agentic Canvas Mode (/desktop/agentic-mode)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 532 · updated: 2026-11-11 -->
Related: [Desktop Workspace Overview](/desktop/overview.md), [Code Editor & Highlight-to-Ask AI](/desktop/code-editor.md), [Multi-File Visual Diff Viewer](/desktop/diff-viewer.md), [Transparency Dock & Approval Gates](/desktop/transparency.md), [Integrated PTY Terminal](/desktop/terminal.md)

> Autonomous task delegation, step-by-step planning, and progress tracking in BhaiCode Desktop.

**Agentic Canvas Mode** is the primary autonomous workspace in BhaiCode Desktop. It is built for task delegation: you set the goal and requirements, while the agent swarm plans the architecture, modifies code across files, and validates changes.

***

## Execution Lifecycle

```text
1. Prompt Submission  ──>  2. Scope Analysis  ──>  3. Plan Generation (Planner)
                                                             │
5. Visual Diff Review <──  4. Step Execution & Approval  <───┘
```

1. **Intent & Scope Analysis**: You provide your task in English, Hindi, or Hinglish. Bhai inspects your workspace file tree and dependency graph to identify affected modules.
2. **Autonomous Planning**: For complex multi-file tasks, Bhai invokes **Planner** to create a structured checklist before modifying any code.
3. **Step Execution**: Bhai executes the plan step by step:
   * Reads files and symbol references.
   * Applies surgical edits across multiple files.
   * Runs compilation, linter, or test commands in your terminal.
4. **Approval Gates**: If a step involves potentially destructive commands (e.g., deleting files, installing packages, running external scripts), Bhai pauses and asks for confirmation in the **Transparency Dock**.
5. **Multi-File Diff Review**: Once execution completes, Bhai presents a consolidated visual diff of all changes for your approval.

***

## Canvas Features

### Live Thought Streaming

BhaiCode separates internal architectural reasoning from final code output. You can inspect how the agent arrived at a design decision without cluttering your code review.

### Task Checkpoints & Auto-Healing

Every step in the agent's plan displays real-time status indicators (`Pending`, `Running`, `Done`, `Failed`). If a compiler or test error occurs, Bhai creates a corrective sub-task to fix the error before proceeding.

### Keyboard Shortcuts

* Toggle Agentic Canvas: `Cmd + 1` (macOS) / `Ctrl + 1` (Windows/Linux)
* Toggle Workspace Editor: `Cmd + 2` (macOS) / `Ctrl + 2` (Windows/Linux)
