@goodandready/dsh-agent-orchestrator 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +20 -173
  2. package/README.ru.md +19 -172
  3. package/README.zh.md +18 -172
  4. package/package.json +4 -3
package/README.md CHANGED
@@ -1,184 +1,31 @@
1
- # 📦 @goodandready/dsh-agent-orchestrator
1
+ # dsh-agent-orchestrator — deprecated
2
2
 
3
- <div align="center">
4
-
5
- <h3>Multi-Agent Task Decomposition, DAG Workflow Orchestration & Prompt Caching Engine for DeepSeek Harness</h3>
6
-
7
- <p align="center">
8
- <a href="https://www.npmjs.com/package/@goodandready/dsh-agent-orchestrator"><img src="https://img.shields.io/npm/v/@goodandready/dsh-agent-orchestrator.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
9
- <a href="LICENSE"><img src="https://img.shields.io/github/license/GooDAnDReaDY/dsh-agent-orchestrator.svg?style=for-the-badge&color=10b981&labelColor=064e3b" alt="license"></a>
10
- <a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/DSH-Plugin-8b5cf6.svg?style=for-the-badge&labelColor=2e1065" alt="DSH Plugin"></a>
11
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-20%2B-f59e0b.svg?style=for-the-badge&labelColor=451a03" alt="Node version"></a>
12
- </p>
13
-
14
- <p align="center">
15
- <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/All_Author_Projects-goodandready.app-ff4500.svg?style=for-the-badge&logo=rocket&logoColor=white&labelColor=1a1a2e" alt="All Author Projects"></a>
16
- </p>
17
-
18
- <p align="center">
19
- <a href="README.md"><b>🇬🇧 English</b></a> •
20
- <a href="README.ru.md"><b>🇷🇺 Русский</b></a> •
21
- <a href="README.zh.md"><b>🇨🇳 中文说明</b></a>
22
- </p>
23
-
24
- <table align="center">
25
- <tr>
26
- <td align="center">
27
- ⭐ <strong>If you like this plugin, please star it on GitHub</strong> — it shows me that the plugin is useful to you and motivates me to keep developing it.
28
- <br><br>
29
- 🐛 <strong>If you find a bug or would like to request a feature</strong>, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.
30
- </td>
31
- </tr>
32
- </table>
33
-
34
- </div>
35
-
36
- ---
37
-
38
- ## ⚡ Overview & The Problem
39
-
40
- Single-agent software engineering architectures suffer from cognitive overload when tasked with complex multi-stage projects: monolithic prompts conflate architecture, styling, core business logic, testing, and documentation into a single generation pass, leading to hallucinated contracts, regression bugs, and excessive token expenditure.
41
-
42
- Furthermore, executing multiple subagents independently often resets the LLM KV-cache on each turn, forfeiting prefix cache reuse and incurring substantial latency and financial overhead.
43
-
44
- **`@goodandready/dsh-agent-orchestrator`** introduces an autonomous multi-agent orchestration framework to DeepSeek Harness:
45
-
46
- 1. **Intelligent Triage & Decomposition**: Analyzes high-level objectives from chat or Kanban cards and breaks them down into fine-grained stages across **12 specialized agent roles**.
47
- 2. **DAG Execution Engine**: Schedules tasks based on Directed Acyclic Graph dependencies, running independent stages concurrently while strictly enforcing blocker gates.
48
- 3. **KV-Cache / Prompt Caching Optimizer**: Guarantees byte-level prefix invariance for subagents sharing identical models, unlocking 80–90% prompt token cache hits and near-instant TTFT.
49
- 4. **Strict Separation of Duties**: Backend implementation, UI interface design, and frontend client assembly are strictly isolated into distinct personas and execution stages.
50
- 5. **Dual Surface Integration**: Dispatched natively via `/orchestrate` in DSH chat (with a sticky header milestone card) or via `@goodandready/dsh-kanban` task boards.
51
-
52
- ---
53
-
54
- ## 🏗️ Architecture
55
-
56
- ```mermaid
57
- graph TD
58
- Trigger["Input Task<br/>(/orchestrate in Chat or Kanban Card)"] --> Main["Lead Orchestrator (Triage)"]
59
-
60
- subgraph Engine ["DAG Engine & Prompt Caching"]
61
- L1["Layer 1: Canonical Base Anchor (>1024 tokens)"]
62
- L2["Layer 2: Shared Task Anchor"]
63
- L3["Layer 3: Cumulative Artifacts (Append-Only)"]
64
- L4["Layer 4: Role Suffix Directive"]
65
- end
66
-
67
- Main --> Engine
68
-
69
- subgraph AgentPool ["Configured Agent Personas (Self-Contained in Settings)"]
70
- R1["Technical Spec Analyst"]
71
- R2["System Architect"]
72
- R3["UI/UX Interface Designer"]
73
- R4["Backend Developer"]
74
- R5["Frontend Developer"]
75
- R6["QA Automation Specialist"]
76
- R7["Documentation Specialist"]
77
- end
78
-
79
- Engine --> AgentPool
80
- AgentPool --> Delivery["Orchestrated Delivery<br/>(Header Utility Card & Kanban Sync)"]
81
- ```
82
-
83
- ---
84
-
85
- ## 👥 12 Built-In Specialized Agent Roles
86
-
87
- All agent profiles are **completely self-contained within plugin settings** (no external file dependencies):
88
-
89
- | Role ID | Title | Specialization | Strict Boundaries |
90
- |---|---|---|---|
91
- | `spec` | Technical Spec Analyst | Requirements, Acceptance Criteria (DoD), Schemas | Never writes implementation or styling |
92
- | `architecture` | System Architect | System Design, DESIGN.md, ADR, Modular Contracts | Never implements production code or deploys |
93
- | `ui_design` | UI/UX Interface Designer | Layouts, Theme Tokens (`--dsw-alias-*`), Slots | Never writes backend Cordis services |
94
- | `frontend` | Frontend Developer | React Components, Client Hooks, DOM Events | Never alters backend routes or DB schemas |
95
- | `backend` | Backend Developer | Cordis Services, WebServer Routes, Data Store | Never writes client React JSX or styles |
96
- | `fullstack` | Fullstack Integrator | Client-Server Contract Wiring, End-to-End Flow | Adheres strictly to modular limits |
97
- | `qa_tests` | QA Automation Specialist | Unit Tests (`node:test`), Boundary Verification | Verifies without external network calls |
98
- | `bugfix` | Hotfix & Triage Engineer | Root-Cause Diagnosis, Minimal Blast Radius Fixes | Never refactors unrelated code |
99
- | `docs` | Documentation Specialist | Trilingual Documentation (en/ru/zh), Releases | Never overwrites previous documentation |
100
- | `refactoring` | Refactoring Specialist | Complexity Reduction (YAGNI), Bundle Compression | Preserves backwards compatibility |
101
- | `research` | Research & Spike Engineer | Technology Evaluation, Library Trade-Offs | Delivers analysis; never merges spike code |
102
- | `devops` | DevOps & Tooling Engineer | Package Manifests, Build Verification, Systemd | Never exposes private network credentials |
103
-
104
- ---
105
-
106
- ## 🔄 Complexity Scenarios
107
-
108
- 1. **Hotfix / Trivial (1 Stage)**: Instant defect elimination or single-parameter tweak.
109
- 2. **Simple (2 Stages)**: Discussion & Spec $\rightarrow$ Targeted Execution.
110
- 3. **Medium (3–4 Stages)**: Spec $\rightarrow$ UI Design $\rightarrow$ Frontend Code $\rightarrow$ QA Tests.
111
- 4. **Complex (5–6 Stages)**: Spec $\rightarrow$ Architecture $\rightarrow$ UI Design $\rightarrow$ Implementation $\rightarrow$ QA $\rightarrow$ Trilingual Docs.
112
- 5. **Enterprise / Deep R&D (7 Stages)**: Spike Research $\rightarrow$ Spec $\rightarrow$ Architecture $\rightarrow$ Parallel Backend & UI Design $\rightarrow$ Frontend Assembly $\rightarrow$ Comprehensive QA $\rightarrow$ Documentation Gate.
113
- 6. **Custom DAG Scenarios**: Fully configurable in plugin settings with custom stages and blocker checkboxes.
114
-
115
- ---
116
-
117
- ## ⚡ Prompt Caching Mechanics
118
-
119
- Modern LLMs (DeepSeek-V3, Claude 3.5 Sonnet, vLLM) cache prompt KV states strictly from the first token forward. If non-deterministic timestamps or random IDs are placed in the prompt header, cache hit rate drops to 0%.
120
-
121
- `dsh-agent-orchestrator` enforces a **4-layer canonical layout**:
122
- 1. **Layer 1: Static Base Anchor (>1024 tokens)**: Byte-identical guidelines and tools definition common across all agents.
123
- 2. **Layer 2: Shared Task Anchor**: Stable description of user objective and target repository.
124
- 3. **Layer 3: Cumulative Context (Append-Only)**: Outputs of predecessor stages appended in a deterministic sequence, preserving 100% of the preceding KV-cache.
125
- 4. **Layer 4: Role Directive (Suffix)**: Role persona prompt, skills, and subtask-specific scope appended at the end.
126
-
127
- This architecture delivers **80–95% cache hits** across subagents utilizing the same model, reducing TTFT and cutting token costs by ~90%.
128
-
129
- ---
130
-
131
- ## 💻 Usage
132
-
133
- ### 1. In DSH Chat via Slash Command
134
- ```text
135
- /orchestrate Design and build a settings card for the finance plugin
136
- ```
137
-
138
- Explicit scenario selection:
139
- ```text
140
- /orchestrate complex Build a multi-tenant authentication provider
141
- /orchestrate hotfix Fix null reference in store.js
142
- ```
143
-
144
- Short alias:
145
- ```text
146
- /orc Refactor state management
147
- ```
148
-
149
- ### 2. In @goodandready/dsh-kanban
150
- - Open any card on the board.
151
- - Click **[Собрать пайплайн / Assemble Pipeline]**.
152
- - Select the complexity preset or allow auto-triage.
153
- - The card automatically reflects stage transitions and advances to `Review` upon completion.
154
-
155
- ---
156
-
157
- ## 🧪 Verification & Automated Testing
158
-
159
- Execute the native test suite (121 passing tests across 53 suites, zero network dependencies):
160
-
161
- ```bash
162
- node --test test/*.test.mjs
163
- ```
164
-
165
- Verify npm package bundle size compliance (<256 KiB threshold):
3
+ > **This plugin is no longer maintained.** Multi-agent orchestration is built into
4
+ > DeepSeek Harness since **0.1.5**. Remove the plugin and use the built-in tools below.
166
5
 
167
6
  ```bash
168
- npm pack --dry-run --json
7
+ dsh plugin --profile web remove @goodandready/dsh-agent-orchestrator
169
8
  ```
170
9
 
171
- ---
172
-
173
- ## Visual verification
10
+ ## What to use instead
174
11
 
175
- Production acceptance of v0.1.6 — Settings card, Dark and Light themes side by side:
12
+ | The plugin gave you | Built into DeepSeek Harness |
13
+ |---|---|
14
+ | Task decomposition, DAG pipelines, worker pool | the `workflow` tool — a JavaScript orchestration script that runs subagents in the sandbox, with run progress shown in the conversation |
15
+ | Specialized roles (spec, backend, QA, docs…) | the `subagent` tool with `agentPreset` — any agent preset, including your own |
16
+ | "Keep going until it is done" loops | the `ralph` tool — a loop of fresh agents over the workflow and subagent seams |
17
+ | Agent teams, shared task board, agent mailbox | Agent Teams (experimental, DeepSeek Harness 0.1.7) |
18
+ | `/orchestrate`, `/orc`, `agent_run` | ask the agent to use `workflow` or `subagent` |
176
19
 
177
- ![dsh-agent-orchestrator v0.1.6 visual verification](media/visual-verification.png)
20
+ ## Data
178
21
 
179
- ---
22
+ The plugin kept its state in `~/.dsh/orchestrator-pipelines.json` and
23
+ `~/.dsh/orchestrator-snapshots/`. After removing the plugin these files are no longer read
24
+ and can be deleted.
180
25
 
181
- ## 📄 License
26
+ ## History
182
27
 
183
- MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
28
+ The last functional release is **0.1.12**. Version **0.1.13** only carries this notice;
29
+ the code is unchanged. See [CHANGELOG.md](CHANGELOG.md).
184
30
 
31
+ License: MIT.
package/README.ru.md CHANGED
@@ -1,183 +1,30 @@
1
- # 📦 @goodandready/dsh-agent-orchestrator
1
+ # dsh-agent-orchestrator — плагин устарел
2
2
 
3
- <div align="center">
4
-
5
- <h3>Мульти-агентная декомпозиция задач, DAG-оркестрация и оптимизатор Prompt Caching для DeepSeek Harness</h3>
6
-
7
- <p align="center">
8
- <a href="https://www.npmjs.com/package/@goodandready/dsh-agent-orchestrator"><img src="https://img.shields.io/npm/v/@goodandready/dsh-agent-orchestrator.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
9
- <a href="LICENSE"><img src="https://img.shields.io/github/license/GooDAnDReaDY/dsh-agent-orchestrator.svg?style=for-the-badge&color=10b981&labelColor=064e3b" alt="license"></a>
10
- <a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/DSH-Plugin-8b5cf6.svg?style=for-the-badge&labelColor=2e1065" alt="DSH Plugin"></a>
11
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-20%2B-f59e0b.svg?style=for-the-badge&labelColor=451a03" alt="Node version"></a>
12
- </p>
13
-
14
- <p align="center">
15
- <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/Все_проекты_автора-goodandready.app-ff4500.svg?style=for-the-badge&logo=rocket&logoColor=white&labelColor=1a1a2e" alt="Все проекты автора"></a>
16
- </p>
17
-
18
- <p align="center">
19
- <a href="README.md"><b>🇬🇧 English</b></a> •
20
- <a href="README.ru.md"><b>🇷🇺 Русский</b></a> •
21
- <a href="README.zh.md"><b>🇨🇳 中文说明</b></a>
22
- </p>
23
-
24
- <table align="center">
25
- <tr>
26
- <td align="center">
27
- ⭐ <strong>Если вам понравился этот плагин, поставьте звезду на GitHub</strong> — это показывает востребованность разработки и мотивирует развивать проект дальше.
28
- <br><br>
29
- 🐛 <strong>Если вы нашли ошибку или хотите предложить улучшение</strong>, откройте issue на GitHub на любом удобном языке — предложения рассматриваются для будущих версий.
30
- </td>
31
- </tr>
32
- </table>
33
-
34
- </div>
35
-
36
- ---
37
-
38
- ## ⚡ Обзор и решаемая проблема
39
-
40
- При выполнении комплексных многоэтапных проектов один агент неизбежно сталкивается с перегрузкой контекста: в один монолитный запрос смешиваются архитектура, дизайн, верстка, бэкенд, тестирование и написание документации. Это приводит к галлюцинациям, нарушению контрактов и неоправданным затратам токенов.
41
-
42
- Кроме того, запуск независимых субагентов обычно сбрасывает KV-кэш языковой модели на каждом шаге, теряя преимущества префиксного кэширования (Prompt Caching) и приводя к долгим задержкам ответа.
43
-
44
- **`@goodandready/dsh-agent-orchestrator`** внедряет автономную мульти-агентную оркестрацию в DeepSeek Harness:
45
-
46
- 1. **Триаж и декомпозиция**: Анализирует задачу из чата или карточки Канбана и разбивает её на этапы между **12 специализированными ролями агентов**.
47
- 2. **Графовый DAG-движок**: Планирует задачи на основе направленного ациклического графа, исполняя независимые ветки параллельно и контролируя блокеры.
48
- 3. **Оптимизатор Prompt Caching (KV-кэш)**: Гарантирует побайтовое совпадение префикса для агентов с одинаковыми моделями, обеспечивая 80–90% Cache Hit и моментальный старт генерации.
49
- 4. **Строгое разделение труда**: Бэкенд, UI-дизайн и клиентский фронтенд строго изолированы по разным ролям и этапам.
50
- 5. **Два режима работы**: Через команду `/orchestrate` в чате DSH (с плавающей карточкой прогресса в шапке) или через доску задач `@goodandready/dsh-kanban`.
51
-
52
- ---
53
-
54
- ## 🏗️ Архитектура
55
-
56
- ```mermaid
57
- graph TD
58
- Trigger["Входная задача<br/>(/orchestrate в чате или карточка Канбана)"] --> Main["Главный оркестратор (Триаж)"]
59
-
60
- subgraph Engine ["Движок DAG и Prompt Caching"]
61
- L1["Уровень 1: Канонический базовый якорь (>1024 токенов)"]
62
- L2["Уровень 2: Общий якорь задачи"]
63
- L3["Уровень 3: Накопленные артефакты (Append-Only)"]
64
- L4["Уровень 4: Суффиксная директива роли"]
65
- end
66
-
67
- Main --> Engine
68
-
69
- subgraph AgentPool ["Настроенные персоны агентов (Автономно в настройках)"]
70
- R1["ТЗ-аналитик"]
71
- R2["Системный архитектор"]
72
- R3["UI/UX Дизайнер"]
73
- R4["Бэкенд-разработчик"]
74
- R5["Фронтенд-разработчик"]
75
- R6["QA Automation инженер"]
76
- R7["Технический писатель"]
77
- end
78
-
79
- Engine --> AgentPool
80
- AgentPool --> Delivery["Поставка результата<br/>(Карточка в шапке и синхронизация с Канбаном)"]
81
- ```
82
-
83
- ---
84
-
85
- ## 👥 12 встроенных специализированных ролей агентов
86
-
87
- Все профили агентов **хранятся и настраиваются исключительно внутри настроек плагина** (без внешних файлов):
88
-
89
- | Код роли | Название | Специализация | Жёсткие границы |
90
- |---|---|---|---|
91
- | `spec` | ТЗ-аналитик | Требования, критерии приёмки (DoD), структуры данных | Не пишет код реализации и стили |
92
- | `architecture` | Системный архитектор | Системный дизайн, DESIGN.md, ADR, модульные контракты | Не реализует прод-код и не деплоит |
93
- | `ui_design` | UI/UX Дизайнер | Макеты, токены темы (`--dsw-alias-*`), слоты | Не пишет серверные сервисы Cordis |
94
- | `frontend` | Фронтенд-разработчик | React-компоненты, хуки клиента, DOM-события | Не меняет бэкенд-роуты и схемы БД |
95
- | `backend` | Бэкенд-разработчик | Сервисы Cordis, WebServer-роуты, хранилище | Не пишет клиентский React JSX и CSS |
96
- | `fullstack` | Фуллстек-интегратор | Связка клиент-серверного контракта, сквозной поток | Строго следует границам модулей |
97
- | `qa_tests` | QA Automation инженер | Модульные тесты (`node:test`), проверка границ | Тестирует без внешних сетевых вызовов |
98
- | `bugfix` | Hotfix-инженер | Поиск первопричины, минимальный точечный фикс | Не рефакторит несвязанный код |
99
- | `docs` | Технический писатель | Трёхъязычная документация (en/ru/zh), релизы | Не перезаписывает прежнюю документацию |
100
- | `refactoring` | Рефакторинг-специалист | Устранение оверинжиниринга (YAGNI), сжатие бандла | Сохраняет обратную совместимость |
101
- | `research` | Исследователь (Spike) | Сравнение библиотек, архитектурные пробы | Готовит отчёт, не мержит спайк-код |
102
- | `devops` | DevOps-инженер | Манифесты пакетов, валидация сборки, systemd | Не раскрывает приватные учетные данные |
103
-
104
- ---
105
-
106
- ## 🔄 Сценарии сложности
107
-
108
- 1. **Hotfix / Минорный (1 этап)**: Точечное устранение дефекта или правка одного параметра.
109
- 2. **Простой (2 этапа)**: Обсуждение и ТЗ $
110
- 3. **Средний (3–4 этапа)**: ТЗ $
111
- 4. **Комплексный (5–6 этапов)**: ТЗ $
112
- 5. **Корпоративный / Enterprise (7 этапов)**: Исследовательский спайк $
113
- 6. **Пользовательские DAG-сценарии**: Полностью настраиваются в параметрах плагина с произвольными этапами и чекбоксами блокировок.
114
-
115
- ---
116
-
117
- ## ⚡ Механика Prompt Caching
118
-
119
- Современные LLM кэшируют KV-состояния строго от первого токена вперёд. Случайные временные метки или ID в шапке промпта сбрасывают Cache Hit до 0%.
120
-
121
- `dsh-agent-orchestrator` обеспечивает **4-слойную каноническую структуру**:
122
- 1. **Уровень 1: Статический базовый якорь (>1024 токенов)**: Побайтово идентичные правила и инструменты, общие для всех агентов.
123
- 2. **Уровень 2: Общий якорь задачи**: Стабильное описание цели пользователя и целевого репозитория.
124
- 3. **Уровень 3: Накопленный контекст (Append-Only)**: Результаты предыдущих этапов дописываются строго в конец, сохраняя 100% предыдущего KV-кэша.
125
- 4. **Уровень 4: Директива роли (Суффикс)**: Промпт роли, специализированные инструкции и локальный скоуп этапа.
126
-
127
- Такая архитектура даёт **80–95% попаданий в кэш** между субагентами на одной модели, снижая TTFT и сокращая затраты на токены на ~90%.
128
-
129
- ---
130
-
131
- ## 💻 Использование
132
-
133
- ### 1. В чате DSH через слэш-команду
134
- ```text
135
- /orchestrate Спроектируй и разработай карточку настроек для плагина финансов
136
- ```
137
-
138
- Явный выбор сценария сложности:
139
- ```text
140
- /orchestrate complex Разработай провайдер мультитенантной аутентификации
141
- /orchestrate hotfix Исправь обращение к null в store.js
142
- ```
143
-
144
- Короткий алиас:
145
- ```text
146
- /orc Рефакторинг управления состоянием
147
- ```
148
-
149
- ### 2. В @goodandready/dsh-kanban
150
- - Открой любую карточку задачи на доске.
151
- - Нажми **[Собрать пайплайн]**.
152
- - Выбери пресет сложности или оставь авто-триаж.
153
- - Карточка отображает переходы между этапами и автоматически переводится в `Review` по готовности.
154
-
155
- ---
156
-
157
- ## 🧪 Верификация и тестирование
158
-
159
- Запуск нативного набора тестов (121 тест без внешних сетевых зависимостей):
160
-
161
- ```bash
162
- node --test test/*.test.mjs
163
- ```
164
-
165
- Проверка размера бандла перед публикацией (<256 КБ):
3
+ > **Плагин больше не развивается.** Оркестрация нескольких агентов встроена в
4
+ > DeepSeek Harness начиная с **0.1.5**. Удалите плагин и используйте встроенные инструменты.
166
5
 
167
6
  ```bash
168
- npm pack --dry-run --json
7
+ dsh plugin --profile web remove @goodandready/dsh-agent-orchestrator
169
8
  ```
170
9
 
171
- ---
10
+ ## Чем заменить
172
11
 
173
- ## 🖼️ Визуальная верификация
12
+ | Что давал плагин | Что есть в DeepSeek Harness |
13
+ |---|---|
14
+ | Декомпозиция задач, DAG-конвейеры, пул воркеров | инструмент `workflow` — JavaScript-сценарий, который запускает субагентов в песочнице; ход выполнения виден в разговоре |
15
+ | Специализированные роли (spec, backend, QA, docs…) | инструмент `subagent` с параметром `agentPreset` — любой пресет агента, в том числе собственный |
16
+ | Циклы «работать, пока не готово» | инструмент `ralph` — цикл свежих агентов поверх `workflow` и субагентов |
17
+ | Команды агентов, общая доска задач, почта агентов | Agent Teams (экспериментально, DeepSeek Harness 0.1.7) |
18
+ | `/orchestrate`, `/orc`, `agent_run` | попросите агента использовать `workflow` или `subagent` |
174
19
 
175
- Приёмка v0.1.6 в окружении DSH — карточка настроек, темная и светлая темы:
20
+ ## Данные
176
21
 
177
- ![dsh-agent-orchestrator v0.1.6 visual verification](media/visual-verification.png)
22
+ Плагин хранил состояние в `~/.dsh/orchestrator-pipelines.json` и
23
+ `~/.dsh/orchestrator-snapshots/`. После удаления плагина они больше не читаются, их можно удалить.
178
24
 
179
- ---
25
+ ## История
180
26
 
181
- ## 📄 Лицензия
27
+ Последний рабочий выпуск — **0.1.12**. Версия **0.1.13** содержит только это
28
+ уведомление, код не менялся. См. [CHANGELOG.md](CHANGELOG.md).
182
29
 
183
- MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
30
+ Лицензия: MIT.
package/README.zh.md CHANGED
@@ -1,183 +1,29 @@
1
- # 📦 @goodandready/dsh-agent-orchestrator
1
+ # dsh-agent-orchestrator — 已弃用
2
2
 
3
- <div align="center">
4
-
5
- <h3>面向 DeepSeek Harness 的多智能体任务分解、DAG 工作流编排与提示词缓存优化引擎</h3>
6
-
7
- <p align="center">
8
- <a href="https://www.npmjs.com/package/@goodandready/dsh-agent-orchestrator"><img src="https://img.shields.io/npm/v/@goodandready/dsh-agent-orchestrator.svg?style=for-the-badge&color=6366f1&labelColor=1e1b4b" alt="npm version"></a>
9
- <a href="LICENSE"><img src="https://img.shields.io/github/license/GooDAnDReaDY/dsh-agent-orchestrator.svg?style=for-the-badge&color=10b981&labelColor=064e3b" alt="license"></a>
10
- <a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/DSH-Plugin-8b5cf6.svg?style=for-the-badge&labelColor=2e1065" alt="DSH Plugin"></a>
11
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-20%2B-f59e0b.svg?style=for-the-badge&labelColor=451a03" alt="Node version"></a>
12
- </p>
13
-
14
- <p align="center">
15
- <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/作者所有项目-goodandready.app-ff4500.svg?style=for-the-badge&logo=rocket&logoColor=white&labelColor=1a1a2e" alt="作者所有项目"></a>
16
- </p>
17
-
18
- <p align="center">
19
- <a href="README.md"><b>🇬🇧 English</b></a> •
20
- <a href="README.ru.md"><b>🇷🇺 Русский</b></a> •
21
- <a href="README.zh.md"><b>🇨🇳 中文说明</b></a>
22
- </p>
23
-
24
- <table align="center">
25
- <tr>
26
- <td align="center">
27
- ⭐ <strong>如果您喜欢此插件,请在 GitHub 上点亮 Star</strong> — 这是对我持续投入开发的最大鼓励。
28
- <br><br>
29
- 🐛 <strong>若发现 Bug 或有功能建议</strong>,欢迎随时在 GitHub 提交 Issue(支持任意语言)— 我将在后续版本中积极评估并实现。
30
- </td>
31
- </tr>
32
- </table>
33
-
34
- </div>
35
-
36
- ---
37
-
38
- ## ⚡ 概述与解决的核心痛点
39
-
40
- 在执行复杂的多阶段工程任务时,单一智能体架构往往面临认知过载:在单一上下文请求中混合了系统架构、界面布局、前端交互、服务端逻辑、单元测试与文档编写,极易导致接口幻觉、功能退化与不必要的 Token 浪费。
41
-
42
- 此外,各子智能体的独立执行通常会中断大语言模型的 KV 缓存复用,失去前缀提示词缓存(Prompt Caching)的优势,产生严重的首次响应延迟 (TTFT) 与高昂的推理成本。
43
-
44
- **`@goodandready/dsh-agent-orchestrator`** 为 DeepSeek Harness 提供完整的自主多智能体编排方案:
45
-
46
- 1. **智能分流与任务分解**:深度解析来自聊天或看板卡片的目标,拆解并分发给 **12 个专属智能体角色**。
47
- 2. **有向无环图 (DAG) 引擎**:基于依赖拓扑结构并行调度无阻塞子任务,严格保障阻断检查点。
48
- 3. **KV 缓存 / Prompt Caching 优化器**:确保同模型智能体之间保持字节级的前缀一致性,释放 80–90% 的缓存命中率并实现极速首字输出。
49
- 4. **严格的权责分离**:服务端后端、UI 界面设计与客户端前端实现各自保持独立的角色与执行阶段,杜绝单一智能体跨界混写。
50
- 5. **双场景原生集成**:支持在 DSH 聊天中通过 `/orchestrate` 斜杠命令直接调用(带顶部吸顶里程碑卡片),亦可无缝接入 `@goodandready/dsh-kanban` 看板。
51
-
52
- ---
53
-
54
- ## 🏗️ 系统架构图
55
-
56
- ```mermaid
57
- graph TD
58
- Trigger["输入任务<br/>(聊天中 /orchestrate 或看板卡片)"] --> Main["主调度器 (分流与规划)"]
59
-
60
- subgraph Engine ["DAG 调度引擎与提示词缓存优化"]
61
- L1["第 1 层:规范化基础锚点 (>1024 Token)"]
62
- L2["第 2 层:共享任务上下文锚点"]
63
- L3["第 3 层:阶段累计产物 (仅追加模式)"]
64
- L4["第 4 层:角色专属后缀指令"]
65
- end
66
-
67
- Main --> Engine
68
-
69
- subgraph AgentPool ["配置化智能体角色池 (完全内聚于插件设置)"]
70
- R1["需求分析师"]
71
- R2["系统架构师"]
72
- R3["UI/UX 设计师"]
73
- R4["后端工程师"]
74
- R5["前端工程师"]
75
- R6["QA 自动化工程师"]
76
- R7["技术文档专家"]
77
- end
78
-
79
- Engine --> AgentPool
80
- AgentPool --> Delivery["编排交付<br/>(顶部状态卡片与看板状态同步)"]
81
- ```
82
-
83
- ---
84
-
85
- ## 👥 12 大内置专属智能体角色矩阵
86
-
87
- 所有智能体预设均**完全内聚于插件设置面板中**(无需依赖本地额外配置文件):
88
-
89
- | 角色 ID | 角色名称 | 核心专业领域 | 严格职责边界 |
90
- |---|---|---|---|
91
- | `spec` | 需求分析师 | 功能规范、验收准则 (DoD)、数据结构定义 | 严禁编写业务实现代码或样式 |
92
- | `architecture` | 系统架构师 | 架构设计、DESIGN.md、ADR 决策、模块契约 | 严禁编写生产代码或执行部署 |
93
- | `ui_design` | UI/UX 设计师 | 界面布局、主题变量 (`--dsw-alias-*`)、插槽设计 | 严禁编写服务端 Cordis 服务逻辑 |
94
- | `frontend` | 前端工程师 | React 组件、客户端 Hooks、DOM 交互与事件 | 严禁修改后端路由或数据库存储 |
95
- | `backend` | 后端工程师 | Cordis 服务、WebServer 路由、状态与持久化 | 严禁编写客户端 React JSX 或前端 CSS |
96
- | `fullstack` | 全栈集成师 | 端到端契约对接、全链路串联打通 | 严格遵守模块化边界规范 |
97
- | `qa_tests` | QA 自动化工程师 | 原生单元测试 (`node:test`)、边界用例覆盖 | 仅限无外网依赖的纯净验证 |
98
- | `bugfix` | 缺陷修复专家 | 根因精准定位、最小爆炸半径修复 | 严禁重构无关代码 |
99
- | `docs` | 技术文档专家 | 英中俄三语文档编撰 (en/ru/zh)、发行注记 | 严禁覆盖或删除旧版有效文档 |
100
- | `refactoring` | 重构精简专家 | 复杂度裁剪 (YAGNI)、代码瘦身与体积压缩 | 必须严格保持向前兼容 |
101
- | `research` | 前沿探索工程师 | 技术选型评估、多方案 Spike 对比验证 | 输出分析报告,严禁直接合并 Spike 代码 |
102
- | `devops` | 运维与工具工程师 | 包清单规范化、打包构建校验、systemd 守护 | 严禁泄露内部网络凭证与私钥 |
103
-
104
- ---
105
-
106
- ## 🔄 复杂度编排场景
107
-
108
- 1. **Hotfix / 紧急缺陷 (1 阶段)**:即时消除单一 Bug 或调整单项配置参数。
109
- 2. **Simple / 简易任务 (2 阶段)**:方案讨论与规范 $
110
- 3. **Medium / 中型需求 (3–4 阶段)**:需求分析 $
111
- 4. **Complex / 复杂项目 (5–6 阶段)**:需求分析 $
112
- 5. **Enterprise / 深度研发 (7 阶段)**:技术评估 Spike $
113
- 6. **自定义 DAG 场景**:在插件设置面板自由增删阶段、配置依赖关系与阻断检查点。
114
-
115
- ---
116
-
117
- ## ⚡ 提示词缓存 (Prompt Caching) 底层原理
118
-
119
- 主流大语言模型严格从第一个 Token 开始构建并复用 KV 缓存。如果在 Prompt 开头混入不确定性的时间戳或随机 ID,缓存命中率将骤降至 0%。
120
-
121
- `dsh-agent-orchestrator` 强制采用 **4 层规范化布局**:
122
- 1. **第 1 层:静态基础锚点 (>1024 Token)**:所有智能体共享的字节级完全一致的规则与工具说明。
123
- 2. **第 2 层:共享任务上下文锚点**:用户核心目标与目标仓库的稳定描述。
124
- 3. **第 3 层:阶段累计产物 (仅追加模式)**:前序阶段产物按确定性顺序追加,完全保留前置 KV 缓存。
125
- 4. **第 4 层:角色专属后缀指令**:智能体角色人设、技能指导与当前子任务专属指令置于最末端。
126
-
127
- 此架构能够使共享同一模型的子智能体达到 **80–95% 的缓存命中率**,极大降低首字生成延迟并将 Token 消耗降低约 90%。
128
-
129
- ---
130
-
131
- ## 💻 使用指南
132
-
133
- ### 1. 在 DSH 聊天中通过斜杠命令触发
134
- ```text
135
- /orchestrate 为财务管理插件设计并开发设置卡片
136
- ```
137
-
138
- 显式指定复杂度预设:
139
- ```text
140
- /orchestrate complex 构建多租户身份认证提供商服务
141
- /orchestrate hotfix 修复 store.js 中的空指针异常
142
- ```
143
-
144
- 简明别名:
145
- ```text
146
- /orc 重构状态管理模块
147
- ```
148
-
149
- ### 2. 在 @goodandready/dsh-kanban 看板中协作
150
- - 打开看板上的任意任务卡片。
151
- - 点击 **[Собрать пайплайн / 装配工作流]**。
152
- - 选择复杂度预设或采用自动分流。
153
- - 任务卡片实时展示各阶段进度,任务完成自动推进至 `Review` 状态。
154
-
155
- ---
156
-
157
- ## 🧪 自动化测试与打包验证
158
-
159
- 执行原生测试套件(121 个用例全部通过,零外部网络依赖):
160
-
161
- ```bash
162
- node --test test/*.test.mjs
163
- ```
164
-
165
- 验证 npm 打包体积合规性(严格低于 256 KiB 上限):
3
+ > **本插件已停止维护。** 自 **0.1.5** 起,多智能体编排已内置于 DeepSeek Harness。
4
+ > 请卸载本插件并改用下列内置工具。
166
5
 
167
6
  ```bash
168
- npm pack --dry-run --json
7
+ dsh plugin --profile web remove @goodandready/dsh-agent-orchestrator
169
8
  ```
170
9
 
171
- ---
10
+ ## 替代方案
172
11
 
173
- ## 🖼️ 视觉设计验收效果
12
+ | 插件原有功能 | DeepSeek Harness 内置 |
13
+ |---|---|
14
+ | 任务拆解、DAG 流水线、工作池 | `workflow` 工具 — 在沙箱中运行子智能体的 JavaScript 编排脚本,运行进度显示在对话中 |
15
+ | 专业角色(spec、backend、QA、docs…) | 带 `agentPreset` 参数的 `subagent` 工具 — 可使用任意智能体预设,包括自定义预设 |
16
+ | “持续执行直到完成”循环 | `ralph` 工具 — 基于 workflow 与子智能体的全新智能体循环 |
17
+ | 智能体团队、共享任务看板、智能体信箱 | Agent Teams(实验性,DeepSeek Harness 0.1.7) |
18
+ | `/orchestrate`、`/orc`、`agent_run` | 让智能体使用 `workflow` 或 `subagent` |
174
19
 
175
- v0.1.6 生产环境验收效果 — 设置面板暗色与亮色主题对照:
20
+ ## 数据
176
21
 
177
- ![dsh-agent-orchestrator v0.1.6 visual verification](media/visual-verification.png)
22
+ 插件的状态保存在 `~/.dsh/orchestrator-pipelines.json` 与 `~/.dsh/orchestrator-snapshots/`。
23
+ 卸载插件后这些文件不再被读取,可以删除。
178
24
 
179
- ---
25
+ ## 历史
180
26
 
181
- ## 📄 开源协议
27
+ 最后一个功能版本为 **0.1.12**。**0.1.13** 仅包含本说明,代码未改动。参见 [CHANGELOG.md](CHANGELOG.md)。
182
28
 
183
- MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
29
+ 许可证:MIT。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-agent-orchestrator",
3
- "version": "0.1.12",
4
- "description": "Multi-agent task decomposition, DAG workflow orchestration, and prompt caching optimizer for DeepSeek Harness.",
3
+ "version": "0.1.13",
4
+ "description": "Deprecated: orchestration is built into DeepSeek Harness since 0.1.5 - use the built-in workflow tool, subagent with agentPreset, ralph and agent teams.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
7
  "exports": {
@@ -29,7 +29,8 @@
29
29
  "multi-agent",
30
30
  "prompt-caching",
31
31
  "dag-workflow",
32
- "kanban"
32
+ "kanban",
33
+ "deprecated"
33
34
  ],
34
35
  "repository": {
35
36
  "type": "git",