project-iris 0.0.12 → 0.0.14

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 (189) hide show
  1. package/README.md +214 -323
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +79 -0
  5. package/flows/aidlc/agents/inception-agent.md +97 -0
  6. package/flows/aidlc/agents/master-agent.md +61 -0
  7. package/flows/aidlc/agents/operations-agent.md +89 -0
  8. package/flows/aidlc/commands/construction-agent.md +63 -0
  9. package/flows/aidlc/commands/inception-agent.md +55 -0
  10. package/flows/aidlc/commands/master-agent.md +47 -0
  11. package/flows/aidlc/commands/operations-agent.md +77 -0
  12. package/flows/aidlc/context-config.yaml +67 -0
  13. package/flows/aidlc/memory-bank.yaml +104 -0
  14. package/flows/aidlc/quick-start.md +322 -0
  15. package/flows/aidlc/skills/construction/bolt-list.md +163 -0
  16. package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
  17. package/flows/aidlc/skills/construction/bolt-start.md +442 -0
  18. package/flows/aidlc/skills/construction/bolt-status.md +185 -0
  19. package/flows/aidlc/skills/construction/navigator.md +196 -0
  20. package/flows/aidlc/skills/inception/bolt-plan.md +372 -0
  21. package/flows/aidlc/skills/inception/context.md +171 -0
  22. package/flows/aidlc/skills/inception/intent-create.md +211 -0
  23. package/flows/aidlc/skills/inception/intent-list.md +124 -0
  24. package/flows/aidlc/skills/inception/navigator.md +207 -0
  25. package/flows/aidlc/skills/inception/requirements.md +227 -0
  26. package/flows/aidlc/skills/inception/review.md +248 -0
  27. package/flows/aidlc/skills/inception/story-create.md +304 -0
  28. package/flows/aidlc/skills/inception/units.md +278 -0
  29. package/flows/aidlc/skills/master/analyze-context.md +239 -0
  30. package/flows/aidlc/skills/master/answer-question.md +141 -0
  31. package/flows/aidlc/skills/master/explain-flow.md +158 -0
  32. package/flows/aidlc/skills/master/project-init.md +281 -0
  33. package/flows/aidlc/skills/master/route-request.md +126 -0
  34. package/flows/aidlc/skills/operations/build.md +237 -0
  35. package/flows/aidlc/skills/operations/deploy.md +259 -0
  36. package/flows/aidlc/skills/operations/monitor.md +265 -0
  37. package/flows/aidlc/skills/operations/navigator.md +209 -0
  38. package/flows/aidlc/skills/operations/verify.md +224 -0
  39. package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt.md +3 -3
  40. package/{dist → flows/aidlc}/templates/construction/bolt-types/spike-bolt.md +2 -2
  41. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  42. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  43. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  44. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  45. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  46. package/flows/aidlc/templates/inception/project/README.md +55 -0
  47. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  48. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  49. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  50. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  51. package/lib/InstallerFactory.js +36 -0
  52. package/lib/analytics/env-detector.js +92 -0
  53. package/lib/analytics/index.js +22 -0
  54. package/lib/analytics/machine-id.js +33 -0
  55. package/lib/analytics/tracker.js +232 -0
  56. package/lib/cli-utils.js +342 -0
  57. package/lib/constants.js +32 -0
  58. package/lib/installer.js +402 -0
  59. package/lib/installers/AntigravityInstaller.js +22 -0
  60. package/lib/installers/ClaudeInstaller.js +85 -0
  61. package/lib/installers/ClineInstaller.js +21 -0
  62. package/lib/installers/CodexInstaller.js +21 -0
  63. package/lib/installers/CopilotInstaller.js +113 -0
  64. package/lib/installers/CursorInstaller.js +63 -0
  65. package/lib/installers/GeminiInstaller.js +75 -0
  66. package/lib/installers/KiroInstaller.js +22 -0
  67. package/lib/installers/OpenCodeInstaller.js +22 -0
  68. package/lib/installers/RooInstaller.js +22 -0
  69. package/lib/installers/ToolInstaller.js +73 -0
  70. package/lib/installers/WindsurfInstaller.js +22 -0
  71. package/lib/markdown-validator.ts +175 -0
  72. package/lib/yaml-validator.ts +99 -0
  73. package/package.json +105 -32
  74. package/scripts/artifact-validator.js +594 -0
  75. package/scripts/bolt-complete.js +606 -0
  76. package/scripts/status-integrity.js +598 -0
  77. package/dist/bridge/agent-runner.js +0 -190
  78. package/dist/bridge/connector-factory.js +0 -31
  79. package/dist/bridge/connectors/antigravity-connector.js +0 -18
  80. package/dist/bridge/connectors/cursor-connector.js +0 -31
  81. package/dist/bridge/connectors/in-process-connector.js +0 -29
  82. package/dist/bridge/connectors/vscode-connector.js +0 -31
  83. package/dist/bridge/connectors/windsurf-connector.js +0 -23
  84. package/dist/bridge/filesystem-connector.js +0 -110
  85. package/dist/bridge/helper.js +0 -203
  86. package/dist/bridge/types.js +0 -10
  87. package/dist/cli.js +0 -40
  88. package/dist/commands/ask.js +0 -259
  89. package/dist/commands/bridge.js +0 -88
  90. package/dist/commands/create.js +0 -25
  91. package/dist/commands/develop.js +0 -141
  92. package/dist/commands/doctor.js +0 -102
  93. package/dist/commands/flow.js +0 -301
  94. package/dist/commands/framework.js +0 -273
  95. package/dist/commands/generate.js +0 -59
  96. package/dist/commands/install.js +0 -100
  97. package/dist/commands/pack.js +0 -33
  98. package/dist/commands/phase.js +0 -38
  99. package/dist/commands/run.js +0 -199
  100. package/dist/commands/status.js +0 -114
  101. package/dist/commands/uninstall.js +0 -14
  102. package/dist/commands/use.js +0 -20
  103. package/dist/commands/validate.js +0 -102
  104. package/dist/framework/framework-loader.js +0 -97
  105. package/dist/framework/framework-paths.js +0 -48
  106. package/dist/framework/framework-types.js +0 -15
  107. package/dist/iris/artifact-checker.js +0 -78
  108. package/dist/iris/artifacts/config.js +0 -68
  109. package/dist/iris/artifacts/generator.js +0 -88
  110. package/dist/iris/artifacts/types.js +0 -1
  111. package/dist/iris/bundle.js +0 -44
  112. package/dist/iris/doctrine/collector.js +0 -124
  113. package/dist/iris/fixer.js +0 -149
  114. package/dist/iris/flows/manifest.js +0 -124
  115. package/dist/iris/framework-context.js +0 -49
  116. package/dist/iris/framework-manager.js +0 -215
  117. package/dist/iris/fs/atomic.js +0 -22
  118. package/dist/iris/guard.js +0 -38
  119. package/dist/iris/importers/index.js +0 -9
  120. package/dist/iris/importers/types.js +0 -8
  121. package/dist/iris/importers/writer.js +0 -139
  122. package/dist/iris/include.js +0 -49
  123. package/dist/iris/installer.js +0 -334
  124. package/dist/iris/interactive/env.js +0 -21
  125. package/dist/iris/interactive/intent-interview.js +0 -345
  126. package/dist/iris/interactive/intent-schema.js +0 -28
  127. package/dist/iris/interactive/interview-io.js +0 -22
  128. package/dist/iris/interview/config.js +0 -71
  129. package/dist/iris/interview/types.js +0 -16
  130. package/dist/iris/interview/utils.js +0 -38
  131. package/dist/iris/manifest.js +0 -54
  132. package/dist/iris/packer.js +0 -325
  133. package/dist/iris/parsers/unit-parser.js +0 -43
  134. package/dist/iris/paths.js +0 -18
  135. package/dist/iris/policy.js +0 -133
  136. package/dist/iris/proc.js +0 -56
  137. package/dist/iris/report.js +0 -53
  138. package/dist/iris/resolver.js +0 -66
  139. package/dist/iris/router.js +0 -114
  140. package/dist/iris/routes.js +0 -189
  141. package/dist/iris/run-state.js +0 -146
  142. package/dist/iris/state.js +0 -113
  143. package/dist/iris/templates.js +0 -70
  144. package/dist/iris/tmp.js +0 -24
  145. package/dist/iris/uninstaller.js +0 -181
  146. package/dist/iris/utils/interpolate.js +0 -42
  147. package/dist/iris/validator.js +0 -391
  148. package/dist/iris/workflow/config.js +0 -51
  149. package/dist/iris/workflow/engine.js +0 -129
  150. package/dist/iris/workflow/steps.js +0 -448
  151. package/dist/iris/workflow/types.js +0 -1
  152. package/dist/iris_bundle/frameworks/iris-core/framework.yaml +0 -9
  153. package/dist/iris_bundle/frameworks/iris-core/memory/memory-bank.yaml +0 -1
  154. package/dist/iris_bundle/frameworks/iris-core/policy.yaml +0 -7
  155. package/dist/iris_bundle/frameworks/iris-core/templates/config/memory-bank.yaml +0 -1
  156. package/dist/iris_bundle/frameworks/iris-core/templates/construction/bolt-types/spike-bolt.md +0 -240
  157. package/dist/lib.js +0 -96
  158. package/dist/templates/construction/bolt-template.md +0 -226
  159. package/dist/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -49
  160. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -55
  161. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -67
  162. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -62
  163. package/dist/templates/construction/bolt-types/ddd-construction-bolt.md +0 -528
  164. package/dist/templates/construction/bolt-types/simple-construction-bolt.md +0 -347
  165. package/dist/templates/inception/requirements-template.md +0 -144
  166. package/dist/templates/inception/stories-template.md +0 -38
  167. package/dist/templates/inception/story-template.md +0 -147
  168. package/dist/templates/inception/system-context-template.md +0 -29
  169. package/dist/templates/inception/unit-brief-template.md +0 -177
  170. package/dist/templates/inception/units-template.md +0 -52
  171. package/dist/utils/exit-codes.js +0 -7
  172. package/dist/utils/logo.js +0 -17
  173. package/dist/workflows/bolt-execution.js +0 -238
  174. package/dist/workflows/bolt-plan.js +0 -221
  175. package/dist/workflows/intent-inception.js +0 -285
  176. package/dist/workflows/memory-bank-generator.js +0 -180
  177. package/dist/workflows/reporting.js +0 -74
  178. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-template.md +0 -0
  179. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -0
  180. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -0
  181. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -0
  182. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -0
  183. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/simple-construction-bolt.md +0 -0
  184. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/requirements-template.md +0 -0
  185. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/stories-template.md +0 -0
  186. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/story-template.md +0 -0
  187. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/system-context-template.md +0 -0
  188. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/unit-brief-template.md +0 -0
  189. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/units-template.md +0 -0
