> ## Documentation Index
> Fetch the complete documentation index at: https://eispatch.framewire.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Capability discovery and recommendations

> Discover MCP servers, skills, plugins, and subagents in your host and understand how EISPATCH recommends capabilities for your prompt.

Capabilities are the optional tools, skills, and agents you can attach to a prompt. EISPATCH discovers them from the active host's actual installation and recommends which ones fit your task, without sending your prompt to any external AI service.

## Grounded discovery

EISPATCH reads local host configuration to find capabilities that are actually installed:

* **MCP servers**: discovered from host config files such as `.claude.json` or Codex `config.toml`.
* **Skills**: found by locating `SKILL.md` files in host-specific skill directories.
* **Plugins**: detected from host plugin registries or workspace plugin directories.
* **Bots and subagents**: enumerated from the active host's subagent configuration.

Discovery is local only. Descriptions and instructions pass through `sanitizeMetadataText`, which redacts URLs and common credential patterns (Bearer tokens, `api_key=`, `token=`, `secret=`, `password=`, and keys starting with `sk-`, `ghp_`, or `AIza`). Redaction is pattern-based, so avoid storing secrets in capability metadata.

## Recommender scoring

The recommender (`core/recommender.mjs`) scores each discovered capability using deterministic matching. It is fully local and has no external AI dependencies.

### Scoring signals

| Signal | Points | Description |
| - | - | - |
| Name token match | +40 each | Words in the capability name appear in the prompt. |
| Description match | +22 each | Words in the capability description appear in the prompt. |
| Domain intent alignment | up to +48 | Boost when the prompt matches known intents such as `ui-app`, `verification`, or `backend-data`. |
| UI task boost | +35 | Capability named `generative_ui` or `ui-ux-pro-max`, when the prompt matches the `ui-app` intent. |
| Browser subagent boost | +30 | Subagent named `browser`, when the prompt matches the `ui-app` intent. |
| Mobbin MCP boost | +22 | MCP server whose name contains `mobbin`, when the prompt matches the `ui-app` intent. |

Capabilities can also be demoted:

* **Meta or admin skills** (for example `plugin`, `automation`, `dispatch`, `find-skills`) lose 70 points unless named in the prompt.
* **SaaS-specific capabilities** (for example `gmail`, `gdrive`, `semrush`, `firebase-mcp-server`) lose 60 points unless named in the prompt or the prompt matches the `backend-data` intent.
* Disabled capabilities and EISPATCH itself are excluded.

### Recommendation limits

* In simple mode: up to 4 recommendations, each with a score of at least 25.
* In breakdown mode: up to 3 recommendations per task, each with a score of at least 25.
* If no capability reaches the threshold, the top 2 by score are recommended anyway.
* When a `browser` subagent is recommended, browser skills are skipped, and only one `opendesigner*` skill is recommended unless the prompt names it.

## Advisory vs host-enforced controls

Each capability in the compiled prompt carries one of two labels:

| Label | Meaning |
| - | - |
| **Advisory guidance** | The capability is suggested in the compiled prompt, but the host does not block the agent from using other tools. |
| **Host-enforced tool scope** | Used only for capability nodes marked `enforceable: true`. Actual restriction depends on host-level `PreToolUse` or `BeforeToolSelection` enforcement, which EISPATCH does not provide itself. |

The compiled manifest records both under `manifest.controls`: `enforceable.allowedMcpServers` (labels of enforceable capabilities) and `advisory.capabilities` (`{ id, kind, name, taskId? }` for everything else). Each group carries an `enforcementNote`; the advisory note states that model adherence is advisory. See [Compiled prompt](https://eispatch.framewire.io/reference/compiled-prompt.md) for the exact format.

## Capability instructions

For each capability, the recommender suggests an instruction. If the prompt matches a domain intent (`ui-app`, `verification`, or `backend-data`), the instruction comes from that intent's template for the capability kind. Otherwise a default per kind is used, for example:

| Kind | Default instruction |
| - | - |
| `mcp` | `Use <name> MCP tools only when needed for: "<prompt>".` |
| `skill` | `Apply <name> (<first sentence of description>) for: "<prompt>".` |
| `plugin` | `Use capabilities from the <name> plugin for: "<prompt>".` |
| `subagent` | `Delegate specialized subtasks to the <name> subagent for: "<prompt>".` |
| `rule` | `Enforce <name> constraints during: "<prompt>".` |

You can edit any instruction before approval. In breakdown mode, recommendations and instructions are generated per task.

## How to use recommendations

1. Type or trigger your prompt in the composer.
2. Review starred recommendations in the Capabilities drawer.
3. Add capabilities you want, remove those you do not.
4. Edit the generated instructions if you want stricter or broader scope.
5. Proceed to [Approve and dispatch](https://eispatch.framewire.io/guides/approve-and-dispatch.md).

> [!TIP]
>
> If a recommendation seems irrelevant, check whether the host has a capability installed with a matching name or description. The recommender only scores what is actually installed; it does not invent capabilities.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.