Codumentor logo Codumentor Enterprise

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.

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.

PluginModulePurposeDocs
Auto Titleauto_titleName conversations from their content; topic-shift retitling (experimental)Details
Claude Code Hooksclaude_code_hooksRun shell/HTTP callouts on lifecycle events (Claude Code-compatible)Details
Configuration Assistantconfiguration_assistantAdmin chat that edits this instance's own config (validate → diff → apply → rollback)Details
Console Reportconsole_reportEnd-of-session report rendererDetails
CompactioncompactionContext-window management; truncates long conversations intelligentlyDetails
Conversation Managementconversation_managementLet the assistant list, pin, rename, and mark your own conversations read/unread (approval-gated, with dry-run)Details
DatabasedatabaseSQL tools over switchable native/CLI backends (Postgres/MySQL/Oracle/SQL Server)Details
DeveloperdeveloperSubagent that reads, edits, and runs code from a planDetails
Document Editordoc_editorRead, edit, and save DOCX documentsDetails
ExploreexploreRead-only fan-out code-exploration subagentDetails
External Agentexternal_agentDelegate to external CLI coding agents (Claude Code, Codex)Details
Filesworkspace_filesBrowse/open repository files referenced in chat; read-only share-file accessDetails
Follow-upsfollow_upsOne-click follow-up messages under the latest answerDetails
GoalsgoalsLong-running goal workers with scheduled/agentic executionDetails
Google Workspacegoogle_workspacePer-user Gmail, Calendar, Docs, Sheets, and Drive tools (OAuth)Details
Inference Metricsinference_metricsLLM generation performance (TTFT, tokens/sec)Details
MCPmcpConnect external Model Context Protocol tool servers (stdio/HTTP/SSE)Details
Mermaid Rendermermaid_renderRender Mermaid diagrams to images (requires a Chromium-family browser on the host)Details
Model Profilesmodel_profilesPer-user selectable model profiles and custom API keysDetails
OAuthoauthPer-user OAuth 2.0 / refresh-token storage and flowsDetails
OpenAI Codexopenai_codexOAuth provider so a user can connect their own ChatGPT/Codex subscriptionDetails
Episodic Memoryepisodic_memorySearch and reread the user's own past conversations; optional turn-start recallDetails
PPTX Editorpptx_editorRead, edit, and save PPTX presentationsDetails
PDF Editorpdf_editorRead, fill, and flatten PDF forms; render pages as imagesDetails
Read Aloudread_aloudText-to-speech "read aloud" message actionDetails
RipgrepripgrepFast regex code search across repositoriesDetails
Task Runtimetask_runtimeRuns scheduled tasks and goal workers; run history and maintenanceDetails
Task Toolstask_toolsAgent-callable scheduled / cron task toolsDetails
SkillsskillsAgent Skills (agentskills.io) activated via slash commandsDetails
Slash CommandsslashcmdsExpand user-defined /commands into full promptsDetails
TelegramtelegramTelegram bot channel with voice in/out (STT/TTS)Details
TelemetrytelemetryResponse timing and LLM/tool metricsDetails
Thinking Modesthinking_modesPer-conversation thinking mode and reasoning effortDetails
Tool Searchtool_searchDefer-by-default tool loading: only eager tools reach the model; others are found via find_tools (BM25)—
Token Reporttoken_reportToken usage and cost section for the session reportDetails
Turn Summaryturn_summaryConversation-list files-changed fact while a turn runs, and a short outcome line afterDetails
User Feedbackuser_feedbackTurn-level like/dislike response feedbackDetails
User Secretsuser_secretsPer-user encrypted credentials, referenced from config as ${secret:<name>}Details
Voice Modevoice_modeHands-free full-screen voice conversation (STT/TTS via speech:)Details
Web RetrievewebretrieveFetch and extract web-page content (optional agentic mode)Details
Web SearchwebsearchWeb search across multiple providers, with optional research modeDetails
XLSX Editorxlsx_editorRead, edit, and save XLSX spreadsheetsDetails

Enterprise Edition plugins

These ship in the Enterprise Edition only:

PluginModulePurposeDocs
Agentic MemoryagenticmemoryStore agent responses as searchable organizational knowledge; retrieve during chats; web review UIDetails
Branch Switchingbranch_switchingPer-conversation git branch selection with isolated checkout and branch-specific indexDetails
Bug Reportbug_reportUser bug/feedback form forwarded to Redmine as tracked issuesDetails
Client Filesystemclient_fsBrowser-attached local folder access (agent read/write, @-mention)Details
Context Managementcontext_managementProactive multi-resolution summarization with semantic drift detectionDetails
EULAeulaFirst-login End-User License Agreement modalDetails
FileSyncfilesyncSync repos from local/SMB/UNC paths before ingestionDetails
Log Collectionlog_collectionLog-file analysis source typeDetails
PermalinkpermalinkAuto-link file paths in responses to GitHub/GitLab/GiteaDetails
RedmineredminePer-user Redmine issue tools (search/get/create/update/comment)Details
Remote SSHremote_sshRemote SSH/SFTP command and file tools (experimental)Details
SCM Pushscm_pushIn-sandbox git commit as the user plus host-side push gatewayDetails
Script Filterscript_filterStrip leaked non-Latin (CJK) output live; translate removed fragments on finishDetails
Slack Integrationslack_integrationInbound/outbound Slack channel (mentions, DMs, slash commands, post/react tools)Details
SSH Tunnelssh_tunnelPersistent SSH port-forward tunnel to a fixed remote serverDetails
SVNsvnSubversion repository support (checkout/update, branch listing/switch)Details
TrialtrialCosmetic trial badge in the chat headerDetails
Workspace Isolationworkspace_isolationPer-conversation bwrap overlay sandbox with snapshots and project setupDetails

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 provideHow
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 grantapt install chromium (distro package, sandboxed out of the box), see Browser sandbox on Ubuntu 24.04+
ripgrepThe rg binary on PATHapt install ripgrep (or your distro's package)
databaseDB access. Native pure-Python drivers ship bundled (pg8000, PyMySQL, oracledb, python-tds). Only mode: cli (or mode: auto with no driver) needs an external clientpsql / mysql / go-sqlcmd per engine
read_aloud, voice_mode, Telegram voiceAn OpenAI-compatible STT/TTS endpoint + API key via the top-level speech: blockSpeech (read-aloud / voice) below
google_workspaceA Google Cloud OAuth 2.0 client (id + secret) and the Gmail/Calendar/Docs/Sheets/Drive APIs enabled; also oauth + auth.jwt_secretGoogle Workspace
websearchThe gateway's ARDINSYS_API_KEY for ardinsys instead of a third-party key; some other providers require their own API keyprovider_config.api_key: "${ARDINSYS_API_KEY}"
external_agentThe 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, oauthauth.jwt_secret set, or these stores are written unencryptedAuthentication → jwt_secret
goals, task_tools, task_runtimeThe task engine + job queue (enabled by default)tasks.enabled: true (default); see Configuration → tasks
doc_editor, xlsx_editor, pptx_editorNothing extra — python-docx, openpyxl, python-pptx are bundled in the executable—
pdf_editorNothing extra for editing and form filling. Page images (pdf_render) need a PDF rasteriser in the server runtimePDF 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 provideHow
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 bwrapWorkspace isolation prerequisites below
svnA Subversion clientapt install subversion
redmine, bug_reportA reachable Redmine instance + API keyredmine: 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.

RequirementMinimumNotes
OSLinuxUbuntu 22.04+ / Debian 12+ recommended. (No Windows/macOS host sandbox.)
Kernel5.11+For unprivileged overlayfs
bubblewrap0.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 declares profile bwrap /usr/bin/bwrap. AppArmor profile names are global, so a hand-written /etc/apparmor.d/bwrap that declares profile bwrap /usr/local/bin/bwrap collides with and displaces it, silently leaving /usr/bin/bwrap unable to create user namespaces. Confirm which definition is live with sudo 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

  1. sudo rm /etc/apparmor.d/bwrap && sudo apparmor_parser -r /etc/apparmor.d/bwrap-userns-restrict
  2. If you were running a locally built bwrap on PATH ahead of /usr/bin, retire it (move, don't delete) so PATH falls through to the packaged binary.
  3. Verify — see the warning below about verifying as root.
  4. 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 prefer check.sh over 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:

BrowserProfileSandbox
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 grep above 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:

  1. The CLI binary is installed and on PATH for the service user (binary: defaults to claude, codex, opencode, gemini).
  2. A credential resolves at spawn time — otherwise the call is rejected, not spawned. How the credential is sourced depends on mode:

``bash
# as the user the Codumentor process runs as:
claude /login # populates ~/.claude
codex login # populates ~/.codex
``

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