@dzhechkov/harness-cli 0.2.1 → 0.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/README.md +167 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,6 +94,172 @@ dz workflow --task security-audit # adversarial security scan
|
|
|
94
94
|
- `dz doctor` runs 7 health checks (node version, adapters, config, SQLite, skills)
|
|
95
95
|
- `dz migrate` detects legacy keysarium/bto installations and recommends migration path
|
|
96
96
|
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Use Cases
|
|
100
|
+
|
|
101
|
+
### 1. Short-term product research (one-off study)
|
|
102
|
+
|
|
103
|
+
**Goal:** Quickly research a product idea, competitors, market — get a structured report.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Option A: via dz CLI
|
|
107
|
+
dz init --target claude-code --preset meta
|
|
108
|
+
# Then in Claude Code:
|
|
109
|
+
# /explore "Research the market for AI-powered code review tools"
|
|
110
|
+
# /feature-adr "Summarize findings into an ADR"
|
|
111
|
+
|
|
112
|
+
# Option B: via keysarium (full 7-phase pipeline)
|
|
113
|
+
npx @dzhechkov/keysarium init
|
|
114
|
+
# Then in Claude Code:
|
|
115
|
+
# /casarium "AI-powered code review tools — market analysis"
|
|
116
|
+
# → Phase 0: Discovery → Phase 1: Exploration → Phase 2: Paranoid Research
|
|
117
|
+
# → Phase 3: Solution Design → Phase 4: Architecture → Phase 5: Presentation
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**What you get:**
|
|
121
|
+
- `meta` preset: `/explore` clarifies the problem → `/feature-adr` structures findings as ADR decisions
|
|
122
|
+
- `keysarium`: full 7-phase pipeline with dream cycles, background workers, and presentation generation
|
|
123
|
+
|
|
124
|
+
**Best for:** Quick study (hours), competitive analysis, technology evaluation.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
### 2. Long-term product research (evolving over time)
|
|
129
|
+
|
|
130
|
+
**Goal:** Continuously gather data, add new sources, and "recalculate" the product vision as insights accumulate.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Install keysarium (research pipeline) + evidence-wiki (knowledge base)
|
|
134
|
+
npx @dzhechkov/keysarium init
|
|
135
|
+
# Copy evidence-wiki plugin into your project:
|
|
136
|
+
npx @dzhechkov/evidence-wiki # or git clone https://github.com/djd1m/evidence-wiki
|
|
137
|
+
|
|
138
|
+
npm install -g @dzhechkov/harness-cli
|
|
139
|
+
dz init --target claude-code --preset meta
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Workflow — iterative research cycles with evidence wiki:**
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Week 1: /casarium "Product X — initial research"
|
|
146
|
+
→ researches/ directory created with findings
|
|
147
|
+
→ .keysarium/memory/ stores patterns + reward scores
|
|
148
|
+
|
|
149
|
+
/wiki-generate ← evidence-wiki
|
|
150
|
+
→ Scans researches/, ADRs, docs
|
|
151
|
+
→ Generates wiki/concepts/*.md (atomic pages with inline sources)
|
|
152
|
+
→ Builds wiki/graph.json (knowledge graph)
|
|
153
|
+
→ wiki/INDEX.md links everything
|
|
154
|
+
|
|
155
|
+
Week 2: Add new data → /casarium "Product X — update with Q2 metrics"
|
|
156
|
+
→ Memory recalls Week 1 patterns (reward-calibrated learning)
|
|
157
|
+
→ New findings merged with existing, conflicts resolved
|
|
158
|
+
|
|
159
|
+
/wiki-generate --check ← re-generates wiki
|
|
160
|
+
→ New concepts added, existing updated
|
|
161
|
+
→ Every claim verified: triple-pillar protocol requires N independent
|
|
162
|
+
typed sources (ADR + methodology + research)
|
|
163
|
+
→ Stale concepts flagged, broken evidence links detected
|
|
164
|
+
|
|
165
|
+
/triple-check wiki/concepts/pricing-model.md ← verify specific page
|
|
166
|
+
→ Checks that every factual claim has inline source citations
|
|
167
|
+
→ Flags unsupported statements
|
|
168
|
+
|
|
169
|
+
Week N: /casarium "Product X — pivot analysis after customer feedback"
|
|
170
|
+
→ Full history in memory layer + evidence wiki
|
|
171
|
+
→ /harvest extracts reusable knowledge patterns
|
|
172
|
+
→ /wiki-generate rebuilds the entire knowledge graph
|
|
173
|
+
→ Product vision "recalculated" — the wiki IS the living product model
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**The evidence-wiki advantage:**
|
|
177
|
+
|
|
178
|
+
| Without evidence-wiki | With evidence-wiki |
|
|
179
|
+
|----------------------|-------------------|
|
|
180
|
+
| Research in markdown files | Atomic concept pages with inline sources |
|
|
181
|
+
| Findings scattered across `researches/` | Interlinked knowledge graph (`graph.json`) |
|
|
182
|
+
| "I think we decided X" | Every claim has a cited source (triple-pillar) |
|
|
183
|
+
| Hard to see what changed | `/wiki-generate --check` diffs the knowledge base |
|
|
184
|
+
| No verification | `/triple-check` enforces evidence discipline |
|
|
185
|
+
|
|
186
|
+
**Key features for long-term research:**
|
|
187
|
+
- **Evidence wiki** (`@dzhechkov/evidence-wiki`): atomic concept pages where every factual claim carries inline sources; knowledge graph for cross-referencing; triple-pillar protocol (N independent typed sources per claim)
|
|
188
|
+
- **Reward-calibrated memory** (`@dzhechkov/memory` Reflexion): each checkpoint response trains the system — "ок" = excellent (1.0), feedback = good (0.7), rework = needs_work (0.3)
|
|
189
|
+
- **Agent SDK Dreaming**: between sessions, patterns are consolidated and distilled
|
|
190
|
+
- **`/harvest`** (knowledge-extractor skill): extracts reusable patterns from completed research into `lib/` templates
|
|
191
|
+
- **SQLite + FTS5 backend**: scales to 100k+ records with full-text search across all research sessions
|
|
192
|
+
|
|
193
|
+
**Best for:** Product strategy over months, continuous market monitoring, evolving product vision with evidence-backed decisions.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### 3. Product research + working prototype
|
|
198
|
+
|
|
199
|
+
**Goal:** Research the product AND build a functional prototype.
|
|
200
|
+
|
|
201
|
+
#### Option A: Sequential — research first, then code
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Step 1: Install research + development presets
|
|
205
|
+
npx @dzhechkov/keysarium init
|
|
206
|
+
# OR:
|
|
207
|
+
dz init --target claude-code --preset keysarium
|
|
208
|
+
|
|
209
|
+
# Step 2: Research phase
|
|
210
|
+
# /casarium "SaaS platform for team retrospectives"
|
|
211
|
+
# → Phase 0-2: Discovery, Exploration, Paranoid Research
|
|
212
|
+
# → Phase 3: Solution Design (with CJM prototype)
|
|
213
|
+
# → Result: researches/<slug>/ with full analysis
|
|
214
|
+
|
|
215
|
+
# Step 3: Switch to development
|
|
216
|
+
dz init --target claude-code --preset feature-adr
|
|
217
|
+
|
|
218
|
+
# Step 4: Build using research outputs
|
|
219
|
+
# /feature-adr "Build the retrospective platform based on research in researches/<slug>/"
|
|
220
|
+
# → Step 0: Router classifies as L/XL
|
|
221
|
+
# → Step 1-5: Requirements, ADRs, DDD, Architecture (informed by research)
|
|
222
|
+
# → Step 6: Implementation plan
|
|
223
|
+
# → Step 7: Code generation (with /frontend-design for UI)
|
|
224
|
+
# → Step 8-9: QE review + fleet assessment
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**What you get:** Research artifacts in `researches/`, then code in `features/<slug>/` + actual repository changes. Research directly feeds into ADR decisions.
|
|
228
|
+
|
|
229
|
+
#### Option B: Parallel — research and code simultaneously with p-replicator
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# Install the full product development toolkit
|
|
233
|
+
npx @dzhechkov/p-replicator init
|
|
234
|
+
|
|
235
|
+
# Single pipeline: research → requirements → prototype
|
|
236
|
+
# /replicate "SaaS platform for team retrospectives"
|
|
237
|
+
# → Reverse-engineers similar products (reverse-engineering-unicorn)
|
|
238
|
+
# → Generates SPARC PRD (sparc-prd-mini)
|
|
239
|
+
# → Validates requirements (requirements-validator)
|
|
240
|
+
# → Creates the project structure (pipeline-forge)
|
|
241
|
+
# → Builds the prototype (cc-toolkit-generator-enhanced)
|
|
242
|
+
# → Reviews with brutal honesty (brutal-honesty-review)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
**What you get:** A working prototype generated from research in a single `/replicate` pipeline run. Faster but less deep than Option A.
|
|
246
|
+
|
|
247
|
+
#### Comparison
|
|
248
|
+
|
|
249
|
+
| Aspect | Option A (Sequential) | Option B (p-replicator) |
|
|
250
|
+
|--------|----------------------|------------------------|
|
|
251
|
+
| **Research depth** | Deep (7-phase keysarium) | Moderate (reverse-engineering) |
|
|
252
|
+
| **Code quality** | High (11-step feature-adr + QE) | Good (pipeline-forge + review) |
|
|
253
|
+
| **Time** | Days to weeks | Hours to days |
|
|
254
|
+
| **Best for** | Complex products, regulated domains | MVPs, hackathons, quick validation |
|
|
255
|
+
| **Packages** | `keysarium` + `feature-adr` preset | `p-replicator` |
|
|
256
|
+
| **Research artifacts** | `researches/` directory | Embedded in PRD |
|
|
257
|
+
| **Code artifacts** | `features/<slug>/` + repo changes | Generated project |
|
|
258
|
+
|
|
259
|
+
**Tip:** For maximum rigor, combine both — use `p-replicator` for a quick prototype, then run `/feature-adr --full-qe-extended` on the generated code for production-grade quality engineering.
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
97
263
|
## Status
|
|
98
264
|
|
|
99
|
-
`v0.2.
|
|
265
|
+
`v0.2.1` — published on npm. Part of [DZ Harness Hub](https://github.com/djd1m/dz-harness-hub).
|
package/package.json
CHANGED