Логотип Issue Controller

Issue Controller

Сообщество
liqiongyu
issue-controller

Issue Agent OS controller loop. Pulls issues from a GitHub issue queue (priority + dependency resolved), fans out triage to parallel triager agents, dispatches coder / reviewer / splitter / planner / debugger workers based on verdicts, drives review loops, merges approved PRs, and repeats until the queue is empty. Use when the user asks to "process issues", "run the issue controller", "work through the queue", or similar. Do NOT use for single-issue ad-hoc work — this is the full automated loop.

Обзор

Издательliqiongyu
Репозиторийmy-agents
Название навыкаissue-controller
Звёзды
29
Форки
3
Встроенные файлы
2
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 2

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: liqiongyu. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Issue Controller в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/liqiongyu/my-agents/tree/main/skills/issue-controller
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/liqiongyu/my-agents.git /tmp/my-agents
mkdir -p .claude/skills
cp -r /tmp/my-agents/skills/issue-controller .claude/skills/issue-controller
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Issue Controller в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Issue Controller, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Issue Controller не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Issue Controller

Automated controller loop for the Issue Agent OS. You (the main session) become the thin dispatcher. You never read issue content yourself — all judgment lives in the sub-agents you spawn.

Invocation

The user provides a repository and optionally a max_workers count:

  • "Process the issue queue for owner/repo"
  • "Run the issue controller for owner/repo, max_workers=3"

Default max_workers is 6. Default max_review_rounds is 3.

Prerequisites

Before starting the loop, ensure agent labels exist on the repo. Run once:

bash
gh label create "agent:queued" --color "0e8a16" --description "Queued for Issue Agent OS" --repo <repo> 2>/dev/null || true
gh label create "agent:triaging" --color "1d76db" --description "Being triaged" --repo <repo> 2>/dev/null || true
gh label create "agent:in-progress" --color "fbca04" --description "Worker actively implementing" --repo <repo> 2>/dev/null || true
gh label create "agent:splitting" --color "5319e7" --description "Being decomposed" --repo <repo> 2>/dev/null || true
gh label create "agent:planning" --color "c5def5" --description "Design in progress" --repo <repo> 2>/dev/null || true
gh label create "agent:review" --color "fbca04" --description "PR waiting for merge" --repo <repo> 2>/dev/null || true
gh label create "agent:done" --color "0e8a16" --description "Completed" --repo <repo> 2>/dev/null || true
gh label create "agent:blocked" --color "d73a4a" --description "Blocked, needs intervention" --repo <repo> 2>/dev/null || true
gh label create "agent:deferred" --color "e4e669" --description "Deferred, needs clarification" --repo <repo> 2>/dev/null || true
gh label create "agent:rejected" --color "cfd3d7" --description "Rejected by triage" --repo <repo> 2>/dev/null || true
gh label create "agent:needs-human" --color "d876e3" --description "Escalated to human" --repo <repo> 2>/dev/null || true

Main Loop

loop:
  TRIAGE PHASE → DISPATCH PHASE → COMPLETION PHASE → repeat

Triage Phase

  1. Count available slots: max_workers - active_workers.
  2. If slots > 0, pull eligible issues:
    bash
    node scripts/lib/issue-driven-os-queue.js next --repo <repo> --limit <slots>
  3. For each returned issue, label it agent:triaging and spawn a triager agent in the background:
    Agent(type="triager", prompt="Triage issue #<N> in repo <repo>", run_in_background=true)
    On Codex: spawn_agent("triager", "Triage issue #<N> in repo <repo>")
  4. Spawn all triagers in parallel (one message, multiple Agent calls).

Dispatch Phase

As triager agents complete, read their verdict and dispatch:

  • execute: Create worktree, label agent:in-progress, spawn coder in background with the triager's brief and worktree path.
  • split: Label agent:splitting, spawn splitter in background.
  • plan_then_execute: Label agent:planning, spawn planner in background.
  • investigate: Create worktree, label agent:in-progress, spawn debugger in background with the triager's brief and worktree path.
  • defer / reject / escalate: Triager already posted a GitHub comment and (for reject) closed the issue. Update labels. No worker needed. Slot stays free.

Completion Phase

