kyro-ai 3.2.0 → 3.2.2
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 +1 -1
- package/README.md +46 -39
- package/WORKFLOW.yaml +1 -1
- 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 +3 -3
- 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/adapters/opencode.d.ts +0 -2
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/opencode.js +2 -10
- package/dist/cli/adapters/opencode.js.map +1 -1
- package/dist/cli/adapters/registry.d.ts.map +1 -1
- package/dist/cli/adapters/registry.js +3 -1
- package/dist/cli/adapters/registry.js.map +1 -1
- package/dist/cli/adapters/standard.d.ts +5 -0
- package/dist/cli/adapters/standard.d.ts.map +1 -0
- package/dist/cli/adapters/standard.js +41 -0
- package/dist/cli/adapters/standard.js.map +1 -0
- 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 +27 -18
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +8 -7
- package/dist/cli/commands/install.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 +141 -0
- package/dist/cli/commands/token-audit.js.map +1 -0
- package/dist/cli/commands/tui.d.ts.map +1 -1
- package/dist/cli/commands/tui.js +10 -6
- package/dist/cli/commands/tui.js.map +1 -1
- package/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/dist/cli/commands/uninstall.js +9 -9
- package/dist/cli/commands/uninstall.js.map +1 -1
- package/dist/cli/constants.d.ts +12 -7
- package/dist/cli/constants.d.ts.map +1 -1
- package/dist/cli/constants.js +13 -5
- package/dist/cli/constants.js.map +1 -1
- package/dist/cli/fs.d.ts +3 -0
- package/dist/cli/fs.d.ts.map +1 -1
- package/dist/cli/fs.js +30 -5
- package/dist/cli/fs.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +6 -4
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/install-plan.d.ts.map +1 -1
- package/dist/cli/install-plan.js +27 -20
- package/dist/cli/install-plan.js.map +1 -1
- package/dist/cli/options.d.ts.map +1 -1
- package/dist/cli/options.js +8 -1
- package/dist/cli/options.js.map +1 -1
- package/dist/cli/state.js +1 -1
- package/dist/cli/state.js.map +1 -1
- package/dist/cli/types.d.ts +4 -1
- 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 +93 -29
- 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 +9 -8
- package/skills/sprint-forge/assets/README.md +27 -17
- 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 +68 -169
- 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/ROADMAP.summary.json +15 -0
- package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
- package/skills/sprint-forge/assets/templates/index.json +15 -0
- package/skills/sprint-forge/assets/templates/state.json +11 -0
|
@@ -1,93 +1,47 @@
|
|
|
1
1
|
# OpenCode Adapter Guide
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
---
|
|
3
|
+
OpenCode should discover Kyro through global command skills. Do not copy Kyro core into each project.
|
|
6
4
|
|
|
7
5
|
## Setup
|
|
8
6
|
|
|
9
7
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
cp -r kyro-ai/skills/sprint-forge .skills/
|
|
13
|
-
cp -r kyro-ai/skills/qa-review .skills/
|
|
14
|
-
cp kyro-ai/agents/orchestrator.md .agents/
|
|
8
|
+
npx kyro-ai install --agent opencode --scope workspace --yes
|
|
15
9
|
```
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
This installs:
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
│ ├── orchestrator.md
|
|
23
|
-
│ └── core/
|
|
24
|
-
│ └── {scope}/
|
|
25
|
-
├── .skills/
|
|
26
|
-
│ ├── sprint-forge/
|
|
27
|
-
│ └── qa-review/
|
|
28
|
-
└── src/
|
|
29
|
-
```
|
|
13
|
+
- global runtime: `~/.agents/kyro/current/`
|
|
14
|
+
- global command skills: `~/.agents/skills/kyro-*`
|
|
15
|
+
- project state: `.agents/kyro/kyro.json`
|
|
30
16
|
|
|
31
|
-
|
|
17
|
+
## Usage
|
|
32
18
|
|
|
33
|
-
|
|
19
|
+
Use the installed command-like skills:
|
|
34
20
|
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
- `kyro-forge` — route analyze/plan/execute/review/close
|
|
22
|
+
- `kyro-status` — summary-first progress and debt report
|
|
23
|
+
- `kyro-wrap-up` — close session and refresh handoff context
|
|
37
24
|
|
|
38
|
-
|
|
39
|
-
@file .agents/orchestrator.md
|
|
40
|
-
@file .skills/sprint-forge/SKILL.md
|
|
41
|
-
@file .skills/qa-review/SKILL.md
|
|
25
|
+
Each skill is intentionally tiny. It loads the command router first, then only the mode/helper/template needed for the current step.
|
|
42
26
|
|
|
43
|
-
|
|
44
|
-
If slash commands are unavailable, use:
|
|
45
|
-
- forge = analyze/plan/execute/review/close
|
|
46
|
-
- status = read artifacts and report progress/debt
|
|
47
|
-
- wrap-up = close session and update re-entry prompts
|
|
48
|
-
```
|
|
27
|
+
## Artifacts
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## Example Flows
|
|
53
|
-
|
|
54
|
-
### Sprint Planning
|
|
29
|
+
Save workflow artifacts under:
|
|
55
30
|
|
|
56
31
|
```text
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
32
|
+
.agents/kyro/scopes/{scope}/
|
|
33
|
+
├── state.json
|
|
34
|
+
├── index.json
|
|
35
|
+
├── ROADMAP.md
|
|
36
|
+
├── ROADMAP.summary.json
|
|
37
|
+
└── phases/
|
|
38
|
+
├── SPRINT-N-*.md
|
|
39
|
+
└── SPRINT-N-*.summary.json
|
|
63
40
|
```
|
|
64
41
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```text
|
|
68
|
-
@file .skills/qa-review/SKILL.md
|
|
69
|
-
@file .agents/kyro/scopes/{scope}/RE-ENTRY-PROMPTS.md
|
|
42
|
+
## Verify
|
|
70
43
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Session Wrap-Up
|
|
76
|
-
|
|
77
|
-
```text
|
|
78
|
-
@file .agents/orchestrator.md
|
|
79
|
-
@file .skills/sprint-forge/SKILL.md
|
|
80
|
-
|
|
81
|
-
Run the wrap-up intent for {scope}.
|
|
82
|
-
Update retro notes, debt status, re-entry prompts, and proposed learned rules.
|
|
44
|
+
```bash
|
|
45
|
+
kyro doctor
|
|
46
|
+
kyro doctor --tokens
|
|
83
47
|
```
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## Limitations
|
|
88
|
-
|
|
89
|
-
- OpenCode may not register Kyro commands or skills natively.
|
|
90
|
-
- You must ensure generated artifacts are saved under `.agents/kyro/scopes/{scope}/`.
|
|
91
|
-
- Learned rules are markdown-based and must be maintained in `rules.md`.
|
|
92
|
-
|
|
93
|
-
For the generic adapter contract and Cursor notes, see [Agent Adapters](agent-adapters.md).
|
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
|
@@ -1,52 +1,89 @@
|
|
|
1
1
|
# Kyro CLI
|
|
2
2
|
|
|
3
|
-
Kyro includes a small CLI for installing workspace harness assets and checking health.
|
|
3
|
+
Kyro includes a small CLI for installing workspace harness assets, projecting command skills, and checking package/workspace health.
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
kyro # Open the interactive TUI
|
|
9
|
-
kyro install # Install
|
|
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
|
-
kyro uninstall # Remove managed workspace assets, preserving
|
|
13
|
+
kyro uninstall # Remove managed workspace assets, preserving scope artifacts
|
|
13
14
|
```
|
|
14
15
|
|
|
15
|
-
`npx kyro-ai`
|
|
16
|
+
`npx kyro-ai` resolves to the same CLI entrypoint.
|
|
16
17
|
|
|
17
18
|
## Install Scope
|
|
18
19
|
|
|
19
|
-
The default install scope is `workspace
|
|
20
|
+
The default install scope is `workspace`, but Kyro now separates global runtime from project state.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
Global runtime files are installed once per Kyro version:
|
|
22
23
|
|
|
23
24
|
```text
|
|
24
|
-
|
|
25
|
-
├──
|
|
26
|
-
│
|
|
27
|
-
│
|
|
28
|
-
│
|
|
29
|
-
│
|
|
30
|
-
│
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
│ ├── kyro-status/SKILL.md
|
|
34
|
-
│ └── kyro-wrap-up/SKILL.md
|
|
35
|
-
└── core/
|
|
36
|
-
└── kyro.json
|
|
25
|
+
~/.agents/kyro/
|
|
26
|
+
├── versions/
|
|
27
|
+
│ └── {version}/
|
|
28
|
+
│ ├── core/
|
|
29
|
+
│ ├── commands/
|
|
30
|
+
│ ├── skills/
|
|
31
|
+
│ ├── KYRO.md
|
|
32
|
+
│ └── manifest.json
|
|
33
|
+
└── current -> versions/{version}
|
|
37
34
|
```
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
Global command skills are installed for agent discovery:
|
|
40
37
|
|
|
41
|
-
|
|
38
|
+
```text
|
|
39
|
+
~/.agents/skills/
|
|
40
|
+
├── kyro-forge/SKILL.md
|
|
41
|
+
├── kyro-status/SKILL.md
|
|
42
|
+
└── kyro-wrap-up/SKILL.md
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The project keeps only state and artifacts:
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
.agents/kyro/
|
|
49
|
+
├── kyro.json
|
|
50
|
+
└── scopes/
|
|
51
|
+
└── {scope}/
|
|
52
|
+
├── state.json
|
|
53
|
+
├── index.json
|
|
54
|
+
├── ROADMAP.md
|
|
55
|
+
├── ROADMAP.summary.json
|
|
56
|
+
└── phases/
|
|
57
|
+
├── SPRINT-N-*.md
|
|
58
|
+
└── SPRINT-N-*.summary.json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Adapters
|
|
62
|
+
|
|
63
|
+
Implemented workspace adapters:
|
|
64
|
+
|
|
65
|
+
| Adapter | Purpose |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| `standard` | Base `~/.agents/skills/kyro-*` command skill projection for compatible agents |
|
|
68
|
+
| `opencode` | OpenCode adapter using the same projected Kyro command skills |
|
|
69
|
+
| `codex` | Codex adapter with projected Kyro command skills plus a managed root `AGENTS.md` block |
|
|
70
|
+
|
|
71
|
+
Default install uses `standard`:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
kyro install --scope workspace --dry-run
|
|
75
|
+
kyro install --scope workspace --yes
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Agent-specific installs:
|
|
42
79
|
|
|
43
80
|
```bash
|
|
44
|
-
kyro install --agent opencode --scope workspace --dry-run
|
|
45
81
|
kyro install --agent opencode --scope workspace --yes
|
|
46
82
|
kyro install --agent codex --scope workspace --yes
|
|
83
|
+
kyro install --agent standard,opencode,codex --scope workspace --yes
|
|
47
84
|
```
|
|
48
85
|
|
|
49
|
-
The adapters project Kyro workflows into
|
|
86
|
+
The adapters project Kyro workflows into `~/.agents/skills/` so compatible agents can discover command-like skills without asking the user to invoke Kyro through prose.
|
|
50
87
|
|
|
51
88
|
Projected skills:
|
|
52
89
|
|
|
@@ -54,17 +91,17 @@ Projected skills:
|
|
|
54
91
|
- `kyro-status`
|
|
55
92
|
- `kyro-wrap-up`
|
|
56
93
|
|
|
57
|
-
Each projected skill references the managed Kyro
|
|
94
|
+
Each projected skill references the managed Kyro runtime in `~/.agents/kyro/current/` instead of duplicating long workflow instructions.
|
|
58
95
|
|
|
59
96
|
## State Model
|
|
60
97
|
|
|
61
|
-
`kyro install` creates only
|
|
98
|
+
`kyro install` creates only root project state:
|
|
62
99
|
|
|
63
100
|
```text
|
|
64
|
-
.agents/kyro/
|
|
101
|
+
.agents/kyro/kyro.json
|
|
65
102
|
```
|
|
66
103
|
|
|
67
|
-
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.
|
|
68
105
|
|
|
69
106
|
Initial state shape:
|
|
70
107
|
|
|
@@ -74,14 +111,41 @@ Initial state shape:
|
|
|
74
111
|
"artifactRoot": ".agents/kyro/scopes",
|
|
75
112
|
"scopes": [],
|
|
76
113
|
"activeScope": null,
|
|
114
|
+
"runtimeVersion": "3.2.2",
|
|
115
|
+
"runtimePath": "~/.agents/kyro/current",
|
|
77
116
|
"installedAdapters": []
|
|
78
117
|
}
|
|
79
118
|
```
|
|
80
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
|
+
- startup/status brief paths stay under their estimated token budgets
|
|
130
|
+
|
|
131
|
+
Warnings mean Kyro still works, but the harness is becoming expensive to load.
|
|
132
|
+
|
|
133
|
+
## Sync Semantics
|
|
134
|
+
|
|
135
|
+
`kyro sync` without `--agent` refreshes the adapters already recorded in `.agents/kyro/kyro.json`.
|
|
136
|
+
|
|
137
|
+
It must not add the default `standard` adapter to an existing workspace unless the user explicitly passes it:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
kyro sync
|
|
141
|
+
kyro sync --agent standard --dry-run
|
|
142
|
+
kyro sync --agent codex --dry-run
|
|
143
|
+
```
|
|
144
|
+
|
|
81
145
|
## Claude Plugin Support
|
|
82
146
|
|
|
83
|
-
The Claude plugin adapter remains first-class through `.claude-plugin/`. The CLI does not replace it; it complements Kyro's adapter story for agents that need workspace-installed commands, skills, root AGENTS.md managed blocks, and core assets.
|
|
147
|
+
The Claude plugin adapter remains first-class through `.claude-plugin/`. The CLI does not replace it; it complements Kyro's adapter story for agents that need workspace-installed commands, skills, root `AGENTS.md` managed blocks, and core assets.
|
|
84
148
|
|
|
85
149
|
## Unsupported Generic Adapter
|
|
86
150
|
|
|
87
|
-
Kyro does not provide `--agent generic`. Cross-agent instructions belong in
|
|
151
|
+
Kyro does not provide `--agent generic`. Cross-agent instructions belong in root `AGENTS.md`, and adapter installs should target concrete agent capabilities.
|
|
@@ -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
|