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

# Samples Overview

> Example implementations demonstrating Cline CLI capabilities

This section provides sample implementations that demonstrate various Cline CLI features and capabilities. Each sample includes complete code, detailed explanations, and real-world usage examples.

## Available Samples

<CardGroup cols={1}>
  <Card title="Model Orchestration" icon="layer-group" href="/cline-cli/samples/model-orchestration">
    Use multiple AI models strategically with --config and --thinking flags. Optimize costs by routing simple tasks to cheap models and complex reasoning to premium models. Includes patterns for CI/CD code review, task phase optimization, and multi-model consensus.
  </Card>

  <Card title="Worktree Workflows" icon="code-branch" href="/cline-cli/samples/worktree-workflows">
    Use Git worktrees with the --cwd flag to run parallel tasks, test different approaches, and pipe context between isolated environments. Includes patterns for parallel execution, cross-worktree piping, and combining with model orchestration.
  </Card>

  <Card title="GitHub Root Cause Analysis" icon="magnifying-glass-chart" href="/cline-cli/samples/github-issue-rca">
    A command-line script that uses Cline's autonomous AI capabilities to fetch, analyze, and identify root causes of GitHub issues. Features JSON output parsing and non-interactive execution.
  </Card>

  <Card title="GitHub Integration (Actions)" icon="github" href="/cline-cli/samples/github-integration">
    Automatically respond to GitHub issues by mentioning @cline in comments. Uses Cline CLI in GitHub Actions to create an AI-powered issue assistant that analyzes and responds autonomously.
  </Card>

  <Card title="GitHub PR Review (Actions)" icon="code-pull-request" href="/cline-cli/samples/github-pr-review">
    Automatically review Pull Requests with AI. Configures Cline in GitHub Actions to analyze diffs, check for security issues, and post detailed reviews with inline code suggestions.
  </Card>
</CardGroup>

## Additional Resources

* [CLI Installation Guide](/cline-cli/installation)
* [CLI Reference Documentation](/cline-cli/cli-reference)
* [Headless Mode](/cline-cli/three-core-flows)
