Repository navigation
Releases
v0.2.0
AI Assistant 0.2.0
Requires panel >=1.2.10.
Added
- Automatic pre-change snapshots & action rollback: before running reversible AI changes (
write_file,edit_file,delete_files,update_startup_variables,rename_server,create_schedule), the assistant automatically snapshots the previous state (capped at 1 MB per file and 2 MB perdelete_filesbatch, degrading gracefully when a file is oversized, binary, or a directory). - Single-action and checkpoint rollback: undo an individual action with Roll back (or Retry roll back after a failure), or revert a sequence of changes in reverse order with Roll back to here (N) directly from the action card. Irreversible actions in between are clearly reported as skipped.
- Conflict detection & explicit force override: before rolling back, the panel verifies the target file hash, startup variables, or server name/description still match what the action wrote. If you edited a resource manually afterwards, rollback stops with a warning and lets you explicitly choose Force roll back or Cancel.
- Permission, scope & AI context sync: rollbacks re-verify user permissions and server chat scope through the panel router, and rolled-back actions are automatically reflected in the model's conversation context (both in-window tool results and out-of-window system prompt notes) so the assistant never assumes reverted changes are still active.
Upgrading
Replace the extension archive and restart (or upload it under Admin → Extensions). This release includes a database migration (20261125220000_action_rollback) that adds rollback tracking columns (seq, rollback_status, rollback_summary, rollback_result, rolled_back) to dev_caloptreyx_aiassistant_actions and creates dev_caloptreyx_aiassistant_snapshots (with ON DELETE CASCADE for retention pruning).
v0.1.2
Security release. Requires panel >=1.2.10.
- Chat answers no longer render images or raw HTML, so prompt-injected content can't leak data through URLs that load automatically.
- The system prompt now marks tool, file and console output as untrusted data, never instructions.
v0.1.1
AI Assistant 0.1.1
Fixed
- Gemini 3 tool calls. Through Google's OpenAI-compatible endpoint (
https://generativelanguage.googleapis.com/v1beta/openai), Gemini 3 attaches a thought signature to its tool calls and rejects the next request of the turn with HTTP 400 unless the signature comes back. The assistant now stores it with the call and sends it back, so multi-step answers (read the console, then answer) work with Gemini. Calls made earlier by another model get Google's documented stand-in. Other OpenAI-compatible providers receive exactly the same requests as before.
Added
-
Chat display setting under Admin → Extensions → AI Assistant → Where the assistant is available:
- Page (default, as in 0.1.0): an AI Assistant page in the server and admin sidebars.
- Popup window: a chat button in the bottom-right corner of every server page and of the admin area opens the chat in a window over the panel. No sidebar page.
- Both: page and button.
The window is the same chat as the page: it keeps its conversation (and a running answer) while you move between pages, can be minimised or closed, shows the conversation list in a compact view, and fills the screen on phones. The button only appears for users who may use that chat, stays below the panel's dialogs, toasts and upload card, and above Mint's phone bottom bar. Users see a changed setting after reloading the panel.
Upgrading
Replace the extension archive and restart (or upload it under Admin → Extensions). No database migration; the new setting starts at Page.
v0.1.0
First release of AI Assistant for Calagopus (dev.caloptreyx.aiassistant, panel >=1.2.10, :heavy image): an AI chat built into the panel that reads freely and asks before every change.
- Server chat on every server for users with the new
ai-assistant.chatserver permission (owners have it), bound to that server. - Admin chat for users with the new
ai-assistant.chatadmin permission: nodes, users and servers overview, server tools for any server and the whole panel API (search_api,describe_api,read_api,write_api). - Every tool runs through the panel's own API as the chatting user, so panel permissions, subuser rights, admin checks and the activity log apply; tools the user lacks permissions for are not offered.
- Confirm before change: power actions, console commands, file writes and deletes, backups, schedules, startup variables, renames and admin API writes appear as action cards and only run after Confirm; rejections are reported back to the model.
- Providers: any OpenAI-compatible API (OpenAI, OpenRouter, Groq, Ollama, LM Studio, …) or Anthropic, with streamed answers. Keys are stored encrypted and never sent to the browser.
- Bring your own key: admins choose Off, Allowed or Required; users add their key under Account → AI Assistant. Users pick provider presets; custom base URLs are off unless the admin enables them, and then loopback, private, link-local and metadata addresses are refused.
- Chat UI: Markdown answers, conversation list (rename, delete), Stop and Retry, collapsible tool output, mobile layout, light and dark themes.
- Limits: messages per hour per user, tokens per day on the panel's key, model calls per message, tool output truncation, history window and conversation retention, all under Admin → Extensions → AI Assistant.
Install: upload dev_caloptreyx_aiassistant.c7s.zip under Admin → Extensions, or drop it into build/extensions/ and docker compose restart web. Then add a provider key under Admin → Extensions → AI Assistant → Configure. See the README for permissions and settings.