red64-cli 0.2.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 (63) hide show
  1. package/README.md +186 -337
  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/ListScreen.d.ts.map +1 -1
  14. package/dist/components/screens/ListScreen.js +28 -3
  15. package/dist/components/screens/ListScreen.js.map +1 -1
  16. package/dist/components/screens/StartScreen.d.ts.map +1 -1
  17. package/dist/components/screens/StartScreen.js +149 -15
  18. package/dist/components/screens/StartScreen.js.map +1 -1
  19. package/dist/components/screens/StatusScreen.d.ts.map +1 -1
  20. package/dist/components/screens/StatusScreen.js +16 -1
  21. package/dist/components/screens/StatusScreen.js.map +1 -1
  22. package/dist/components/ui/ArtifactsSidebar.d.ts +19 -0
  23. package/dist/components/ui/ArtifactsSidebar.d.ts.map +1 -0
  24. package/dist/components/ui/ArtifactsSidebar.js +51 -0
  25. package/dist/components/ui/ArtifactsSidebar.js.map +1 -0
  26. package/dist/components/ui/FeatureSidebar.d.ts.map +1 -1
  27. package/dist/components/ui/FeatureSidebar.js +1 -1
  28. package/dist/components/ui/FeatureSidebar.js.map +1 -1
  29. package/dist/components/ui/index.d.ts +1 -0
  30. package/dist/components/ui/index.d.ts.map +1 -1
  31. package/dist/components/ui/index.js +1 -0
  32. package/dist/components/ui/index.js.map +1 -1
  33. package/dist/services/AgentInvoker.d.ts.map +1 -1
  34. package/dist/services/AgentInvoker.js +76 -37
  35. package/dist/services/AgentInvoker.js.map +1 -1
  36. package/dist/services/ClaudeErrorDetector.d.ts +1 -1
  37. package/dist/services/ClaudeErrorDetector.d.ts.map +1 -1
  38. package/dist/services/ClaudeErrorDetector.js +4 -3
  39. package/dist/services/ClaudeErrorDetector.js.map +1 -1
  40. package/dist/services/ClaudeHealthCheck.d.ts +2 -0
  41. package/dist/services/ClaudeHealthCheck.d.ts.map +1 -1
  42. package/dist/services/ClaudeHealthCheck.js +38 -12
  43. package/dist/services/ClaudeHealthCheck.js.map +1 -1
  44. package/dist/services/ConfigService.d.ts +1 -0
  45. package/dist/services/ConfigService.d.ts.map +1 -1
  46. package/dist/services/ConfigService.js.map +1 -1
  47. package/dist/services/DockerRunner.js +1 -1
  48. package/dist/services/DockerRunner.js.map +1 -1
  49. package/dist/services/PhaseExecutor.d.ts.map +1 -1
  50. package/dist/services/PhaseExecutor.js +2 -1
  51. package/dist/services/PhaseExecutor.js.map +1 -1
  52. package/dist/services/TaskRunner.d.ts.map +1 -1
  53. package/dist/services/TaskRunner.js +2 -1
  54. package/dist/services/TaskRunner.js.map +1 -1
  55. package/dist/types/index.d.ts +16 -3
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/dist/types/index.js.map +1 -1
  58. package/framework/.red64/settings/templates/specs/gap-analysis.md +163 -0
  59. package/framework/agents/claude/.claude/agents/red64/validate-gap.md +13 -7
  60. package/framework/agents/claude/.claude/commands/red64/validate-gap.md +4 -0
  61. package/framework/agents/codex/.codex/agents/red64/validate-gap.md +13 -7
  62. package/framework/agents/codex/.codex/commands/red64/validate-gap.md +4 -0
  63. package/package.json +1 -1
package/README.md CHANGED
@@ -1,437 +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
- ![red64 start](docs/assets/start.png)
160
- <!-- TODO: Add screenshot -->
76
+ ---
161
77
 
162
- ### `red64 status [feature]`
78
+ ## 🔥 YOLO Mode (No Babysitting)
163
79
 
