
Building a Mattermost Plugin to Switch AI Agent Models from the UI
Building a Mattermost Plugin to Switch AI Agent Models from the UI TL;DR Running 20+ AI agents means "switch this agent to GPT-4o" or "put everyone back on Claude" happens constantly. Editing config files and restarting gateways every time is painful. So I built a custom Mattermost plugin that lets you switch models with one click from the channel header. Why a Mattermost Plugin? Our multi-agent system uses Mattermost as the communication backbone. The human operator chats with each agent via DM, and agents coordinate with each other the same way. Mattermost is already the de facto management console. The requirements for model switching were: Change an agent's model from the Mattermost UI — no SSH, no config files Changes take effect without restarting the agent's gateway Current model visible at a glance "Build it as a Mattermost plugin" was the obvious answer. Architecture [Mattermost UI] ↓ Channel header button click [Plugin Frontend (React)] ↓ API call [Plugin Backend (Go)] ↓ Pers
Continue reading on Dev.to DevOps
Opens in a new tab