package/README.md CHANGED
@@ -1,424 +1,315 @@
1
- # IRIS v0.0.1
1
+ # iris
2
2
 
3
- **IRIS** (Intelligent Repository for Intent-driven Systems) is an AI-native project management framework. It structures your codebase, routes natural language intents to the right agents, and enforces architectural standards through validation gates.
3
+ **AI-native software development with multi-agent orchestration.**
4
4
 
5
- ## 🚀 Quick Start
5
+ iris implements the [AI-Driven Development Lifecycle (AI-DLC)](https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/) methodology as a set of markdown-based agents that work with your favorite AI coding tools.
6
6
 
7
- ### New Projects
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
8
 
9
- ```bash
10
- mkdir my-project && cd my-project
11
- npx project-iris@latest install
12
- ```
9
+ ---
13
10
 
14
- The installer will:
15
- - Create `package.json` if missing
16
- - Set up `.iris/` framework directory
17
- - Create `memory-bank/` structure
18
- - Install the default `iris-core` framework
19
- - **SaaS Bootstrap**: Auto-generates a "Repo Bootstrap" unit (`U000`) if `package.json` is missing.
20
- - Prompt for IDE selection (defaults to `auto` for internal agent)
11
+ ## What is AI-DLC?
21
12
 
22
- ### Select Your Agent
13
+ AI-DLC is a reimagined software development methodology where **AI drives the conversation** and humans validate. Unlike traditional Agile where iterations span weeks, AI-DLC operates in **Bolts** - rapid iterations measured in hours or days.
23
14
 
