vralphy 0.2.0 → 0.3.1
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 +17 -0
- package/docs/COMMANDS.md +613 -0
- package/docs/DESIGN.md +537 -0
- package/docs/EXAMPLES.md +812 -0
- package/docs/METHODOLOGY.md +390 -0
- package/docs/README.md +110 -0
- package/docs/WORKFLOWS.md +808 -0
- package/llms.txt +104 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -17,6 +17,23 @@ The methodology emphasizes:
|
|
|
17
17
|
- **Operational context** - Lightweight `AGENTS.md` keeps build/test commands accessible
|
|
18
18
|
- **Incremental progress** - `IMPLEMENTATION_PLAN.md` tracks remaining work across loops
|
|
19
19
|
|
|
20
|
+
## Comprehensive Documentation
|
|
21
|
+
|
|
22
|
+
vralphy includes **LLM-friendly documentation** in the `docs/` directory (bundled with the package):
|
|
23
|
+
|
|
24
|
+
- **[docs/README.md](./docs/README.md)** - Documentation overview
|
|
25
|
+
- **[docs/METHODOLOGY.md](./docs/METHODOLOGY.md)** - Deep dive into Ralph methodology
|
|
26
|
+
- **[docs/COMMANDS.md](./docs/COMMANDS.md)** - Complete command reference
|
|
27
|
+
- **[docs/DESIGN.md](./docs/DESIGN.md)** - Design principles and architecture
|
|
28
|
+
- **[docs/WORKFLOWS.md](./docs/WORKFLOWS.md)** - Common workflows and patterns
|
|
29
|
+
- **[docs/EXAMPLES.md](./docs/EXAMPLES.md)** - Real-world usage examples
|
|
30
|
+
|
|
31
|
+
### LLM Discovery Standard
|
|
32
|
+
|
|
33
|
+
vralphy includes an **[llms.txt](./llms.txt)** file following the [llms.txt standard](https://llmstxt.org/) for AI agent discovery. This markdown file provides a structured overview of vralphy's capabilities, making it easy for LLMs to understand and use the tool when working in projects.
|
|
34
|
+
|
|
35
|
+
This documentation is designed to help both humans and LLMs understand and use vralphy effectively.
|
|
36
|
+
|
|
20
37
|
## Installation
|
|
21
38
|
|
|
22
39
|
```bash
|
package/docs/COMMANDS.md
ADDED
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
# Command Reference
|
|
2
|
+
|
|
3
|
+
Complete reference for all vralphy commands with examples, options, and use cases.
|
|
4
|
+
|
|
5
|
+
## Command Overview
|
|
6
|
+
|
|
7
|
+
| Command | Purpose | Phase |
|
|
8
|
+
|---------|---------|-------|
|
|
9
|
+
| `init` | Initialize vralphy in a project | Setup |
|
|
10
|
+
| `spec` | Create feature specifications | Requirements |
|
|
11
|
+
| `plan` | Analyze and create implementation plan | Planning |
|
|
12
|
+
| `build` | Implement features autonomously | Implementation |
|
|
13
|
+
| `cleanup` | Remove vralphy from project | Cleanup |
|
|
14
|
+
| `engines` | List available AI engines | Utility |
|
|
15
|
+
| `skills` | List available skills | Utility |
|
|
16
|
+
| `agents` | List available agents | Utility |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## `vralphy init`
|
|
21
|
+
|
|
22
|
+
Initialize a project for vralphy by creating required files and directories.
|
|
23
|
+
|
|
24
|
+
### Behavior
|
|
25
|
+
|
|
26
|
+
**With AI** (default when engine available):
|
|
27
|
+
1. Detects available AI engines (claude/opencode/codex)
|
|
28
|
+
2. Gathers project context (package.json, existing docs, src/ structure)
|
|
29
|
+
3. AI generates project-specific `.vralphy/AGENTS.md`
|
|
30
|
+
4. Creates scaffold (specs/, prompts/, IMPLEMENTATION_PLAN.md)
|
|
31
|
+
|
|
32
|
+
**Without AI** (fallback):
|
|
33
|
+
1. Detects build system (node/rust/go/python)
|
|
34
|
+
2. Extracts commands from package.json/Cargo.toml/go.mod
|
|
35
|
+
3. Generates template-based `.vralphy/AGENTS.md`
|
|
36
|
+
4. Creates scaffold
|
|
37
|
+
|
|
38
|
+
### Options
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
vralphy init # AI-powered (default)
|
|
42
|
+
vralphy init --no-ai # Skip AI, use template
|
|
43
|
+
vralphy init --approve # Review AGENTS.md before saving
|
|
44
|
+
vralphy init --engine <name> # Use specific engine (claude|opencode|codex)
|
|
45
|
+
vralphy init --from <path> # Initialize different directory
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Examples
|
|
49
|
+
|
|
50
|
+
**Basic initialization**:
|
|
51
|
+
```bash
|
|
52
|
+
cd your-project
|
|
53
|
+
vralphy init
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Review before saving**:
|
|
57
|
+
```bash
|
|
58
|
+
vralphy init --approve
|
|
59
|
+
# Shows preview of AGENTS.md
|
|
60
|
+
# Prompts: "Save this AGENTS.md? [y/N]"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Force template mode**:
|
|
64
|
+
```bash
|
|
65
|
+
vralphy init --no-ai
|
|
66
|
+
# Skips AI generation
|
|
67
|
+
# Uses template-based approach
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Use specific engine**:
|
|
71
|
+
```bash
|
|
72
|
+
vralphy init --engine codex
|
|
73
|
+
# Uses codex instead of auto-detected engine
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### What Gets Created
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
.vralphy/
|
|
80
|
+
├── AGENTS.md # Operational guide (AI-generated or template)
|
|
81
|
+
└── prompts/
|
|
82
|
+
├── plan.md # Planning phase prompt
|
|
83
|
+
├── build.md # Build phase prompt
|
|
84
|
+
└── spec.md # Spec creation prompt
|
|
85
|
+
|
|
86
|
+
specs/ # Empty directory for specifications
|
|
87
|
+
|
|
88
|
+
IMPLEMENTATION_PLAN.md # Initial task list
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### When to Use
|
|
92
|
+
|
|
93
|
+
- **New project**: Starting vralphy in a new project
|
|
94
|
+
- **Existing project**: Adding vralphy to existing project
|
|
95
|
+
- **Re-initialize**: After cleanup, to start fresh
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## `vralphy spec [topic]`
|
|
100
|
+
|
|
101
|
+
Create feature specifications through interactive conversation with AI.
|
|
102
|
+
|
|
103
|
+
### Behavior
|
|
104
|
+
|
|
105
|
+
1. AI asks clarifying questions about the feature
|
|
106
|
+
2. User provides answers
|
|
107
|
+
3. AI generates comprehensive specification
|
|
108
|
+
4. Spec saved to `specs/<topic>.md`
|
|
109
|
+
|
|
110
|
+
**Note**: Only works with interactive engines (claude). Non-interactive engines will show an error.
|
|
111
|
+
|
|
112
|
+
### Options
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
vralphy spec <topic> # Interactive spec creation
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Examples
|
|
119
|
+
|
|
120
|
+
**Create authentication spec**:
|
|
121
|
+
```bash
|
|
122
|
+
vralphy spec authentication
|
|
123
|
+
|
|
124
|
+
# AI asks:
|
|
125
|
+
# - Authentication method? (JWT, session, OAuth)
|
|
126
|
+
# - User model fields?
|
|
127
|
+
# - Password requirements?
|
|
128
|
+
# - Two-factor authentication?
|
|
129
|
+
|
|
130
|
+
# Output: specs/authentication.md
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Create API spec**:
|
|
134
|
+
```bash
|
|
135
|
+
vralphy spec api-rate-limiting
|
|
136
|
+
|
|
137
|
+
# AI asks about:
|
|
138
|
+
# - Rate limit tiers
|
|
139
|
+
# - Time windows
|
|
140
|
+
# - Response headers
|
|
141
|
+
# - Override mechanisms
|
|
142
|
+
|
|
143
|
+
# Output: specs/api-rate-limiting.md
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Specification Format
|
|
147
|
+
|
|
148
|
+
Generated specs follow this structure:
|
|
149
|
+
|
|
150
|
+
```markdown
|
|
151
|
+
# Feature Name
|
|
152
|
+
|
|
153
|
+
## Overview
|
|
154
|
+
Brief description of the feature
|
|
155
|
+
|
|
156
|
+
## Requirements
|
|
157
|
+
- [ ] Functional requirement 1
|
|
158
|
+
- [ ] Functional requirement 2
|
|
159
|
+
|
|
160
|
+
## Acceptance Criteria
|
|
161
|
+
- [ ] Testable criterion 1
|
|
162
|
+
- [ ] Testable criterion 2
|
|
163
|
+
|
|
164
|
+
## Edge Cases
|
|
165
|
+
- Edge case 1
|
|
166
|
+
- Edge case 2
|
|
167
|
+
|
|
168
|
+
## Dependencies
|
|
169
|
+
- Dependency 1
|
|
170
|
+
- Dependency 2
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### When to Use
|
|
174
|
+
|
|
175
|
+
- **Before planning**: Define requirements before implementation
|
|
176
|
+
- **Complex features**: Features needing clarification
|
|
177
|
+
- **Team alignment**: Document agreed-upon behavior
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## `vralphy plan [iterations]`
|
|
182
|
+
|
|
183
|
+
Analyze codebase and create/update implementation plan.
|
|
184
|
+
|
|
185
|
+
### Behavior
|
|
186
|
+
|
|
187
|
+
1. Reads `.vralphy/AGENTS.md` for operational commands
|
|
188
|
+
2. Studies all `specs/*.md` with parallel subagents (up to 250)
|
|
189
|
+
3. Analyzes existing codebase with parallel subagents (up to 500)
|
|
190
|
+
4. Compares implementation against specifications
|
|
191
|
+
5. Creates/updates `IMPLEMENTATION_PLAN.md` with prioritized tasks
|
|
192
|
+
6. **Does not write code** - planning only
|
|
193
|
+
|
|
194
|
+
### Options
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
vralphy plan [iterations] # Default: unlimited
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Examples
|
|
201
|
+
|
|
202
|
+
**Single planning iteration**:
|
|
203
|
+
```bash
|
|
204
|
+
vralphy plan 1
|
|
205
|
+
# Quick analysis and plan update
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Deep planning session**:
|
|
209
|
+
```bash
|
|
210
|
+
vralphy plan 5
|
|
211
|
+
# Thorough analysis over 5 iterations
|
|
212
|
+
# Each iteration refines the plan
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
**Continuous planning**:
|
|
216
|
+
```bash
|
|
217
|
+
vralphy plan
|
|
218
|
+
# Runs until complete or interrupted
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### What It Does
|
|
222
|
+
|
|
223
|
+
**Scans for**:
|
|
224
|
+
- Missing functionality from specs
|
|
225
|
+
- TODO comments in code
|
|
226
|
+
- Placeholder implementations
|
|
227
|
+
- Skipped or flaky tests
|
|
228
|
+
- Inconsistent patterns
|
|
229
|
+
- Technical debt
|
|
230
|
+
|
|
231
|
+
**Outputs**:
|
|
232
|
+
- Prioritized task list
|
|
233
|
+
- Dependency relationships
|
|
234
|
+
- Implementation strategy
|
|
235
|
+
- Gap analysis
|
|
236
|
+
|
|
237
|
+
### When to Use
|
|
238
|
+
|
|
239
|
+
- **Before building**: Always plan before implementing
|
|
240
|
+
- **After spec changes**: Re-plan when specs are updated
|
|
241
|
+
- **Progress check**: Verify current implementation status
|
|
242
|
+
- **New team members**: Understand what needs to be done
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## `vralphy build [iterations]`
|
|
247
|
+
|
|
248
|
+
Implement functionality autonomously with testing and commits.
|
|
249
|
+
|
|
250
|
+
### Behavior
|
|
251
|
+
|
|
252
|
+
1. Reads `.vralphy/AGENTS.md` for commands
|
|
253
|
+
2. Reads `IMPLEMENTATION_PLAN.md` for tasks
|
|
254
|
+
3. Picks highest priority task
|
|
255
|
+
4. Searches codebase to understand current state
|
|
256
|
+
5. Implements functionality using parallel subagents
|
|
257
|
+
6. Runs tests after changes
|
|
258
|
+
7. If tests pass: commits and pushes
|
|
259
|
+
8. If tests fail: debugs and retries
|
|
260
|
+
9. Updates `IMPLEMENTATION_PLAN.md`
|
|
261
|
+
10. Repeats until done or iteration limit reached
|
|
262
|
+
|
|
263
|
+
### Options
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
vralphy build [iterations] # Default: unlimited
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Examples
|
|
270
|
+
|
|
271
|
+
**Short build session**:
|
|
272
|
+
```bash
|
|
273
|
+
vralphy build 5
|
|
274
|
+
# Implement up to 5 tasks
|
|
275
|
+
# Good for testing or small features
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
**Standard build session**:
|
|
279
|
+
```bash
|
|
280
|
+
vralphy build 20
|
|
281
|
+
# Implement up to 20 tasks
|
|
282
|
+
# Good for medium features
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Continuous build**:
|
|
286
|
+
```bash
|
|
287
|
+
vralphy build
|
|
288
|
+
# Runs until IMPLEMENTATION_PLAN.md is empty
|
|
289
|
+
# or until interrupted
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### What It Does
|
|
293
|
+
|
|
294
|
+
**Per iteration**:
|
|
295
|
+
1. Pick task from plan
|
|
296
|
+
2. Search codebase (500 parallel subagents)
|
|
297
|
+
3. Write/modify code
|
|
298
|
+
4. Run tests (1 sequential subagent)
|
|
299
|
+
5. Commit if tests pass
|
|
300
|
+
6. Update plan
|
|
301
|
+
7. Git push
|
|
302
|
+
|
|
303
|
+
**Commits automatically**:
|
|
304
|
+
- Descriptive commit messages
|
|
305
|
+
- Small, focused changes
|
|
306
|
+
- One feature/fix per commit
|
|
307
|
+
|
|
308
|
+
### Safety Features
|
|
309
|
+
|
|
310
|
+
- Tests must pass before committing
|
|
311
|
+
- Updates plan after each change
|
|
312
|
+
- Updates `.vralphy/AGENTS.md` when learning new commands
|
|
313
|
+
- Can be interrupted safely (Ctrl+C)
|
|
314
|
+
|
|
315
|
+
### When to Use
|
|
316
|
+
|
|
317
|
+
- **After planning**: Always plan first
|
|
318
|
+
- **Feature implementation**: Build new functionality
|
|
319
|
+
- **Bug fixes**: Fix issues in IMPLEMENTATION_PLAN.md
|
|
320
|
+
- **Refactoring**: Systematic code improvements
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## `vralphy cleanup`
|
|
325
|
+
|
|
326
|
+
Remove vralphy from a project.
|
|
327
|
+
|
|
328
|
+
### Behavior
|
|
329
|
+
|
|
330
|
+
1. Checks if vralphy is initialized (`.vralphy/` exists)
|
|
331
|
+
2. Shows what will be removed
|
|
332
|
+
3. Prompts for confirmation (unless `--force`)
|
|
333
|
+
4. Removes vralphy files and directories
|
|
334
|
+
5. Reports what was removed/kept/not-found
|
|
335
|
+
|
|
336
|
+
### Options
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
vralphy cleanup # Interactive with confirmation
|
|
340
|
+
vralphy cleanup --force # Skip confirmation
|
|
341
|
+
vralphy cleanup --remove-specs # Also remove specs/
|
|
342
|
+
vralphy cleanup --from <path> # Clean different directory
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Examples
|
|
346
|
+
|
|
347
|
+
**Standard cleanup**:
|
|
348
|
+
```bash
|
|
349
|
+
vralphy cleanup
|
|
350
|
+
|
|
351
|
+
# Shows:
|
|
352
|
+
# The following will be removed:
|
|
353
|
+
# - .vralphy/
|
|
354
|
+
# - IMPLEMENTATION_PLAN.md
|
|
355
|
+
# The following will be kept:
|
|
356
|
+
# - specs/ (use --remove-specs to delete)
|
|
357
|
+
# Proceed with cleanup? [y/N]
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**Force cleanup**:
|
|
361
|
+
```bash
|
|
362
|
+
vralphy cleanup --force
|
|
363
|
+
# No confirmation prompt
|
|
364
|
+
# Removes immediately
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**Complete cleanup**:
|
|
368
|
+
```bash
|
|
369
|
+
vralphy cleanup --remove-specs --force
|
|
370
|
+
# Removes everything including specs/
|
|
371
|
+
# No confirmation
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### What Gets Removed
|
|
375
|
+
|
|
376
|
+
**Always removed**:
|
|
377
|
+
- `.vralphy/` - All vralphy config and prompts
|
|
378
|
+
- `IMPLEMENTATION_PLAN.md` - Task list
|
|
379
|
+
|
|
380
|
+
**Kept by default**:
|
|
381
|
+
- `specs/` - Your specifications (use `--remove-specs` to delete)
|
|
382
|
+
|
|
383
|
+
**Never removed**:
|
|
384
|
+
- Your source code
|
|
385
|
+
- Git history
|
|
386
|
+
- Other project files
|
|
387
|
+
|
|
388
|
+
### When to Use
|
|
389
|
+
|
|
390
|
+
- **Switching tools**: Moving to a different workflow
|
|
391
|
+
- **Fresh start**: Re-initialize from scratch
|
|
392
|
+
- **Project cleanup**: Removing unused tools
|
|
393
|
+
- **Testing**: Clean between test runs
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## `vralphy engines`
|
|
398
|
+
|
|
399
|
+
List available AI engines on your system.
|
|
400
|
+
|
|
401
|
+
### Behavior
|
|
402
|
+
|
|
403
|
+
Checks for installed engine CLIs:
|
|
404
|
+
- `claude` command (Anthropic)
|
|
405
|
+
- `opencode` command (OpenAI)
|
|
406
|
+
- `codex` command (Custom)
|
|
407
|
+
|
|
408
|
+
### Examples
|
|
409
|
+
|
|
410
|
+
```bash
|
|
411
|
+
vralphy engines
|
|
412
|
+
|
|
413
|
+
# Output:
|
|
414
|
+
# Available engines:
|
|
415
|
+
# - claude
|
|
416
|
+
# - opencode
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
**No engines installed**:
|
|
420
|
+
```bash
|
|
421
|
+
vralphy engines
|
|
422
|
+
|
|
423
|
+
# Output:
|
|
424
|
+
# Available engines:
|
|
425
|
+
# (none found - install claude or opencode CLI)
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### When to Use
|
|
429
|
+
|
|
430
|
+
- **Troubleshooting**: Verify engine installation
|
|
431
|
+
- **Multi-engine setup**: Check which engines are available
|
|
432
|
+
- **Documentation**: Before running init/plan/build
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
## `vralphy skills`
|
|
437
|
+
|
|
438
|
+
List available skills for the current engine.
|
|
439
|
+
|
|
440
|
+
### Behavior
|
|
441
|
+
|
|
442
|
+
1. Detects current engine
|
|
443
|
+
2. Looks in engine-specific skills directory
|
|
444
|
+
3. Lists all `.md` files with frontmatter
|
|
445
|
+
|
|
446
|
+
**Skill locations**:
|
|
447
|
+
- Claude: `.claude/skills/`
|
|
448
|
+
- OpenCode: `.opencode/skills/`
|
|
449
|
+
- Codex: `.codex/skills/`
|
|
450
|
+
|
|
451
|
+
### Examples
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
vralphy skills
|
|
455
|
+
|
|
456
|
+
# Output:
|
|
457
|
+
# Available skills:
|
|
458
|
+
# - react-patterns: React best practices
|
|
459
|
+
# - security-audit: Security review patterns
|
|
460
|
+
# - api-design: RESTful API guidelines
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
### When to Use
|
|
464
|
+
|
|
465
|
+
- **Discovery**: See what domain knowledge is available
|
|
466
|
+
- **Planning**: Before starting complex features
|
|
467
|
+
- **Documentation**: Understanding available resources
|
|
468
|
+
|
|
469
|
+
---
|
|
470
|
+
|
|
471
|
+
## `vralphy agents`
|
|
472
|
+
|
|
473
|
+
List available specialized agents for the current engine.
|
|
474
|
+
|
|
475
|
+
### Behavior
|
|
476
|
+
|
|
477
|
+
1. Detects current engine
|
|
478
|
+
2. Looks in engine-specific agents directory
|
|
479
|
+
3. Lists all `.md` files with frontmatter
|
|
480
|
+
|
|
481
|
+
**Agent locations**:
|
|
482
|
+
- Claude: `.claude/agents/`
|
|
483
|
+
- OpenCode: `.opencode/agents/`
|
|
484
|
+
- Codex: `.codex/agents/`
|
|
485
|
+
|
|
486
|
+
### Examples
|
|
487
|
+
|
|
488
|
+
```bash
|
|
489
|
+
vralphy agents
|
|
490
|
+
|
|
491
|
+
# Output:
|
|
492
|
+
# Available agents:
|
|
493
|
+
# - code-reviewer (sonnet): Reviews code for bugs
|
|
494
|
+
# - architect (opus): Designs system architecture
|
|
495
|
+
# - tester (sonnet): Writes comprehensive tests
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### When to Use
|
|
499
|
+
|
|
500
|
+
- **Discovery**: See what specialized help is available
|
|
501
|
+
- **Planning**: Before starting complex features
|
|
502
|
+
- **Delegation**: Understanding what can be delegated
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
## Global Flags
|
|
507
|
+
|
|
508
|
+
These flags work with all commands:
|
|
509
|
+
|
|
510
|
+
```bash
|
|
511
|
+
--engine <engine> # Select engine (claude|opencode|codex)
|
|
512
|
+
--model <model> # Primary model (opus|sonnet|haiku)
|
|
513
|
+
--executor <model> # Executor model for subagents
|
|
514
|
+
--skills <path> # Custom skills directory
|
|
515
|
+
--agents <path> # Custom agents directory
|
|
516
|
+
--config <path> # Custom config file
|
|
517
|
+
--verbose # Verbose output
|
|
518
|
+
--dry-run # Show what would execute (no changes)
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
### Examples
|
|
522
|
+
|
|
523
|
+
**Use specific engine**:
|
|
524
|
+
```bash
|
|
525
|
+
vralphy --engine codex build 10
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
**Use haiku for speed**:
|
|
529
|
+
```bash
|
|
530
|
+
vralphy --model haiku --executor haiku build 20
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
**Dry run to preview**:
|
|
534
|
+
```bash
|
|
535
|
+
vralphy --dry-run build 1
|
|
536
|
+
# Shows the prompt that would be sent
|
|
537
|
+
# Does not execute
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
**Verbose for debugging**:
|
|
541
|
+
```bash
|
|
542
|
+
vralphy --verbose plan 2
|
|
543
|
+
# Shows detailed execution information
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
## Exit Codes
|
|
549
|
+
|
|
550
|
+
vralphy uses standard exit codes:
|
|
551
|
+
|
|
552
|
+
- `0` - Success
|
|
553
|
+
- `1` - General error (command failed)
|
|
554
|
+
- `130` - Interrupted (Ctrl+C)
|
|
555
|
+
|
|
556
|
+
---
|
|
557
|
+
|
|
558
|
+
## Environment Variables
|
|
559
|
+
|
|
560
|
+
Configure vralphy with environment variables:
|
|
561
|
+
|
|
562
|
+
```bash
|
|
563
|
+
VRALPHY_ENGINE=claude # Default engine
|
|
564
|
+
VRALPHY_MODEL=opus # Default primary model
|
|
565
|
+
VRALPHY_EXECUTOR=sonnet # Default executor model
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
Example:
|
|
569
|
+
```bash
|
|
570
|
+
export VRALPHY_ENGINE=codex
|
|
571
|
+
export VRALPHY_MODEL=opus
|
|
572
|
+
vralphy build 10
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Configuration File
|
|
578
|
+
|
|
579
|
+
Create `vralphy.config.json` in project root:
|
|
580
|
+
|
|
581
|
+
```json
|
|
582
|
+
{
|
|
583
|
+
"engine": "claude",
|
|
584
|
+
"model": "opus",
|
|
585
|
+
"executor": "sonnet",
|
|
586
|
+
"skillsDir": ".claude/skills",
|
|
587
|
+
"agentsDir": ".claude/agents"
|
|
588
|
+
}
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
**Priority**: CLI flags > Environment variables > Config file > Defaults
|
|
592
|
+
|
|
593
|
+
---
|
|
594
|
+
|
|
595
|
+
## Quick Reference
|
|
596
|
+
|
|
597
|
+
| Task | Command |
|
|
598
|
+
|------|---------|
|
|
599
|
+
| Start new project | `vralphy init` |
|
|
600
|
+
| Define feature | `vralphy spec <name>` |
|
|
601
|
+
| Plan work | `vralphy plan 3` |
|
|
602
|
+
| Implement | `vralphy build 20` |
|
|
603
|
+
| Check engines | `vralphy engines` |
|
|
604
|
+
| Remove vralphy | `vralphy cleanup` |
|
|
605
|
+
| Get help | `vralphy <cmd> --help` |
|
|
606
|
+
|
|
607
|
+
---
|
|
608
|
+
|
|
609
|
+
## Next Steps
|
|
610
|
+
|
|
611
|
+
- Read [METHODOLOGY.md](./METHODOLOGY.md) for the Ralph approach
|
|
612
|
+
- Check [WORKFLOWS.md](./WORKFLOWS.md) for common patterns
|
|
613
|
+
- See [EXAMPLES.md](./EXAMPLES.md) for real-world usage
|