---
title: "Planner plugin"
description: "Install the Baz plugin in Claude Code, Codex or Cursor to plan and review changes with search across all your repositories."
canonical: "https://baz.ai/docs/integrations/developer-tools/planner-plugin"
---

# Planner plugin

Install the Baz plugin in Claude Code, Codex or Cursor to plan and review changes with search across all your repositories.

The Baz plugin adds indexed code search to your coding agent, so it can plan a change against repositories you have never cloned. It wires the Baz MCP server, a codebase-exploration skill that tells the agent when to search Baz, and commands for planning, reading plan comments, and reviewing your changes. Plans the agent saves land in Baz, where teammates review them.

## What you get

Your agent gets `repo_search`, `remote_grep`, and `remote_file_search` to search every repository in your organization, plus the `baz-codebase-exploration` skill that tells it when to use them. The `plan-with-baz` command plans a change and saves it to Baz once you approve, `get-plan-comments` brings teammates' comments back, and `review` checks your diff, even against repositories you have not cloned.

On first use the plugin signs you in with your Baz account in the browser.

## Install

<Tabs>
  <Tab title="Claude Code">
    ```text title="Claude Code"
    /plugin marketplace add baz-scm/baz-plugin
    /plugin install baz
    /reload-plugins
    ```

    Run `/mcp` and look for `baz` to confirm the server is connected. Commands are namespaced, for example `/baz:plan-with-baz`.
  </Tab>
  <Tab title="Codex">
    ```bash title="Terminal"
    codex plugin marketplace add baz-scm/baz-plugin --ref main
    codex plugin add baz@baz
    ```

    Invoke the skills by name, for example `plan-with-baz`.
  </Tab>
  <Tab title="Cursor">
    Add the server in Cursor's MCP settings:

    ```json title="~/.cursor/mcp.json"
    {
      "mcpServers": {
        "baz": {
          "type": "http",
          "url": "https://baz.ai/mcp"
        }
      }
    }
    ```

    Then copy `.cursor/rules/baz-codebase-exploration.mdc` from the [baz-plugin repository](https://github.com/baz-scm/baz-plugin) into your project's `.cursor/rules/` directory.
  </Tab>
</Tabs>

## Plan a change

```text title="Claude Code"
/baz:plan-with-baz add rate limiting to the public API
```

The agent explores the relevant repositories with the Baz tools and writes a plan. When you approve, it calls `update_plan`, and the plan appears in Baz for review. See [Plans](/docs/work/plans).

## Review your changes

```text title="Claude Code"
/baz:review
/baz:review uncommitted
/baz:review --pr 42
/baz:review --fix
```

The review reads your diff, then searches other repositories for callers, consumers and registration sites your change affects. With `--fix`, it applies the fixes you approve in the repository you have checked out.

## Troubleshooting

<Accordion>
  <AccordionItem title="Tools are missing after install">
    In Claude Code, run `/reload-plugins`, then `/mcp`.
  </AccordionItem>
  <AccordionItem title="The agent searches locally instead of using Baz">
    Ask it to use the Baz tools, or run the planning command, which loads the routing rules.
  </AccordionItem>
  <AccordionItem title="Sign-in loops">
    Clear `~/.mcp-auth` and restart the client.
  </AccordionItem>
</Accordion>

## Related

<CardGroup cols={2}>
  <Card title="Plans" href="/docs/work/plans" icon="file-code">
    Review and approve plans in Baz.
  </Card>
  <Card title="MCP server" href="/docs/integrations/developer-tools/mcp" icon="plug">
    Connect any MCP client without the plugin.
  </Card>
</CardGroup>