24
- IRIS can function as a standalone agent or bridge to your IDE:
15
+ > "Traditional development methods were built for human-driven, long-running processes. AI-DLC reimagines the development lifecycle with AI as a central collaborator, enabling rapid cycles measured in hours or days rather than weeks."
25
16
 
26
- ```bash
27
- # Use the built-in zero-config agent (Default)
28
- iris use auto
17
+ ### AI-DLC vs Traditional Methods
29
18
 
30
- # Bridge to an external IDE (e.g. Cursor, VS Code)
31
- iris use cursor
32
- ```
19
+ | Aspect | Agile/Scrum | AI-DLC |
20
+ |--------|-------------|--------|
21
+ | Iteration duration | Weeks (Sprints) | Hours/days (Bolts) |
22
+ | Who drives | Human-driven, AI assists | AI-driven, human-validated |
23
+ | Design techniques | Out of scope | Integrated (DDD, TDD, BDD) |
24
+ | Task decomposition | Manual | AI-powered |
25
+ | Phases | Repeating sprints | Rapid three-phase cycles (Inception → Construction → Operations) |
26
+ | Rituals | Daily standups, retrospectives | Mob Elaboration, Mob Construction |
33
27
 
34
- ### Existing Projects
28
+ ---
35
29
 
36
- ```bash
37
- npx project-iris@latest install
38
- ```
30
+ ## How It Works
39
31
 
40
- ### Verify Installation
32
+ iris provides four specialized agents that guide you through the entire development lifecycle:
41
33
 
42
- ```bash
43
- iris --help
44
- iris validate
45
- iris status
46
34
  ```
47
-
48
- > **Note**: The npm package is `project-iris`, but the CLI command is `iris`.
49
- > - With npx: `npx project-iris <command>`
50
- > - After global install: `iris <command>`
51
-
52
- ---
53
-
54
- ## Global Install
55
-
56
- ```bash
57
- npm install -g project-iris@latest
58
- iris --version
35
+ ┌─────────────────┐
36
+ │ Master Agent │ Orchestrates & navigates
37
+ └────────┬────────┘
38
+
39
+ ┌────────────────────┼────────────────────┐
40
+ ▼ ▼ ▼
41
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
42
+ │ Inception │ Construction │ → │ Operations │
43
+ │ Agent │ │ Agent │ │ Agent │
44
+ └───────────────┘ └───────────────┘ └───────────────┘
45
+ Capture intent Execute bolts Deploy & monitor
46
+ Define units Build & test Verify & scale
47
+ Plan stories Validate stages
59
48
  ```
60
49
 
61
- ---
62
-
63
- ## 🧠 Core Concepts
50
+ ### The Three Phases
64
51
 
65
- ### Lifecycle Phases
52
+ | Phase | Agent | Purpose | Key Outputs |
53
+ |-------|-------|---------|-------------|
54
+ | **Inception** | Inception Agent | Capture intents, elaborate requirements, decompose into units | User stories, NFRs, Unit definitions, Bolt plans |
55
+ | **Construction** | Construction Agent | Execute bolts through domain design → logical design → code → test | Domain models, Technical designs, Code, Tests |
56
+ | **Operations** | Operations Agent | Deploy, verify, and monitor | Deployment units, Monitoring, Runbooks |
66
57
 
67
- IRIS divides your project into three phases:
58
+ ---
68
59
 
69
- | Phase | Focus | Artifacts |
70
- |-------|-------|-----------|
71
- | **Inception** | Requirements, architecture | `memory-bank/intents/` |
72
- | **Construction** | Implementation, testing | `memory-bank/units/`, `memory-bank/bolts/` |
73
- | **Operations** | Deployment, monitoring | `memory-bank/logs/` |
60
+ ## Quick Start
74
61
 
75
- ### The Factory Loop (Construction)
62
+ ### Installation
76
63
 
77
- IRIS automates the delivery process through a deterministic loop:
64
+ ```bash
65
+ npx project-iris install
66
+ ```
78
67
 
79
- 1. **Unit List** (`unit-list.md`) - High-level breakdown of work.
80
- 2. **Unit Briefs** (`unit-brief.md`) - Detailed specs for each unit (Planning).
81
- 3. **Bolts** (`bolt.md`) - Executable tasks derived from briefs (Construction).
82
- 4. **Code & Test** - Implementation and verification (Execution).
68
+ The installer detects your AI coding tools (Claude Code, Cursor, GitHub Copilot) and sets up:
69
+ - Agent definitions and skills
70
+ - Memory bank structure for context persistence
71
+ - Slash commands for easy agent invocation
83
72
 
84
- The workflow engine orchestrates this loop using `iris run`.
73
+ ### Initialize Your Project
85
74
 
86
- ### Frameworks
75
+ ```bash
76
+ # Start the Master Agent
77
+ /iris-master-agent
87
78
 
88
- Frameworks are pluggable configurations that define:
89
- - **Policy** - Required artifacts and validation gates
90
- - **Routes** - Intent routing rules
91
- - **Interview** - Interactive Q&A for intent capture
92
- - **Artifacts** - Generated document templates
93
- - **Workflow** - Step execution order
79
+ # Then type:
80
+ project-init
81
+ ```
94
82
 
95
- ### The Memory Bank
83
+ This guides you through establishing:
84
+ - **Tech Stack** - Languages, frameworks, databases, infrastructure
85
+ - **Coding Standards** - Formatting, linting, naming, testing strategy
86
+ - **System Architecture** - Architecture style, API design, state management
87
+ - **UX Guide** - Design system, styling, accessibility (optional)
88
+ - **API Conventions** - API style, versioning, response formats (optional)
96
89
 
97
- A standardized documentation structure:
90
+ ### Create Your First Intent
98
91
 
99
- ```
100
- memory-bank/
101
- ├── intents/ # Requirements and context
102
- │ └── default/
103
- │ ├── requirements.md
104
- │ └── system-context.md
105
- ├── units/ # Implementation units
106
- ├── bolts/ # Reusable patterns
107
- ├── standards/ # Coding standards
108
- └── operations/ # Runbooks
92
+ ```bash
93
+ /iris-inception-agent intent-create
109
94
  ```
110
95
 
111
- ---
96
+ An **Intent** is your high-level goal:
97
+ - "User authentication system"
98
+ - "Product catalog with search"
99
+ - "Payment processing integration"
112
100
 
113
- ## 🔄 Commands
101
+ The agent will:
102
+ 1. Ask clarifying questions to minimize ambiguity
103
+ 2. Elaborate into user stories and NFRs
104
+ 3. Define system context
105
+ 4. Decompose into loosely-coupled units
114
106
 
115
- ### Intent & Routing
107
+ ### Plan and Execute Bolts
116
108
 
117
109
  ```bash
118
- # Route a natural language intent
119
- iris ask "I need to fix the auth bug"
110
+ # Plan bolts for your stories
111
+ /iris-inception-agent bolt-plan
120
112
 
121
- # Interactive intent interview
122
- iris ask --interactive
113
+ # Execute a bolt
114
+ /iris-construction-agent bolt-start
115
+ ```
123
116
 
124
- # Route a natural language intent (uses active agent)
125
- iris ask "I need to fix the auth bug"
117
+ Each bolt goes through validated stages:
118
+ 1. **Domain Model** - Model business logic using DDD principles
119
+ 2. **Technical Design** - Apply patterns and make architecture decisions
120
+ 3. **ADR Analysis** - Document significant decisions (optional)
121
+ 4. **Implement** - Generate production code
122
+ 5. **Test** - Verify correctness with automated tests
126
123
 
127
- # Interactive intent interview
128
- iris ask --interactive
124
+ **Human validation happens at each stage gate.**
129
125
 
130
- # Machine-readable output
131
- iris ask --json "scaffold login system"
132
- ```
133
-
134
- > **Note**: `iris ask` uses the active agent set by `iris use`. Default is `auto` (In-Process Agent).
126
+ ---
135
127
 
136
- ### Context Generation
128
+ ## Key Concepts
137
129
 
138
- ```bash
139
- # Generate context pack for current phase
140
- iris pack
130
+ ### Intent
131
+ A high-level statement of purpose that encapsulates what needs to be achieved - whether a business goal, feature, or technical outcome. It serves as the starting point for AI-driven decomposition.
141
132
 
142
- # Target specific agent
143
- iris pack --agent inception
133
+ ### Unit
134
+ A cohesive, self-contained work element derived from an Intent. Units are loosely coupled and can be developed independently. Analogous to a Subdomain (DDD) or Epic (Scrum).
144
135
 
145
- # Output to stdout
146
- iris pack --stdout
147
- ```
136
+ ### Bolt
137
+ The smallest iteration in AI-DLC, designed for rapid implementation. Unlike Sprints (weeks), Bolts are **hours to days**. Each bolt encapsulates a well-defined scope of work.
148
138
 
149
- ### Workflow Execution
139
+ | Type | Best For | Stages |
140
+ |------|----------|--------|
141
+ | **DDD Construction** | Complex business logic, domain modeling | Model → Design → ADR → Implement → Test |
142
+ | **Simple Construction** | UI, integrations, utilities | Plan → Implement → Test |
150
143
 
