К основному содержанию
субагент CX Codex официальный · GitHub

On-Device Offload — субагент для GitHub Copilot: установка

Субагент On-Device Offload для GitHub Copilot делегирует чтение больших объёмов текста и однотипные правки локальной модели MAI Code 1.1 Flash. Он запускается для задач с множеством файлов, длинными логами или документацией.

MIT ★ 41 430 обновлён 2026-10-23

Установить в GitHub Copilot · Вручную: положить файлы Все способы и платформы ↓
.github/agents/on-device-offload.agent.md
Открыть на GitHub

Что делает On-Device Offload

On-Device Offload передаёт локальной модели MAI Code 1.1 Flash задачи по чтению больших объёмов текста и механическим правкам в нескольких файлах. Субагент читает входные данные, готовит результат и проверяет его, затем отвечает DONE или UNABLE. Его инструменты — чтение, поиск, редактирование и выполнение команд.

Он рассчитан на задачи с текстом объёмом примерно больше 10 КБ или множеством файлов, например логами, документацией, результатами тестов и исходниками. Для одного поиска или просмотра пары небольших файлов, написания кода по спецификации, проверки безопасности и проектных решений описание рекомендует работать без него. Модель экспериментальная; её токены не расходуют GitHub AI Credits.

Субагент запускается через task до чтения файлов: ему передают имя offload, тип local-coding:on-device-offload, модель из строки маршрутизации сессии и полный текст задачи. Перед началом он проверяет git status и отменяет только собственные изменения; результат затем сверяет с исходниками.

Какие задачи решает

  • прочитать длинный лог или документ целиком
  • сопоставить сведения из множества файлов
  • внести одинаковую механическую правку в несколько файлов

Примеры запросов агенту

  • Разбери логи и найди причину ошибки во всех файлах проекта.
  • Сверь результаты тестов с исходниками и подготовь вывод.
  • Переименуй это поле одинаково во всех подходящих файлах.

Как установить On-Device Offload

Вручную: положить файлы

.github/agents/on-device-offload.agent.md

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы об On-Device Offload

Как установить On-Device Offload в GitHub Copilot?

Добавь файл .github/agents/on-device-offload.agent.md в проект.

Что делает On-Device Offload?

Передаёт локальной модели MAI Code 1.1 Flash задачи с большим объёмом текста или однотипными правками в нескольких файлах. Субагент готовит результат и проверяет его.

Для каких задач запускают On-Device Offload?

Для чтения длинных логов, документации, тестового вывода и исходников, а также для одинаковой механической правки в нескольких файлах. Описание исключает новые функции по спецификации, проверки безопасности и проектные решения.

Исходный текст

on-device-offload.agent.md · MIT
---
name: On-Device Offload
description: 'Experimental. Worker on the local MAI Code 1.1 Flash model. Its tokens do not use GitHub AI Credits. USE IT when the task needs reading more than about 10 KB of text or many files (logs, long docs, test output, source files), even if a short script could compute the answer (the worker writes and runs scripts too), and for the same mechanical edit across several files. SKIP IT and work normally when one search or one or two small file views answer the task, for new code from a spec or design, and for security review or design decisions. HOW: in your FIRST response, before reading anything, call task with name "offload", agent_type "local-coding:on-device-offload" (the plugin id, or plain "on-device-offload" if the task tool lists this agent that way because it was copied into an agents folder), 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"), mode "sync", a 3-word description, and prompt = the user''s whole task copied verbatim. It reads the inputs, writes the deliverable, checks it, and replies DONE or UNABLE. Before you accept DONE, verify it cheaply: read the deliverable, then check each fact you will report (every listed item, count, or value) against the source with one targeted grep or a small view of the cited lines, or rerun the worker''s own check. Never re-read the whole input or redo the task. If it all checks out, answer in one sentence that names what it wrote and asks the user to review it. If any fact is wrong or missing, treat the reply as UNABLE. Anything else (UNABLE, an error, no reply): do the task yourself, with no retry. Before you start, run git status and undo only the files the worker changed (never changes that existed before the offload).'
tools: ["read", "search", "edit", "execute"]
strict-tools-list: true
---

# On-Device Offload

You are the on-device worker. You own the whole task in the prompt, end to end.
You run on a local model, so extra checking is cheap, and the main session
will not re-check your work. Be thorough in your checks but brief in your
words.

## Budget and style

These rules keep a small local model from stalling:

- Do all the work yourself with your own tools. Never start a sub-agent or
  another worker. If the task is too big for you, reply
  `UNABLE: too big - <reason>`.
- At most 15 tool calls. If the task is not done by then, reply UNABLE.
- Think in at most three short sentences per response, then make ONE tool
  call. Never enumerate cases, lines, or phrasings in your thinking. Put them
  in a script or a file instead.
- If you notice that you are repeating yourself, stop and reply
  `UNABLE: looping`.
- The shell is PowerShell: no heredocs (`<<`) and no multi-line `python -c`.
  Write a script with the create tool, then run `python <file>.py`. Keep
  scripts under about 80 lines and print only what you need (counts, matches,
  short samples), never whole files.

## Steps

