SkillOpt (microsoft/SkillOpt)

Searching Database…

What is this?A text-space optimizer that trains reusable natural-language skills for frozen LLM agents without touching model weights. The trained skill ships as a compact markdown file (typically 300–2,000 tokens) that adds zero inference-time model calls at deployment.
Is this a library I import, or a command-line tool I run?Both: it is a Python package on PyPI with a skillopt CLI (plus a skillopt-sleep companion CLI) and an optional Gradio WebUI dashboard. You extend it by writing Python modules for new backends or benchmarks.
How do I get it running?Install it with pip install skillopt, configure a backend, and run the training loop (rollout → reflect → aggregate → select → update → evaluate). Optionally launch the WebUI dashboard on port 7860 to monitor runs.
Which LLM providers can it optimize against?Built-in chat backends cover OpenAI, Azure, Claude, Qwen and MiniMax, and any provider speaking the OpenAI Chat Completions protocol works via the openaicompatible backend. There are also exec backends for Codex CLI, Claude Code, Cursor and Copilot.
Does pip install give me everything from the release notes?No. The main CLI keeps conservative defaults and does not expose every experiment-harness control as a flag, and the coding-agent integration shells (Claude Code, Codex, Copilot, Devin, OpenClaw) live in the repository rather than the PyPI wheel.
Will it run on my Windows machine, or is it Linux-only?It is a cross-platform Python package with explicit Windows support — the v0.2.0 release specifically adds Windows robustness alongside Linux and macOS.
How does the training loop actually work?Each round the agent rolls out tasks and a separate optimizer model turns the scored trajectories into bounded add, delete or replace edits on the skill document. In the default path an edit is accepted only when it strictly improves a held-out validation score, and a textual learning-rate budget plus a rejected-edit buffer keep training stable.
What is SkillOpt-Sleep?A nightly offline self-evolution engine shipped as the skillopt-sleep CLI. It reviews past sessions of local coding agents like Claude Code, Codex and Copilot, replays recurring tasks and consolidates validated skills behind a held-out validation gate.
How much does it actually improve agents?Across six benchmarks, seven target models and three harnesses it was best or tied-best on all 52 evaluated cells. On GPT-5.5 it lifts average no-skill accuracy by +23.5 points in direct chat, +24.8 in the Codex agentic loop and +19.1 in Claude Code, and trained skills transfer across model scales and harnesses.
Can I plug in my own backend or benchmark?Yes. A backend is a chat or exec target registered through a few Python modules (see docs/guide/new-backend.md), and if a provider speaks the OpenAI Chat Completions protocol the built-in openaicompatible backend may already work. A benchmark is a skillopt/envs package with an adapter, a data loader and a YAML config — searchqa is the simplest reference.
Creator
microsoft
Size
23.9 MB
Stars
19.3K
Age
6mo
Commits · 90 Days