AGENT SKILL

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

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, 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.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351