Skip to content

Ask agent modes frontend - #109

Draft
orca-gamedev wants to merge 1 commit into
devfrom
cursor/ORC-53-ask-agent-modes-frontend-96c8
Draft

Ask agent modes frontend#109
orca-gamedev wants to merge 1 commit into
devfrom
cursor/ORC-53-ask-agent-modes-frontend-96c8

Conversation

@orca-gamedev

Copy link
Copy Markdown
Owner

Implement Frontend for Ask/Agent AI Modes

This PR introduces the user interface for the Ask/Agent AI modes, fulfilling the frontend requirements of issue ORC-53.

What does this PR do?
It provides users with the ability to switch between "Ask Mode" (read-only AI) and "Agent Mode" (full access AI) and interact with the AI through a dedicated chat panel.

Why is this change needed?
This feature allows users to control the AI's capabilities, ensuring that the AI can operate in a safe, read-only mode when desired, while still offering full functionality in Agent Mode. Agent Mode is set as the default as per requirements.

How does this PR address the problem?

  • AIModeSwitcher Component: A new toggle switch is added to the IDE toolbar, allowing users to select between "Ask Mode" and "Agent Mode".
  • AIChatPanel Component: An integrated chat interface is provided, which visually adapts to the selected mode and passes the mode parameter to the backend API.
  • IDE Integration: The page.tsx is updated to display the mode switcher and a toggleable AI chat panel, with dynamic layout adjustments to accommodate the chat panel.

Linear Issue: ORC-53

Open in Cursor Open in Web

- Created AIModeSwitcher component with Ask and Agent mode toggle
- Created AIChatPanel component with message history and streaming support
- Integrated components into main IDE page with toggleable chat panel
- Ask mode: Read-only AI that answers questions without modifying files
- Agent mode: Full AI that can write and edit code (default)
- UI adjusts dynamically when AI chat panel is shown
- Mode is passed to backend API for proper tool filtering

Co-authored-by: ege <ege@simplifine.com>
@cursor

cursor Bot commented Jan 29, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants