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

# Use Cases

> Where Stratus shines — and where it doesn't.

Stratus is purpose-built for **multi-step tasks with predictable state transitions** — situations where an agent needs to plan a sequence of actions, predict what each action will produce, and recover when reality diverges from the plan.

## Should You Use Stratus?

|                 | Use Stratus                       | Use LLM directly      |
| --------------- | --------------------------------- | --------------------- |
| **Steps**       | 3+ sequential actions             | Single-step           |
| **Environment** | Predictable state transitions     | Chaotic / stochastic  |
| **Goal**        | Clear, definable end state        | Open-ended generation |
| **Recovery**    | Needs error handling & replanning | Fire-and-forget       |

**Hybrid pattern:** Plan with Stratus → generate with LLM. Example: plan a research strategy (Stratus), write the final report (LLM).

***

## Use Cases

<AccordionGroup>
  <Accordion title="Web Navigation — Booking & Forms" icon="globe" iconType="solid">
    **Task:** Book a flight from SFO to NYC for December 15–18, budget under \$500.

    Stratus plans the complete interaction sequence upfront — select origin, select destination, open calendar, pick dates, filter by price — before a single click happens. When a date picker throws a validation error, it replans rather than halting.

    |                   | Success Rate |
    | ----------------- | ------------ |
    | Traditional agent | \~12%        |
    | Stratus agent     | \~35%        |

    ```typescript theme={null}
    const response = await client.chat.completions.create({
      model: 'stratus-x1ac-small-gpt-4o',
      messages: [
        {
          role: 'system',
          content: 'Current page: Google Flights. Date pickers and destination fields visible.'
        },
        {
          role: 'user',
          content: 'Book flight SFO to NYC, Dec 15-18, under $500'
        }
      ]
    });
    // X1 plans: select_origin → select_dest → open_calendar → pick_dates → filter_price
    ```
  </Accordion>

  <Accordion title="Web Navigation — Data Extraction" icon="database" iconType="solid">
    **Task:** Extract product prices, reviews, and availability across paginated e-commerce listings.

    Stratus tracks extraction state across pages, handles dynamic content loading, and navigates pagination without losing context — producing consistent structured output even when layouts change.

    |                                | Result       |
    | ------------------------------ | ------------ |
    | Speed vs. traditional scraping | 5–10× faster |
    | Extraction accuracy            | 90%+         |
  </Accordion>

  <Accordion title="Multi-Hop Reasoning — Research Tasks" icon="magnifying-glass" iconType="solid">
    **Task:** "What MCU movies were released in 2019 and who directed them?"

    Rather than issuing searches reactively, Stratus pre-plans the query chain: find MCU 2019 titles → extract names → look up each director. Intermediate results are tracked, so a failed sub-query triggers targeted recovery rather than a full restart.

    |                   | HotpotQA Score |
    | ----------------- | -------------- |
    | Traditional agent | \~18%          |
    | Stratus agent     | \~42%          |

    ```typescript theme={null}
    const response = await client.chat.completions.create({
      model: 'stratus-x1ac-base-claude-sonnet-4-5',
      messages: [
        {
          role: 'system',
          content: 'You have access to Wikipedia search and can make multiple queries.'
        },
        {
          role: 'user',
          content: 'What MCU movies were released in 2019 and who directed them?'
        }
      ]
    });
    // X1 plans: search_mcu_2019 → extract_titles → search_each_director
    ```
  </Accordion>

  <Accordion title="Multi-Hop Reasoning — Knowledge Graph Construction" icon="diagram-project" iconType="solid">
    **Task:** Build a knowledge graph of relationships from a research paper.

    Stratus plans extraction order (authors → institutions → citations → concepts), predicts entity boundaries, and maintains graph state across extractions — preventing duplicate nodes and missed edges.
  </Accordion>

  <Accordion title="Task Automation — Workflow Orchestration" icon="bolt" iconType="solid">
    **Task:** Process new customer signup: Create account → Send welcome email → Add to CRM → Notify team.

    Stratus predicts the API response state at each step before calling it. If `createUser` fails, the downstream steps are skipped before any erroneous calls are made — not after.

    ```typescript theme={null}
    const response = await client.chat.completions.create({
      model: 'stratus-x1ac-base-gpt-4o',
      messages: [
        {
          role: 'system',
          content: 'Available APIs: createUser, sendEmail, addToCRM, notifySlack'
        },
        {
          role: 'user',
          content: 'Process signup for john@example.com'
        }
      ]
    });
    // X1 plans: createUser → sendEmail → addToCRM → notifySlack
    // Predicted states: user_created → email_sent → crm_updated → team_notified
    ```
  </Accordion>

  <Accordion title="Task Automation — Testing & QA" icon="flask" iconType="solid">
    **Task:** Test checkout flow end-to-end across multiple scenarios.

    Stratus plans test case sequences, predicts expected states at each step, and flags mismatches between predicted and actual state — catching state-dependent bugs that static test scripts miss.

    |                 | Result                              |
    | --------------- | ----------------------------------- |
    | Execution speed | 3× faster                           |
    | Coverage        | Follows all branching paths         |
    | Bug detection   | Catches state-dependent regressions |
  </Accordion>

  <Accordion title="Software Development — Code Navigation & Debugging" icon="code" iconType="solid">
    **Task:** Find where authentication logic is implemented, trace its usage, and reproduce a multi-step bug.

    Stratus plans the search strategy (find auth files → trace imports → find call sites), maintains context across codebase exploration, and predicts system state at each reproduction step — isolating where actual state diverges from expected.
  </Accordion>
</AccordionGroup>

***

## When NOT to Use Stratus

<CardGroup cols={2}>
  <Card title="Single-step tasks" icon="xmark" color="#ef4444">
    Simple classification, formatting, or one-shot generation. The world model adds overhead with no benefit.
  </Card>

  <Card title="Open-ended generation" icon="xmark" color="#ef4444">
    Creative writing, brainstorming, summarization. No clear goal state means prediction has nothing to anchor to.
  </Card>

  <Card title="Highly stochastic environments" icon="xmark" color="#ef4444">
    Unpredictable or chaotic systems where state transitions can't be modeled.
  </Card>

  <Card title="Sub-100ms latency requirements" icon="xmark" color="#ef4444">
    The X1 planning layer adds latency. If real-time reaction is the constraint, use the LLM directly.
  </Card>
</CardGroup>

***

## Next Steps

<CardGroup cols={3}>
  <Card title="Quickstart" icon="rocket" color="#22d3ee" href="/docs/quickstart">
    Make your first X1 call in under 60 seconds.
  </Card>

  <Card title="Architecture" icon="sitemap" color="#c084fc" href="/docs/concepts/architecture">
    How the X1 world model actually works.
  </Card>

  <Card title="API Reference" icon="code" color="#34d399" href="/docs/api-reference/introduction">
    Full endpoint docs and parameters.
  </Card>
</CardGroup>
