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

# AI Modes

> Specialized modes for code, design, and debugging

The AI assistant supports multiple modes, each optimized for a different type of task. Modes shape the system prompt and tool access so the AI gives you the best results for what you're working on.

## Available modes

<AccordionGroup>
  <Accordion title="Code (default)">
    The general-purpose coding mode. Use it for building features, editing files, and writing logic.

    **Example prompt:** `Add a responsive navbar with dropdown menus to index.html`
  </Accordion>

  <Accordion title="Ask">
    Ask questions about your codebase without making changes. The AI reads your files and explains how things work.

    **Example prompt:** `How does the contact form submission work?`
  </Accordion>

  <Accordion title="Architect">
    Plan features and structure before writing code. The AI proposes file organization, component hierarchy, and implementation strategy.

    **Example prompt:** `Plan the architecture for adding user authentication with OAuth`
  </Accordion>

  <Accordion title="Debug">
    Diagnose and fix bugs. The AI analyzes error messages, traces logic, and suggests fixes.

    **Example prompt:** `The checkout page throws a 500 error when submitting the form`
  </Accordion>

  <Accordion title="Designer">
    Create and refine visual designs — from styling tweaks to full page layouts. The AI focuses on CSS, responsive design, animations, and can work from reference screenshots or descriptions.

    **Example prompts:**

    * `Make the pricing section match this color palette: navy, gold, and white`
    * `Design a modern SaaS landing page based on this wireframe` (with attached image)
  </Accordion>

  <Accordion title="Test">
    Write and run tests for your code. The AI generates unit tests, integration tests, and test utilities.

    **Example prompt:** `Write tests for the email validation utility in utils.js`
  </Accordion>

  <Accordion title="Security">
    Audit your code for vulnerabilities. The AI checks for common security issues like XSS, CSRF, injection, and exposed secrets.

    **Example prompt:** `Review the authentication flow for security vulnerabilities`
  </Accordion>

  <Accordion title="Refactor">
    Improve code quality without changing behavior. The AI cleans up structure, reduces duplication, and improves readability.

    **Example prompt:** `Refactor the API handlers to use a shared middleware pattern`
  </Accordion>
</AccordionGroup>

## Switching modes

Select a mode from the dropdown at the top of the chat panel. You do not need to start a new conversation when switching modes -- the AI retains the context from your current session and applies the new mode to subsequent messages.