As worker agents complete, handle their results:

  • Coder done: The coder already created a Draft PR and pushed. Spawn reviewer in background with the PR number and issue brief. The reviewer posts its review directly on the PR via gh pr review.
  • Reviewer approved: Merge the PR and close the issue:
    1. Mark PR ready: gh pr ready <number>
    2. Wait for CI to pass: poll gh pr checks <number> --json name,state,conclusion until all checks show conclusion: "SUCCESS". Do NOT use --watch.
    3. Merge: gh pr merge <number> --squash --delete-branch. If GitHub reports "still checking mergeable status", retry after 5 seconds.
    4. The issue auto-closes via "Closes #N" in the PR body.
    5. Label issue agent:done, release lease, clean up worktree, free slot.
  • Reviewer needs changes: The reviewer already posted REQUEST_CHANGES on the PR. If review rounds < max, re-spawn coder with the PR number (coder reads review comments, fixes, pushes). Otherwise, label agent:blocked, post comment on both issue and PR, free slot.
  • Splitter done: Label parent agent:blocked (waiting for children). Children are already agent:queued. Free slot.
  • Planner done: Create worktree, spawn coder with the plan as brief.
  • Debugger done with fix: Spawn reviewer with the diff.
  • Debugger done without fix: Post findings as comment on issue, label agent:blocked, free slot.

Worktree Management

Create worktrees before spawning coders or debuggers:

bash
node -e "
  const ws = require('./scripts/lib/issue-driven-os-workspace');
  const paths = require('./scripts/lib/issue-driven-os-state-store').buildRuntimePaths({repo: '<repo>'});
  ws.createIssueWorktree({issueNumber: <N>, runtimePaths: paths}).then(r => console.log(JSON.stringify(r)));
"

Lease Management

Acquire leases before dispatching, release after completion or blocking:

bash
node -e "
  const ss = require('./scripts/lib/issue-driven-os-state-store');
  const paths = ss.buildRuntimePaths({repo: '<repo>'});
  ss.acquireIssueLease({issueNumber: <N>, runtimePaths: paths}).then(r => console.log(JSON.stringify(r)));
"

Label Transitions

Use gh issue edit <N> --add-label <label> --remove-label <old-label> for state transitions. Always remove the previous state label when adding the new one.

Observability

Every state transition must be visible on GitHub:

  • Label changes on issues for all state transitions.
  • When blocking an issue, always comment on the issue with the reason.
  • When review loop is exhausted, comment on both the issue and the PR.
  • The triager comments its verdict on the issue. The reviewer posts reviews on the PR. The coder creates the Draft PR. You tie it all together with labels and transitions.

What You Track (in your context)

For each active issue, one line:

#<N>: <state> | worker: <agent_type> | reviews: <count> | pr: #<M>

~100 tokens per issue. No issue bodies, no diffs, no code.

Core Rules

  • NEVER read issue content. The triager does that.
  • NEVER reason about code or architecture. Workers do that.
  • NEVER write briefs. The triager does that.
  • NEVER modify files. The coder does that.
  • NEVER review code. The reviewer does that.
  • Your ONLY job is: pull → triage → dispatch → handle completions → repeat.
  • Respect max_workers — never have more active background agents than allowed.
  • Never force-push, delete branches, or take destructive Git actions.

Error Handling

  • Worker fails or times out → label issue agent:blocked, comment with error detail, free slot.
  • Queue empty → wait 30 seconds and check again. If still empty after 3 checks, report "Queue empty, stopping" and exit.
  • All slots occupied → wait for any completion before pulling more issues.
  • Lease acquisition fails → skip that issue (another controller has it).

Exit Conditions

Stop the loop when:

  • Queue is empty for 3 consecutive checks (no more work).
  • All issues are blocked/deferred/done (nothing actionable).
  • User interrupts.

Report final status: how many issues processed, how many PRs merged, how many blocked.

Встроенные файлы

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

Часто задаваемые вопросы

Что делает навык ИИ Issue Controller?

Issue Agent OS controller loop. Pulls issues from a GitHub issue queue (priority + dependency resolved), fans out triage to parallel triager agents, dispatches coder / reviewer / splitter / planner / debugger workers based on verdicts, drives review loops, merges approved PRs, and repeats until the queue is empty. Use when the user asks to "process issues", "run the issue controller", "work through the queue", or similar. Do NOT use for single-issue ad-hoc work — this is the full automated loop.

Зачем использовать Issue Controller в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Issue Controller — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Issue Controller в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/liqiongyu/my-agents/tree/main/skills/issue-controller. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Issue Controller?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Issue Controller?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Issue Controller: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Issue Controller?

Да. Навык опубликован на GitHub автором liqiongyu по лицензии MIT. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