Codumentor logo Codumentor

File Links Plugin

The file_links plugin makes files the agent generates or modifies discoverable, previewable, and downloadable from the web UI. It also lets users browse the configured repos_dir and inspect what changed during a conversation.

Overview

SurfaceWhereWhat it does
x-file-links-cardTranscript, per plugin.file_links.file_written eventShows filename, size, file kind, Download + Open in browser
x-file-links-header-buttonChat header ("Files")Entry point to the repo browser
x-file-links-browserPage at /plugins/file_links/reposRepo tree + preview; This conversationAll files toggle

The plugin subscribes to onToolInvokeEnd and tracks writes from configurable tools (default: write_file, replace_in_file, doc_save, client_fs_copy_from_repo). Tracked paths are stored per conversation and surfaced via UI events and API routes under /ui/plugins/file_links/.

Configuration

plugins:
  - module: codumentor.plugins.file_links
    class: FileLinksPlugin
    args:
      enabled: true
      # tracked_tools: ["write_file", "replace_in_file", "doc_save"]

Parameters

Disabling

To turn the plugin off without removing it from the plugins list:

plugins:
  - module: codumentor.plugins.file_links
    class: FileLinksPlugin
    args:
      enabled: false

Or remove its entry from the plugins list entirely. The doc_editor download endpoint redirects to file_links when both are present.

See also