> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Coding Plans

> Review CodeRabbit-generated plans, compare versions, and hand selected phases off to IDEs or coding agents.

export const Hint = ({type, children, headline, tip, href, cta}) => {
  const TIPS = {
    learnings: {
      headline: "Learnings",
      tip: "Review preferences CodeRabbit learns from your chat conversations and applies automatically to future reviews.",
      cta: "Learn about Learnings",
      href: "/knowledge-base/learnings",
      content: "Learnings"
    },
    walkthrough: {
      headline: "PR Walkthrough",
      tip: "A structured comment posted by CodeRabbit at the top of every pull request, summarizing changes, sequence diagrams, review effort, and more.",
      cta: "Learn about PR Walkthroughs",
      href: "/pr-reviews/walkthroughs",
      content: "Walkthrough"
    },
    "finishing-touches": {
      headline: "Finishing Touches",
      tip: "Post-review agentic actions (Autofix, writing docstrings or unit tests, and more) you trigger from a PR comment or a checkbox in the Walkthrough.",
      cta: "See all Finishing Touches",
      href: "/finishing-touches",
      content: "Finishing Touches"
    },
    "coding-plan": {
      headline: "Coding Plan",
      tip: "A detailed, codebase-aware implementation plan CodeRabbit generates from an issue or description, ready to hand off to any coding agent.",
      cta: "Learn about Coding Plans",
      href: "/plan",
      content: "Coding Plan"
    },
    "knowledge-base": {
      headline: "Knowledge Base",
      tip: "The collected context sources CodeRabbit draws on during reviews: Learnings, Code Guidelines, issue trackers, connected MCP servers, and cross-repo analysis.",
      cta: "Explore the Knowledge Base",
      href: "/knowledge-base",
      content: "Knowledge Base"
    },
    "path-instructions": {
      headline: "Path Instructions",
      tip: "Custom review rules that only apply to files matching a glob pattern, e.g. 'src/controllers/**'.",
      cta: "Configure path instructions",
      href: "/configuration/path-instructions",
      content: "Path Instructions"
    },
    scope: {
      headline: "Scope",
      tip: "A named set of repositories, connections, and spend limits that controls what CodeRabbit Agent can access in a given Slack conversation.",
      cta: "Learn about Scopes",
      href: "/slack-agent/scopes",
      content: "Scope"
    }
  };
  const defaults = TIPS[type] || ({});
  return <Tooltip headline={headline ?? defaults.headline} tip={tip ?? defaults.tip} cta={cta ?? defaults.cta} href={href ?? defaults.href}>
      {children ?? defaults.content}
    </Tooltip>;
};

CodeRabbit turns Slack conversations into structured implementation plans. CodeRabbit Agent for Slack analyzes the thread, the repositories in scope, and the Knowledge Base, then produces a plan with research, design choices, and concrete tasks. You can review and compare versions in the web app, then hand selected phases to a coding agent like Claude Code, Codex, or Cursor.

## How plans are created

Ask CodeRabbit to create a plan. CodeRabbit Agent produces a structured plan based on the thread history, matched scope, and available repositories.

For example, after discussing a new feature in `#backend-eng`, an engineer can type:

```
@CodeRabbit Plan adding rate limiting to the public API endpoints based on the approach we discussed above
```

The Agent reads the thread, checks the repositories and knowledge available through the channel's <Hint type="scope">scope</Hint>, and generates a coding plan with implementation phases, file references, and design rationale grounded in the actual codebase.

<Info>
  In channels, you can also use the `/plan` slash command as a shortcut. Slash commands are not available in Direct Messages or threads.
</Info>

## Review and handoff

Review plans in the [web app](https://agent.coderabbit.ai/plan/list), compare versions side by side, and select specific phases to hand off. The handoff produces a codebase-aware prompt you can copy or send directly to Claude Code, Codex, Cursor, or any other coding agent.

## Relationship to CodeRabbit Plan

CodeRabbit Agent planning builds on the broader CodeRabbit planning model. Plans created from Slack appear alongside plans created from the web app or issue trackers.

For the canonical product docs covering plan structure, refinement, and agent handoff, see [CodeRabbit Plan](/plan).

## What's next

<CardGroup cols={1}>
  <Card title="Working in Slack" href="/slack-agent/use-in-slack" icon="messages-square" horizontal>
    See how `/plan` starts from Slack and when that work moves into the web UI.
  </Card>

  <Card title="CodeRabbit Plan overview" href="/plan" icon="list-check" horizontal>
    Read the canonical planning docs for plan structure, refinement, and handoff behavior across CodeRabbit.
  </Card>

  <Card title="Thread reviews" href="/slack-agent/thread-reviews" icon="file-search" horizontal>
    Inspect the run history behind a planning conversation when you need more context than the final plan alone.
  </Card>
</CardGroup>