164
- Show the status of a flow.
80
+ Tired of approving every line?
165
81
 
166
82
  ```bash
167
- red64 status shopping-cart
168
- red64 status # Show all flows
83
+ red64 start "feature-name" "description" --sandbox -y
169
84
  ```
170
85
 
171
- ![red64 status](docs/assets/status.png)
172
- <!-- TODO: Add screenshot -->
86
+ - `--sandbox` = Docker isolation (pulls image from `ghcr.io/red64llc/red64-sandbox`)
87
+ - `-y` = Auto-approve all phases (total autonomy)
173
88
 
174
- ### `red64 list`
89
+ **Start a feature. Go to lunch. Come back to a completed branch.**
175
90
 
176
- 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
177
96
 
178
- ```bash
179
- red64 list
180
- ```
181
-
182
- ### `red64 abort <feature>`
183
-
184
- Abort a flow and clean up resources (worktree, branch).
185
-
186
- ```bash
187
- red64 abort shopping-cart
188
- ```
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.
189
99
 
190
100
  ---
191
101
 
192
- ## Workflow Phases
102
+ ## 🏆 Battle-Tested
193
103
 
194
- ### 1. Initialization
104
+ We built **6 production companies** with Red64 at [red64.io/ventures](https://red64.io/ventures):
195
105
 
196
- 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 |
197
114
 
198
- ### 2. Requirements Generation
115
+ Same tool. Same encoded experience. Now open source.
199
116
 
200
- Generates `requirements.md` using EARS (Easy Approach to Requirements Syntax) format:
201
- - Ubiquitous requirements
202
- - Event-driven requirements
203
- - State-driven requirements
204
- - Optional features
205
- - Unwanted behaviors
117
+ ---
206
118
 
207
- ### 3. Gap Analysis (Brownfield only)
119
+ ## 💡 Why Red64?
208
120
 
209
- For existing codebases, analyzes what already exists and what needs to be built.
121
+ ### The Teaching Metaphor
210
122
 
211
- ### 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"*
212
128
 
213
- Creates `design.md` with:
214
- - Architecture decisions
215
- - Component design
216
- - Data models
217
- - API contracts
218
- - File structure
129
+ Red64 teaches AI the same way:
219
130
 
220
- ### 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 |
221
139
 
222
- Breaks down the design into atomic `tasks.md`:
223
- - Each task is independently implementable
224
- - Tasks are ordered by dependency
225
- - Each task produces a commit
140
+ ### What You Get Per Feature
226
141
 
227
- ### 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
+ ```
228
153
 
229
- Executes tasks sequentially:
230
- - Runs `/red64:spec-impl <feature> <task-id>`
231
- - Commits after each task
232
- - Checkpoints every 3 tasks (optional pause)
154
+ Every decision traceable. Every line has a reason.
233
155
 
234
- ### 7. Completion
156
+ ---
235
157
 
236
- Flow completes with:
237
- - All tasks implemented
238
- - Clean commit history
239
- - Feature branch ready for PR
158
+ ## 📊 Comparison
240
159
 
241
- ---
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 |
242
176
 
243
- ## Comparison with Other Tools
177
+ **Key:** = Built-in & enforced | ⚠️ = Partial/Optional | ❌ = Not available
244
178
 
245
- | Feature | Red64 | Cursor/Copilot | Aider | Claude Code |
246
- |---------|-------|----------------|-------|-------------|
247
- | **Spec-driven workflow** | Yes | No | No | No |
248
- | **Phase gates** | Yes | No | No | No |
249
- | **Git worktree isolation** | Yes | No | No | No |
250
- | **Atomic commits per task** | Yes | No | Yes | No |
251
- | **Requirements generation** | Yes | No | No | No |
252
- | **Design documents** | Yes | No | No | No |
253
- | **Resumable flows** | Yes | No | Partial | No |
254
- | **Docker sandboxing** | Yes | No | No | Yes |
255
- | **IDE integration** | No | Yes | Partial | Yes |
256
- | **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.
257
180
 
258
- ### When to use Red64
181
+ ### When to Use Red64
259
182
 
260
- **Use Red64 when:**
183
+ **Use Red64 when:**
261
184
  - Building complete features (not quick fixes)
262
- - You need traceable requirements and design
263
- - Working on complex, multi-file changes
264
- - You want clean git history with atomic commits
265
- - 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
266
189
 
267
- **Use other tools when:**
190
+ **Use other tools when:**
268
191
  - Making quick, single-file edits
192
+ - You want real-time IDE autocomplete
269
193
  - Exploring or prototyping ideas
270
- - You need real-time IDE integration
271
- - Working on bug fixes without spec requirements
272
-
273
- ---
274
-
275
- ## Limitations
276
-
277
- ### Current Limitations
278
-
279
- 1. **No IDE integration** — Red64 is CLI-only; no VS Code or JetBrains plugins yet
280
- 2. **Sequential execution** — Tasks run one at a time, no parallelization
281
- 3. **No incremental changes** — Regenerating a phase replaces previous output entirely
282
- 4. **English-centric** — Prompts and templates are English-only (configurable per spec)
283
-
284
- ### Known Issues
285
-
286
- - Large codebases may hit context limits during design phase
287
- - Docker sandbox requires pre-built image (`docker build -f Dockerfile.sandbox -t red64-sandbox:latest .`)
288
- - Some UI frameworks may not render correctly in all terminals
289
-
290
- ### Roadmap
291
-
292
- - [ ] VS Code extension
293
- - [ ] Parallel task execution
294
- - [ ] Incremental phase editing
295
- - [ ] Web dashboard for flow monitoring
296
194
 
297
195
  ---
298
196
 
299
- ## Project Structure
300
-
301
- ```
302
- .red64/
303
- ├── specs/ # Feature specifications
304
- │ └── <feature>/
305
- │ ├── spec.json # Spec metadata
306
- │ ├── requirements.md # EARS requirements
307
- │ ├── design.md # Technical design
308
- │ └── tasks.md # Implementation tasks
309
- ├── flows/ # Flow state and logs
310
- │ └── <feature>/
311
- │ ├── state.json # Current flow state
312
- │ └── flow.log # Execution log
313
- └── steering/ # Project-wide guidance
314
- ├── product.md # Product context
315
- ├── tech.md # Technical standards
316
- └── structure.md # Codebase structure
317
- ```
197
+ ## Features
318
198
 
319
- ### Git Worktree Layout
199
+ ### MCP Support (Model Context Protocol)
320
200
 
321
- 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:
322
202
 
203
+ ```bash
204
+ red64 init --mcp
323
205
  ```
324
- ~/projects/
325
- ├── my-project/ # Main repository (unchanged)
326
- │ ├── .git/
327
- │ ├── .red64/
328
- │ ├── src/
329
- │ └── package.json
330
- └── my-project.worktrees/ # Worktrees directory (sibling)
331
- ├── user-authentication/ # feature/user-authentication branch
332
- │ ├── .red64/
333
- │ ├── src/
334
- │ └── package.json
335
- └── shopping-cart/ # feature/shopping-cart branch
336
- ├── .red64/
337
- ├── src/
338
- └── package.json
339
- ```
340
-
341
- **Benefits of sibling worktrees:**
342
- - Main repository stays clean (no `.gitignore` needed for worktrees)
343
- - No nested `.git` references inside the working tree
344
- - Better IDE and tool compatibility
345
- - Clear separation between main work and feature isolation
346
- - Easy to see all active features at a glance
347
-
348
- ---
349
206
 
350
- ## Configuration
207
+ - Query your database schema
208
+ - Read from your documentation
209
+ - Access external APIs
210
+ - Use custom tools you define
351
211
 
352
- ### Steering Documents
353
-
354
- Customize AI behavior by editing `.red64/steering/`:
355
-
356
- - **product.md** — Product vision, user personas, business rules
357
- - **tech.md** — Tech stack, coding standards, patterns to use/avoid
358
- - **structure.md** — Codebase organization, file naming conventions
212
+ ### Multi-Agent Support
359
213
 
360
- ### Coding Agents
361
-
362
- Red64 supports multiple coding agents. Set the agent at init time:
214
+ Use your preferred AI:
363
215
 
364
216
  ```bash
365
- red64 init --agent claude # Default - Anthropic Claude
217
+ red64 init --agent claude # Default
366
218
  red64 init --agent gemini # Google Gemini
367
219
  red64 init --agent codex # OpenAI Codex
368
220
  ```
369
221
 
370
- The agent is stored in `.red64/config.json` and used for all subsequent commands.
371
-
372
- ### Model Selection
222
+ ### Smart Resume
373
223
 
374
- Override the model per command for cost optimization:
224
+ Interrupted? Just run `start` again:
375
225
 
376
226
  ```bash
377
- # Development (cheap, fast models)
378
- red64 start "feature" "desc" --model claude-3-5-haiku-latest
379
- red64 start "feature" "desc" --model gemini-2.0-flash
380
- red64 start "feature" "desc" --model gpt-4o-mini
381
-
382
- # Production (best quality models)
383
- red64 start "feature" "desc" --model claude-sonnet-4-20250514
384
- red64 start "feature" "desc" --model gemini-2.5-pro
385
- red64 start "feature" "desc" --model o1
227
+ red64 start "shopping-cart" "..."
228
+ # Detects in-progress flow, offers to resume
386
229
  ```
387
230
 
388
- | Agent | Cheap (Dev) | Best (Prod) |
389
- |-------|-------------|-------------|
390
- | Claude | `claude-3-5-haiku-latest` | `claude-sonnet-4-20250514` |
391
- | Gemini | `gemini-2.0-flash` | `gemini-2.5-pro` |
392
- | Codex | `gpt-4o-mini` | `o1` |
393
-
394
- ### Claude Tiers
231
+ ### Steering Documents
395
232
 
396
- Use different Claude configurations with `--tier`:
233
+ Customize AI behavior in `.red64/steering/`:
397
234
 
398
- ```bash
399
- red64 start "feature" "desc" --tier pro
400
- # Uses ~/.claude-pro/ for configuration
401
- ```
235
+ - **product.md** — Product vision, user personas
236
+ - **tech.md** Stack standards, code smells to avoid
237
+ - **structure.md** Codebase organization
402
238
 
403
239
  ---
404
240
 
405
- ## Development
406
-
407
- ### Run in development mode
408
-
409
- ```bash
410
- npm run dev -- start my-feature "Feature description"
411
- ```
241
+ ## 📖 Documentation
412
242
 
413
- ### 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)
414
247
 
415
- ```bash
416
- npm test
417
- npm run test:ui
418
- ```
248
+ ---
419
249
 
420
- ### Build
250
+ ## 🛠 Commands
421
251
 
422
252
  ```bash
423
- 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
424
259
  ```
425
260
 
426
- ### Type checking
261
+ ### Flags
427
262
 
428
- ```bash
429
- npm run type-check
430
- ```
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 |
431
271
 
432
272
  ---
433
273
 
434
- ## Contributing
274
+ ## 🤝 Contributing
275
+
276
+ We'd love your help encoding more production wisdom:
435
277
 
436
278
  1. Fork the repository
437
279
  2. Create a feature branch
@@ -439,16 +281,23 @@ npm run type-check
439
281
  4. Run tests: `npm test`
440
282
  5. Submit a pull request
441
283
 
284
+ **What we're looking for:**
285
+ - More code smells to catch
286
+ - Stack-specific best practices
287
+ - Bug fixes and improvements
288
+
442
289
  ---
443
290
 
444
- ## License
291
+ ## 📜 License
445
292
 
446
- MIT
293
+ MIT — Built by [Yacin Bahi](mailto:yacin@red64.io) at [Red64.io](https://red64.io)
447
294
 
448
295
  ---
449
296
 
450
- ## 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.
451
302
 
452
- - Built by Yacin Bahi, yacin@Red64.io
453
- - Inspired by spec-driven development and EARS requirements methodology
454
- - 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"}