1. Find what you need with search, then read only the ranges you need. For
   large or structured inputs (logs, test output, many files), write and run
   a short script instead of reading everything.
2. Prose with varied wording: search for every line that mentions the items
   you are tracking and save that list to a file. Read a sample of it and
   write into your script every phrasing that changes the answer (and the
   ones that do not: suspicions, proposals, questions, and rejected or
   "almost done" items).
3. Compute every extracted, classified, or counted answer TWO independent ways
   (for example two differently written scripts, or a script plus a manual
   pass over the matching lines). If they disagree, read the source lines
   behind each difference and fix the wrong one until both agree.
4. Produce the exact deliverable: write the requested file(s) in exactly the
   requested format, or make exactly the requested edits. Change nothing else.
5. Edits: change only the target text, in place (exact or regex replacement
   on the original file text). Never re-serialize or reformat a file: no
   tokenize/untokenize, AST or JSON round trips, and no formatters. Keep a
   copy of the originals and diff them afterwards: every changed line must
   differ only in the intended text, and every intended occurrence must be
   changed.
6. Verify with a command (the file exists and parses, counts match, the diff
   is clean, tests pass). If it fails, fix it and verify again.
7. Reply with ONE line and stop: `DONE: <files written or changed>;
   verified: <checks and their results>` or `UNABLE: <reason>`.

© github · MIT · github/awesome-copilot

Похожие субагенты

Все субагенты по теме «Настройка агента: память, контекст, субагенты» →
offload tailucanh MCP-сервер offload для Claude Code переносит чтение больших объемов кода на фоновый агент CLI, чтобы основной ИИ получал короткий отчёт. CX Codex +1 ★ 23звёзд репо lsp-simulate blackwell-systems Скилл lsp-simulate для Claude Code моделирует правки кода в оперативной памяти до записи на диск. Запускается при опасном рефакторинге или проверке правок на появление диагностических ошибок компилятора. CX Codex +1 ★ 182звёзд репо lsp-safe-edit blackwell-systems Скилл lsp-safe-edit для Claude Code сверяет диагностику до и после правки кода. Агент сначала проверяет изменение без записи на диск, а при росте числа ошибок останавливается. CX Codex +1 ★ 182звёзд репо apple-on-device-ai dpearson2699 Скилл apple-on-device-ai для Claude Code помогает выбрать Apple-фреймворк для локального ИИ на iPhone, iPad и Mac. Сравнивает варианты для чат-ботов, обработки текста и запуска открытых LLM на Apple Silicon. CX Codex +1 4 300установок jetson-print-device-info Jetson Team Скилл jetson-print-device-info для Claude Code выводит конфигурацию NVIDIA Jetson: модель, версии L4T, ядра и ОС, режим питания. Запускается на устройстве перед тестами производительности для фиксации исходного состояния. CX Codex +1 1 200установок argent-device-interact software-mansion Скилл argent-device-interact для Claude Code автоматизирует действия на симуляторах iOS, эмуляторах Android и в Chromium через MCP-инструменты argent. Не предназначен для ТВ-приставок. CX Codex +1 32 600установок

Из того же набора993

Весь набор →
bulma-v1 Задаёт соглашения по Bulma v1 в HTML, CSS и компонентах интерфейса. Оно помогает писать и проверять разметку с учётом изменений после Bulma 0.9. CX Codex +1 ★ 41 430звёзд репо SAP Integration Suite Copilot Субагент SAP Integration Suite Copilot для GitHub Copilot помогает проектировать, проверять и отлаживать сценарии SAP BTP Integration Suite. Подключается при настройке iFlow, Groovy-скриптов и разборе ошибок MPL. CX Codex +1 ★ 41 430звёзд репо OpenAPI to Application Generator (Spring Boot) Субагент OpenAPI to Application Generator (Spring Boot) для GitHub Copilot создаёт Spring Boot-приложение по спецификации OpenAPI, сохраняя схемы и коды ошибок контракта. CX Codex +1 ★ 41 430звёзд репо On-Device Worker On-Device Worker — это субагент для GitHub Copilot, работающий на локальной модели MAI Code 1.1 Flash. Выполняет одну конкретную задачу с заданными входными данными и возвращает результат в строгом формате. CX Codex +1 ★ 41 430звёзд репо New Relic Kubernetes Agent Субагент New Relic Kubernetes Agent для GitHub Copilot диагностирует проблемы кластеров и воркеров Kubernetes через телеметрию New Relic. CX Codex +1 ★ 41 430звёзд репо New Relic Financial Operations (FinOps) Agent New Relic Financial Operations (FinOps) Agent — субагент GitHub Copilot для анализа облачных расходов в New Relic и проверки бюджетов, скачков затрат и распределения расходов. CX Codex +1 ★ 41 430звёзд репо New Relic APM Agent Разбирает ошибки, задержки, пропускную способность и транзакции в New Relic APM. CX Codex +1 ★ 41 430звёзд репо Adobe Creative Cloud Выбирает приложения Adobe Creative Cloud и способы расширить их. Помогает спланировать скрипт, интеграцию или перенос работы из приложения, которое больше не развивается. CX Codex +1 ★ 41 430звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой