Skip to content

Ask agent modes - #110

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

Ask agent modes#110
orca-gamedev wants to merge 1 commit into
devfrom
cursor/ORC-53-ask-agent-modes-0709

Conversation

@orca-gamedev

Copy link
Copy Markdown
Owner

This PR implements the "Ask/Agent modes" feature as described in ORC-53.

Why these changes?
The primary goal is to introduce a safety mechanism for the AI agent.

  • Ask Mode: Prevents the AI from using tools that modify project files or settings, ensuring a read-only interaction for analysis and suggestions. This is crucial for scenarios where the user wants to understand or get advice without risking unintended changes.
  • Agent Mode: (Default) Allows the AI full access to all available tools, enabling it to proactively make changes and resolve issues.

How it works:
The /chat endpoint now accepts an optional mode parameter ("agent" or "ask"). Based on this mode, a filter_tools_by_mode function dynamically restricts the tools available to the AI. Additionally, the system prompt is updated to clearly inform the AI about its current operational mode and associated limitations or permissions.


Linear Issue: ORC-53

Open in Cursor Open in Web

- Add 'mode' parameter to /chat endpoint ('agent' or 'ask')
- Agent mode (default): Full access to all tools
- Ask mode: Read-only, disables write/edit tools
- Write tools disabled in ask mode:
  - create_node, delete_node, batch_set_node_properties
  - move_node, attach_script, manage_scene
  - load_and_assign_resource, add_collision_shape
  - apply_edit, save_image_to_path, install_godot_asset
- System prompt updated to reflect current mode
- Logs show filtered tool count per request

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