kiro-spec-engine 1.45.12 → 1.46.0
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.
- package/CHANGELOG.md +25 -0
- package/README.md +32 -6
- package/README.zh.md +32 -5
- package/bin/kiro-spec-engine.js +84 -0
- package/docs/adoption-guide.md +3 -2
- package/docs/command-reference.md +58 -13
- package/docs/cross-tool-guide.md +2 -1
- package/docs/document-governance.md +2 -1
- package/docs/faq.md +14 -13
- package/docs/manual-workflows-guide.md +2 -1
- package/docs/quick-start-with-ai-tools.md +4 -3
- package/docs/quick-start.md +21 -7
- package/docs/spec-workflow.md +3 -2
- package/docs/tools/claude-guide.md +3 -2
- package/docs/tools/cursor-guide.md +3 -2
- package/docs/tools/generic-guide.md +3 -2
- package/docs/tools/vscode-guide.md +3 -2
- package/docs/tools/windsurf-guide.md +3 -2
- package/docs/troubleshooting.md +10 -9
- package/docs/zh/quick-start.md +30 -14
- package/docs/zh/tools/claude-guide.md +2 -1
- package/docs/zh/tools/cursor-guide.md +2 -1
- package/docs/zh/tools/generic-guide.md +8 -7
- package/docs/zh/tools/vscode-guide.md +2 -1
- package/docs/zh/tools/windsurf-guide.md +2 -1
- package/lib/commands/orchestrate.js +123 -95
- package/lib/commands/spec-bootstrap.js +147 -0
- package/lib/commands/spec-gate.js +157 -0
- package/lib/commands/spec-pipeline.js +205 -0
- package/lib/orchestrator/agent-spawner.js +82 -13
- package/lib/spec/bootstrap/context-collector.js +48 -0
- package/lib/spec/bootstrap/draft-generator.js +158 -0
- package/lib/spec/bootstrap/questionnaire-engine.js +70 -0
- package/lib/spec/bootstrap/trace-emitter.js +59 -0
- package/lib/spec/multi-spec-orchestrate.js +93 -0
- package/lib/spec/pipeline/constants.js +6 -0
- package/lib/spec/pipeline/stage-adapters.js +118 -0
- package/lib/spec/pipeline/stage-runner.js +146 -0
- package/lib/spec/pipeline/state-store.js +119 -0
- package/lib/spec-gate/engine/gate-engine.js +165 -0
- package/lib/spec-gate/policy/default-policy.js +22 -0
- package/lib/spec-gate/policy/policy-loader.js +103 -0
- package/lib/spec-gate/result-emitter.js +81 -0
- package/lib/spec-gate/rules/default-rules.js +156 -0
- package/lib/spec-gate/rules/rule-registry.js +51 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.46.0] - 2026-02-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Spec bootstrap command**: Added `kse spec bootstrap` to generate `requirements.md`, `design.md`, and `tasks.md` drafts in one step.
|
|
14
|
+
- **Spec pipeline command**: Added `kse spec pipeline run` for staged Spec workflow execution with structured progress output.
|
|
15
|
+
- **Spec gate command**: Added `kse spec gate run` to standardize gate checks and produce machine-readable gate reports.
|
|
16
|
+
- **Multi-spec orchestrate helper**: Added shared helper logic for parsing multi-spec targets and routing execution through orchestrate runtime.
|
|
17
|
+
- **Coverage for new spec workflow**: Added unit tests for bootstrap/pipeline/gate commands and multi-spec orchestrate default behavior.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **Default multi-spec execution mode**: `kse spec bootstrap`, `kse spec pipeline run`, and `kse spec gate run` now default to orchestrate mode when `--specs` is provided.
|
|
21
|
+
- **CLI spec command routing**: Improved `kse spec` command routing for new subcommands while preserving backward compatibility for legacy paths.
|
|
22
|
+
- **Documentation alignment**: Updated EN/ZH docs to promote the new spec-first workflow and document multi-spec default orchestrate behavior.
|
|
23
|
+
|
|
24
|
+
## [1.45.13] - 2026-02-13
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- **Windows prompt guard hardening**: `AgentSpawner.spawn()` now validates bootstrap prompt both right after prompt build and after Windows prompt extraction, failing fast before any temp file write when prompt is missing/empty.
|
|
28
|
+
- **Windows temp filename safety**: prompt temp filename generation now sanitizes full Windows-invalid character set (including `/`, `\`, control chars, and trailing dot/space cases) to prevent invalid path/stream edge cases.
|
|
29
|
+
- **Codex command fallback**: when `codexCommand` is not configured, spawner now auto-detects `codex` and falls back to `npx @openai/codex` when global `codex` is unavailable.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
- **Regression tests**: added unit tests for undefined/empty prompt guardrails, Windows agentId filename sanitization, and codex→npx command fallback path.
|
|
33
|
+
- **Codex orchestration docs**: added recommended Codex-only orchestrator configuration examples in README, README.zh, `.kiro/README.md`, and command reference.
|
|
34
|
+
|
|
10
35
|
## [1.45.12] - 2026-02-13
|
|
11
36
|
|
|
12
37
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# kse - Kiro Spec Engine
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/kiro-spec-engine)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -340,7 +340,7 @@ Structure your work with Requirements → Design → Tasks workflow
|
|
|
340
340
|
- **Retry Mechanism**: Configurable automatic retry for failed Specs
|
|
341
341
|
- **Real-Time Monitoring**: Track per-Spec status and overall orchestration progress
|
|
342
342
|
- **Graceful Termination**: Stop all sub-agents cleanly (SIGTERM → SIGKILL)
|
|
343
|
-
- **Configurable**:
|
|
343
|
+
- **Configurable**: Codex command, args, parallelism, timeout, retries via `.kiro/config/orchestrator.json`
|
|
344
344
|
|
|
345
345
|
**Quick Start**:
|
|
346
346
|
```bash
|
|
@@ -354,6 +354,23 @@ kse orchestrate status
|
|
|
354
354
|
kse orchestrate stop
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
+
Tip: `kse spec bootstrap|pipeline run|gate run --specs ...` now defaults to this orchestrate mode automatically.
|
|
358
|
+
|
|
359
|
+
**Recommended Codex-Orchestrator config (`.kiro/config/orchestrator.json`)**:
|
|
360
|
+
```json
|
|
361
|
+
{
|
|
362
|
+
"agentBackend": "codex",
|
|
363
|
+
"maxParallel": 3,
|
|
364
|
+
"timeoutSeconds": 900,
|
|
365
|
+
"maxRetries": 2,
|
|
366
|
+
"apiKeyEnvVar": "CODEX_API_KEY",
|
|
367
|
+
"codexArgs": ["--skip-git-repo-check"],
|
|
368
|
+
"codexCommand": "npx @openai/codex"
|
|
369
|
+
}
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
If Codex CLI is globally installed, you can set `"codexCommand": "codex"`.
|
|
373
|
+
|
|
357
374
|
### Spec-Level Steering & Context Sync 🚀 NEW in v1.44.0
|
|
358
375
|
- **Spec Steering (L4)**: Independent `steering.md` per Spec with constraints, notes, and decisions — zero cross-agent conflict
|
|
359
376
|
- **Steering Loader**: Unified L1-L4 four-layer steering loader with priority-based merging
|
|
@@ -460,7 +477,15 @@ English and Chinese interfaces
|
|
|
460
477
|
```bash
|
|
461
478
|
# Project setup
|
|
462
479
|
kse adopt # Adopt kse in existing project
|
|
463
|
-
kse create-spec <name> #
|
|
480
|
+
kse create-spec <name> # Legacy: create empty Spec folder only
|
|
481
|
+
|
|
482
|
+
# Spec workflow (recommended)
|
|
483
|
+
kse spec bootstrap --name <spec> --non-interactive # Generate requirements/design/tasks draft
|
|
484
|
+
kse spec pipeline run --spec <spec> # Run staged workflow for one Spec
|
|
485
|
+
kse spec gate run --spec <spec> --json # Run standardized Spec gate checks
|
|
486
|
+
kse spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
487
|
+
kse spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
488
|
+
kse spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
464
489
|
|
|
465
490
|
# Context management
|
|
466
491
|
kse context export <spec-name> # Export context for AI tools
|
|
@@ -614,7 +639,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
614
639
|
```bash
|
|
615
640
|
npm install -g kiro-spec-engine
|
|
616
641
|
kse adopt
|
|
617
|
-
kse
|
|
642
|
+
kse spec bootstrap --name 01-00-my-first-feature --non-interactive
|
|
618
643
|
```
|
|
619
644
|
|
|
620
645
|
---
|
|
@@ -650,5 +675,6 @@ A deep conversation about AI development trends, Neo-Confucian philosophy, and s
|
|
|
650
675
|
|
|
651
676
|
---
|
|
652
677
|
|
|
653
|
-
**Version**: 1.
|
|
654
|
-
**Last Updated**: 2026-02-
|
|
678
|
+
**Version**: 1.46.0
|
|
679
|
+
**Last Updated**: 2026-02-13
|
|
680
|
+
|
package/README.zh.md
CHANGED
|
@@ -296,7 +296,7 @@ sequenceDiagram
|
|
|
296
296
|
- **重试机制**: 可配置的失败自动重试
|
|
297
297
|
- **实时监控**: 跟踪每个 Spec 状态和整体编排进度
|
|
298
298
|
- **优雅终止**: 干净停止所有子 Agent(SIGTERM → SIGKILL)
|
|
299
|
-
- **可配置**: 通过 `.kiro/config/orchestrator.json` 配置
|
|
299
|
+
- **可配置**: 通过 `.kiro/config/orchestrator.json` 配置 Codex 命令、参数、并行度、超时、重试次数
|
|
300
300
|
|
|
301
301
|
**快速开始**:
|
|
302
302
|
```bash
|
|
@@ -310,6 +310,21 @@ kse orchestrate status
|
|
|
310
310
|
kse orchestrate stop
|
|
311
311
|
```
|
|
312
312
|
|
|
313
|
+
**推荐 Codex 编排配置(`.kiro/config/orchestrator.json`)**:
|
|
314
|
+
```json
|
|
315
|
+
{
|
|
316
|
+
"agentBackend": "codex",
|
|
317
|
+
"maxParallel": 3,
|
|
318
|
+
"timeoutSeconds": 900,
|
|
319
|
+
"maxRetries": 2,
|
|
320
|
+
"apiKeyEnvVar": "CODEX_API_KEY",
|
|
321
|
+
"codexArgs": ["--skip-git-repo-check"],
|
|
322
|
+
"codexCommand": "npx @openai/codex"
|
|
323
|
+
}
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
如果你已全局安装 Codex CLI,可将 `"codexCommand"` 改为 `"codex"`。
|
|
327
|
+
|
|
313
328
|
### Spec 级 Steering 与上下文同步 🚀 v1.44.0 新增
|
|
314
329
|
- **Spec Steering (L4)**: 每个 Spec 独立的 `steering.md`,包含约束、注意事项、决策记录 — 跨 Agent 零冲突
|
|
315
330
|
- **Steering 加载器**: 统一 L1-L4 四层 Steering 加载,优先级合并
|
|
@@ -379,7 +394,15 @@ kse orchestrate stop
|
|
|
379
394
|
```bash
|
|
380
395
|
# 项目设置
|
|
381
396
|
kse adopt # 在现有项目中采用 kse
|
|
382
|
-
kse create-spec <name> #
|
|
397
|
+
kse create-spec <name> # 兼容旧版:仅创建空 Spec 目录
|
|
398
|
+
|
|
399
|
+
# Spec 工作流(推荐)
|
|
400
|
+
kse spec bootstrap --name <spec> --non-interactive # 生成 requirements/design/tasks 初稿
|
|
401
|
+
kse spec pipeline run --spec <spec> # 对单个 Spec 执行分阶段流程
|
|
402
|
+
kse spec gate run --spec <spec> --json # 执行标准化 Spec 闸口检查
|
|
403
|
+
kse spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
404
|
+
kse spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
405
|
+
kse spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
383
406
|
|
|
384
407
|
# 上下文管理
|
|
385
408
|
kse context export <spec-name> # 为 AI 工具导出上下文
|
|
@@ -430,6 +453,8 @@ kse orchestrate run --specs "<spec列表>" --max-parallel <N> # 启动多 Agent
|
|
|
430
453
|
kse orchestrate status # 查看编排进度
|
|
431
454
|
kse orchestrate stop # 停止所有子 Agent
|
|
432
455
|
|
|
456
|
+
# 说明:当使用 --specs 调用 kse spec bootstrap/pipeline run/gate run 时,会默认转到 orchestrate 模式
|
|
457
|
+
|
|
433
458
|
# DevOps 运维
|
|
434
459
|
kse ops init <project-name> # 初始化运维 specs
|
|
435
460
|
kse ops validate [<project>] # 验证运维完整性
|
|
@@ -508,10 +533,12 @@ MIT 许可证 - 详见 [LICENSE](LICENSE) 文件。
|
|
|
508
533
|
```bash
|
|
509
534
|
npm install -g kiro-spec-engine
|
|
510
535
|
kse adopt
|
|
511
|
-
kse
|
|
536
|
+
kse spec bootstrap --name 01-00-my-first-feature --non-interactive
|
|
512
537
|
```
|
|
513
538
|
|
|
514
539
|
---
|
|
515
540
|
|
|
516
|
-
**版本**:1.
|
|
517
|
-
**最后更新**:2026-02-
|
|
541
|
+
**版本**:1.46.0
|
|
542
|
+
**最后更新**:2026-02-13
|
|
543
|
+
|
|
544
|
+
|
package/bin/kiro-spec-engine.js
CHANGED
|
@@ -14,6 +14,9 @@ const rollbackCommand = require('../lib/commands/rollback');
|
|
|
14
14
|
const watchCommands = require('../lib/commands/watch');
|
|
15
15
|
const workflowsCommand = require('../lib/commands/workflows');
|
|
16
16
|
const registerCollabCommands = require('../lib/commands/collab');
|
|
17
|
+
const { registerSpecBootstrapCommand } = require('../lib/commands/spec-bootstrap');
|
|
18
|
+
const { registerSpecPipelineCommand } = require('../lib/commands/spec-pipeline');
|
|
19
|
+
const { registerSpecGateCommand } = require('../lib/commands/spec-gate');
|
|
17
20
|
const VersionChecker = require('../lib/version/version-checker');
|
|
18
21
|
|
|
19
22
|
const i18n = getI18n();
|
|
@@ -37,6 +40,76 @@ async function checkVersionBeforeCommand(options = {}) {
|
|
|
37
40
|
|
|
38
41
|
const program = new Command();
|
|
39
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Normalize `kse spec ...` compatibility routes.
|
|
45
|
+
*
|
|
46
|
+
* Supported routes:
|
|
47
|
+
* - `kse spec bootstrap ...` -> `kse spec-bootstrap ...`
|
|
48
|
+
* - `kse spec pipeline ...` -> `kse spec-pipeline ...`
|
|
49
|
+
* - `kse spec gate ...` -> `kse spec-gate ...`
|
|
50
|
+
* - `kse spec create <name> ...` -> `kse create-spec <name> ...`
|
|
51
|
+
* - `kse spec <name> ...` -> `kse create-spec <name> ...` (legacy)
|
|
52
|
+
*
|
|
53
|
+
* @param {string[]} argv
|
|
54
|
+
* @returns {string[]}
|
|
55
|
+
*/
|
|
56
|
+
function normalizeSpecCommandArgs(argv) {
|
|
57
|
+
if (!Array.isArray(argv) || argv.length === 0) {
|
|
58
|
+
return argv;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const normalized = [...argv];
|
|
62
|
+
const commandIndex = findCommandIndex(normalized);
|
|
63
|
+
if (commandIndex < 0 || normalized[commandIndex] !== 'spec') {
|
|
64
|
+
return normalized;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const commandToken = normalized[commandIndex + 1];
|
|
68
|
+
|
|
69
|
+
if (commandToken === 'bootstrap') {
|
|
70
|
+
normalized.splice(commandIndex, 2, 'spec-bootstrap');
|
|
71
|
+
return normalized;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (commandToken === 'pipeline') {
|
|
75
|
+
normalized.splice(commandIndex, 2, 'spec-pipeline');
|
|
76
|
+
return normalized;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (commandToken === 'gate') {
|
|
80
|
+
normalized.splice(commandIndex, 2, 'spec-gate');
|
|
81
|
+
return normalized;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (commandToken === 'create') {
|
|
85
|
+
normalized.splice(commandIndex, 2, 'create-spec');
|
|
86
|
+
return normalized;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
normalized.splice(commandIndex, 1, 'create-spec');
|
|
90
|
+
return normalized;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Find command token index after global options.
|
|
95
|
+
* @param {string[]} args
|
|
96
|
+
* @returns {number}
|
|
97
|
+
*/
|
|
98
|
+
function findCommandIndex(args) {
|
|
99
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
100
|
+
const token = args[index];
|
|
101
|
+
if (!token.startsWith('-')) {
|
|
102
|
+
return index;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (token === '-l' || token === '--lang') {
|
|
106
|
+
index += 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return -1;
|
|
111
|
+
}
|
|
112
|
+
|
|
40
113
|
// 版本和基本信息
|
|
41
114
|
program
|
|
42
115
|
.name(t('cli.name'))
|
|
@@ -208,6 +281,15 @@ program
|
|
|
208
281
|
}
|
|
209
282
|
});
|
|
210
283
|
|
|
284
|
+
// Spec bootstrap wizard command
|
|
285
|
+
registerSpecBootstrapCommand(program);
|
|
286
|
+
|
|
287
|
+
// Spec workflow pipeline command
|
|
288
|
+
registerSpecPipelineCommand(program);
|
|
289
|
+
|
|
290
|
+
// Spec gate command
|
|
291
|
+
registerSpecGateCommand(program);
|
|
292
|
+
|
|
211
293
|
// 系统诊断命令
|
|
212
294
|
program
|
|
213
295
|
.command('doctor')
|
|
@@ -687,6 +769,8 @@ async function updateProjectConfig(projectName) {
|
|
|
687
769
|
// Run steering directory compliance check before parsing commands
|
|
688
770
|
(async function() {
|
|
689
771
|
const { runSteeringComplianceCheck } = require('../lib/steering');
|
|
772
|
+
const normalizedArgs = normalizeSpecCommandArgs(process.argv.slice(2));
|
|
773
|
+
process.argv = [process.argv[0], process.argv[1], ...normalizedArgs];
|
|
690
774
|
|
|
691
775
|
// Check for bypass flags
|
|
692
776
|
const args = process.argv.slice(2);
|
package/docs/adoption-guide.md
CHANGED
|
@@ -174,7 +174,7 @@ $ kse adopt
|
|
|
174
174
|
No changes needed.
|
|
175
175
|
|
|
176
176
|
💡 Next steps:
|
|
177
|
-
- Create a spec: kse
|
|
177
|
+
- Create a spec: kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
178
178
|
- Check status: kse status
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -585,7 +585,7 @@ After successful adoption:
|
|
|
585
585
|
|
|
586
586
|
2. **Create your first spec**:
|
|
587
587
|
```bash
|
|
588
|
-
kse
|
|
588
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
589
589
|
```
|
|
590
590
|
|
|
591
591
|
3. **Check project status**:
|
|
@@ -613,3 +613,4 @@ After successful adoption:
|
|
|
613
613
|
---
|
|
614
614
|
|
|
615
615
|
**Happy adopting! 🔥**
|
|
616
|
+
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Quick reference for all kse commands
|
|
4
4
|
|
|
5
|
-
**Version**: 1.
|
|
6
|
-
**Last Updated**: 2026-02-
|
|
5
|
+
**Version**: 1.46.0
|
|
6
|
+
**Last Updated**: 2026-02-13
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -48,14 +48,25 @@ kse doctor
|
|
|
48
48
|
### Spec Management
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
#
|
|
52
|
-
kse create-spec
|
|
53
|
-
|
|
54
|
-
# Create spec with name
|
|
51
|
+
# Legacy low-level: create spec directory only
|
|
55
52
|
kse create-spec 01-00-feature-name
|
|
56
53
|
|
|
57
|
-
#
|
|
58
|
-
kse
|
|
54
|
+
# Bootstrap full Spec draft (requirements/design/tasks)
|
|
55
|
+
kse spec bootstrap --name 01-00-feature-name --non-interactive
|
|
56
|
+
|
|
57
|
+
# Run pipeline for one Spec
|
|
58
|
+
kse spec pipeline run --spec 01-00-feature-name
|
|
59
|
+
|
|
60
|
+
# Run gate for one Spec
|
|
61
|
+
kse spec gate run --spec 01-00-feature-name --json
|
|
62
|
+
|
|
63
|
+
# Multi-Spec mode defaults to orchestrate routing
|
|
64
|
+
kse spec bootstrap --specs "spec-a,spec-b" --max-parallel 3
|
|
65
|
+
kse spec pipeline run --specs "spec-a,spec-b" --max-parallel 3
|
|
66
|
+
kse spec gate run --specs "spec-a,spec-b" --max-parallel 3
|
|
67
|
+
|
|
68
|
+
# Show Spec progress
|
|
69
|
+
kse status --verbose
|
|
59
70
|
```
|
|
60
71
|
|
|
61
72
|
### Task Management
|
|
@@ -198,6 +209,35 @@ kse repo exec "<command>" [--dry-run]
|
|
|
198
209
|
kse repo health [--json]
|
|
199
210
|
```
|
|
200
211
|
|
|
212
|
+
### Agent Orchestration (Codex)
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# Start orchestration for multiple specs
|
|
216
|
+
kse orchestrate run --specs "spec-a,spec-b,spec-c" --max-parallel 3
|
|
217
|
+
|
|
218
|
+
# Show orchestration status
|
|
219
|
+
kse orchestrate status [--json]
|
|
220
|
+
|
|
221
|
+
# Stop all running sub-agents
|
|
222
|
+
kse orchestrate stop
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
When you pass `--specs` to `kse spec bootstrap|pipeline run|gate run`, kse now defaults to this orchestrate mode automatically.
|
|
226
|
+
|
|
227
|
+
Recommended `.kiro/config/orchestrator.json`:
|
|
228
|
+
|
|
229
|
+
```json
|
|
230
|
+
{
|
|
231
|
+
"agentBackend": "codex",
|
|
232
|
+
"maxParallel": 3,
|
|
233
|
+
"timeoutSeconds": 900,
|
|
234
|
+
"maxRetries": 2,
|
|
235
|
+
"apiKeyEnvVar": "CODEX_API_KEY",
|
|
236
|
+
"codexArgs": ["--skip-git-repo-check"],
|
|
237
|
+
"codexCommand": "npx @openai/codex"
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
201
241
|
### Scene Template Engine
|
|
202
242
|
|
|
203
243
|
```bash
|
|
@@ -316,15 +356,18 @@ kse --version
|
|
|
316
356
|
### Starting a New Feature
|
|
317
357
|
|
|
318
358
|
```bash
|
|
319
|
-
# 1.
|
|
320
|
-
kse
|
|
359
|
+
# 1. Bootstrap spec draft
|
|
360
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
361
|
+
|
|
362
|
+
# 2. Run spec pipeline
|
|
363
|
+
kse spec pipeline run --spec 01-00-my-feature
|
|
321
364
|
|
|
322
|
-
#
|
|
365
|
+
# 3. Export context
|
|
323
366
|
kse context export 01-00-my-feature
|
|
324
367
|
|
|
325
|
-
#
|
|
368
|
+
# 4. Work on tasks...
|
|
326
369
|
|
|
327
|
-
#
|
|
370
|
+
# 5. Sync progress
|
|
328
371
|
kse workspace sync
|
|
329
372
|
```
|
|
330
373
|
|
|
@@ -635,3 +678,5 @@ Overall Health: 2 healthy, 1 unhealthy
|
|
|
635
678
|
- Run `kse --help` for command reference
|
|
636
679
|
- Check [GitHub Issues](https://github.com/heguangyong/kiro-spec-engine/issues)
|
|
637
680
|
- Review [Documentation](../README.md)
|
|
681
|
+
|
|
682
|
+
|
package/docs/cross-tool-guide.md
CHANGED
|
@@ -75,7 +75,7 @@ kse adopt
|
|
|
75
75
|
|
|
76
76
|
2. **Create spec**:
|
|
77
77
|
```bash
|
|
78
|
-
kse
|
|
78
|
+
kse spec bootstrap --name 01-00-user-authentication --non-interactive
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
3. **Work with AI**:
|
|
@@ -552,3 +552,4 @@ For other tools: Manual coordination required
|
|
|
552
552
|
|
|
553
553
|
**Version History**:
|
|
554
554
|
- v1.0 (2026-01-23): Initial cross-tool guide
|
|
555
|
+
|
|
@@ -632,7 +632,7 @@ kse docs archive --spec your-spec
|
|
|
632
632
|
**When creating a Spec:**
|
|
633
633
|
```bash
|
|
634
634
|
# 1. Create Spec
|
|
635
|
-
kse
|
|
635
|
+
kse spec bootstrap --name 01-00-new-feature --non-interactive
|
|
636
636
|
|
|
637
637
|
# 2. Verify structure
|
|
638
638
|
kse docs validate --spec 01-00-new-feature
|
|
@@ -862,3 +862,4 @@ kse docs diagnose
|
|
|
862
862
|
|
|
863
863
|
**Version**: 1.42.0
|
|
864
864
|
**Last Updated**: 2026-01-24
|
|
865
|
+
|
package/docs/faq.md
CHANGED
|
@@ -143,7 +143,7 @@ See [Integration Modes Guide](integration-modes.md) for details.
|
|
|
143
143
|
|
|
144
144
|
1. **Create Spec:**
|
|
145
145
|
```bash
|
|
146
|
-
kse
|
|
146
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
147
147
|
# Edit requirements.md, design.md, tasks.md
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -356,7 +356,7 @@ Progress: 1/2 tasks complete (50%)
|
|
|
356
356
|
**Yes!** Create a Spec for the bug:
|
|
357
357
|
|
|
358
358
|
```bash
|
|
359
|
-
kse
|
|
359
|
+
kse spec bootstrap --name 01-01-fix-login-timeout --non-interactive
|
|
360
360
|
```
|
|
361
361
|
|
|
362
362
|
**requirements.md:**
|
|
@@ -398,7 +398,7 @@ JWT token expiration set to 300 seconds instead of 1800 seconds
|
|
|
398
398
|
**Absolutely!** Specs are great for refactoring:
|
|
399
399
|
|
|
400
400
|
```bash
|
|
401
|
-
kse
|
|
401
|
+
kse spec bootstrap --name 02-00-refactor-auth-module --non-interactive
|
|
402
402
|
```
|
|
403
403
|
|
|
404
404
|
**requirements.md:**
|
|
@@ -477,12 +477,12 @@ vim .kiro/templates/tasks.md
|
|
|
477
477
|
# Project 1
|
|
478
478
|
cd ~/projects/project1
|
|
479
479
|
kse adopt
|
|
480
|
-
kse
|
|
480
|
+
kse spec bootstrap --name 01-00-feature-a --non-interactive
|
|
481
481
|
|
|
482
482
|
# Project 2
|
|
483
483
|
cd ~/projects/project2
|
|
484
484
|
kse adopt
|
|
485
|
-
kse
|
|
485
|
+
kse spec bootstrap --name 01-00-feature-b --non-interactive
|
|
486
486
|
```
|
|
487
487
|
|
|
488
488
|
**Each project has:**
|
|
@@ -526,13 +526,13 @@ kse context export 01-00-user-login
|
|
|
526
526
|
|
|
527
527
|
```bash
|
|
528
528
|
# Main feature
|
|
529
|
-
kse
|
|
529
|
+
kse spec bootstrap --name 01-00-user-management --non-interactive
|
|
530
530
|
|
|
531
531
|
# Sub-features
|
|
532
|
-
kse
|
|
533
|
-
kse
|
|
534
|
-
kse
|
|
535
|
-
kse
|
|
532
|
+
kse spec bootstrap --name 01-01-user-registration --non-interactive
|
|
533
|
+
kse spec bootstrap --name 01-02-user-login --non-interactive
|
|
534
|
+
kse spec bootstrap --name 01-03-user-profile --non-interactive
|
|
535
|
+
kse spec bootstrap --name 01-04-password-reset --non-interactive
|
|
536
536
|
```
|
|
537
537
|
|
|
538
538
|
**Or use phases in tasks.md:**
|
|
@@ -558,17 +558,17 @@ kse create-spec 01-04-password-reset
|
|
|
558
558
|
|
|
559
559
|
**Documentation project:**
|
|
560
560
|
```bash
|
|
561
|
-
kse
|
|
561
|
+
kse spec bootstrap --name 01-00-api-documentation --non-interactive
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
**Design project:**
|
|
565
565
|
```bash
|
|
566
|
-
kse
|
|
566
|
+
kse spec bootstrap --name 02-00-ui-redesign --non-interactive
|
|
567
567
|
```
|
|
568
568
|
|
|
569
569
|
**Process improvement:**
|
|
570
570
|
```bash
|
|
571
|
-
kse
|
|
571
|
+
kse spec bootstrap --name 03-00-ci-cd-pipeline --non-interactive
|
|
572
572
|
```
|
|
573
573
|
|
|
574
574
|
**Specs provide structure for any project** with requirements, design, and tasks.
|
|
@@ -694,3 +694,4 @@ kse create-spec 03-00-ci-cd-pipeline
|
|
|
694
694
|
|
|
695
695
|
**Version**: 1.42.0
|
|
696
696
|
**Last Updated**: 2026-02-11
|
|
697
|
+
|
|
@@ -351,7 +351,7 @@ done
|
|
|
351
351
|
|
|
352
352
|
### Spec Creation Checklist
|
|
353
353
|
|
|
354
|
-
- [ ] Create spec: `kse
|
|
354
|
+
- [ ] Create spec: `kse spec bootstrap --name <name> --non-interactive`
|
|
355
355
|
- [ ] Write requirements.md
|
|
356
356
|
- [ ] Write design.md
|
|
357
357
|
- [ ] Generate tasks.md
|
|
@@ -415,3 +415,4 @@ done
|
|
|
415
415
|
**Version:** 1.0
|
|
416
416
|
**Last Updated:** 2026-01-23
|
|
417
417
|
**Spec:** 05-00-agent-hooks-and-automation
|
|
418
|
+
|
|
@@ -95,7 +95,7 @@ kse adopt
|
|
|
95
95
|
### 步骤 3:创建你的第一个 Spec
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
kse
|
|
98
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
然后编辑生成的文件:
|
|
@@ -157,7 +157,7 @@ kse context export 01-00-user-login
|
|
|
157
157
|
### 1. 创建 Spec
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
kse
|
|
160
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
### 2. 编写需求(requirements.md)
|
|
@@ -370,5 +370,6 @@ kse context export 01-00-user-login
|
|
|
370
370
|
```bash
|
|
371
371
|
npm install -g kiro-spec-engine
|
|
372
372
|
kse adopt
|
|
373
|
-
kse
|
|
373
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
374
374
|
```
|
|
375
|
+
|
package/docs/quick-start.md
CHANGED
|
@@ -63,11 +63,24 @@ I need a user login feature with email and password.
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
**Your AI will:**
|
|
66
|
-
1.
|
|
67
|
-
2.
|
|
68
|
-
3.
|
|
69
|
-
4.
|
|
70
|
-
|
|
66
|
+
1. Bootstrap a Spec draft (`requirements/design/tasks`)
|
|
67
|
+
2. Refine requirements and design with you
|
|
68
|
+
3. Run the staged Spec workflow
|
|
69
|
+
4. Implement according to the Spec
|
|
70
|
+
|
|
71
|
+
**If you want to run commands manually:**
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Single-Spec recommended flow
|
|
75
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
76
|
+
kse spec pipeline run --spec 01-00-user-login
|
|
77
|
+
kse spec gate run --spec 01-00-user-login --json
|
|
78
|
+
|
|
79
|
+
# Multi-Spec flow (defaults to orchestrate mode)
|
|
80
|
+
kse spec bootstrap --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
81
|
+
kse spec pipeline run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
82
|
+
kse spec gate run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
83
|
+
```
|
|
71
84
|
|
|
72
85
|
**The AI uses kse commands automatically** - you don't need to learn them.
|
|
73
86
|
|
|
@@ -89,5 +102,6 @@ You're now using Spec-driven development. Your AI understands the methodology an
|
|
|
89
102
|
|
|
90
103
|
---
|
|
91
104
|
|
|
92
|
-
**Version**: 1.
|
|
93
|
-
**Last Updated**: 2026-02-
|
|
105
|
+
**Version**: 1.46.0
|
|
106
|
+
**Last Updated**: 2026-02-13
|
|
107
|
+
|
package/docs/spec-workflow.md
CHANGED
|
@@ -251,7 +251,7 @@ Response: { ... }
|
|
|
251
251
|
|
|
252
252
|
**1. Create the Spec:**
|
|
253
253
|
```bash
|
|
254
|
-
kse
|
|
254
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
**2. Write Requirements** (`.kiro/specs/01-00-user-login/requirements.md`):
|
|
@@ -509,10 +509,11 @@ The Spec workflow is:
|
|
|
509
509
|
|
|
510
510
|
**Start your next Spec:** 🚀
|
|
511
511
|
```bash
|
|
512
|
-
kse
|
|
512
|
+
kse spec bootstrap --name 02-00-your-feature --non-interactive
|
|
513
513
|
```
|
|
514
514
|
|
|
515
515
|
---
|
|
516
516
|
|
|
517
517
|
**Version**: 1.42.0
|
|
518
518
|
**Last Updated**: 2026-02-11
|
|
519
|
+
|
|
@@ -136,7 +136,7 @@ Please implement this task following the design document.
|
|
|
136
136
|
|
|
137
137
|
**1. Create and prepare Spec**
|
|
138
138
|
```bash
|
|
139
|
-
kse
|
|
139
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
140
140
|
# Edit requirements.md, design.md, tasks.md
|
|
141
141
|
kse-clip 01-00-user-login
|
|
142
142
|
```
|
|
@@ -642,7 +642,7 @@ kse context export 01-00-user-login
|
|
|
642
642
|
**Start using kse with Claude:** 🚀
|
|
643
643
|
```bash
|
|
644
644
|
kse adopt
|
|
645
|
-
kse
|
|
645
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
646
646
|
kse-clip 01-00-my-feature
|
|
647
647
|
# Open Claude and paste context
|
|
648
648
|
```
|
|
@@ -651,3 +651,4 @@ kse-clip 01-00-my-feature
|
|
|
651
651
|
|
|
652
652
|
**Version**: 1.42.0
|
|
653
653
|
**Last Updated**: 2026-02-11
|
|
654
|
+
|
|
@@ -213,7 +213,7 @@ class AuthController {
|
|
|
213
213
|
|
|
214
214
|
**1. Create and write Spec**
|
|
215
215
|
```bash
|
|
216
|
-
kse
|
|
216
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
217
217
|
# Edit requirements.md, design.md, tasks.md
|
|
218
218
|
```
|
|
219
219
|
|
|
@@ -694,7 +694,7 @@ Please help debug and fix the issue.
|
|
|
694
694
|
**Start using kse with Cursor:** 🚀
|
|
695
695
|
```bash
|
|
696
696
|
kse adopt
|
|
697
|
-
kse
|
|
697
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
698
698
|
kse context export 01-00-my-feature
|
|
699
699
|
# Open Cursor Composer (Cmd+K) and paste context
|
|
700
700
|
```
|
|
@@ -703,3 +703,4 @@ kse context export 01-00-my-feature
|
|
|
703
703
|
|
|
704
704
|
**Version**: 1.42.0
|
|
705
705
|
**Last Updated**: 2026-02-11
|
|
706
|
+
|