151
- ```bash
152
- # Start a new workflow run
153
- iris run --new
144
+ ### Memory Bank
145
+ File-based storage for all project artifacts. Maintains context across agent sessions and provides traceability between artifacts.
154
146
 
155
- # Run with a pre-defined intent (seed)
156
- iris run --new --seed intent-draft.json
147
+ ### Standards
148
+ Project decisions that inform AI code generation. Standards ensure consistency across all generated code and documentation.
157
149
 
158
- # Resume the latest run
159
- iris run --resume
150
+ ---
160
151
 
161
- # Resume a specific run
162
- iris run --resume 2026-01-03-21-41-43-abc1
152
+ ## Project Structure
163
153
 
164
- # Non-interactive mode (for CI/automation)
165
- iris run --new --seed draft.json --no-interactive
154
+ After installation:
166
155
 
167
- # Machine-readable output
168
- iris run --json
156
+ ```
157
+ .iris/
158
+ ├── manifest.yaml # Installation manifest
159
+ └── aidlc/ # AI-DLC flow
160
+ ├── agents/ # Agent definitions
161
+ ├── skills/ # Agent capabilities
162
+ ├── templates/ # Artifact templates
163
+ │ └── standards/ # Standards facilitation guides
164
+ └── memory-bank.yaml # Memory bank schema
165
+
166
+ memory-bank/ # Created after project-init
167
+ ├── intents/ # Your captured intents
168
+ │ └── {intent-name}/
169
+ │ ├── requirements.md
170
+ │ ├── system-context.md
171
+ │ └── units/
172
+ ├── bolts/ # Bolt execution records
173
+ ├── standards/ # Project standards
174
+ │ ├── tech-stack.md
175
+ │ ├── coding-standards.md
176
+ │ └── ...
177
+ └── operations/ # Deployment context
169
178
  ```
170
179
 
171
- 144: **Workflow Steps:**
172
- 145: 1. **Interview** - Capture intent (interactive or seed)
173
- 146: 2. **Artifacts** - Generate documents from templates
174
- 147: 3. **Plan** - Create unit briefs from unit list
175
- 148: 4. **Build** - Generate bolts from approved briefs
176
- 149: 5. **Execute** - Run bolt commands and generate test reports
177
- 150: 6. **Validate** - Check policy compliance
178
- 151: 7. **Pack** - Create context bundle
179
- 152: 8. **Handoff** - Generate final summary
180
+ ---
180
181
 
181
- ### Artifact Generation
182
+ ## Agent Commands
182
183
 
184
+ ### Master Agent
183
185
  ```bash
184
- # Generate artifacts from intent draft
185
- iris generate
186
-
187
- # Use custom input/output
188
- iris generate --in custom-draft.json --out artifacts/
186
+ /iris-master-agent
189
187
  ```
190
-
191
- ### Validation
192
-
188
+ | Command | Purpose |
189
+ |---------|---------|
190
+ | `project-init` | Initialize project with standards |
191
+ | `analyze-context` | View current project state |
192
+ | `route-request` | Get directed to the right agent |
193
+ | `explain-flow` | Learn about AI-DLC methodology |
194
+ | `answer-question` | Get help with any iris question |
195
+
196
+ ### Inception Agent
193
197
  ```bash
194
- # Check policy compliance
195
- iris validate
196
-
197
- # Auto-fix missing artifacts
198
- iris validate --fix
199
-
200
- # Strict mode (fail on warnings)
201
- iris validate --strict
198
+ /iris-inception-agent
202
199
  ```
203
-
204
- ### Lifecycle Management
205
-
200
+ | Command | Purpose |
201
+ |---------|---------|
202
+ | `intent-create` | Create a new intent |
203
+ | `intent-list` | List all intents |
204
+ | `requirements` | Elaborate intent requirements |
205
+ | `context` | Define system context |
206
+ | `units` | Decompose into units |
207
+ | `story-create` | Create stories for a unit |
208
+ | `bolt-plan` | Plan bolts for stories |
209
+ | `review` | Review inception artifacts |
210
+
211
+ ### Construction Agent
206
212
  ```bash
207
- # View current status
208
- iris status
209
-
210
- # Request phase transition
211
- iris phase set construction
212
-
213
- # Validate and apply transition
214
- iris validate --apply
213
+ /iris-construction-agent
215
214
  ```
216
-
217
- ### Automated Development
218
-
215
+ | Command | Purpose |
216
+ |---------|---------|
217
+ | `bolt-start` | Start/continue executing a bolt |
218
+ | `bolt-status` | Check bolt progress |
219
+ | `bolt-list` | List all bolts |
220
+ | `bolt-replan` | Replan bolts if needed |
221
+
222
+ ### Operations Agent
219
223
  ```bash
220
- # Start automated workflow
221
- iris develop "Build a dashboard UI"
222
-
223
- # Resume interrupted workflow
224
- iris develop --resume <runId>
225
-
226
- # Override IDE
227
- iris develop --ide cursor "intent"
228
-
229
- # Auto-approve gates
230
- iris develop --gate auto "intent"
224
+ /iris-operations-agent
231
225
  ```
226
+ | Command | Purpose |
227
+ |---------|---------|
228
+ | `build` | Build the project |
229
+ | `deploy` | Deploy to environment |
230
+ | `verify` | Verify deployment |
231
+ | `monitor` | Set up monitoring |
232
232
 
233
- ### Bridge (IDE Integration)
233
+ ---
234
234
 
235
- IRIS "Auto" mode works out of the box. To use an external agent (like Cursor Composer or Windsurf), you must start the bridge:
235
+ ## Why iris?
236
236
 
237
- ```bash
238
- # Start bridge helper (only needed for external IDEs)
239
- iris bridge serve
237
+ ### AI-Native, Not AI-Retrofitted
238
+ Built from the ground up for AI-driven development. AI-DLC is a reimagination based on first principles, not a retrofit of existing methods.
240
239
 
241
- # Check bridge status
242
- iris bridge status
243
- ```
240
+ ### Human Oversight as Loss Function
241
+ Validation at each stage catches errors early before they cascade downstream. Each validation transforms artifacts into rich context for subsequent stages.
244
242
 
245
- ### Diagnostics
243
+ ### Design Techniques Built-In
244
+ DDD, TDD, and BDD are integral to the methodology - not optional add-ons. This addresses the "whitespace" in Agile that has led to quality issues.
246
245
 
247
- ```bash
248
- # Check environment
249
- iris doctor
246
+ ### Tool Agnostic
247
+ Works with Claude Code, Cursor, GitHub Copilot, and other AI coding assistants. Markdown-based agents work anywhere.
250
248
 
251
- # Show version
252
- iris --version
253
- ```
249
+ ### Context Engineering
250
+ Specs and Memory Bank provide structured context for AI agents. Agents reload context each session - no more lost knowledge.
254
251
 
255
252
  ---
256
253
 
257
- ## 📁 Directory Structure
254
+ ## Supported Tools
258
255
 
259
- ```
260
- your-project/
261
- ├── .iris/
262
- │ ├── state.yaml # Current phase, framework, active flow
263
- │ ├── policy.yaml # (Legacy) Validation rules
264
- │ ├── routes.yaml # (Legacy) Intent routing
265
- │ ├── frameworks/ # Installed frameworks
266
- │ │ └── iris-core/
267
- │ ├── runs/ # Workflow run history
268
- │ │ ├── latest # Pointer to latest run
269
- │ │ └── 2026-01-03-.../ # Run directory
270
- │ │ ├── run.json # Run state
271
- │ │ ├── events.ndjson # Event log
272
- │ │ ├── intent-draft.json
273
- │ │ ├── artifacts.json
274
- │ │ ├── validate.json
275
- │ │ ├── pack.md
276
- │ │ └── handoff.json
277
- │ ├── inbox/ # Generated context packs
278
- │ └── bridge/ # IDE bridge files
279
- │ ├── inbox/
280
- │ ├── outbox/
281
- │ └── state/
282
- ├── memory-bank/ # Project documentation
283
- └── package.json
284
- ```
256
+ | Tool | Status | Installation |
257
+ |------|--------|--------------|
258
+ | **Claude Code** | Full support | Slash commands in `.claude/commands/` |
259
+ | **Cursor** | Full support | Rules in `.cursor/rules/` (`.mdc` format) |
260
+ | **GitHub Copilot** | Full support | Agents in `.github/agents/` (`.agent.md` format) |
261
+ | **Google Antigravity** | Full support | Agents in `.agent/agents/` |
285
262
 
286
263
  ---
287
264
 
288
- ## � Configuration
289
-
290
- ### State (`state.yaml`)
291
-
292
- ```yaml
293
- version: 1
294
- framework:
295
- current: iris-core
296
- version: null
297
- phase:
298
- current: inception
299
- requested: null
300
- active:
301
- intent_id: null
302
- flow: null
303
- ```
265
+ ## FAQ
304
266
 
305
- ### Policy (`policy.yaml`)
306
-
307
- ```yaml
308
- version: 1
309
- phases:
310
- inception:
311
- requires:
312
- - path: memory-bank/intents/
313
- type: directory
314
- gates: []
315
- transitions:
316
- - from: inception
317
- to: construction
318
- ```
267
+ **Q: Agents don't seem to remember previous context?**
268
+ Each agent invocation starts fresh. Agents read context from the Memory Bank at startup. Ensure artifacts are saved after each step.
319
269
 
320
- ### Routes (`routes.yaml`)
270
+ **Q: How do I reset project state?**
271
+ Clear the `memory-bank/` directory to reset all artifacts. To remove iris entirely, delete the `.iris/` directory and tool-specific command files.
321
272
 
322
- ```yaml
323
- schemaVersion: 1
324
- routes:
325
- - match: "bug|fix|error"
326
- agent: construction
327
- - match: ".*"
328
- agent: inception
329
- ```
273
+ **Q: Can I use iris with existing Agile workflows?**
274
+ AI-DLC is designed as a reimagination, not a retrofit. However, familiar concepts (user stories, acceptance criteria) are retained to ease transition.
330
275
 
331
- ---
276
+ **Q: What project types is this suited for?**
277
+ iris is designed for building complex systems that demand architectural complexity, trade-off management, and scalability. Simpler systems may be better suited for low-code/no-code approaches.
332
278
 
333
- ## 🤖 Machine Interface
334
-
335
- ### `iris run --json`
336
-
337
- Outputs a single JSON object (RunState):
338
-
339
- ```json
340
- {
341
- "schemaVersion": 1,
342
- "runId": "2026-01-03-21-41-43-abc1",
343
- "framework": { "id": "iris-core", "version": null },
344
- "steps": {
345
- "interview": { "status": "done", ... },
346
- "artifacts": { "status": "done", ... },
347
- "validate": { "status": "done", ... },
348
- "pack": { "status": "done", ... },
349
- "handoff": { "status": "done", ... }
350
- }
351
- }
352
- ```
353
-
354
- **Exit Codes:**
355
- - `0` - Success
356
- - `1` - Failure (validation error, step failed)
357
- - `2` - Blocked (requires input, non-interactive mode)
279
+ ---
358
280
 
359
- ### Event Log (`events.ndjson`)
281
+ ## Resources
360
282
 
361
- ```json
362
- {"ts":"2026-01-03T21:41:43.732Z","type":"RUN_STARTED"}
363
- {"ts":"2026-01-03T21:41:43.733Z","type":"STEP_STARTED","stepId":"interview"}
364
- {"ts":"2026-01-03T21:41:43.733Z","type":"STEP_DONE","stepId":"interview"}
365
- ```
283
+ - [AI-DLC Specification (AWS)](https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/)
366
284
 
367
285
  ---
368
286
 
369
- ## 👥 Contributing
287
+ ## Analytics & Privacy
370
288
 
371
- ### Setup
289
+ iris collects **anonymous** usage analytics during installation only. This helps us understand adoption and improve the product.
372
290
 
373
- ```bash
374
- git clone <repo-url>
375
- cd project-iris
376
- npm ci
377
- npm run build
378
- npm link
379
- iris --version
380
- ```
291
+ **What we collect**: OS, shell type, selected IDEs, installation success/failure, approximate location (country level).
381
292
 
382
- ### Development
293
+ **What we don't collect**: No usernames, no file paths, no project contents, no IP addresses stored.
383
294
 
384
- ```bash
385
- # Make changes to src/
386
- npm run build
387
- npm run test
388
-
389
- # Run all verification
390
- npm run verify
391
- ```
392
-
393
- ### Testing
295
+ ### Opt-Out
394
296
 
395
297
  ```bash
