Skip to content

AI Assistant: fewer interruptions, clearer permissions, and easier use of your own agent #3568

Backlog

Description

@Mavrick-F

The AI Assistant interrupts too often to finish a longer task. It asks for approval over and over, even with every permission in its settings turned on, and it stops every 16 steps until you type "continue". The settings make it hard to tell what you have allowed, what a request will cost, or that you can use an AI agent you already have. This issue tracks fixing that, and comments on any of it are welcome.

How it works today

RustGIS has its own AI assistant, and it can also work with AI agents made by others. The difference is which program runs the conversation: sends your messages to the model, decides when to use a tool, and keeps the history.

The built-in assistant is ours. RustGIS runs the conversation and uses a model from a provider you choose. You can pay with an API key or a ChatGPT plan, or use a model running on your own computer. OpenAI offers a sign-in that lets open-source apps use a ChatGPT plan this way. Choosing OpenAI or Anthropic as the provider changes the model, but it's still our assistant.

An outside agent is a separate program, usually made by the model provider, such as Claude Code or Codex. It runs the conversation with its own instructions, tools, limits and sign-in. If you've signed in to it with a plan, it uses that plan, and RustGIS never handles the login. Two protocols connect these agents to RustGIS, and they do different jobs:

  • MCP gives an agent RustGIS's tools. Through it, the agent can read your layers and run commands on the open map.
  • ACP (Agent Client Protocol) lets RustGIS show an agent's conversation. RustGIS starts the agent, directly or through a small adapter, passes it messages, and displays its replies and requests for approval. The agent still does the thinking. ACP doesn't turn its plan into a model our assistant can use.

That gives three ways to work today:

Who runs the conversation Where you chat How it connects
Built-in assistant RustGIS The chat pane Directly to the model provider
Agent window The outside agent A separate RustGIS window, opened when the built-in assistant hands over a task ACP for the conversation, MCP for the map tools
Connected agent The outside agent Its own terminal or app MCP for the map tools

All three change the map by running RustGIS commands. The built-in assistant can edit the project freely because you can undo that, but it asks before commands that read or write files, use the internet, or run scripts and plugins. An outside agent can also have tools of its own, such as a shell or web search, which aren't RustGIS commands.

What goes wrong

In the built-in assistant, "Allow such actions for this conversation" covers only that exact action. Tick it for an export to county-1.png, and the next export, to county-2.png, asks again with the box still ticked. Approvals are compared with the exact parameters, layers, sources and accounts, so a similar action rarely matches.

The settings that sound like "allow everything" don't apply to the built-in assistant. "Full access" is for connected agents, and "Approve agents' actions without asking" is for agent windows. With everything switched on, the chat pane asks as often as before.

Connected agents have more freedom than the built-in assistant. Once you let them control RustGIS, they can open and save files and use the internet through it without asking each time. The built-in assistant has to ask for nearly all of that. It also can't run several commands in one call, which connected agents can.

The built-in assistant's 16-step limit is too low and has no Continue button. A step is one reply from the model that uses tools. Finding layers, reading the docs and checking the map can use most of them before the analysis starts. The limit is the same whether you pay per request, use a plan or run a local model, and there's no setting for it.

The pane is hard to follow:

  • Steps appear as command ids and JSON.
  • Opening settings pushes the conversation out of view, even while an action is waiting for your answer.
  • The card asking to run an SQL query doesn't show the SQL until you open Details.
  • The settings say an agent "asks you before each action" right beside the option that turns asking off.
  • The welcome text says every change can be undone, which isn't true of exported files.
  • The button for a new conversation is a trash can.
  • Nothing shows how many tokens a request used. The provider list doesn't separate plans you already pay for from keys billed per request.

These screenshots are from a build of main on 2026-12-01, using a scripted local model:

Asked again with the box ticked Stopped after 16 steps
The box to allow such actions is ticked, and the second export asks again Sixteen steps shown as JSON, then a note to say continue
Every agent setting on SQL approval with settings open
Agent settings all ticked, including Full access The SQL approval card without its SQL, below settings that fill the pane

