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

# AI Tutor

> Context-aware hints, code fixes, and error debugging.

The **AI Tutor** is an assistant that sits beside your code in the Dynamic
Workspace. It understands the lesson you're on, the code you've written, and the
output in your terminal — so its help is specific, not generic.

## What it can do

<CardGroup cols={2}>
  <Card title="Real-time hints" icon="lightbulb">
    Get nudged in the right direction when you're stuck, without being handed the
    whole answer.
  </Card>

  <Card title="Code correction" icon="wand-magic-sparkles">
    Ask it to spot and fix mistakes in your code.
  </Card>

  <Card title="Error debugging" icon="bug">
    When the terminal shows an error, the tutor reads it and explains the cause
    and the fix.
  </Card>

  <Card title="Concept explanations" icon="book-open">
    Ask "why" — get the reasoning behind a concept in the lesson's context.
  </Card>
</CardGroup>

## How to use it

<Steps>
  <Step title="Open the tutor panel">
    Open the AI Tutor from within the workspace while you work.
  </Step>

  <Step title="Ask in context">
    It already has the lesson and your code as context — describe your problem in
    plain language.
  </Step>

  <Step title="Apply the suggestion">
    Review the hint or fix, then apply it and re-run your code.
  </Step>
</Steps>

<Note>
  AI Tutor usage is part of the learning experience. Heavier AI features used for
  *creating* content consume [AI Credits](/en/platform/ai-credits).
</Note>