396
- # Unit tests
397
- npm run test:unit
398
-
399
- # Smoke tests
400
- npm run test:smoke
298
+ # Option 1: Environment variable
299
+ IRIS_TELEMETRY_DISABLED=1 npx project-iris@latest install
401
300
 
402
- # All tests
403
- npm test
301
+ # Option 2: DO_NOT_TRACK standard
302
+ DO_NOT_TRACK=1 npx project-iris@latest install
404
303
  ```
405
304
 
406
- ### Unlink
305
+ Analytics are automatically disabled in CI environments.
407
306
 
408
- ```bash
409
- npm unlink -g project-iris
410
- ```
307
+ See [PRIVACY.md](PRIVACY.md) for full details.
411
308
 
412
309
  ---
413
310
 
414
- ## 📚 Learn More
415
-
416
- - [Baseline Documentation](docs/baseline-step0.md)
417
- - [Framework Development](docs/frameworks.md)
418
- - [Artifact Templates](docs/artifacts.md)
311
+ ## License
419
312
 
420
- ---
313
+ MIT License - see [LICENSE](LICENSE) for details.
421
314
 
422
- ## License
423
315
 
424
- MIT
package/bin/cli.js ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { program } = require('commander');
4
+ const installer = require('../lib/installer');
5
+ const packageJson = require('../package.json');
6
+
7
+ program
8
+ .version(packageJson.version)
9
+ .description(packageJson.description);
10
+
11
+ program
12
+ .command('install')
13
+ .description('Interactively install a iris flow')
14
+ .action(installer.install);
15
+
16
+ program
17
+ .command('uninstall')
18
+ .description('Uninstall iris from the current project')
19
+ .action(installer.uninstall);
20
+
21
+ program.parse(process.argv);