Plugins
Most of what a real Codumentor deployment does — web search, the Office editors, scheduled goals, external coding agents, per-user secrets — comes from plugins. A production config typically enables a dozen or more.
This page lists every built-in plugin, shows how to enable one, and then covers the operator's side: which plugins need something installed on the host or configured outside codumentor.yaml, and how to provide it.
- For per-plugin configuration and behaviour, see the Plugin Catalog.
- For the trust model (plugins run unsandboxed, with full process access), see Security → Plugin Security.
Built-in Plugins
The table below lists the plugins that ship with Codumentor. Add one by its
module path (all modules live under codumentor.plugins.) — e.g. module
telemetry is codumentor.plugins.telemetry. See
Enabling and Disabling Plugins below.
The module name is also the name of the plugin's documentation page, so
codumentor.plugins.telemetry is documented in
catalog/telemetry.md.
Not every build contains every plugin: an executable is built as one edition,
and enabling a plugin that edition does not contain is refused at startup rather
than ignored. codumentor build-info lists what your build has.
| Plugin | Module | Purpose | Docs |
|---|---|---|---|
| Auto Title | auto_title | Name conversations from their content; topic-shift retitling (experimental) | Details |
| Claude Code Hooks | claude_code_hooks | Run shell/HTTP callouts on lifecycle events (Claude Code-compatible) | Details |
| Configuration Assistant | configuration_assistant | Admin chat that edits this instance's own config (validate → diff → apply → rollback) | Details |
| Console Report | console_report | End-of-session report renderer | Details |
| Compaction | compaction | Context-window management; truncates long conversations intelligently | Details |
| Conversation Management | conversation_management | Let the assistant list, pin, rename, and mark your own conversations read/unread (approval-gated, with dry-run) | Details |
| Database | database | SQL tools over switchable native/CLI backends (Postgres/MySQL/Oracle/SQL Server) | Details |
| Developer | developer | Subagent that reads, edits, and runs code from a plan | Details |
| Document Editor | doc_editor | Read, edit, and save DOCX documents | Details |
| Explore | explore | Read-only fan-out code-exploration subagent | Details |
| External Agent | external_agent | Delegate to external CLI coding agents (Claude Code, Codex) | Details |
| Files | workspace_files | Browse/open repository files referenced in chat; read-only share-file access | Details |
| Follow-ups | follow_ups | One-click follow-up messages under the latest answer | Details |
| Goals | goals | Long-running goal workers with scheduled/agentic execution | Details |
| Google Workspace | google_workspace | Per-user Gmail, Calendar, Docs, Sheets, and Drive tools (OAuth) | Details |
| Inference Metrics | inference_metrics | LLM generation performance (TTFT, tokens/sec) | Details |
| MCP | mcp | Connect external Model Context Protocol tool servers (stdio/HTTP/SSE) | Details |
| Mermaid Render | mermaid_render | Render Mermaid diagrams to images (requires a Chromium-family browser on the host) | Details |
| Model Profiles | model_profiles | Per-user selectable model profiles and custom API keys | Details |
| OAuth | oauth | Per-user OAuth 2.0 / refresh-token storage and flows | Details |
| OpenAI Codex | openai_codex | OAuth provider so a user can connect their own ChatGPT/Codex subscription | Details |
| Episodic Memory | episodic_memory | Search and reread the user's own past conversations; optional turn-start recall | Details |
| PPTX Editor | pptx_editor | Read, edit, and save PPTX presentations | Details |
| PDF Editor | pdf_editor | Read, fill, and flatten PDF forms; render pages as images | Details |
| Read Aloud | read_aloud | Text-to-speech "read aloud" message action | Details |
| Ripgrep | ripgrep | Fast regex code search across repositories | Details |
| Task Runtime | task_runtime | Runs scheduled tasks and goal workers; run history and maintenance | Details |
| Task Tools | task_tools | Agent-callable scheduled / cron task tools | Details |
| Skills | skills | Agent Skills (agentskills.io) activated via slash commands | Details |
| Slash Commands | slashcmds | Expand user-defined /commands into full prompts | Details |
| Telegram | telegram | Telegram bot channel with voice in/out (STT/TTS) | Details |
| Telemetry | telemetry | Response timing and LLM/tool metrics | Details |
| Thinking Modes | thinking_modes | Per-conversation thinking mode and reasoning effort | Details |
| Tool Search | tool_search | Defer-by-default tool loading: only eager tools reach the model; others are found via find_tools (BM25) | — |
| Token Report | token_report | Token usage and cost section for the session report | Details |
| Turn Summary | turn_summary | Conversation-list files-changed fact while a turn runs, and a short outcome line after | Details |
| User Feedback | user_feedback | Turn-level like/dislike response feedback | Details |
| User Secrets | user_secrets | Per-user encrypted credentials, referenced from config as ${secret:<name>} | Details |
| Voice Mode | voice_mode | Hands-free full-screen voice conversation (STT/TTS via speech:) | Details |
| Web Retrieve | webretrieve | Fetch and extract web-page content (optional agentic mode) | Details |
| Web Search | websearch | Web search across multiple providers, with optional research mode | Details |
| XLSX Editor | xlsx_editor | Read, edit, and save XLSX spreadsheets | Details |
Enterprise Edition plugins
These ship in the Enterprise Edition only:
| Plugin | Module | Purpose | Docs |
|---|---|---|---|
| Agentic Memory | agenticmemory | Store agent responses as searchable organizational knowledge; retrieve during chats; web review UI | Details |
| Branch Switching | branch_switching | Per-conversation git branch selection with isolated checkout and branch-specific index | Details |
| Bug Report | bug_report | User bug/feedback form forwarded to Redmine as tracked issues | Details |
| Client Filesystem | client_fs | Browser-attached local folder access (agent read/write, @-mention) | Details |
| Context Management | context_management | Proactive multi-resolution summarization with semantic drift detection | Details |
| EULA | eula | First-login End-User License Agreement modal | Details |
| FileSync | filesync | Sync repos from local/SMB/UNC paths before ingestion | Details |
| Log Collection | log_collection | Log-file analysis source type | Details |
| Permalink | permalink | Auto-link file paths in responses to GitHub/GitLab/Gitea | Details |
| Redmine | redmine | Per-user Redmine issue tools (search/get/create/update/comment) | Details |
| Remote SSH | remote_ssh | Remote SSH/SFTP command and file tools (experimental) | Details |
| SCM Push | scm_push | In-sandbox git commit as the user plus host-side push gateway | Details |
| Script Filter | script_filter | Strip leaked non-Latin (CJK) output live; translate removed fragments on finish | Details |
| Slack Integration | slack_integration | Inbound/outbound Slack channel (mentions, DMs, slash commands, post/react tools) | Details |
| SSH Tunnel | ssh_tunnel | Persistent SSH port-forward tunnel to a fixed remote server | Details |
| SVN | svn | Subversion repository support (checkout/update, branch listing/switch) | Details |
| Trial | trial | Cosmetic trial badge in the chat header | Details |
| Workspace Isolation | workspace_isolation | Per-conversation bwrap overlay sandbox with snapshots and project setup | Details |
Enabling and Disabling Plugins
Add plugins to the plugins list in codumentor.yaml:
plugins:
# Enable telemetry
- module: "codumentor.plugins.telemetry"
class: "TelemetryPlugin"
# Enable web search
- module: "codumentor.plugins.websearch"
class: "WebSearchPlugin"
# Enable agentic memory
- module: "codumentor.plugins.agenticmemory"
class: "AgenticMemoryPlugin"
To disable a plugin, remove it from the list. Most plugins also accept enabled: false in their args:
plugins:
- module: "codumentor.plugins.websearch"
class: "WebSearchPlugin"
args:
enabled: false # Loaded but inactive
Plugins in production
Enabling a plugin is always the same: add a {module, class, args} entry to the plugins: list. The work below is the extra setup some plugins need to actually function.
Prerequisites at a glance
| Plugin(s) | What the admin must provide | How |
|---|---|---|
mermaid_render, webretrieve (JS rendering) | A Chromium-family browser on the host (found on PATH, or set CODUMENTOR_CHROME_PATH). On Ubuntu 24.04+ also check that the browser sandbox gets its userns grant | apt install chromium (distro package, sandboxed out of the box), see Browser sandbox on Ubuntu 24.04+ |
ripgrep | The rg binary on PATH | apt install ripgrep (or your distro's package) |
database | DB access. Native pure-Python drivers ship bundled (pg8000, PyMySQL, oracledb, python-tds). Only mode: cli (or mode: auto with no driver) needs an external client | psql / mysql / go-sqlcmd per engine |
read_aloud, voice_mode, Telegram voice | An OpenAI-compatible STT/TTS endpoint + API key via the top-level speech: block | Speech (read-aloud / voice) below |
google_workspace | A Google Cloud OAuth 2.0 client (id + secret) and the Gmail/Calendar/Docs/Sheets/Drive APIs enabled; also oauth + auth.jwt_secret | Google Workspace |
websearch | The gateway's ARDINSYS_API_KEY for ardinsys instead of a third-party key; some other providers require their own API key | provider_config.api_key: "${ARDINSYS_API_KEY}" |
external_agent | The external CLI binaries installed and logged in (claude, codex, …) | Install each CLI, then run its login as the service user so the auth store lands in $HOME (e.g. claude /login, codex login) |
user_secrets, model_profiles, oauth | auth.jwt_secret set, or these stores are written unencrypted | Authentication → jwt_secret |
goals, task_tools, task_runtime | The task engine + job queue (enabled by default) | tasks.enabled: true (default); see Configuration → tasks |
doc_editor, xlsx_editor, pptx_editor | Nothing extra — python-docx, openpyxl, python-pptx are bundled in the executable | — |
pdf_editor | Nothing extra for editing and form filling. Page images (pdf_render) need a PDF rasteriser in the server runtime | PDF rendering (rasteriser) below |
The Python dependencies above are bundled in the executable. Host binaries (bubblewrap, ripgrep, svn, Chromium, DB CLIs) and the external coding-agent CLIs are not bundled — install them on the host regardless of how you run Codumentor.
Plugins that ship in the Enterprise Edition only:
| Plugin(s) | What the admin must provide | How |
|---|---|---|
workspace_isolation, branch_switching, scm_push, external_agent (sandbox tier ≥ 1) | Linux + bubblewrap with overlay support (apt install bubblewrap on current distros) + overlayfs + (Ubuntu 24.04+) userns allowed for bwrap | Workspace isolation prerequisites below |
svn | A Subversion client | apt install subversion |
redmine, bug_report | A reachable Redmine instance + API key | redmine: each user stores a redmine_api_key secret; bug_report: instance api_key in config |
filesync (SMB/UNC) | Nothing extra — smbprotocol is bundled in the executable | — |
Optional office visual rendering
Document, XLSX, and PPTX editing works without LibreOffice. The doc_render,
xlsx_render, and pptx_render tools appear only when LibreOffice (soffice) is
discovered at editor load. Missing LibreOffice logs a warning per enabled editor.
Admin → Server → Optional office rendering shows cached load-time discovery,
not a live probe or proof of sandbox execution or visual correctness. Identical
reports are grouped into one neutral status listing the affected tools; paths,
verification limits, and setup guidance are available under Details and setup.
Install LibreOffice in the Codumentor server runtime, not on the browser's machine.
For containers, install it in the server image/container: the container host's
installation alone is insufficient. Normal Linux distro packages under /usr
are visible in the default workspace overlay (/usr, /bin, /lib, /lib64,
/etc); no workspace setup rebuild is needed. Restart the service afterward:
detection is cached; configuration reload and page refresh do not rerun it.
Nonstandard /opt installations can be discovered on the server but are **not
automatically exposed** in isolated conversations. Install required fonts in the
server runtime too; user fonts are not automatically exposed. Custom execution
strategies can have different visibility. Discovery does not check the converter's
libraries, permissions, fonts, or sandbox visibility. Conversion stays confined
and fails closed if confinement is unavailable; do not disable isolation as a
workaround. pdftoppm is optional, with a LibreOffice image-conversion fallback.
Successfully render and inspect the images before claiming visual validation:
successful editing or saving alone does not establish layout correctness.
PDF rendering (rasteriser)
PDF editing and form filling need nothing extra — pypdf is bundled in the
executable. Rendering PDF pages as images (pdf_render, used to check filled
forms and to read scanned documents) needs a PDF rasteriser in the server
runtime: install poppler-utils (preferred) or mupdf-tools, or
LibreOffice, then restart the service — discovery runs once at plugin
load, so a later installation counts only after a restart. mupdf-tools
(mutool) is AGPL: it needs a licence review before it is recommended.
Form filling works without any of them — only the page images are
missing without a rasteriser.
The backends are tried in this order: pdftoppm, mutool, LibreOffice
(soffice). pdf_render appears wherever any of them is found — unlike
the office editors above, LibreOffice is not required. Admin → Server
shows which rasteriser was found at load and whether pdf_render is enabled;
as with the office editors, this is cached discovery, not a live probe or
proof of sandbox execution.
The same discovery feeds the reading hint: when a PDF's text layer is mostly
empty (a scan), file reading tells the agent to use pdf_render — or, when
no rasteriser is installed, what an administrator can install.
Workspace isolation prerequisites
The workspace_isolation plugin sandboxes each conversation in a per-session bubblewrap overlay filesystem. The scm_push and external_agent (tier ≥ 1) plugins, and every subagent, all run inside this same sandbox — so these requirements apply to all of them.
| Requirement | Minimum | Notes |
|---|---|---|
| OS | Linux | Ubuntu 22.04+ / Debian 12+ recommended. (No Windows/macOS host sandbox.) |
| Kernel | 5.11+ | For unprivileged overlayfs |
| bubblewrap | 0.8.0+ | Needs overlay support (--overlay-src) and must not be setuid — see below |
| AppArmor | — | Needs userns allowed for the bwrap binary if apparmor_restrict_unprivileged_userns=1 (Ubuntu 24.04+) |
1. Check what you have
# Convenience checker shipped with the plugin — feature-detects everything below:
./src/codumentor/plugins/workspace_isolation/setup/check.sh
The two things it looks for individually:
bwrap --help | grep overlay-src # no output → your bwrap lacks overlay support
bwrap --ro-bind / / --unshare-user /bin/true # "setting up uid map: Permission denied" → userns blocked
2. Install
On current distros the packaged bubblewrap is sufficient — you do not need to build it.
sudo apt install bubblewrap
Ubuntu 26.04 ships bubblewrap 0.11.1 and Debian 13 ships 0.11.x; both have overlay support and are not setuid. Verify with the commands above rather than assuming either way.
Building from source is only needed on older distros whose package predates 0.8.0 (which added --overlay-src), or where the package is installed setuid-root — bubblewrap refuses overlay mounts in setuid mode, so a setuid 0.8.0+ build still fails the overlay check. setup.sh builds from source only when the packaged binary actually fails these checks:
./src/codumentor/plugins/workspace_isolation/setup/setup.sh
AppArmor on Ubuntu 24.04+
Ubuntu 24.04 introduced apparmor_restrict_unprivileged_userns=1, which blocks unprivileged user-namespace creation. bubblewrap needs user namespaces, so the bwrap binary must be granted userns.
The apparmor package already ships this profile — /etc/apparmor.d/bwrap-userns-restrict, attached to /usr/bin/bwrap. If you install bubblewrap from apt and leave that profile in place, there is nothing to do. It is also tighter than a hand-written flags=(unconfined) profile, because it stacks a child profile that strips capabilities inside the namespace.
Do not add a second profile named
bwrap. The distro profile declaresprofile bwrap /usr/bin/bwrap. AppArmor profile names are global, so a hand-written/etc/apparmor.d/bwrapthat declaresprofile bwrap /usr/local/bin/bwrapcollides with and displaces it, silently leaving/usr/bin/bwrapunable to create user namespaces. Confirm which definition is live withsudo aa-status | grep bwrap.
Never let two profiles claim the same binary. Two loaded profiles with the same attachment path make the attachment ambiguous, and neither grant applies — so "add a second profile under a new name for the same bwrap" does not work around the collision, it breaks the binary that was working. One path, one profile.
Removing a colliding /etc/apparmor.d/bwrap
sudo rm /etc/apparmor.d/bwrap && sudo apparmor_parser -r /etc/apparmor.d/bwrap-userns-restrict- If you were running a locally built bwrap on
PATHahead of/usr/bin, retire it (move, don't delete) soPATHfalls through to the packaged binary. - Verify — see the warning below about verifying as root.
- Restart the instances so no cached agent keeps a stale verdict.
Verify as an unprivileged user. The AppArmor userns restriction does not apply to root, so
sudo bwrap --unshare-user …succeeds even when every unprivileged user is blocked. Always check as the service account:sudo -u <svc-user> bwrap --ro-bind / / --unshare-user /bin/true. And prefercheck.shover a bare userns probe — a userns smoke test passes while the full overlay path, or the application's own availability check, still fails.
If you do build bwrap to a non-distro path such as /usr/local/bin/bwrap, give its profile a distinct name, and make sure no other profile attaches to that same path:
abi <abi/4.0>,
include <tunables/global>
profile bwrap-local /usr/local/bin/bwrap flags=(unconfined) {
userns,
}
3. Enable it
plugins:
- module: codumentor.plugins.workspace_isolation
class: WorkspaceIsolationPlugin
priority: 5
args:
enabled: true
persistent_home: true # shared $HOME across agents (default)
snapshots:
upper_dir_ttl: 2592000 # 30 d — writable overlay layer lifetime
cleanup_interval: 3600 # sweep cadence (0 = startup only)
min_free_gb: 5 # disk-pressure backstop
sandbox:
unshare_net: true # block networking inside the sandbox (default)
network_per_call: true # one approved call may have it; false = never (default true)
See Configuration → Workspace Isolation Plugin for the full option table.
Browser sandbox on Ubuntu 24.04+
mermaid_render and webretrieve (JS rendering) drive a headless Chromium that renders agent-controlled content — fetched pages and model-generated diagram source. That browser runs host-direct, outside the workspace_isolation bwrap, so Chrome's own sandbox is its only containment layer. Codumentor always tries to launch with it enabled and falls back to --no-sandbox only after an observed failure, logging a warning.
On Ubuntu 24.04+, apparmor_restrict_unprivileged_userns=1 means that sandbox only starts if the browser binary's AppArmor profile grants userns. Which binary you run therefore decides whether you get a sandbox:
| Browser | Profile | Sandbox |
|---|---|---|
Distro Google Chrome (/opt/google/chrome/chrome) | /etc/apparmor.d/chrome, shipped by apparmor | ✅ works out of the box |
Distro Chromium (/usr/lib/chromium/chromium) | /etc/apparmor.d/chromium, shipped by apparmor | ✅ works out of the box |
Playwright-managed (~/.cache/ms-playwright/chromium-*/…) | none | ❌ falls back to --no-sandbox |
Recommended: install the distro Chromium (apt install chromium) — Codumentor finds it on PATH. Note that browser lookup order is CODUMENTOR_CHROME_PATH, then a Playwright browser cache (~/.cache/ms-playwright, or PLAYWRIGHT_BROWSERS_PATH), then PATH — so if the service user also has a Playwright-managed Chromium, that one wins and runs unsandboxed. Check what you are getting:
grep "Chrome sandbox" <instance>/logs/codumentor.log # "retrying with --no-sandbox" = unsandboxed
Two ways to get a sandbox. Option A — use a profiled system browser (simplest; no AppArmor work). Setting the path explicitly overrides any Playwright cache:
sudo apt install chromium # or google-chrome-stable
export CODUMENTOR_CHROME_PATH=/usr/bin/chromium
Option B — profile a Playwright-managed binary (an alternative if the service user already has one, e.g. installed with npx playwright install chromium). Model it on the distro's own Chrome profile, which is exactly flags=(unconfined) plus userns:
sudo tee /etc/apparmor.d/codumentor-chrome >/dev/null <<'EOF'
abi <abi/4.0>,
include <tunables/global>
# Grants unprivileged user namespaces to a Playwright-managed Chromium so
# Chrome's own sandbox can start. Same shape as the distro's /etc/apparmor.d/chrome.
#
# The profile NAME must not be `chrome` or `chromium` — those belong to the
# apparmor package, and a duplicate name displaces the distro profile.
# The revision glob is required: the directory changes on every
# `playwright install` (hosts routinely have several side by side).
profile codumentor-chrome /home/*/.cache/ms-playwright/chromium-*/chrome-linux64/chrome flags=(unconfined) {
userns,
}
EOF
sudo apparmor_parser -r /etc/apparmor.d/codumentor-chrome
Adjust the path if the service account's home is not under /home/, or if you set PLAYWRIGHT_BROWSERS_PATH. Then restart the instance and confirm the warning is gone. To make a misconfiguration loud instead of silent, set CODUMENTOR_CHROME_SANDBOX=1 — the launch then fails hard rather than falling back.
Browser identity (user agent)
By default the browser identifies itself with its own user agent — the headless Chrome you installed is what sites see. To make it identify differently (e.g. when a target site blocks automated browsers), set the user agent explicitly:
# In the service environment (systemd: Environment=, or the instance env file)
CODUMENTOR_BROWSER_USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
When set, every page the browser driver opens (the browse tool, web_retrieve's JS rendering and mermaid_render) sends this User-Agent header and exposes it to JavaScript as navigator.userAgent. Unset (or blank) keeps the default. Restart the instance for a change to take effect.
Option B is derived from the distro profile's shape, not verified end-to-end. Confirm with the
grepabove after applying it, and please report back if the glob needs adjusting.
Speech (read-aloud / voice)
read_aloud (the "🔊 read aloud" message action), Voice Mode (the full-screen voice conversation), and Telegram voice replies share one top-level speech: block pointing at an OpenAI-compatible speech service:
speech:
enabled: true
base_url: "https://api.openai.com/v1"
api_key: "${OPENAI_API_KEY}"
tts_model: "tts-1"
tts_voice: "alloy"
For web speech, explicitly set speech.enabled: true (the default is false). A usable deployment speech.api_key wins; otherwise the host may use the authenticated user's own stored secret. This dedicated fallback is controlled by speech.allow_user_api_key (default true in Community, false in Enterprise), reads speech.user_api_key_secret (default speech_api_key), and requires an active account with user_secrets:manage. Save the provider key in Settings → Extensions → User Secrets; Host-only is recommended, though ordinary secrets also work. For personal-key setup, omit the deployment api_key. An unresolved placeholder is not usable, but a provider rejecting a configured key does not trigger a personal-key retry.
This does not make arbitrary ${secret:…} placeholders resolve outside agent turns, and does not change Telegram voice's own credential semantics or add the web Host-only fallback to Telegram. New personal configurations enable User Secrets; existing instances must enable the plugin explicitly.
Push-to-talk dictation needs only speech, not voice_mode. Read-aloud needs the read_aloud plugin too. Live voice is optional advanced setup requiring enabled voice_mode, live.enabled, and compatible credentials; a live/deployment key can work without speech.enabled, but the personal-key fallback cannot. Hands-free is optional and requires the enabled voice_mode plugin; push-to-talk is independent of it. See the English / Hungarian user guides for setup, provider billing, audio privacy, and the HTTPS/localhost microphone requirement.
External coding agents (external_agent)
Each configured backend (claude-code, codex, …) is a separate CLI that the main agent can delegate to. Two things must be true for a backend to work:
- The CLI binary is installed and on
PATHfor the service user (binary:defaults toclaude,codex,opencode,gemini). - A credential resolves at spawn time — otherwise the call is rejected, not spawned. How the credential is sourced depends on
mode:
technical_user— one deployer credential shared by all callers. Either setapi_key(supports${env:VAR}/${secret:NAME}), or omit it and let the CLI use its own auth store under$HOME. For the omit case you must log in once as the service user so that store exists:
``bash``
# as the user the Codumentor process runs as:
claude /login # populates ~/.claude
codex login # populates ~/.codex
byo_subscription— each end user authenticates their own CLI subscription (OAuth) into a per-user$HOME; no shared deployer credential.
Sandbox tier. default_sandbox_tier (and per-backend overrides) sets isolation: tier 0 runs the CLI as a plain subprocess; tier 1 wraps it in a bubblewrap overlay (repo read-only, copy-on-write) and can enforce memory/wall-clock limits via user-level systemd-run plus a network egress allow-list. Tier 1 needs bubblewrap with overlay support (apt install bubblewrap; on Ubuntu 24.04+ userns must be allowed for bwrap). When workspace_isolation runs with persistent_home: true, that shared $HOME is what external agents see, so a one-time login persists across sessions.
See also
- Plugin Catalog — per-plugin configuration reference
- Security → Plugin Security — the plugin trust model
- Configuration — full
codumentor.yamlreference