AI Discovery export
Where AI Discovery records go - the endpoint and skill inventory collections, and the Splunk and Grafana dashboards.
Continuous and on-demand AI Discovery feed the same audit pipeline. Once Observability is wired up, the bundled dashboards fill on their own.
Galileo is not a destination for discovery. Its galileo-rich-v2 trace profile carries agent, workflow, model, tool, retrieval and judge spans only. Use Grafana, Splunk or another OTLP destination (see Galileo).
Endpoint inventory
With ai_discovery on, the gateway sends an inventory of the endpoint after each full scan. Each collection has its own action, which depends on the product:
| Collection | Per-user install (Preview) | Standalone enterprise (Preview) |
|---|---|---|
| Connectors | connector_inventory | connector_inventory |
| MCP servers and their tools | mcp_inventory | mcp_inventory |
| Skills | skill_inventory | skill_inventory |
| Plugins | plugin_inventory | plugin_inventory |
| Coding agents (on a discover request) | agent_inventory | agent_inventory |
| Where the records go | The local audit log and your own observability destinations | The local audit log and the destinations the administrator configured |
- The records are metadata. An MCP server's command and arguments are sent as keyed fingerprints with the command's file name, and a server URL as scheme and host only.
- On a managed machine only the machine configuration decides what is sent; a user cannot change it.
- An unchanged collection is sent again once a day.
- A collection the scan could not read in full (partial or over a limit) stays in the local audit log and is not sent anywhere else.
- On a per-user install and a standalone enterprise machine, the gateway keeps what it sent in
endpoint_inventory_publish_state.jsonin its data folder.
MCP server records
| Server | Exported | Component ID |
|---|---|---|
| Local (command) | Safe server name, command file name, transport, connector, config scope when known, discovery source. With the installation token, keyed HMAC fingerprints of the full command and of the ordered arguments | Connector, user scope and server alias |
| Remote (URL) | The endpoint URL's scheme, host and explicit port only (no userinfo, path, query or fragment). The value comes from the connector config; DefenseClaw does not probe the endpoint | Connector, user scope and server alias |
- Raw command paths, arguments, environment variables, headers and OAuth material are never exported. The token never leaves the gateway.
- A token rotation changes the fingerprints. A command, argument, token or endpoint change updates the record in place and keeps its tool history.
- Renaming the alias creates a new component. Two entries with identical commands stay separate rows by alias.
MCP tools
The MCP inventory sends configured server listings and authenticated runtime observations as separate mcp_tool collections. Both contain names only: descriptions, schemas, arguments and results stay on the endpoint.
| Source | Where the names come from |
|---|---|
advertised | The tools/list request of the MCP admission scan, kept even when the scan reports no findings. No extra probe is made |
observed | MCP tools that authenticated agent hooks saw called at runtime. These records do not require a configured parent |
- Advertised rows carry the configured server component ID. Observed rows carry the connector, verified user identity when available, and runtime server name. AI Defense correlates the separate records by tenant, device name, agent identity and runtime server name.
- Each configured server retains at most 256 advertised names. Each connector, user and runtime-server group retains at most 256 observed names, with at most 256 groups. Past a limit, new entries are rejected and the affected collection stays partial; existing entries are never evicted.
- Names are kept in local SQLite across gateway restarts. A completed empty listing clears advertised names; an incomplete listing gives a local partial diagnostic. Configured-server refreshes retire advertised evidence only and do not remove authenticated runtime observations.
- An observed tool stays diagnostic until SQLite confirms its write; a failed write is retried later without delaying the hook.
- Advertised tools come from the watcher's admission scans. With
gateway.watcher.enabledoff, a server lists only the tools of earlier scans, and a server never scanned is sent with none. With the watcher on, a server not listed yet keeps the collection partial for up to 15 minutes. - The tool inventory is sent with the endpoint inventory on per-user and standalone enterprise installs with
ai_discoveryon. - The
defenseclaw.inventory.mcp_tool_eventscounter separates listing, call observation and export with fixed outcome and reason labels. It never uses a tool name, URL, error text or argument as a label.
Skill inventory
With ai_discovery on, the gateway sends every skill the agents load in the endpoint_skill_inventory collection after each full scan: one ai_component.observed record per skill and agent.
| Product | Action | Where the records go |
|---|---|---|
| Per-user install (Preview) | skill_inventory | The local audit log and your own observability destinations |
| Standalone enterprise (Preview) | skill_inventory | The local audit log and the destinations the administrator configured |
Each destination applies its own redaction profile. On a managed machine only the machine configuration decides what is sent. The records carry these fields under defenseclaw.inventory.skill:
| Field | Meaning |
|---|---|
content_hash | SHA-256 over every file of the skill folder, scripts and binaries included. The same skill has the same hash on every endpoint |
content_status | ok, or why there is no hash: symlink (recorded by target, never followed), too_large or unreadable |
state, first_seen, last_seen | new, changed, unchanged or removed since the last publish, and when the skill was first and last seen |
scope | user, project, bundled (shipped by the agent vendor), managed (a folder outside every home that only an administrator can change; see below) or plugin |
location | The skill folder below the user's home, as ~/.claude/skills/pdf. The account name and absolute path stay on the endpoint; a project or managed skill sends none |
agents | Every agent that reads the folder. Each agent still gets its own record and component ID, with the same hash. defenseclaw.ai.component.vendor is that agent's vendor (Anthropic, OpenAI, Anysphere, GitHub, …) |
publisher, publisher_source | Who published the skill and how that is known: declared (the SKILL.md author), plugin_manifest, vendor_bundled or unknown. A content field |
version | The version SKILL.md declares (top level or under metadata), one line of at most 64 bytes. The declared description goes in defenseclaw.inventory.item.description, one line of at most 512 bytes. Both are content fields |
manifest_size | Size of SKILL.md in bytes, with its manifest_hash |
plugin, plugin_version, plugin_enabled | For a skill a Claude Code, Codex, Cursor or Copilot CLI plugin ships: the plugin (name@marketplace), its version and whether it is on. Cursor and Copilot CLI record no enabled state |
manifest, manifest_hash, manifest_part, manifest_parts | The SKILL.md text, its SHA-256 and part numbers, with ai_discovery.include_skill_manifests on |
Redaction of skill text
The default redaction profile of your own destinations is none. A secret written into a declared description, version or publisher, or into SKILL.md text, reaches them unmasked. To mask it, set observability.buckets.ai.discovery.redaction_profile (or the destination's route) to sensitive or stricter; see Redaction.
SKILL.md text
With ai_discovery.include_skill_manifests: true (off by default, in every product), a new or changed skill's record also carries its SKILL.md text, once per file version. Every record of that file carries manifest_hash.
- The text goes to the same destinations as the rest of the skill record: the local audit log and your own destinations on a per-user install, the administrator's destinations on a standalone enterprise machine.
- It is added only after a complete skill scan. The text is a content field, so the destination's redaction profile masks secrets before upload.
- A file over 256 KiB goes in ordered parts that end at a line and keep a PEM block whole, one part per scan, at most 2 MiB of text per scan. A file that cannot be split that way, or needs more than 128 parts, sends only its hash.
- On standalone managed Linux and macOS, a skill found only by a per-user scan reports its hash and metadata but not its text.
Splunk: AI Discovery Inventory

The dashboard reads from the defenseclaw_demo_ai_discovery_events macro and breaks signals down by vendor, category, state, detector and severity. The recent-events table shows signal_id, scan_id and the message, so an analyst can pivot to the source.
Grafana
The local observability stack ships the AI Agent Usage & Detection board (defenseclaw-ai-discovery), built on:
| Source | Data |
|---|---|
| Prometheus | defenseclaw_ai_discovery_signals_total (labels state, signal_category, ai_vendor, ai_product, detector), the active-signal gauge, and defenseclaw_inventory_ide_plugins (labels defenseclaw_ide_product, defenseclaw_ide_plugin_ai, defenseclaw_ide_plugin_enabled; the unlabelled sample is the total) |
| Loki | ai.discovery.completed, ai_component.* and ide.plugin.* records |
| Tempo | Discovery scan traces |
- The board queries the exported label names directly, including for a plain
otlpdestination. - IDE plugins section: plugin count by IDE, AI against other, disabled plugins and a per-user table. The
$userbox narrows the Loki panels byuser.id, account name or principal. - Sandbox signals section: what discovery found inside OpenShell sandboxes, one row per sandbox and component. The
$sandboxbox narrows that table and the per-signal log. Metric panels count host and sandbox signals together (sandbox names are never metric labels) and say (all names) in their title. - It cross-links from the overview, runtime and agent-identity dashboards, so you can go from "block rate spiked" to "which agent" to "when was it first discovered".

Runtime plane records and dashboards: Runtime planes, where the data lands.
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.
Agent segmentation, visibility and enforcement
See which DefenseClaw layer sees and which enforces each intent, such as protected paths, credentials, egress and shadow AI, on Linux, Mac and Windows.