How ultramenid/agenticgis works
AgenticGIS is a QGIS chat plugin: a user submits a request in the dock, a configured model backend iterates through tool calls, and the toolkit performs QGIS work and returns results to the chat. Its key domain stages include project analysis, visualization, processing, selection/CRS and field edits, layouts/export, remote sensing, and web fetch. The plugin also exposes tools through an optional local MCP server. Several capability details come from the README; unsampled implementation links are omitted where source evidence is limited.
Main entry points: toolkit.py QGIS toolkit · tools.py Tool schemas and dispatch · chat_dock.py Chat dock · mcp_server.py MCP HTTP server
Components 21
Chat and settings
- Plugin lifecycle
plugin.py - Chat dock
gui/chat_dock.py - Chat sessions
core/session_store.py - Connection settings
gui/settings_dialog.py
Agent connections
- Backend interface
backends/base.py - API agents
backends/openai_backend.py - HTTP clients
backends/openai_http.py - CLI agents
backends/cli_backend.py - Provider catalog
backends/providers.py
GIS capabilities
- Tool schemas and dispatch
core/tools.py - QGIS toolkit
core/toolkit.py - Layer analysis
core/layer_analysis.py - Processing tasks
core/processing_tasks.py - Main-thread executor
core/executor.py - Web fetch helpers
core/web_fetch_helpers.py
External access
- MCP HTTP server
server/mcp_server.py - Instance discovery
server/discovery.py - stdio proxy
server/mcp_stdio.py
Other components
- QGIS user
- External MCP client
- QGIS session
Connections 24
- QGIS user → Chat dock: submits request
- Plugin lifecycle → Chat dock: creates dock
plugin.py - Chat dock → Backend interface: sends turn
gui/chat_dock.py - Chat dock → Chat sessions: stores transcript
gui/chat_dock.py - Connection settings → Provider catalog: lists providers
gui/settings_dialog.py - Connection settings → CLI agents: scans agents
gui/settings_dialog.py - Backend interface → API agents: implements API mode
backends/base.py - API agents → HTTP clients: sends model requests
backends/openai_backend.py - Backend interface → CLI agents: supports CLI mode
backends/cli_backend.py - API agents → Tool schemas and dispatch: dispatches tool calls
backends/openai_backend.py - CLI agents → Tool schemas and dispatch: executes tool calls
backends/cli_backend.py - Tool schemas and dispatch → QGIS toolkit: dispatches methods
core/tools.py - QGIS toolkit → Layer analysis: analyzes layers
core/toolkit.py - QGIS toolkit → Processing tasks: runs algorithms
core/toolkit.py - Tool schemas and dispatch → Main-thread executor: routes main-thread work
core/tools.py - QGIS toolkit → Web fetch helpers: fetches URLs
core/toolkit.py - QGIS toolkit → QGIS session: operates on project
- Processing tasks → QGIS session: runs QGIS tasks
core/processing_tasks.py - Plugin lifecycle → MCP HTTP server: starts optional bridge
plugin.py - External MCP client → MCP HTTP server: calls tools
- MCP HTTP server → Tool schemas and dispatch: dispatches tools
server/mcp_server.py - Plugin lifecycle → Instance discovery: publishes instance
- stdio proxy → Instance discovery: locates instance
server/mcp_stdio.py - stdio proxy → MCP HTTP server: proxies requests