AI Discovery

IDE plugin inventory

See every extension and plugin in each IDE for each user, with its enabled state, which IDEs are covered and how to read the results.

DefenseClaw lists every extension and plugin in every IDE, AI or not, with its enabled state, for each user. AI plugins are flagged from the signature catalog, so "who has Copilot, Claude Code or Continue installed, and is it on?" is one command.

The inventory is part of the AI Discovery continuous scan and refreshes with every full scan (every 5 minutes by default). Nothing is executed: the scan reads small, bounded metadata files only.

$ defenseclaw agent ide-plugins --user alice
User   IDE              Plugin                                            Version   Enabled      AI
alice  cursor           anthropic.claude-code (Claude Code for VS Code)   2.1.0     yes          yes
alice  intellij-idea    com.github.copilot (GitHub Copilot)               1.5.40    yes          yes
alice  vscode           eamodio.gitlens (GitLens)                         17.0.0    no
alice  vscode           github.copilot (GitHub Copilot)                   1.250.0   yes          yes
alice  vscode           ms-python.python (Python)                         2026.1.0  yes
alice  vscode (ssh)     github.copilot (GitHub Copilot)                   1.250.0   client side  yes
alice  zed              html                                              0.2.1     yes
7 plugin(s) shown; 7 in total, 4 AI, 1 disabled, 1 user(s)

Read the inventory

defenseclaw agent ide-plugins
defenseclaw agent ide-plugins --user alice --ai-only
defenseclaw agent ide-plugins --ide cursor --json
defenseclaw aibom scan --only ide_plugins
  • --ide takes a product (vscode, cursor, pycharm) or a family (jetbrains). --ide windsurf is an alias for devin-desktop.
  • The footer counts the rows the filters select.
  • Without AI discovery enabled, the command tells you to run defenseclaw agent discovery enable.
Where to read itWhat you get
defenseclaw agent ide-pluginsThe table above, or --json
GET /api/v1/ai-usage/ide-pluginsThe full rows, filtered and paged
defenseclaw aibom scan --only ide_pluginsThe ide_plugins category of the bill of materials
TUI: Inventory (6) → IDE pluginsThe same rows, with a detail card
Grafana AI Agent Usage & Detection → IDE pluginsCounts by IDE, AI against other, disabled, per user
ide.plugin.* records and the defenseclaw.inventory.ide_plugins gaugeThe change stream and the current counts, in your telemetry

Which IDEs

IDE familyProductsPlugin listEnabled state from
VS Code and forksVS Code, Insiders, VSCodium, Cursor, Devin Desktop (including Windsurf folders), Kiro, Trae, Void, Antigravity, Positronextensions.json (including every profile) and each extension's package.jsonThe extensionsIdentifiers/disabled key of the editor's state.vscdb, opened read-only. Enabled when not listed (or when there is no state database yet), unknown when it cannot be read
VS Code Remote-SSH servers~/.vscode-server, ~/.cursor-server and the forks' servers, on the host you connect toThe server's extensions folder, shown as vscode (ssh), cursor (ssh) and so onclient_side_unknown, shown as client side: the IDE on your laptop keeps that state
JetBrainsIntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, Rider, RubyMine, PhpStorm, DataGrip, DataSpell, RustRover, Aqua, Writerside, Android Studio, and JetBrains remote development (shown as (remote dev))Each plugin's META-INF/plugin.xml in the plugin folders and bundled JARsdisabled_plugins.txt: enabled when not listed
Visual Studio (Windows)Each instance, including the experimental hive: user extensions under %LOCALAPPDATA%\Microsoft\VisualStudio and machine-wide ones under Program Filesextension.vsixmanifestVisual Studio's private registry (privateregistry.bin); unknown while Visual Studio runs and holds it locked
ZedZedextensions/installed/*/extension.tomlAlways enabled
EclipsePer-user installs (Oomph under ~/eclipse, p2 user configurations under ~/.eclipse), best effortbundles.info, without the platform bundles every Eclipse shipsEnabled
Vim and NeovimVim, Neovimlazy-lock.json, native packages in pack/*/{start,opt} and vim-plug's plugged folderstart is enabled, opt is disabled; lazy.nvim and vim-plug plugins are unknown
  • Bundled extensions inside an IDE application, such as VS Code's built-in GitHub Copilot Chat, are not listed. The scan reads per-user extension folders.
  • Connector plugins (Claude Code, Codex, OpenCode, Amp, Copilot CLI, Hermes and the others) are not IDE plugins. They stay in the AIBOM plugins category, stamped with their user.
  • A row's enabled state is enabled, disabled, client_side_unknown or unknown. The row records its source (state_vscdb, disabled_plugins_txt, privateregistry, remote_server, default and so on), which the TUI shows as Enabled from.

Folders not read

For VS Code the scan reads ~/.vscode/extensions (%USERPROFILE%\.vscode\extensions on Windows) and the default per-user folders of the listed forks and their SSH servers. These are not read, so their plugins can be missing:

  • portable VS Code data/extensions beside the app,
  • folders chosen with --extensions-dir or VSCODE_EXTENSIONS,
  • Linux XDG relocations,
  • Snap and Flatpak extension roots,
  • JetBrains Toolbox's own folder (the IDEs it installs keep plugins in the product folders, which are read).

