Skip to content

Assistant: Add 'Agent' (or non-Ask) mode; don't enable code execution for Ask #8018

@jmcphers

Description

@jmcphers

Currently, Agent's Ask mode has access to a code execution tool. Especially when used with Claude, the model loves this tool and will use it aggressively to answer your questions, even if it's unnecessary to do so.

Image

This makes Ask work well if you are using it to ask questions about your data, such as what are the biggest 3 suppliers by volume? but it also makes it difficult to use Ask to generate code or edits, because it's so execution-happy.

Proposal:

  • Remove the code execution tool when using Ask or Edit modes. Users can use these tools without worrying about the model trying to run code or mutate data.
  • Add a new Agent mode that includes the Execute Code tool. Switching to this mode indicates intent to let the model run code and mutate data.
  • (in the future) provide tools that the model can use to query state and run canned, safe R/Python code, even in Ask mode, so that some data questions can be asked without resorting to Agent.

Existing Ask/Edit switcher, where we'd add Agent:

Image

Metadata

Metadata

Assignees

Labels

area: assistantIssues related to Positron Assistant

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions