on-device-delegate — скилл для GitHub Copilot
Скилл on-device-delegate для GitHub Copilot передаёт объёмное чтение файлов локальному агенту. Основная сессия экономит контекст облачной модели при разборе логов или поиске фактов.
MIT ★ 41 430 обновлён 2026-10-23
gh skill install github/awesome-copilot skills/on-device-delegateЧто делает on-device-delegate
Скилл перенаправляет тяжёлые операции чтения локальному агенту local-coding:on-device-worker. Тот запускается на модели MAI Code 1.1 Flash и читает сырые данные сам, поэтому десятки килобайтов текста не попадают в облачный контекст. Основная сессия формулирует чёткий бриф с ограничением до 8 вызовов инструментов и ожидает один синхронный ответ.
Основной агент делает максимум одну быструю проверку результата: формат или выборочный поиск. Повторный пересчёт или полное перечитывание запрещены. Если локальная модель вернула сбой или ошибку, облачная сессия выполняет чтение самостоятельно. Проверку безопасности и архитектурные решения скилл делегировать запрещает.
Для работы требуются Windows, GitHub Copilot CLI с включёнными экспериментальными функциями, плагин local-coding и установленная модель MAI Code 1.1 Flash. Выполнение делегированной задачи занимает минуты, пока модель загружается в память.
Какие задачи решает
- сохранить контекст облачной модели при чтении более 25 КБ текста
- составить сводку по набору разрозненных файлов
- подсчитать частоту повторяющихся ошибок в логах без чтения всего каталога
- собрать факты из объёмных отчётов тестов через локальную модель
Примеры запросов агенту
- Используй on-device-delegate, чтобы посчитать ошибки в папке logs/
- С помощью on-device-delegate найди упавшие тесты в test-results/ и выведи список причин
- Примени on-device-delegate для выжимки ключевых параметров из каталога docs/config/
Как установить on-device-delegate
1GitHub CLI
gh skill install github/awesome-copilot skills/on-device-delegate2Вручную: положить файлы
.github/skills/on-device-delegate/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill on-device-delegate -a claude-code2Вручную: положить файлы
~/.claude/skills/on-device-delegate/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/on-device-delegate/
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill on-device-delegate -a codex2Вручную: положить файлы
.agents/skills/on-device-delegate/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill on-device-delegate -a cursor2Вручную: положить файлы
.cursor/skills/on-device-delegate/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill on-device-delegate -a gemini-cli2Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/on-device-delegateВручную: положить файлы
.devin/skills/on-device-delegate/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об on-device-delegate
Как установить on-device-delegate в GitHub Copilot?
Выполните команду gh skill install github/awesome-copilot skills/on-device-delegate. Файл скилла будет размещён по пути .github/skills/on-device-delegate/SKILL.md.
Что делает on-device-delegate?
Передаёт чтение громоздких файлов локальному воркеру на модели MAI Code 1.1 Flash. Это оставляет контекстное окно облачной сессии свободным для планирования.
Что нужно для работы on-device-delegate?
Нужна Windows, GitHub Copilot CLI с флагом экспериментальных функций, плагин local-coding и загруженная модель MAI Code 1.1 Flash.
Исходный текст
SKILL.md · MIT
---
name: on-device-delegate
description: 'Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin''s on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.'
compatibility: 'GitHub Copilot CLI on Windows with experimental features on, MAI Code 1.1 Flash installed from /model, and the local-coding plugin installed (it provides the on-device worker agent).'
---
# On-Device Delegate
Send the bulky reading in a task to the on-device worker, then check its answer
once. The main session keeps planning and answering. The worker reads the big
inputs on the local model, so they never enter the main context.
## Steps
1. **Gate on what you would read.** If one command or a short script can
compute the answer, do it yourself now: no plan, no notes about this
skill. Delegate only when you would otherwise READ more than about 25 KB
of text into your context (prose, many files). Never delegate security
review or design decisions.
2. **Check the worker.** The worker is the custom agent
`local-coding:on-device-worker` (the plugin id). If the task tool lists it
as plain `on-device-worker` instead (copied into an agents folder), use
that. If neither is available, work normally.
3. **Brief.** Do not read the big input first. Make ONE task call:
- `name`: "on-device-<short-kebab>"
- `description`: 3-5 words
- `agent_type`: the worker id from step 2
- `mode`: "sync"
- `model`: the on-device model id named in the session's routing line,
exactly (if there is none:
"winml-azureml-mai-code-1.1-flash-on-device/MAI-Code-1.1-Flash-On-Device").
The worker does not pin a model, so without this it runs on your own
model.
- `prompt`, exactly:
```text
GOAL: <one sentence>
INPUTS: <exact paths>
RULES: Read only INPUTS. At most 8 tool calls. Edit nothing but OUTPUT. No questions.
OUTPUT: <file path and exact format, or: reply only>
ANSWER: Reply ONCE with only <exact format>, then stop.
If you cannot, reply only: UNABLE: <reason>
```
4. **Check once.** At most ONE cheap check (format, a count, or one spot
check). Never recompute the answer or re-read the input. If the answer is
wrong, UNABLE, or the task call fails: do it yourself. Then finish.
## Example
User: "Use the on-device-delegate skill. From the logs under `logs\`, list
every distinct error message with its count, most frequent first."
Task prompt:
```text
GOAL: Count each distinct error message in the logs.
INPUTS: logs\
RULES: Read only INPUTS. At most 8 tool calls. Edit nothing but OUTPUT. No questions.
OUTPUT: reply only
ANSWER: Reply ONCE with only lines of the form "<count> <message>", most frequent first, then stop.
If you cannot, reply only: UNABLE: <reason>
```
Check: confirm the lines match the format and spot-check one count with a
single search. Then answer the user.
## Limits
- The worker can return a confident but wrong answer. The single check
catches format errors, not every wrong fact. Tell the user what you checked.
- Expect minutes, not seconds, per delegated task, especially on the first
call while the local model loads.
## Setup scripts
[`scripts/`](scripts/) holds two setup scripts for the user, described in the
local-coding plugin README. They are not part of a task: never run them while
you work on the user's request.
- [`scripts/Set-LocalOutputCap.ps1`](scripts/Set-LocalOutputCap.ps1) caps the
local model's output tokens in the user's `providers.json`.
- [`scripts/Update-LocalCodingPlugin.ps1`](scripts/Update-LocalCodingPlugin.ps1)
installs or updates the plugin, then runs the cap script.
© github · MIT · github/awesome-copilot