Whose plugins

Each per-user row carries its user: the home's owner, or on a managed host the account that was scanned. One user never appears in another user's rows, so a planted extension folder changes only its owner's inventory.

InstallWho scansWhose homes
Per-userThe user's own gatewayThat user's home only
Standalone enterprise, Linux and macOSThe hook guardian, as each enrolled userEach enrolled user's home. It does not follow links out of the home
Standalone enterprise, WindowsThe gateway service, granted read access to each profile's IDE folders and nothing else in itEach enrolled profile; Visual Studio under Program Files is machine-wide. Nothing is read through a link, junction or mount point, and an ai_discovery.home_dirs folder that is one is skipped with one ai_discovery_link_refused warning in the gateway log

A machine-wide row belongs to no account. A Visual Studio extension installed for all users is listed once, with scope machine, no user or user_id, and enabled state unknown. --user never returns it, counts.users does not count it, and its ide.plugin.* records carry no user.id or defenseclaw.user.* attribute.

Folders granted on managed Windows

At every cycle (every 5 minutes) the hook enumerator grants the gateway service read access to these folders in each enrolled profile, so a new IDE or plugin folder shows up after the next cycle and scan.

IDERead, with what it holdsOnly the folder or file itself
VS Code and forks.vscode\extensions and the forks' extensions, %APPDATA%\Code\User\globalStorage and profiles (and the forks')
Remote-SSH servers.vscode-server\extensions and the forks'.vscode-server and .vscode-server\cli\servers (to list server builds), each build's server\package.json. The server's own data and binaries are not granted
JetBrains%APPDATA%\JetBrains, and plugins in each product folder under %LOCALAPPDATA%\JetBrains%LOCALAPPDATA%\JetBrains (to list products), RemoteDev\dist and each backend's product-info.json. Caches, indexes and logs are not granted
Android StudioEach %APPDATA%\Google\AndroidStudio<version>, and plugins in each %LOCALAPPDATA%\Google\AndroidStudio<version>%APPDATA%\Google and %LOCALAPPDATA%\Google (to list versions). Other Google folders are not granted
Visual Studio, Zed, Neovim, Vim%LOCALAPPDATA%\Microsoft\VisualStudio, %LOCALAPPDATA%\Zed\extensions\installed, %LOCALAPPDATA%\nvim and nvim-data, vimfiles
Eclipse.eclipseeclipse (Oomph installs) and each install's bundles.info
  • Nothing is granted through a link or junction inside a profile.
  • AppData that folder redirection moves to a local folder the user owns is read. AppData on a network share, or reached through a link or junction, is not.

What is collected, and what is not

CollectedNot collected
Plugin ID, display name, publisher, versionExtension contents or source
Enabled state and its sourceSettings, tokens or credentials
Scope (user, remote or machine)Workspace and project files
AI flag and the matching signatureChat or editor history
Install and last-seen times, owning userThe extension's own data
A hash of the plugin's path; for each IDE: product, channel, version, remote or not, path hashRaw paths (they leave the host only as hashes)
  • Each text field is kept to one printable line of at most 256 bytes. Format characters such as right-to-left overrides are dropped and control characters become a space, so a planted name cannot render differently in a table or dashboard.
  • The only database read is the extensionsIdentifiers/disabled key in a VS Code state.vscdb, opened read-only with a 2-second limit.
  • An enabled row means the plugin's metadata is present and enabled in that saved profile. Removing an IDE can leave those folders behind, so it does not prove the IDE is still installed.

Scan bounds

BoundLimit
Plugins per IDE installation4,096
Files per home16,384
Metadata per home64 MiB
One file1 MiB
  • An IDE that exceeds a bound is reported as a partial installation.
  • The scan reads regular files only. It skips a FIFO, device, socket or folder it cannot open without waiting, and never reads a manifest through a link.
  • On managed Linux each user's scan runs in a worker with a 1 GiB memory ceiling, so a hostile home ends that worker, not the host.
  • On managed Linux and macOS, after three failed passes in a row the guardian pauses that home for an hour (then two, up to a day) and keeps the last inventory meanwhile.

Privacy and scope

Plugin lists can reveal personal tooling. ai_discovery.ide_inventory sets the scope:

ValueEffect
all (default)Every plugin, AI or not
ai_onlyOnly plugins flagged as AI
offNo IDE inventory; AI editor-extension signals still appear in agent usage
~/.defenseclaw/config.yaml
ai_discovery:
  ide_inventory: ai_only    # all | ai_only | off
  • Set it with defenseclaw agent discovery enable --ide-inventory ai_only --yes (or all, off). This also enables discovery and runtime planes A and B.
  • A running gateway applies the change on its next reload; the inventory follows at the next full scan.
  • On a managed host, edit the machine configuration.
  • With off, defenseclaw agent ide-plugins says so and exports nothing.
  • The AI flag follows the signature packs, so a new AI extension is flagged after a signature update.

See also Identity and authentication.