界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

plugins-and-tools

plugins-and-tools

【开发与工程】Configure and troubleshoot OptiLLM plugins, tool integrations, MCP, memory, privacy, JSON structured output, proxy load balancing, SPL, LongCePO, web search, and code execution.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: plugins-and-tools description: "Configure and troubleshoot OptiLLM plugins, tool integrations, MCP, memory, privacy, JSON structured output, proxy load balancing, SPL, LongCePO, web search, and code execution." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Plugins and Tools

Use this sub-skill when a task involves OptiLLM plugins or tool integrations rather than only core approach algorithms.

Read first for these tasks

  • Enable or diagnose plugin slugs such as mcp, memory, privacy, json, proxy, spl, longcepo, deepthink, deep_research, web_search, executecode, compact, coc, genselect, majority_voting, readurls, or router.
  • Configure MCP servers, memory persistence, privacy anonymization, JSON structured output, proxy provider routing, SPL strategy learning, LongCePO long-context input, or web/browser tools.
  • Understand plugin side effects: network fetches, browser automation, code execution, local model loading, file-backed memory, or external tool calls.
  • Debug plugin import/version problems.

Route server host/auth/SSL/provider basics to ../proxy-server/SKILL.md. Route core approach selection to ../optimization-approaches/SKILL.md. Route local model backend problems to ../local-inference-decoding/SKILL.md.

Plugin model

A plugin module is loaded when it defines:

SLUG = "plugin_slug"
def run(system_prompt, initial_query, client, model, ...):
    ...

Loaded plugins join plugin_approaches, so plugin slugs can be used in model prefixes and compositions just like approach slugs when the server is in auto mode.

High-value plugin groups

  • Context/tools: mcp, readurls, web_search, deep_research, executecode, coc.
  • State/privacy/format: memory, privacy, json, compact.
  • Selection/reasoning augmentation: genselect, majority_voting, deepthink, spl, longcepo, router.
  • Provider operations: proxy load balancing/failover plugin.

References and script

Safe enablement checklist

  1. Identify whether the plugin performs external I/O, code execution, browser automation, or model downloads.
  2. Verify required dependencies with scripts/plugin_matrix.py --check-imports.
  3. Keep secrets in environment variables or user config files, not prompts or logs.
  4. Start with dry-run/config inspection before real tool calls.
  5. Combine plugins with approaches only when you understand the order (&) or parallel behavior (|).
  6. Add explicit user approval for plugins that execute code, open browsers, fetch arbitrary URLs, or call MCP tools with side effects.

Common examples

MCP as a model prefix:

mcp-gpt-4o-mini

Memory with opt-in file persistence:

export OPTILLM_MEMORY_FILE=/secure/path/memory.json

Proxy plugin wrapping an approach:

extra_body={"optillm_approach": "proxy", "proxy_wrap": "moa"}

LongCePO input format:

<long context text><CONTEXT_END>question about the context

Security notes

  • executecode and coc can run Python code; treat untrusted prompts as untrusted code sources.
  • web_search uses browser automation and can hit CAPTCHAs or external web services.
  • mcp can call external tools; only configure trusted servers with least-privilege access.
  • privacy anonymizes before provider calls and deanonymizes after, but prompts/logs around it still need data-handling care.
我的收藏