red64-cli 0.3.0 → 0.5.0

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 (44) hide show
  1. package/README.md +186 -336
  2. package/dist/cli/parseArgs.d.ts.map +1 -1
  3. package/dist/cli/parseArgs.js +5 -13
  4. package/dist/cli/parseArgs.js.map +1 -1
  5. package/dist/components/init/types.d.ts +0 -2
  6. package/dist/components/init/types.d.ts.map +1 -1
  7. package/dist/components/screens/HelpScreen.d.ts.map +1 -1
  8. package/dist/components/screens/HelpScreen.js +0 -2
  9. package/dist/components/screens/HelpScreen.js.map +1 -1
  10. package/dist/components/screens/InitScreen.d.ts.map +1 -1
  11. package/dist/components/screens/InitScreen.js +5 -8
  12. package/dist/components/screens/InitScreen.js.map +1 -1
  13. package/dist/components/screens/StartScreen.d.ts.map +1 -1
  14. package/dist/components/screens/StartScreen.js +27 -6
  15. package/dist/components/screens/StartScreen.js.map +1 -1
  16. package/dist/components/screens/StatusScreen.d.ts.map +1 -1
  17. package/dist/components/screens/StatusScreen.js +16 -1
  18. package/dist/components/screens/StatusScreen.js.map +1 -1
  19. package/dist/services/AgentInvoker.d.ts.map +1 -1
  20. package/dist/services/AgentInvoker.js +76 -37
  21. package/dist/services/AgentInvoker.js.map +1 -1
  22. package/dist/services/ClaudeErrorDetector.d.ts +1 -1
  23. package/dist/services/ClaudeErrorDetector.d.ts.map +1 -1
  24. package/dist/services/ClaudeErrorDetector.js +1 -0
  25. package/dist/services/ClaudeErrorDetector.js.map +1 -1
  26. package/dist/services/ClaudeHealthCheck.d.ts +2 -0
  27. package/dist/services/ClaudeHealthCheck.d.ts.map +1 -1
  28. package/dist/services/ClaudeHealthCheck.js +38 -12
  29. package/dist/services/ClaudeHealthCheck.js.map +1 -1
  30. package/dist/services/ConfigService.d.ts +1 -0
  31. package/dist/services/ConfigService.d.ts.map +1 -1
  32. package/dist/services/ConfigService.js.map +1 -1
  33. package/dist/services/DockerRunner.js +1 -1
  34. package/dist/services/DockerRunner.js.map +1 -1
  35. package/dist/services/PhaseExecutor.d.ts.map +1 -1
  36. package/dist/services/PhaseExecutor.js +2 -1
  37. package/dist/services/PhaseExecutor.js.map +1 -1
  38. package/dist/services/TaskRunner.d.ts.map +1 -1
  39. package/dist/services/TaskRunner.js +2 -1
  40. package/dist/services/TaskRunner.js.map +1 -1
  41. package/dist/types/index.d.ts +4 -3
  42. package/dist/types/index.d.ts.map +1 -1
  43. package/dist/types/index.js.map +1 -1
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -1,436 +1,279 @@
1
1
  # Red64 CLI
2
2
 
3
- **Deterministic spec-driven development orchestrator for AI-assisted coding.**
3
+ <div align="center">
4
4
 
5
- Red64 automates the entire feature development lifecycle—from requirements to implementation—using a structured, phase-gated workflow that ensures quality and traceability.
5
+ ### You can't replace 30,000 hours of experience.<br/>But you can encode it.
6
6
 
7
- ![Red64 Flow Demo](docs/assets/demo.gif)
8
- <!-- TODO: Add screencast -->
7
+ **I taught the AI coding agent the same way I teach junior devs.**
9
8
 
10
- ---
11
-
12
- ## Quick Start
13
-
14
- ### 1. Install
15
-
16
- ```bash
17
- # Clone and install
18
- git clone https://github.com/your-org/red64-cli.git
19
- cd red64-cli
20
- npm install
21
- npm link
22
- ```
9
+ Code smells to avoid. Patterns that scale. TDD built in. Documentation required.<br/>
10
+ The result? Code that lives and evolves—not legacy the day it ships.
23
11
 
24
- ### 2. Initialize your project
12
+ [![npm version](https://img.shields.io/npm/v/red64-cli.svg)](https://www.npmjs.com/package/red64-cli)
13
+ [![Build](https://github.com/Red64llc/red64-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/Red64llc/red64-cli/actions/workflows/ci.yml)
14
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
15
+ [![Built with Red64](https://img.shields.io/badge/Built%20with-Red64-red)](https://red64.io/ventures)
25
16
 
26
- ```bash
27
- cd /path/to/your/project
28
- red64 init
29
- ```
17
+ [Quick Start](#-quick-start) · [Why Red64](#-why-red64) · [Features](#-features) · [Documentation](#-documentation)
30
18
 
31
- ### 3. Start a feature
32
-
33
- ```bash
34
- red64 start "user-authentication" "Add login and registration with JWT tokens"
35
- ```
36
-
37
- Red64 will:
38
- 1. Create an isolated git worktree
39
- 2. Generate requirements (EARS format)
40
- 3. Create technical design
41
- 4. Break down into implementation tasks
42
- 5. Execute each task with commits
43
- 6. Complete with a ready-to-review branch
19
+ </div>
44
20
 
45
21
  ---
46
22
 
47
- ## What is Red64?
48
-
49
- Red64 is a **spec-driven development orchestrator** that brings structure and determinism to AI-assisted coding. Instead of ad-hoc prompting, Red64 enforces a rigorous workflow:
50
-
51
- ```
52
- Requirements → Design → Tasks → Implementation
53
- ↓ ↓ ↓ ↓
54
- (review) (review) (review) (commits)
55
- ```
23
+ ## 🎯 The Problem
56
24
 
57
- ### Key Features
25
+ AI coding tools write code that **works**. But it's not code a senior engineer would approve.
58
26
 
59
- | Feature | Description |
60
- |---------|-------------|
61
- | **Spec-Driven** | Every feature starts with formal requirements and design |
62
- | **Phase Gates** | Human review required between phases (or auto-approve with `-y`) |
63
- | **Git Isolation** | Each feature runs in its own worktree and branch (sibling directory) |
64
- | **Atomic Commits** | One commit per task for clean history |
65
- | **Sandboxed Execution** | Optional Docker isolation for safe agent execution |
66
- | **Resumable Flows** | `start` auto-detects in-progress flows and offers resume |
67
- | **API Health Checks** | Validates Claude API before starting (credits, auth, network) |
27
+ - No tests (or tests written after the fact)
28
+ - ❌ No documentation (good luck onboarding anyone)
29
+ - Silent catch blocks, useEffect data fetching, frontend-only auth checks
30
+ - Commit history that's just "fix" and "update" and "wip"
31
+ - You babysit every. single. line.
68
32
 
69
- ### Goals
33
+ The code ships. Then it becomes legacy. Nobody wants to touch it in 6 months.
70
34
 
71
- 1. **Predictability**: Same inputs produce consistent outputs through structured phases
72
- 2. **Traceability**: Every code change links back to requirements and design decisions
73
- 3. **Quality**: Mandatory review gates prevent AI hallucinations from reaching production
74
- 4. **Isolation**: Git worktrees prevent work-in-progress from polluting main branch
75
- 5. **Efficiency**: Automate the tedious parts while keeping humans in control
35
+ ## The Solution
76
36
 
77
- ---
37
+ Red64 encodes **30,000 hours of CTO experience** into AI-assisted development:
78
38
 
79
- ## Installation
39
+ **What the AI learns (code quality):**
40
+ - Code smells to avoid (the stuff that breaks at 3 AM)
41
+ - Patterns that actually scale (learned from production)
42
+ - Stack-specific conventions (Next.js, Rails, FastAPI, etc.)
80
43
 
81
- ### Requirements
82
-
83
- - Node.js >= 20.0.0
84
- - Git
85
- - Claude CLI (`npm install -g @anthropic-ai/claude-cli`)
86
- - Docker (optional, for sandboxed execution)
87
-
88
- ### From Source
89
-
90
- ```bash
91
- git clone https://github.com/your-org/red64-cli.git
92
- cd red64-cli
93
- npm install
94
- npm run build
95
- npm link
96
- ```
44
+ **How the AI works (process):**
45
+ - Isolate every feature in a branch (git worktree)
46
+ - Write tests FIRST (TDD built in)
47
+ - Small atomic commits (one thing per commit)
48
+ - Document everything (requirements, design, decisions)
49
+ - High test coverage enforced
97
50
 
98
- ### Verify Installation
99
-
100
- ```bash
101
- red64 --version
102
- red64 help
103
- ```
51
+ **The result:** Code that lives and evolves. We've rewritten features in another language in **days** because the documentation is so complete.
104
52
 
105
53
  ---
106
54
 
107
- ## Commands
108
-
109
- ### `red64 init`
110
-
111
- Initialize Red64 in your project. Creates `.red64/` directory with steering documents.
55
+ ## 🚀 Quick Start
112
56
 
113
57
  ```bash
114
- red64 init
115
- red64 init --repo owner/repo --stack nextjs
116
- red64 init --agent gemini # Use Gemini as coding agent
117
- ```
58
+ # Install
59
+ npm install -g red64-cli
118
60
 
119
- **Flags:**
120
- - `-a, --agent <name>` — Coding agent: `claude`, `gemini`, `codex` (default: `claude`)
121
-
122
- ![red64 init](docs/assets/init.png)
123
- <!-- TODO: Add screenshot -->
124
-
125
- ### `red64 start <feature> <description>`
61
+ # Initialize in your project
62
+ cd /path/to/your/project
63
+ red64 init --stack nextjs
126
64
 
127
- Start a new feature development flow, or resume an existing one.
65
+ # Start a feature (interactive mode)
66
+ red64 start "user-auth" "Add login and registration with JWT"
128
67
 
129
- ```bash
130
- red64 start "shopping-cart" "Add shopping cart with add/remove items and checkout"
68
+ # Or YOLO mode — no babysitting required
69
+ red64 start "shopping-cart" "Full cart with checkout" --sandbox -y
131
70
  ```
132
71
 
133
- **Smart Resume Detection:**
134
-
135
- When you run `start` for a feature that's already in progress (at any phase: requirements, design, tasks, or implementation), Red64 will:
72
+ That's it. Red64 generates requirements → design → tests → implementation → documentation.
136
73
 
137
- 1. **Detect uncommitted changes** If the worktree has uncommitted changes, prompts:
138
- - Commit changes (WIP commit)
139
- - Discard changes
140
- - Cancel
74
+ Each phase has review checkpoints. Each task = one clean commit. Tests first. Docs included.
141
75
 
142
- 2. **Offer resume or restart** — If an in-progress flow is found, prompts:
143
- - Resume from current phase
144
- - Start fresh (discard previous progress)
145
- - Cancel
146
-
147
- This means you can always use `red64 start <feature>` to continue working—no separate resume command needed.
148
-
149
- **Flags:**
150
- - `-m, --model <name>` — Model to use (e.g., `claude-3-5-haiku-latest` for dev, `claude-sonnet-4-20250514` for prod)
151
- - `-y, --yes` — Auto-approve all phases (skip review gates)
152
- - `-b, --brownfield` — Enable gap analysis for existing codebases
153
- - `-g, --greenfield` — New feature mode (default)
154
- - `-s, --skip-permissions` — Pass to Claude CLI
155
- - `-t, --tier <name>` — Use specific Claude config tier
156
- - `--sandbox` — Run in Docker isolation
157
- - `--verbose` — Show detailed execution logs
158
-
159
- <img width="1134" height="567" alt="Screenshot 2026-01-29 at 6 35 01 PM" src="https://github.com/user-attachments/assets/91ea478f-53de-4964-a0b2-b0f05d2bfb2b" />
76
+ ---
160
77
 
161
- ### `red64 status [feature]`
78
+ ## 🔥 YOLO Mode (No Babysitting)
162
79
 
163
- Show the status of a flow.
80
+ Tired of approving every line?
164
81
 
165
82
  ```bash
166
- red64 status shopping-cart
167
- red64 status # Show all flows
83
+ red64 start "feature-name" "description" --sandbox -y
168
84
  ```
169
85
 
170
- ![red64 status](docs/assets/status.png)
171
- <!-- TODO: Add screenshot -->
86
+ - `--sandbox` = Docker isolation (pulls image from `ghcr.io/red64llc/red64-sandbox`)
87
+ - `-y` = Auto-approve all phases (total autonomy)
172
88
 
173
- ### `red64 list`
89
+ **Start a feature. Go to lunch. Come back to a completed branch.**
174
90
 
175
- List all active flows in the repository.
91
+ This is safe because:
92
+ 1. **Steering docs** constrain the AI to your patterns
93
+ 2. **Sandbox** prevents system damage
94
+ 3. **Atomic commits** make review easy after completion
95
+ 4. **Tests are required** — no untested code ships
176
96
 
177
- ```bash
178
- red64 list
179
- ```
180
-
181
- ### `red64 abort <feature>`
182
-
183
- Abort a flow and clean up resources (worktree, branch).
184
-
185
- ```bash
186
- red64 abort shopping-cart
187
- ```
97
+ Other tools: "Accept this change? This one? This one?"<br/>
98
+ Red64 YOLO: Review the PR when it's done. Like a senior engineer delegating to a junior.
188
99
 
189
100
  ---
190
101
 
191
- ## Workflow Phases
102
+ ## 🏆 Battle-Tested
192
103
 
193
- ### 1. Initialization
104
+ We built **6 production companies** with Red64 at [red64.io/ventures](https://red64.io/ventures):
194
105
 
195
- Creates spec directory at `.red64/specs/<feature>/` with `spec.json`.
106
+ | Company | Industry | Status |
107
+ |---------|----------|--------|
108
+ | [Saife](https://red64.io/ventures) | InsurTech | Production |
109
+ | [EngineValue](https://red64.io/ventures) | Engineering Scorecards | Production |
110
+ | [MediaPulse](https://red64.io/ventures) | Digital Presence | Production |
111
+ | [TheScriptMarketplace](https://red64.io/ventures) | Entertainment | Production |
112
+ | [QueryVault](https://red64.io/ventures) | Data Platform | Production |
113
+ | [KYTech](https://red64.io/ventures) | Dev Teams | Production |
196
114
 
197
- ### 2. Requirements Generation
115
+ Same tool. Same encoded experience. Now open source.
198
116
 
199
- Generates `requirements.md` using EARS (Easy Approach to Requirements Syntax) format:
200
- - Ubiquitous requirements
201
- - Event-driven requirements
202
- - State-driven requirements
203
- - Optional features
204
- - Unwanted behaviors
117
+ ---
205
118
 
206
- ### 3. Gap Analysis (Brownfield only)
119
+ ## 💡 Why Red64?
207
120
 
208
- For existing codebases, analyzes what already exists and what needs to be built.
121
+ ### The Teaching Metaphor
209
122
 
210
- ### 4. Design Generation
123
+ Every senior engineer has sat with a junior dev and said:
124
+ - *"Don't do that—it's a code smell"*
125
+ - *"This pattern breaks at scale"*
126
+ - *"Always handle this edge case"*
127
+ - *"Here's why we do it this way"*
211
128
 
212
- Creates `design.md` with:
213
- - Architecture decisions
214
- - Component design
215
- - Data models
216
- - API contracts
217
- - File structure
129
+ Red64 teaches AI the same way:
218
130
 
219
- ### 5. Task Generation
131
+ | What Senior Engineers Do | Red64 Equivalent |
132
+ |--------------------------|------------------|
133
+ | "Here's our style guide" | `steering/tech.md` — Stack standards |
134
+ | "Don't do that" | Code smell guardrails |
135
+ | "Here's our architecture" | `steering/structure.md` — Codebase patterns |
136
+ | "Write tests first" | TDD built into workflow |
137
+ | "Document your decisions" | Auto-generated docs per feature |
138
+ | "One thing per PR" | Atomic commits, one task per commit |
220
139
 
221
- Breaks down the design into atomic `tasks.md`:
222
- - Each task is independently implementable
223
- - Tasks are ordered by dependency
224
- - Each task produces a commit
140
+ ### What You Get Per Feature
225
141
 
226
- ### 6. Implementation
142
+ ```
143
+ feature-branch/
144
+ ├── REQUIREMENTS.md # What we're building and why
145
+ ├── DESIGN.md # How it works, architecture decisions
146
+ ├── TASKS.md # Atomic breakdown with acceptance criteria
147
+ ├── src/
148
+ │ ├── feature.ts # Implementation
149
+ │ └── feature.test.ts # Tests (written first)
150
+ └── docs/
151
+ └── feature.md # User-facing documentation
152
+ ```
227
153
 
228
- Executes tasks sequentially:
229
- - Runs `/red64:spec-impl <feature> <task-id>`
230
- - Commits after each task
231
- - Checkpoints every 3 tasks (optional pause)
154
+ Every decision traceable. Every line has a reason.
232
155
 
233
- ### 7. Completion
156
+ ---
234
157
 
235
- Flow completes with:
236
- - All tasks implemented
237
- - Clean commit history
238
- - Feature branch ready for PR
158
+ ## 📊 Comparison
239
159
 
240
- ---
160
+ | Feature | Red64 | Cursor | Copilot | Claude Code | Gemini CLI | Aider |
161
+ |---------|:-----:|:------:|:-------:|:-----------:|:----------:|:-----:|
162
+ | **30K hours expertise encoded** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
163
+ | **Autonomous mode** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
164
+ | **Sandboxed execution** | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ |
165
+ | **MCP support** | ✅ | ⚠️ | ✅ | ✅ | ✅ | ❌ |
166
+ | **TDD enforced (tests first)** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
167
+ | **High coverage enforced** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
168
+ | **Auto-generates docs** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
169
+ | **Git worktree isolation** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
170
+ | **Atomic commits enforced** | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
171
+ | **Phase gates with review** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
172
+ | **Code smell guardrails** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
173
+ | **Resumable multi-step flows** | ✅ | ❌ | ❌ | ✅ | ❌ | ⚠️ |
174
+ | **Multi-model support** | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
175
+ | **Battle-tested (production)** | ✅ 6 cos | N/A | N/A | N/A | N/A | N/A |
241
176
 
242
- ## Comparison with Other Tools
177
+ **Key:** = Built-in & enforced | ⚠️ = Partial/Optional | ❌ = Not available
243
178
 
244
- | Feature | Red64 | Cursor/Copilot | Aider | Claude Code |
245
- |---------|-------|----------------|-------|-------------|
246
- | **Spec-driven workflow** | Yes | No | No | No |
247
- | **Phase gates** | Yes | No | No | No |
248
- | **Git worktree isolation** | Yes | No | No | No |
249
- | **Atomic commits per task** | Yes | No | Yes | No |
250
- | **Requirements generation** | Yes | No | No | No |
251
- | **Design documents** | Yes | No | No | No |
252
- | **Resumable flows** | Yes | No | Partial | No |
253
- | **Docker sandboxing** | Yes | No | No | Yes |
254
- | **IDE integration** | No | Yes | Partial | Yes |
255
- | **Real-time editing** | No | Yes | Yes | Yes |
179
+ > **The difference:** Other tools have autonomous modes. Red64 has autonomous mode **plus** the encoded expertise and enforced process that produces production-quality code.
256
180
 
257
- ### When to use Red64
181
+ ### When to Use Red64
258
182
 
259
- **Use Red64 when:**
183
+ **Use Red64 when:**
260
184
  - Building complete features (not quick fixes)
261
- - You need traceable requirements and design
262
- - Working on complex, multi-file changes
263
- - You want clean git history with atomic commits
264
- - You need to pause and resume work across sessions
185
+ - You want code with tests, docs, and clean history
186
+ - You need to walk away and let AI work autonomously
187
+ - You're tired of babysitting every line
188
+ - You want code that's safe to refactor
265
189
 
266
- **Use other tools when:**
190
+ **Use other tools when:**
267
191
  - Making quick, single-file edits
192
+ - You want real-time IDE autocomplete
268
193
  - Exploring or prototyping ideas
269
- - You need real-time IDE integration
270
- - Working on bug fixes without spec requirements
271
-
272
- ---
273
-
274
- ## Limitations
275
-
276
- ### Current Limitations
277
-
278
- 1. **No IDE integration** — Red64 is CLI-only; no VS Code or JetBrains plugins yet
279
- 2. **Sequential execution** — Tasks run one at a time, no parallelization
280
- 3. **No incremental changes** — Regenerating a phase replaces previous output entirely
281
- 4. **English-centric** — Prompts and templates are English-only (configurable per spec)
282
-
283
- ### Known Issues
284
-
285
- - Large codebases may hit context limits during design phase
286
- - Docker sandbox requires pre-built image (`docker build -f Dockerfile.sandbox -t red64-sandbox:latest .`)
287
- - Some UI frameworks may not render correctly in all terminals
288
-
289
- ### Roadmap
290
-
291
- - [ ] VS Code extension
292
- - [ ] Parallel task execution
293
- - [ ] Incremental phase editing
294
- - [ ] Web dashboard for flow monitoring
295
194
 
296
195
  ---
297
196
 
298
- ## Project Structure
299
-
300
- ```
301
- .red64/
302
- ├── specs/ # Feature specifications
303
- │ └── <feature>/
304
- │ ├── spec.json # Spec metadata
305
- │ ├── requirements.md # EARS requirements
306
- │ ├── design.md # Technical design
307
- │ └── tasks.md # Implementation tasks
308
- ├── flows/ # Flow state and logs
309
- │ └── <feature>/
310
- │ ├── state.json # Current flow state
311
- │ └── flow.log # Execution log
312
- └── steering/ # Project-wide guidance
313
- ├── product.md # Product context
314
- ├── tech.md # Technical standards
315
- └── structure.md # Codebase structure
316
- ```
197
+ ## Features
317
198
 
318
- ### Git Worktree Layout
199
+ ### MCP Support (Model Context Protocol)
319
200
 
320
- Red64 creates git worktrees in a **sibling directory** following the [GitLens/VSCode convention](https://gist.github.com/ChristopherA/4643b2f5e024578606b9cd5d2e6815cc). This keeps the main repository clean and avoids nested git structures.
201
+ Connect AI to your actual environment:
321
202
 
203
+ ```bash
204
+ red64 init --mcp
322
205
  ```
323
- ~/projects/
324
- ├── my-project/ # Main repository (unchanged)
325
- │ ├── .git/
326
- │ ├── .red64/
327
- │ ├── src/
328
- │ └── package.json
329
- └── my-project.worktrees/ # Worktrees directory (sibling)
330
- ├── user-authentication/ # feature/user-authentication branch
331
- │ ├── .red64/
332
- │ ├── src/
333
- │ └── package.json
334
- └── shopping-cart/ # feature/shopping-cart branch
335
- ├── .red64/
336
- ├── src/
337
- └── package.json
338
- ```
339
-
340
- **Benefits of sibling worktrees:**
341
- - Main repository stays clean (no `.gitignore` needed for worktrees)
342
- - No nested `.git` references inside the working tree
343
- - Better IDE and tool compatibility
344
- - Clear separation between main work and feature isolation
345
- - Easy to see all active features at a glance
346
-
347
- ---
348
206
 
349
- ## Configuration
207
+ - Query your database schema
208
+ - Read from your documentation
209
+ - Access external APIs
210
+ - Use custom tools you define
350
211
 
351
- ### Steering Documents
352
-
353
- Customize AI behavior by editing `.red64/steering/`:
354
-
355
- - **product.md** — Product vision, user personas, business rules
356
- - **tech.md** — Tech stack, coding standards, patterns to use/avoid
357
- - **structure.md** — Codebase organization, file naming conventions
212
+ ### Multi-Agent Support
358
213
 
359
- ### Coding Agents
360
-
361
- Red64 supports multiple coding agents. Set the agent at init time:
214
+ Use your preferred AI:
362
215
 
363
216
  ```bash
364
- red64 init --agent claude # Default - Anthropic Claude
217
+ red64 init --agent claude # Default
365
218
  red64 init --agent gemini # Google Gemini
366
219
  red64 init --agent codex # OpenAI Codex
367
220
  ```
368
221
 
369
- The agent is stored in `.red64/config.json` and used for all subsequent commands.
370
-
371
- ### Model Selection
222
+ ### Smart Resume
372
223
 
373
- Override the model per command for cost optimization:
224
+ Interrupted? Just run `start` again:
374
225
 
375
226
  ```bash
376
- # Development (cheap, fast models)
377
- red64 start "feature" "desc" --model claude-3-5-haiku-latest
378
- red64 start "feature" "desc" --model gemini-2.0-flash
379
- red64 start "feature" "desc" --model gpt-4o-mini
380
-
381
- # Production (best quality models)
382
- red64 start "feature" "desc" --model claude-sonnet-4-20250514
383
- red64 start "feature" "desc" --model gemini-2.5-pro
384
- red64 start "feature" "desc" --model o1
227
+ red64 start "shopping-cart" "..."
228
+ # Detects in-progress flow, offers to resume
385
229
  ```
386
230
 
387
- | Agent | Cheap (Dev) | Best (Prod) |
388
- |-------|-------------|-------------|
389
- | Claude | `claude-3-5-haiku-latest` | `claude-sonnet-4-20250514` |
390
- | Gemini | `gemini-2.0-flash` | `gemini-2.5-pro` |
391
- | Codex | `gpt-4o-mini` | `o1` |
392
-
393
- ### Claude Tiers
231
+ ### Steering Documents
394
232
 
395
- Use different Claude configurations with `--tier`:
233
+ Customize AI behavior in `.red64/steering/`:
396
234
 
397
- ```bash
398
- red64 start "feature" "desc" --tier pro
399
- # Uses ~/.claude-pro/ for configuration
400
- ```
235
+ - **product.md** — Product vision, user personas
236
+ - **tech.md** Stack standards, code smells to avoid
237
+ - **structure.md** Codebase organization
401
238
 
402
239
  ---
403
240
 
404
- ## Development
405
-
406
- ### Run in development mode
407
-
408
- ```bash
409
- npm run dev -- start my-feature "Feature description"
410
- ```
241
+ ## 📖 Documentation
411
242
 
412
- ### Run tests
243
+ - [Full Documentation](./docs/README.md)
244
+ - [Steering Document Guide](./docs/steering.md)
245
+ - [Configuration Reference](./docs/configuration.md)
246
+ - [Troubleshooting](./docs/troubleshooting.md)
413
247
 
414
- ```bash
415
- npm test
416
- npm run test:ui
417
- ```
248
+ ---
418
249
 
419
- ### Build
250
+ ## 🛠 Commands
420
251
 
421
252
  ```bash
422
- npm run build
253
+ red64 init # Initialize Red64 in your project
254
+ red64 start <feature> <desc> # Start a new feature
255
+ red64 start ... --sandbox -y # YOLO mode (autonomous)
256
+ red64 status [feature] # Check flow status
257
+ red64 list # List all active flows
258
+ red64 abort <feature> # Abort and clean up
423
259
  ```
424
260
 
425
- ### Type checking
261
+ ### Flags
426
262
 
427
- ```bash
428
- npm run type-check
429
- ```
263
+ | Flag | Description |
264
+ |------|-------------|
265
+ | `-y, --yes` | Auto-approve all phases (YOLO mode) |
266
+ | `--sandbox` | Run in Docker isolation (uses GHCR image by default) |
267
+ | `--local-image` | Build and use local sandbox image instead of GHCR (init only) |
268
+ | `-m, --model` | Override AI model |
269
+ | `-a, --agent` | Set coding agent (claude/gemini/codex) |
270
+ | `--verbose` | Show detailed logs |
430
271
 
431
272
  ---
432
273
 
433
- ## Contributing
274
+ ## 🤝 Contributing
275
+
276
+ We'd love your help encoding more production wisdom:
434
277
 
435
278
  1. Fork the repository
436
279
  2. Create a feature branch
@@ -438,16 +281,23 @@ npm run type-check
438
281
  4. Run tests: `npm test`
439
282
  5. Submit a pull request
440
283
 
284
+ **What we're looking for:**
285
+ - More code smells to catch
286
+ - Stack-specific best practices
287
+ - Bug fixes and improvements
288
+
441
289
  ---
442
290
 
443
- ## License
291
+ ## 📜 License
444
292
 
445
- MIT
293
+ MIT — Built by [Yacin Bahi](mailto:yacin@red64.io) at [Red64.io](https://red64.io)
446
294
 
447
295
  ---
448
296
 
449
- ## Acknowledgments
297
+ <div align="center">
298
+
299
+ ### The code isn't the asset.<br/>The documentation + tests + history is the asset.<br/>The code is just the current implementation.
300
+
301
+ **[⭐ Star this repo](https://github.com/Red64llc/red64-cli)** if you believe AI should write code like a senior engineer.
450
302
 
451
- - Built by Yacin Bahi, yacin@Red64.io
452
- - Inspired by spec-driven development and EARS requirements methodology
453
- - Uses [Ink](https://github.com/vadimdemedes/ink) for terminal UI
303
+ </div>
@@ -1 +1 @@
1
- {"version":3,"file":"parseArgs.d.ts","sourceRoot":"","sources":["../../src/cli/parseArgs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAqC,MAAM,mBAAmB,CAAC;AAatF;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAiH5D;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,QAwBd,CAAC"}
1
+ {"version":3,"file":"parseArgs.d.ts","sourceRoot":"","sources":["../../src/cli/parseArgs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAqC,MAAM,mBAAmB,CAAC;AAatF;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CA0G5D;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,QAyBd,CAAC"}