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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- plugins-and-tools
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- 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
02 资源文件 5
- 参考文档references/mcp-memory-privacy-json.md3.6 KB
- 参考文档references/plugin-catalog.md4.4 KB
- 参考文档references/proxy-spl-longcontext-tools.md3.3 KB
- 参考文档references/troubleshooting.md3.2 KB
- 脚本scripts/plugin_matrix.py3.4 KB
03 SKILL.md 正文
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, orrouter. - 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:
proxyload balancing/failover plugin.
References and script
- references/plugin-catalog.md lists slugs, signatures, and task fit.
- references/mcp-memory-privacy-json.md covers MCP, memory, privacy, and JSON structured output.
- references/proxy-spl-longcontext-tools.md covers proxy plugin, SPL, LongCePO, deepthink/deep research, web/search/code tools, and router.
- references/troubleshooting.md maps plugin import, config, browser, model-loading, MCP, PII, and unsafe-side-effect failures.
- Run
python scripts/plugin_matrix.py --helpto inspect plugin slugs and signatures without making real tool/provider calls.
Safe enablement checklist
- Identify whether the plugin performs external I/O, code execution, browser automation, or model downloads.
- Verify required dependencies with
scripts/plugin_matrix.py --check-imports. - Keep secrets in environment variables or user config files, not prompts or logs.
- Start with dry-run/config inspection before real tool calls.
- Combine plugins with approaches only when you understand the order (
&) or parallel behavior (|). - 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
executecodeandcoccan run Python code; treat untrusted prompts as untrusted code sources.web_searchuses browser automation and can hit CAPTCHAs or external web services.mcpcan call external tools; only configure trusted servers with least-privilege access.privacyanonymizes before provider calls and deanonymizes after, but prompts/logs around it still need data-handling care.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).