Proposed changes

The built-in assistant is for people who want help with a map without installing anything else, and for the browser and the phone, where outside agents can't run. It works only through RustGIS's commands, so RustGIS can control everything it does. It doesn't need a shell or the other features of a full coding agent. People who already have an agent can connect it without paying API prices, and that should be just as easy to find.

One choice of access level. It would replace the separate checkboxes, stay visible near the message box, and cover what any of the three does through RustGIS:

Level Runs without asking Still asks
Ask Project edits Files, internet, SQL, scripts and plugins
Project folder Also reading files and creating new ones in the project's folder Overwriting a file, files elsewhere, a new website, SQL, scripts and plugins
Full access, for this session Also the rest, including scripts and plugins you already installed Installing plugins and changing sign-ins or saved credentials

Project folder would be the default once it's built and tested. An unsaved project has no folder yet, so it would start at Ask. Full access would end when RustGIS closes and show an indicator while it's on.

Internet access gets more caution than files because of what the assistant reads. A layer or web page can contain text written to trick the model, and a request to an unfamiliar address could carry private data out. Project folder doesn't remove that risk entirely, since whatever the assistant reads still goes to the model provider. An outside agent's own shell, files and web access follow that agent's permissions. In an agent window, RustGIS can show its requests for approval, but an agent you run yourself is out of RustGIS's reach. The settings should say so.

No step limit in the built-in assistant unless you're paying per request. ChatGPT plans and local models would run until they finish, with a setting for anyone who wants a limit. A key billed per request would pause every 50 steps by default, show the tokens used and offer Continue, and the number could be changed or turned off. Stop works at any time. Without a limit, the built-in assistant also needs to notice when it's repeating the same failing call and pause to say so. Outside agents keep their own limits.

A main "Connect my agent" option. This is the MCP route, where you keep using the agent's own terminal or app. It would have the command to copy, a connection test and a clear connected state. Today these instructions are at the bottom of the assistant's settings. On first run, if RustGIS finds an agent already installed, it should offer to connect it alongside the built-in assistant.

Outside agents in the chat pane. The pane would let you choose who answers: the built-in assistant, or an agent installed on your computer. Choosing an agent would show its conversation in the pane over ACP, as agent windows do now, with RustGIS's map tools available to it over MCP. You'd sign in through the agent itself, with no "Sign in with Claude" or similar button in RustGIS. The pane should always show which one is answering, since they have different limits, tools and costs.

Vendors differ on whether another program may show their agent this way on a personal plan, so each one needs checking. Antigravity's terms explicitly permit third-party interfaces over ACP, so it would come first. RustGIS doesn't support it in agent windows yet, so that needs adding. Claude is an open question, covered below.

Proposed order

The small fixes can start any time. The rest should be agreed here before much code is written. Using the same levels for connected agents would also make them ask for things they can do freely today, so that change needs a clear release note and a way for people to keep their current setup.

Open questions

  1. Is Project folder the right default, or should everyone start at Ask?
  2. Should Full access still ask before installing plugins or changing credentials?
  3. Is 50 steps a reasonable place to pause for a key billed per request?
  4. Should Claude Code be one of the agents offered in the chat pane, on a user's own plan? It would be Claude Code answering over ACP. The built-in assistant couldn't use a Claude plan, because Anthropic doesn't allow other apps to offer its sign-in without approval. Anthropic's legal page says developers may not route requests through plan credentials on behalf of their users. It also says nothing there stops a person signing in to the unmodified Claude Code program with their own subscription. Its help page says third-party app usage still draws from subscription limits "for now". The answer may also affect agent windows, which already start Claude over ACP. Connecting Claude Code over MCP avoids the question because RustGIS doesn't start it.
  5. If you use an outside agent with RustGIS today, would you want it in the chat pane, or is connecting it over MCP from its own app enough?

Reports of other places where the assistant interrupts you or the settings are confusing would help too.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions