kyro-ai 3.2.1 → 3.2.3
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/.claude-plugin/plugin.json +4 -2
- package/README.md +8 -11
- package/WORKFLOW.yaml +1 -1
- package/agents/orchestrator.md +3 -3
- package/commands/forge.md +22 -44
- package/commands/status.md +21 -79
- package/commands/wrap-up.md +18 -74
- package/dist/cli/adapters/codex.js +1 -1
- package/dist/cli/adapters/codex.js.map +1 -1
- package/dist/cli/adapters/command-skills.js +1 -1
- package/dist/cli/adapters/command-skills.js.map +1 -1
- package/dist/cli/app.js +1 -1
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +2 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +8 -4
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/token-audit.d.ts +3 -0
- package/dist/cli/commands/token-audit.d.ts.map +1 -0
- package/dist/cli/commands/token-audit.js +263 -0
- package/dist/cli/commands/token-audit.js.map +1 -0
- package/dist/cli/commands/tui.js +3 -3
- package/dist/cli/commands/tui.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/options.d.ts.map +1 -1
- package/dist/cli/options.js +5 -0
- package/dist/cli/options.js.map +1 -1
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/docs/HOW-TO-USE-CODEX.md +28 -60
- package/docs/HOW-TO-USE-OPENCODE.md +26 -72
- package/docs/agent-adapters.md +40 -118
- package/docs/architecture.md +7 -2
- package/docs/cli.md +25 -2
- package/docs/commands-reference.md +22 -32
- package/docs/getting-started.md +65 -115
- package/package.json +1 -1
- package/skills/sprint-forge/SKILL.md +11 -10
- package/skills/sprint-forge/assets/README.md +38 -17
- package/skills/sprint-forge/assets/fixtures/subcommands-and-reports.sizingDecision.json +17 -0
- package/skills/sprint-forge/assets/helpers/analysis/audit.md +18 -0
- package/skills/sprint-forge/assets/helpers/analysis/bugfix.md +19 -0
- package/skills/sprint-forge/assets/helpers/analysis/feature.md +28 -0
- package/skills/sprint-forge/assets/helpers/analysis/new-project.md +18 -0
- package/skills/sprint-forge/assets/helpers/analysis/refactor.md +18 -0
- package/skills/sprint-forge/assets/helpers/analysis/tech-debt.md +18 -0
- package/skills/sprint-forge/assets/helpers/metrics.md +4 -4
- package/skills/sprint-forge/assets/helpers/reentry-generator.md +4 -4
- package/skills/sprint-forge/assets/modes/INIT.md +45 -177
- package/skills/sprint-forge/assets/modes/SPRINT.md +20 -246
- package/skills/sprint-forge/assets/modes/STATUS.md +46 -128
- package/skills/sprint-forge/assets/modes/close-sprint.md +29 -0
- package/skills/sprint-forge/assets/modes/execute-task.md +26 -0
- package/skills/sprint-forge/assets/modes/plan-sprint.md +29 -0
- package/skills/sprint-forge/assets/modes/recover.md +23 -0
- package/skills/sprint-forge/assets/modes/review-task.md +25 -0
- package/skills/sprint-forge/assets/templates/DEBT.summary.json +12 -0
- package/skills/sprint-forge/assets/templates/PROJECT-README.md +16 -60
- package/skills/sprint-forge/assets/templates/REENTRY-PROMPTS.md +18 -87
- package/skills/sprint-forge/assets/templates/ROADMAP.md +16 -65
- package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +24 -0
- package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
- package/skills/sprint-forge/assets/templates/index.json +24 -0
- package/skills/sprint-forge/assets/templates/state.json +11 -0
- package/skills/sprint-forge/assets/helpers/analysis-guide.md +0 -207
package/docs/agent-adapters.md
CHANGED
|
@@ -1,152 +1,74 @@
|
|
|
1
1
|
# Agent Adapters
|
|
2
2
|
|
|
3
|
-
Kyro
|
|
3
|
+
Kyro's adapter contract is: global runtime, global command skills, local project state. Agents should invoke Kyro through command-like skills or slash commands, not by loading the full workflow manually.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Stable Interface
|
|
8
|
-
|
|
9
|
-
Treat these files and directories as Kyro's public interface:
|
|
5
|
+
## Stable interface
|
|
10
6
|
|
|
11
7
|
| Interface | Purpose |
|
|
12
8
|
|-----------|---------|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
| `
|
|
17
|
-
| `.agents/kyro/scopes/{scope}/` |
|
|
18
|
-
|
|
19
|
-
Platforms without slash commands should invoke these equivalent intents:
|
|
20
|
-
|
|
21
|
-
| Intent | Equivalent request |
|
|
22
|
-
|--------|--------------------|
|
|
23
|
-
| `forge` | Analyze, plan, execute, review, and close the sprint |
|
|
24
|
-
| `status` | Read artifacts and report project progress/debt |
|
|
25
|
-
| `wrap-up` | Close the session and update re-entry prompts |
|
|
9
|
+
| `~/.agents/kyro/current/commands/*.md` | Thin command routers |
|
|
10
|
+
| `~/.agents/kyro/current/skills/sprint-forge/` | Lazy-loaded workflow modes, helpers, templates |
|
|
11
|
+
| `~/.agents/skills/kyro-*` | Global command skills discovered by compatible agents |
|
|
12
|
+
| `.agents/kyro/kyro.json` | Project-level Kyro state |
|
|
13
|
+
| `.agents/kyro/scopes/{scope}/` | Scope artifacts, state, summaries, roadmap, sprints |
|
|
14
|
+
| root `AGENTS.md` | Small Codex/cross-agent bootstrap when the Codex adapter is installed |
|
|
26
15
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## Generic Setup
|
|
30
|
-
|
|
31
|
-
Copy or symlink Kyro into the target project:
|
|
16
|
+
## Install adapters
|
|
32
17
|
|
|
33
18
|
```bash
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
cp -r /path/to/kyro-ai/skills/qa-review .skills/
|
|
38
|
-
cp /path/to/kyro-ai/agents/orchestrator.md .agents/
|
|
19
|
+
npx kyro-ai install --scope workspace --yes
|
|
20
|
+
npx kyro-ai install --agent opencode --scope workspace --yes
|
|
21
|
+
npx kyro-ai install --agent codex --scope workspace --yes
|
|
39
22
|
```
|
|
40
23
|
|
|
41
|
-
|
|
24
|
+
Implemented adapters:
|
|
42
25
|
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
| Adapter | Behavior |
|
|
27
|
+
|---------|----------|
|
|
28
|
+
| `standard` | Installs global `kyro-*` command skills for compatible agents. |
|
|
29
|
+
| `opencode` | Uses the same global command skill projection. |
|
|
30
|
+
| `codex` | Adds global command skills plus a small Kyro block in root `AGENTS.md`. |
|
|
45
31
|
|
|
46
|
-
|
|
47
|
-
- .agents/orchestrator.md
|
|
48
|
-
- .skills/sprint-forge/SKILL.md
|
|
49
|
-
- .skills/qa-review/SKILL.md
|
|
32
|
+
There is intentionally no generic adapter. Root `AGENTS.md` is the standard cross-agent bootstrap.
|
|
50
33
|
|
|
51
|
-
|
|
52
|
-
- .agents/kyro/scopes/{scope}/
|
|
34
|
+
## Command intents
|
|
53
35
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
| Intent | Command skill | Slash namespace |
|
|
37
|
+
|--------|---------------|-----------------|
|
|
38
|
+
| forge | `kyro-forge` | `/kyro:forge` |
|
|
39
|
+
| status | `kyro-status` | `/kyro:status` |
|
|
40
|
+
| wrap-up | `kyro-wrap-up` | `/kyro:wrap-up` |
|
|
59
41
|
|
|
60
|
-
|
|
42
|
+
Each skill loads its command router first. The router then names the exact mode/helper/template needed for the current step.
|
|
61
43
|
|
|
62
|
-
##
|
|
44
|
+
## Codex
|
|
63
45
|
|
|
64
|
-
|
|
46
|
+
Use:
|
|
65
47
|
|
|
66
48
|
```bash
|
|
67
|
-
|
|
68
|
-
/plugin install kyro-ai@kyro-ai
|
|
49
|
+
npx kyro-ai install --agent codex --scope workspace --yes
|
|
69
50
|
```
|
|
70
51
|
|
|
71
|
-
|
|
52
|
+
Codex reads the managed root `AGENTS.md` block, discovers `~/.agents/skills/kyro-*`, and follows the router-first workflow.
|
|
72
53
|
|
|
73
|
-
|
|
54
|
+
## OpenCode
|
|
74
55
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Codex-style agents should use Kyro as project context:
|
|
56
|
+
Use:
|
|
78
57
|
|
|
79
58
|
```bash
|
|
80
|
-
|
|
81
|
-
cp -r kyro-ai/skills/sprint-forge .skills/
|
|
82
|
-
cp -r kyro-ai/skills/qa-review .skills/
|
|
83
|
-
cp kyro-ai/agents/orchestrator.md .agents/
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Prompt:
|
|
87
|
-
|
|
88
|
-
```text
|
|
89
|
-
Read .agents/orchestrator.md and the Kyro skills in .skills/.
|
|
90
|
-
Use the forge intent for this scope: {scope}.
|
|
91
|
-
Persist outputs under .agents/kyro/scopes/{scope}/.
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Native command registration depends on the Codex environment. If slash commands are unavailable, use the manual intent names.
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## OpenCode Adapter
|
|
99
|
-
|
|
100
|
-
OpenCode usage is manual unless your environment supports project-level rule files.
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
mkdir -p .skills .agents
|
|
104
|
-
cp -r kyro-ai/skills/sprint-forge .skills/
|
|
105
|
-
cp -r kyro-ai/skills/qa-review .skills/
|
|
106
|
-
cp kyro-ai/agents/orchestrator.md .agents/
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Reference the files in the AI panel:
|
|
110
|
-
|
|
111
|
-
```text
|
|
112
|
-
@file .agents/orchestrator.md
|
|
113
|
-
@file .skills/sprint-forge/SKILL.md
|
|
114
|
-
@file .skills/qa-review/SKILL.md
|
|
115
|
-
|
|
116
|
-
Run the status intent for .agents/kyro/scopes/{scope}/.
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Cursor Adapter
|
|
122
|
-
|
|
123
|
-
Cursor can use Kyro through project rules and referenced files.
|
|
124
|
-
|
|
125
|
-
Recommended setup:
|
|
126
|
-
|
|
127
|
-
1. Copy the Kyro files using the generic setup.
|
|
128
|
-
2. Add a Cursor project rule that tells the agent to read `.agents/orchestrator.md`.
|
|
129
|
-
3. Ask Cursor to persist sprint artifacts under `.agents/kyro/scopes/{scope}/`.
|
|
130
|
-
|
|
131
|
-
Cursor prompt:
|
|
132
|
-
|
|
133
|
-
```text
|
|
134
|
-
Use Kyro for this task. Read .agents/orchestrator.md and the skills under .skills/.
|
|
135
|
-
Run the forge intent for {scope}. Do not create a custom planning format.
|
|
59
|
+
npx kyro-ai install --agent opencode --scope workspace --yes
|
|
136
60
|
```
|
|
137
61
|
|
|
138
|
-
|
|
62
|
+
OpenCode should invoke `kyro-forge`, `kyro-status`, and `kyro-wrap-up` from global skills. It should not copy Kyro core into the project.
|
|
139
63
|
|
|
140
|
-
##
|
|
64
|
+
## Claude
|
|
141
65
|
|
|
142
|
-
|
|
66
|
+
Claude plugin support remains first-class through `.claude-plugin/`. The CLI adapter path complements the plugin; it does not retire it.
|
|
143
67
|
|
|
144
|
-
|
|
145
|
-
- Lighter/faster models are acceptable for read-only analysis, status reports, and documentation review.
|
|
146
|
-
- When the platform supports model overrides, choose per task rather than encoding model names into Kyro artifacts.
|
|
68
|
+
## Cursor
|
|
147
69
|
|
|
148
|
-
|
|
70
|
+
Cursor adapter automation is planned. Until then, use the standard install and root `AGENTS.md`/global skills if your Cursor setup can read them.
|
|
149
71
|
|
|
150
|
-
## Compatibility
|
|
72
|
+
## Compatibility rule
|
|
151
73
|
|
|
152
|
-
|
|
74
|
+
Keep platform-specific behavior in adapters. The core workflow must remain portable through command routers, scoped state, summaries, and Markdown artifacts.
|
package/docs/architecture.md
CHANGED
|
@@ -86,17 +86,22 @@ ORCHESTRATOR
|
|
|
86
86
|
|
|
87
87
|
## Artifact Layout
|
|
88
88
|
|
|
89
|
-
Kyro stores
|
|
89
|
+
Kyro stores durable evidence in markdown and routing state in small JSON files. Agents read JSON first to save context, then open Markdown only when evidence or mutation is required.
|
|
90
90
|
|
|
91
91
|
```
|
|
92
92
|
.agents/kyro/scopes/
|
|
93
93
|
├── rules.md
|
|
94
94
|
└── {scope}/
|
|
95
95
|
├── README.md
|
|
96
|
+
├── state.json
|
|
97
|
+
├── index.json
|
|
96
98
|
├── ROADMAP.md
|
|
99
|
+
├── ROADMAP.summary.json
|
|
97
100
|
├── RE-ENTRY-PROMPTS.md
|
|
98
101
|
├── findings/
|
|
99
102
|
├── phases/
|
|
103
|
+
│ ├── SPRINT-N-*.md
|
|
104
|
+
│ └── SPRINT-N-*.summary.json
|
|
100
105
|
└── handoffs/
|
|
101
106
|
```
|
|
102
107
|
|
|
@@ -143,7 +148,7 @@ v2.0: User command -> orchestrator
|
|
|
143
148
|
| Agent | Skill-only execution | Orchestrator |
|
|
144
149
|
| Quality gates | Basic | Per-task checklist + approval gates |
|
|
145
150
|
| Context transfer | Re-entry prompts | Re-entry prompts + enriched handoffs |
|
|
146
|
-
| State model | Markdown artifacts | Markdown
|
|
151
|
+
| State model | Markdown artifacts | Markdown evidence + JSON routing summaries |
|
|
147
152
|
|
|
148
153
|
---
|
|
149
154
|
|
package/docs/cli.md
CHANGED
|
@@ -8,6 +8,7 @@ Kyro includes a small CLI for installing workspace harness assets, projecting co
|
|
|
8
8
|
kyro # Open the interactive TUI
|
|
9
9
|
kyro install # Install standard .agents assets by default
|
|
10
10
|
kyro doctor # Read-only package/workspace health check
|
|
11
|
+
kyro doctor --tokens # Audit context/token budgets
|
|
11
12
|
kyro sync # Refresh managed workspace assets
|
|
12
13
|
kyro uninstall # Remove managed workspace assets, preserving scope artifacts
|
|
13
14
|
```
|
|
@@ -49,8 +50,12 @@ The project keeps only state and artifacts:
|
|
|
49
50
|
└── scopes/
|
|
50
51
|
└── {scope}/
|
|
51
52
|
├── state.json
|
|
53
|
+
├── index.json
|
|
52
54
|
├── ROADMAP.md
|
|
55
|
+
├── ROADMAP.summary.json
|
|
53
56
|
└── phases/
|
|
57
|
+
├── SPRINT-N-*.md
|
|
58
|
+
└── SPRINT-N-*.summary.json
|
|
54
59
|
```
|
|
55
60
|
|
|
56
61
|
## Adapters
|
|
@@ -96,7 +101,7 @@ Each projected skill references the managed Kyro runtime in `~/.agents/kyro/curr
|
|
|
96
101
|
.agents/kyro/kyro.json
|
|
97
102
|
```
|
|
98
103
|
|
|
99
|
-
It does not create scoped state. Scoped state
|
|
104
|
+
It does not create scoped state. Scoped state, indexes, and summaries are created later when a scope is created or opened by forge/INIT.
|
|
100
105
|
|
|
101
106
|
Initial state shape:
|
|
102
107
|
|
|
@@ -106,12 +111,30 @@ Initial state shape:
|
|
|
106
111
|
"artifactRoot": ".agents/kyro/scopes",
|
|
107
112
|
"scopes": [],
|
|
108
113
|
"activeScope": null,
|
|
109
|
-
"runtimeVersion": "3.2.
|
|
114
|
+
"runtimeVersion": "3.2.2",
|
|
110
115
|
"runtimePath": "~/.agents/kyro/current",
|
|
111
116
|
"installedAdapters": []
|
|
112
117
|
}
|
|
113
118
|
```
|
|
114
119
|
|
|
120
|
+
|
|
121
|
+
## Token Audit
|
|
122
|
+
|
|
123
|
+
Use `kyro doctor --tokens` to verify progressive-disclosure budgets:
|
|
124
|
+
|
|
125
|
+
- AGENTS Kyro block <= 150 words
|
|
126
|
+
- projected command skill <= 200 words
|
|
127
|
+
- command router <= 500 words
|
|
128
|
+
- mode file <= 900 words
|
|
129
|
+
- INIT mode <= 500 words
|
|
130
|
+
- each analysis helper <= 450 words
|
|
131
|
+
- ROADMAP template <= 450 words
|
|
132
|
+
- REENTRY template <= 350 words
|
|
133
|
+
- startup, status brief, and INIT happy paths stay under their estimated token budgets
|
|
134
|
+
- `sizingDecision` regression fixture stays internally consistent
|
|
135
|
+
|
|
136
|
+
Warnings mean Kyro still works, but the harness is becoming expensive to load. Failing sizing checks mean INIT can no longer prove its sprint boundaries.
|
|
137
|
+
|
|
115
138
|
## Sync Semantics
|
|
116
139
|
|
|
117
140
|
`kyro sync` without `--agent` refreshes the adapters already recorded in `.agents/kyro/kyro.json`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Commands Reference
|
|
2
2
|
|
|
3
|
-
Kyro provides 3 slash commands. Each command
|
|
3
|
+
Kyro provides 3 slash commands. Each command is now a thin router: it reads structured state first, then loads only the mode/helper/template required for the current action.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -28,32 +28,20 @@ The argument describes what to analyze or work on. It can be a path, a module na
|
|
|
28
28
|
/kyro:forge fix the login timeout bug
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
###
|
|
31
|
+
### Routing
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
`/kyro:forge` starts with `.agents/kyro/kyro.json`, then scoped `state.json` and `index.json` when a scope exists. It routes to exactly one mode:
|
|
34
34
|
|
|
35
|
+
```text
|
|
36
|
+
no roadmap -> INIT.md
|
|
37
|
+
no active sprint -> plan-sprint.md
|
|
38
|
+
pending tasks -> execute-task.md
|
|
39
|
+
validation -> review-task.md
|
|
40
|
+
closeout -> close-sprint.md
|
|
41
|
+
inconsistent -> recover.md
|
|
35
42
|
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[PHASE 1: ANALYZE] Analysis phase investigates codebase (read-only)
|
|
39
|
-
|
|
|
40
|
-
GATE 1 User approves analysis and plan direction
|
|
41
|
-
|
|
|
42
|
-
[PHASE 2: PLAN] Generate sprint with phases, tasks, and estimates
|
|
43
|
-
|
|
|
44
|
-
GATE 2 User approves sprint plan
|
|
45
|
-
|
|
|
46
|
-
[PHASE 3: IMPLEMENT] Execute task by task
|
|
47
|
-
|-- After each task: Review step validates (BLOCKER/WARNING/SUGGESTION)
|
|
48
|
-
|-- On failure: Debug protocol investigates root cause
|
|
49
|
-
|-- After each phase: Checkpoint saved to disk
|
|
50
|
-
|
|
|
51
|
-
GATE 3 User approves implementation
|
|
52
|
-
|
|
|
53
|
-
[PHASE 4: REVIEW] Full sprint review + retrospective
|
|
54
|
-
|
|
|
55
|
-
[PHASE 5: CLOSE] Debt update, re-entry prompts, rule proposals
|
|
56
|
-
```
|
|
43
|
+
|
|
44
|
+
Gates still apply at orchestrator-defined checkpoints, but the command file does not duplicate the full lifecycle.
|
|
57
45
|
|
|
58
46
|
### Gate Options
|
|
59
47
|
|
|
@@ -67,10 +55,11 @@ At each gate, the orchestrator presents a summary and waits for your decision:
|
|
|
67
55
|
|
|
68
56
|
### Orchestrator Protocols
|
|
69
57
|
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
72
|
-
- **
|
|
73
|
-
- **
|
|
58
|
+
- **Command router** -- chooses the next mode from structured state
|
|
59
|
+
- **Analysis protocol** -- INIT mode, read-only exploration
|
|
60
|
+
- **Review checklist** -- review-task mode and closeout
|
|
61
|
+
- **Debug protocol** -- execution failure recovery
|
|
62
|
+
- **orchestrator** -- coordinates gates and phase transitions
|
|
74
63
|
|
|
75
64
|
---
|
|
76
65
|
|
|
@@ -132,7 +121,8 @@ Sprint 4: [title]
|
|
|
132
121
|
|
|
133
122
|
### Data Sources
|
|
134
123
|
|
|
135
|
-
The status command reads
|
|
136
|
-
-
|
|
137
|
-
- `
|
|
138
|
-
-
|
|
124
|
+
The status command reads summaries first:
|
|
125
|
+
- `.agents/kyro/kyro.json` for project state
|
|
126
|
+
- `{scope}/state.json` and `{scope}/index.json` for routing
|
|
127
|
+
- `ROADMAP.summary.json`, `SPRINT-*.summary.json`, and `DEBT.summary.json` for metrics
|
|
128
|
+
- Markdown files only when summaries are missing or a full report needs evidence
|
package/docs/getting-started.md
CHANGED
|
@@ -1,165 +1,115 @@
|
|
|
1
1
|
# Getting Started with Kyro
|
|
2
2
|
|
|
3
|
-
Kyro is a portable
|
|
4
|
-
|
|
5
|
-
Kyro does not require a specific model provider. Claude Code is supported through a native adapter, while Codex, OpenCode, Cursor, and generic agents can use the same core files manually.
|
|
6
|
-
|
|
7
|
-
---
|
|
3
|
+
Kyro is a portable sprint workflow kit for AI coding agents. It installs a global runtime and tiny command skills, while each project keeps only state and artifacts under `.agents/kyro/`.
|
|
8
4
|
|
|
9
5
|
## Prerequisites
|
|
10
6
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
Verify your Node.js version:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
node --version
|
|
19
|
-
# v18.0.0 or higher
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Installation Paths
|
|
7
|
+
- Node.js >= 18
|
|
8
|
+
- Git
|
|
9
|
+
- An AI coding agent that can read `~/.agents/skills`, root `AGENTS.md`, slash commands, or markdown instructions
|
|
25
10
|
|
|
26
|
-
|
|
11
|
+
## Install
|
|
27
12
|
|
|
28
|
-
|
|
13
|
+
Default standard install:
|
|
29
14
|
|
|
30
15
|
```bash
|
|
31
|
-
|
|
16
|
+
npx kyro-ai install --scope workspace --yes
|
|
32
17
|
```
|
|
33
18
|
|
|
34
|
-
|
|
19
|
+
Agent-specific installs:
|
|
35
20
|
|
|
36
21
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
npm install
|
|
40
|
-
npm run build
|
|
41
|
-
claude --plugin-dir ~/.claude/plugins/kyro-ai
|
|
22
|
+
npx kyro-ai install --agent opencode --scope workspace --yes
|
|
23
|
+
npx kyro-ai install --agent codex --scope workspace --yes
|
|
42
24
|
```
|
|
43
25
|
|
|
44
|
-
|
|
26
|
+
Claude plugin support remains first-class through `.claude-plugin/` and Claude's plugin install flow.
|
|
45
27
|
|
|
46
|
-
|
|
28
|
+
## What gets installed
|
|
47
29
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
30
|
+
Global runtime:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
~/.agents/kyro/current/
|
|
34
|
+
├── commands/
|
|
35
|
+
├── core/
|
|
36
|
+
├── skills/
|
|
37
|
+
└── manifest.json
|
|
56
38
|
```
|
|
57
39
|
|
|
58
|
-
|
|
40
|
+
Global command skills:
|
|
59
41
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
42
|
+
```text
|
|
43
|
+
~/.agents/skills/
|
|
44
|
+
├── kyro-forge/SKILL.md
|
|
45
|
+
├── kyro-status/SKILL.md
|
|
46
|
+
└── kyro-wrap-up/SKILL.md
|
|
47
|
+
```
|
|
64
48
|
|
|
65
|
-
|
|
49
|
+
Project state:
|
|
66
50
|
|
|
67
|
-
|
|
51
|
+
```text
|
|
52
|
+
.agents/kyro/
|
|
53
|
+
├── kyro.json
|
|
54
|
+
└── scopes/
|
|
55
|
+
```
|
|
68
56
|
|
|
69
|
-
|
|
57
|
+
`kyro install` does not create scoped `state.json`; the forge/INIT workflow creates scoped state only when a scope exists.
|
|
70
58
|
|
|
71
|
-
|
|
59
|
+
## First run
|
|
60
|
+
|
|
61
|
+
Use the installed command skill or slash command:
|
|
72
62
|
|
|
73
63
|
```text
|
|
74
|
-
|
|
64
|
+
kyro-forge auth-refactor
|
|
75
65
|
```
|
|
76
66
|
|
|
77
|
-
|
|
67
|
+
or, in Claude-style slash command environments:
|
|
78
68
|
|
|
79
69
|
```text
|
|
80
|
-
|
|
70
|
+
/kyro:forge auth-refactor
|
|
81
71
|
```
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
1. The analysis phase explores the codebase in read-only mode.
|
|
86
|
-
2. You approve the analysis at Gate 1.
|
|
87
|
-
3. Kyro generates a sprint plan with phases and tasks.
|
|
88
|
-
4. You approve the plan at Gate 2.
|
|
89
|
-
5. Tasks are executed one by one and validated.
|
|
90
|
-
6. You approve the implementation at Gate 3.
|
|
91
|
-
7. A retrospective is run and the sprint is closed.
|
|
73
|
+
Kyro routes progressively:
|
|
92
74
|
|
|
93
|
-
|
|
75
|
+
1. read `.agents/kyro/kyro.json`
|
|
76
|
+
2. resolve or create scope
|
|
77
|
+
3. read scoped `state.json` and `index.json` if present
|
|
78
|
+
4. load only the required mode: INIT, plan, execute, review, close, or recover
|
|
79
|
+
5. update Markdown evidence plus JSON summaries
|
|
94
80
|
|
|
95
|
-
|
|
81
|
+
## Scope output
|
|
96
82
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
After running forge in INIT mode, Kyro creates a scope workspace:
|
|
83
|
+
After INIT, a scope looks like:
|
|
100
84
|
|
|
101
85
|
```text
|
|
102
86
|
.agents/kyro/scopes/{scope}/
|
|
103
87
|
├── README.md
|
|
104
88
|
├── ROADMAP.md
|
|
89
|
+
├── ROADMAP.summary.json
|
|
105
90
|
├── RE-ENTRY-PROMPTS.md
|
|
91
|
+
├── state.json
|
|
92
|
+
├── index.json
|
|
106
93
|
├── findings/
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
└── phases/
|
|
95
|
+
├── SPRINT-N-*.md
|
|
96
|
+
└── SPRINT-N-*.summary.json
|
|
109
97
|
```
|
|
110
98
|
|
|
111
|
-
|
|
99
|
+
Markdown is the human-readable evidence. JSON files are the fast routing cache used to save tokens.
|
|
112
100
|
|
|
113
|
-
|
|
114
|
-
.agents/kyro/scopes/rules.md
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
The artifact files are the compatibility layer. Any agent that can read and write these files can continue the Kyro workflow.
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Key Concepts
|
|
122
|
-
|
|
123
|
-
### Modes
|
|
124
|
-
|
|
125
|
-
| Mode | When to Use | What It Does |
|
|
126
|
-
| --- | --- | --- |
|
|
127
|
-
| INIT | Starting a new project workflow | Analyzes the codebase, generates findings, creates a roadmap, and scaffolds the output directory |
|
|
128
|
-
| SPRINT | Ready to work on the next iteration | Generates a sprint from the roadmap and previous retro, then optionally executes it task by task |
|
|
129
|
-
| STATUS | Checking progress | Reads sprint files and reports progress, debt status, and next sprint context |
|
|
130
|
-
|
|
131
|
-
### Gates
|
|
132
|
-
|
|
133
|
-
Gates are mandatory approval checkpoints. Kyro never proceeds past a gate without explicit user approval:
|
|
134
|
-
|
|
135
|
-
- **Gate 1** -- after analysis, before planning
|
|
136
|
-
- **Gate 2** -- after sprint plan generation, before implementation
|
|
137
|
-
- **Gate 3** -- after implementation, before review and close
|
|
101
|
+
## Verify
|
|
138
102
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Rules
|
|
144
|
-
|
|
145
|
-
When you correct an agent during a sprint, the correction can become a persistent project rule:
|
|
146
|
-
|
|
147
|
-
```text
|
|
148
|
-
User correction -> proposed rule -> user approval -> .agents/kyro/scopes/rules.md
|
|
103
|
+
```bash
|
|
104
|
+
kyro doctor
|
|
105
|
+
kyro doctor --tokens
|
|
149
106
|
```
|
|
150
107
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### Debt Tracking
|
|
154
|
-
|
|
155
|
-
Technical debt is tracked formally across sprints. Items are never deleted; only their status changes.
|
|
156
|
-
|
|
157
|
-
---
|
|
108
|
+
`doctor --tokens` warns when command routers, projected skills, mode files, or AGENTS.md bootstrap instructions become too heavy.
|
|
158
109
|
|
|
159
|
-
## Next
|
|
110
|
+
## Next steps
|
|
160
111
|
|
|
161
|
-
- [
|
|
162
|
-
- [
|
|
163
|
-
- [
|
|
164
|
-
- [
|
|
165
|
-
- [Architecture](architecture.md) -- system design and data flow
|
|
112
|
+
- [CLI](cli.md)
|
|
113
|
+
- [Agent Adapters](agent-adapters.md)
|
|
114
|
+
- [Commands Reference](commands-reference.md)
|
|
115
|
+
- [Architecture](architecture.md)
|
package/package.json
CHANGED