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.
Files changed (67) hide show
  1. package/.claude-plugin/plugin.json +4 -2
  2. package/README.md +8 -11
  3. package/WORKFLOW.yaml +1 -1
  4. package/agents/orchestrator.md +3 -3
  5. package/commands/forge.md +22 -44
  6. package/commands/status.md +21 -79
  7. package/commands/wrap-up.md +18 -74
  8. package/dist/cli/adapters/codex.js +1 -1
  9. package/dist/cli/adapters/codex.js.map +1 -1
  10. package/dist/cli/adapters/command-skills.js +1 -1
  11. package/dist/cli/adapters/command-skills.js.map +1 -1
  12. package/dist/cli/app.js +1 -1
  13. package/dist/cli/app.js.map +1 -1
  14. package/dist/cli/commands/doctor.d.ts +2 -1
  15. package/dist/cli/commands/doctor.d.ts.map +1 -1
  16. package/dist/cli/commands/doctor.js +8 -4
  17. package/dist/cli/commands/doctor.js.map +1 -1
  18. package/dist/cli/commands/token-audit.d.ts +3 -0
  19. package/dist/cli/commands/token-audit.d.ts.map +1 -0
  20. package/dist/cli/commands/token-audit.js +263 -0
  21. package/dist/cli/commands/token-audit.js.map +1 -0
  22. package/dist/cli/commands/tui.js +3 -3
  23. package/dist/cli/commands/tui.js.map +1 -1
  24. package/dist/cli/help.d.ts.map +1 -1
  25. package/dist/cli/help.js +3 -0
  26. package/dist/cli/help.js.map +1 -1
  27. package/dist/cli/options.d.ts.map +1 -1
  28. package/dist/cli/options.js +5 -0
  29. package/dist/cli/options.js.map +1 -1
  30. package/dist/cli/types.d.ts +1 -0
  31. package/dist/cli/types.d.ts.map +1 -1
  32. package/docs/HOW-TO-USE-CODEX.md +28 -60
  33. package/docs/HOW-TO-USE-OPENCODE.md +26 -72
  34. package/docs/agent-adapters.md +40 -118
  35. package/docs/architecture.md +7 -2
  36. package/docs/cli.md +25 -2
  37. package/docs/commands-reference.md +22 -32
  38. package/docs/getting-started.md +65 -115
  39. package/package.json +1 -1
  40. package/skills/sprint-forge/SKILL.md +11 -10
  41. package/skills/sprint-forge/assets/README.md +38 -17
  42. package/skills/sprint-forge/assets/fixtures/subcommands-and-reports.sizingDecision.json +17 -0
  43. package/skills/sprint-forge/assets/helpers/analysis/audit.md +18 -0
  44. package/skills/sprint-forge/assets/helpers/analysis/bugfix.md +19 -0
  45. package/skills/sprint-forge/assets/helpers/analysis/feature.md +28 -0
  46. package/skills/sprint-forge/assets/helpers/analysis/new-project.md +18 -0
  47. package/skills/sprint-forge/assets/helpers/analysis/refactor.md +18 -0
  48. package/skills/sprint-forge/assets/helpers/analysis/tech-debt.md +18 -0
  49. package/skills/sprint-forge/assets/helpers/metrics.md +4 -4
  50. package/skills/sprint-forge/assets/helpers/reentry-generator.md +4 -4
  51. package/skills/sprint-forge/assets/modes/INIT.md +45 -177
  52. package/skills/sprint-forge/assets/modes/SPRINT.md +20 -246
  53. package/skills/sprint-forge/assets/modes/STATUS.md +46 -128
  54. package/skills/sprint-forge/assets/modes/close-sprint.md +29 -0
  55. package/skills/sprint-forge/assets/modes/execute-task.md +26 -0
  56. package/skills/sprint-forge/assets/modes/plan-sprint.md +29 -0
  57. package/skills/sprint-forge/assets/modes/recover.md +23 -0
  58. package/skills/sprint-forge/assets/modes/review-task.md +25 -0
  59. package/skills/sprint-forge/assets/templates/DEBT.summary.json +12 -0
  60. package/skills/sprint-forge/assets/templates/PROJECT-README.md +16 -60
  61. package/skills/sprint-forge/assets/templates/REENTRY-PROMPTS.md +18 -87
  62. package/skills/sprint-forge/assets/templates/ROADMAP.md +16 -65
  63. package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +24 -0
  64. package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
  65. package/skills/sprint-forge/assets/templates/index.json +24 -0
  66. package/skills/sprint-forge/assets/templates/state.json +11 -0
  67. package/skills/sprint-forge/assets/helpers/analysis-guide.md +0 -207
@@ -1,152 +1,74 @@
1
1
  # Agent Adapters
2
2
 
3
- Kyro is an agent-agnostic workflow kit. Native platform behavior depends on whether the host agent supports commands, project rules, skills, or plugin manifests. The portable interface is always the same: markdown instructions plus `.agents/kyro/scopes/{scope}/` artifacts.
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
- | `agents/orchestrator.md` | Full workflow coordinator instructions |
14
- | `skills/sprint-forge/SKILL.md` | Sprint planning, execution, status, debt, and re-entry workflow |
15
- | `skills/qa-review/SKILL.md` | Senior QA, architecture, security, and sprint alignment review |
16
- | `commands/*.md` | Native slash-command semantics where supported |
17
- | `.agents/kyro/scopes/{scope}/` | Project roadmap, findings, phases, handoffs, rules, and re-entry prompts |
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
- mkdir -p .skills .agents .agents/kyro/scopes
35
-
36
- cp -r /path/to/kyro-ai/skills/sprint-forge .skills/
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
- Use this onboarding prompt for any agent:
24
+ Implemented adapters:
42
25
 
43
- ```text
44
- Use Kyro as the workflow for this project.
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
- Read these files first:
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
- Persist workflow artifacts under:
52
- - .agents/kyro/scopes/{scope}/
34
+ ## Command intents
53
35
 
54
- If native slash commands are unavailable:
55
- - forge = analyze/plan/execute/review/close
56
- - status = read artifacts and report progress/debt
57
- - wrap-up = close session and update re-entry prompts
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
- ## Claude Code Adapter
44
+ ## Codex
63
45
 
64
- Claude Code has a native adapter through `.claude-plugin/`.
46
+ Use:
65
47
 
66
48
  ```bash
67
- /plugin marketplace add SynapSync/kyro-ai
68
- /plugin install kyro-ai@kyro-ai
49
+ npx kyro-ai install --agent codex --scope workspace --yes
69
50
  ```
70
51
 
71
- The Claude adapter registers commands, the orchestrator agent, and skills. It is the only native adapter included in this repository today.
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
- ## Codex Adapter
76
-
77
- Codex-style agents should use Kyro as project context:
56
+ Use:
78
57
 
79
58
  ```bash
80
- mkdir -p .skills .agents
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
- ## Model Guidance
64
+ ## Claude
141
65
 
142
- Kyro does not route or enforce model selection.
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
- - Use the strongest available model for implementation, debugging, and architecture decisions.
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 Rule
72
+ ## Compatibility rule
151
73
 
152
- Do not add platform-specific behavior to the core workflow unless the behavior works through markdown artifacts or is isolated in an adapter-specific directory.
74
+ Keep platform-specific behavior in adapters. The core workflow must remain portable through command routers, scoped state, summaries, and Markdown artifacts.
@@ -86,17 +86,22 @@ ORCHESTRATOR
86
86
 
87
87
  ## Artifact Layout
88
88
 
89
- Kyro stores workflow state in markdown files. This keeps the workflow portable across AI coding platforms, easy to review in git, and usable without a local service.
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 artifacts |
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 is created later when a scope is created or opened by a future scope/forge workflow.
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.1",
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 maps to one or more agents and skills that handle the actual work.
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
- ### Phases and Gates
31
+ ### Routing
32
32
 
33
- The `/kyro:forge` command runs the complete lifecycle:
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
- [GATE 0: RULES] Load learned rules from .agents/kyro/scopes/rules.md
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
- - **Analysis protocol** -- Phase 1 (codebase exploration, read-only)
71
- - **Review checklist** -- Phase 3 (after each task)
72
- - **Debug protocol** -- Phase 3 (on task failure)
73
- - **orchestrator** -- coordinates the full cycle
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 all files in the output directory:
136
- - `README.md` for project overview
137
- - `ROADMAP.md` for planned sprints
138
- - All `phases/SPRINT-*.md` files for progress, debt, and retro data
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
@@ -1,165 +1,115 @@
1
1
  # Getting Started with Kyro
2
2
 
3
- Kyro is a portable, markdown-first workflow kit for AI coding agents. It coordinates sprint-based execution through one orchestrator, reusable skills, command intent documents, persistent project rules, and `.agents/kyro/scopes/{scope}/` artifacts.
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
- - **Node.js >= 18** -- required to build and package Kyro
12
- - **Git** -- recommended for project workflows and review
13
- - **An AI coding agent** -- Claude Code, Codex, OpenCode, Cursor, or another agent that can read markdown instructions
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
- ### Claude Code Adapter
11
+ ## Install
27
12
 
28
- Use this path when you want Claude Code to register Kyro slash commands, agents, and skills automatically:
13
+ Default standard install:
29
14
 
30
15
  ```bash
31
- /plugin install SynapSync/kyro-ai
16
+ npx kyro-ai install --scope workspace --yes
32
17
  ```
33
18
 
34
- For local development:
19
+ Agent-specific installs:
35
20
 
36
21
  ```bash
37
- git clone https://github.com/SynapSync/kyro-ai.git ~/.claude/plugins/kyro-ai
38
- cd ~/.claude/plugins/kyro-ai
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
- ### Generic Agent Setup
26
+ Claude plugin support remains first-class through `.claude-plugin/` and Claude's plugin install flow.
45
27
 
46
- Use this path for agents without a verified Kyro-native plugin mechanism:
28
+ ## What gets installed
47
29
 
48
- ```bash
49
- git clone https://github.com/SynapSync/kyro-ai.git ~/kyro-ai
50
- cd your-project
51
- mkdir -p .agents .skills
52
- cp -R ~/kyro-ai/agents .agents/kyro
53
- cp -R ~/kyro-ai/skills/sprint-forge .skills/sprint-forge
54
- cp -R ~/kyro-ai/skills/qa-review .skills/qa-review
55
- mkdir -p .agents/kyro/scopes
30
+ Global runtime:
31
+
32
+ ```text
33
+ ~/.agents/kyro/current/
34
+ ├── commands/
35
+ ├── core/
36
+ ├── skills/
37
+ └── manifest.json
56
38
  ```
57
39
 
58
- Then expose these files as project context or rules in your agent:
40
+ Global command skills:
59
41
 
60
- - `.agents/kyro/orchestrator.md`
61
- - `.skills/sprint-forge/SKILL.md`
62
- - `.skills/qa-review/SKILL.md`
63
- - Kyro command intent files from `commands/*.md`, when your agent supports slash commands or reusable prompts
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
- See [agent-adapters.md](agent-adapters.md) for Codex, OpenCode, Cursor, and generic AGENTS guidance.
49
+ Project state:
66
50
 
67
- ---
51
+ ```text
52
+ .agents/kyro/
53
+ ├── kyro.json
54
+ └── scopes/
55
+ ```
68
56
 
69
- ## First Run
57
+ `kyro install` does not create scoped `state.json`; the forge/INIT workflow creates scoped state only when a scope exists.
70
58
 
71
- If your platform supports Kyro slash commands, start with:
59
+ ## First run
60
+
61
+ Use the installed command skill or slash command:
72
62
 
73
63
  ```text
74
- /kyro:forge analyze the authentication module
64
+ kyro-forge auth-refactor
75
65
  ```
76
66
 
77
- If your platform does not support slash commands, invoke the same intent manually:
67
+ or, in Claude-style slash command environments:
78
68
 
79
69
  ```text
80
- Use Kyro forge mode. Read the orchestrator, core, and qa-review instructions. Analyze the authentication module, produce findings, create or update the sprint artifacts under .agents/kyro/scopes/{scope}/, and stop at each approval gate.
70
+ /kyro:forge auth-refactor
81
71
  ```
82
72
 
83
- This starts the full sprint cycle:
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
- To check progress, use `/kyro:status` or ask the agent to run Kyro status mode by reading `.agents/kyro/scopes/{scope}/`.
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
- ## Output Structure
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
- ├── phases/
108
- └── handoffs/
94
+ └── phases/
95
+ ├── SPRINT-N-*.md
96
+ └── SPRINT-N-*.summary.json
109
97
  ```
110
98
 
111
- Project rules are stored in:
99
+ Markdown is the human-readable evidence. JSON files are the fast routing cache used to save tokens.
112
100
 
113
- ```text
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
- ### Checkpoints
140
-
141
- Sprint files are saved to disk after each phase completes. This keeps progress recoverable across session restarts, context compaction, or switching agents.
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
- Rules are specific, dated, and tied to the project where they were learned. See [rules-guide.md](rules-guide.md).
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 Steps
110
+ ## Next steps
160
111
 
161
- - [Agent Adapters](agent-adapters.md) -- setup guidance for Claude Code, Codex, OpenCode, Cursor, and generic agents
162
- - [Commands Reference](commands-reference.md) -- syntax and examples for all 3 command intents
163
- - [Agents Reference](agents-reference.md) -- how the orchestrator and protocols work
164
- - [Rules Guide](rules-guide.md) -- the per-project learning system
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyro-ai",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Portable sprint workflow kit for AI coding agents, with markdown artifacts, adapter guides, and formal debt tracking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",