Логотип 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, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

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

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

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем liqiongyu. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Issue Controller у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/liqiongyu/my-agents/tree/main/skills/issue-controller
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