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

# Agent Rules

> Integrate Cascade seamlessly with Claude Code and Cursor

Add Cascade context to your AI code editor so it can help you implement tracing, evaluations, and monitoring correctly.

## Quick Setup

<Tabs>
  <Tab title="Claude Code">
    **Add to global rules (recommended):**

    ```bash theme={null}
    curl https://docs.runcascade.com/agent-rules.md -o ~/.claude/CLAUDE.md
    ```

    **Or add to project-specific rules:**

    ```bash theme={null}
    curl https://docs.runcascade.com/agent-rules.md -o CLAUDE.md
    ```
  </Tab>

  <Tab title="Cursor">
    ```bash theme={null}
    mkdir -p .cursor/rules
    curl https://docs.runcascade.com/agent-rules.md -o .cursor/rules/cascade.mdc
    ```
  </Tab>
</Tabs>

After adding rules, your AI assistant will understand Cascade's APIs and best practices.

## What This Enables

Your AI code editor will automatically:

* Use correct Cascade SDK patterns
* Implement tracing decorators properly
* Configure evaluations with appropriate rubrics
* Follow multi-agent and session conventions
