@morebeans/cli 2.5.0 → 2.5.2

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 (3) hide show
  1. package/README.md +280 -0
  2. package/index.ts +1 -1
  3. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,280 @@
1
+ <p align="center">
2
+ <img src="static/image.png" alt="BEANS Banner" width="100%">
3
+ </p>
4
+
5
+ # BEANS
6
+
7
+ > **B**eads + r**A**lph + val**U** = BEA**NS**
8
+
9
+ **Unified autonomous development plugin for Claude Code** combining git-backed issue tracking, spec-driven execution, and code intelligence tools.
10
+
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
12
+
13
+ ## What is BEANS?
14
+
15
+ BEANS is a Claude Code plugin that automates the entire software development lifecycle:
16
+
17
+ ```
18
+ /beans "Add OAuth2 authentication"
19
+ ```
20
+
21
+ This single command:
22
+ 1. Creates a tracked issue (Beads)
23
+ 2. Researches your codebase (Ralph)
24
+ 3. Generates requirements, design, and tasks
25
+ 4. Executes tasks autonomously with quality checks
26
+ 5. Commits, pushes, and closes the issue
27
+
28
+ ## Features
29
+
30
+ ### Integrated Components
31
+
32
+ | Component | Purpose | Source |
33
+ |-----------|---------|--------|
34
+ | **Beads** | Git-backed issue tracking | `package/beads/` |
35
+ | **Ralph** | Spec-driven autonomous execution | `package/smart-ralph/` |
36
+ | **Valyu** | Knowledge retrieval MCP | `package/valyu/` |
37
+ | **Code Intelligence** | AST analysis & snapshots | `plugin/lib/` |
38
+
39
+ ### 13 Specialized Subagents
40
+
41
+ | Agent | Role |
42
+ |-------|------|
43
+ | `research-analyst` | Codebase research and analysis |
44
+ | `product-manager` | Requirements generation |
45
+ | `architect-reviewer` | Technical design |
46
+ | `task-planner` | Task breakdown |
47
+ | `spec-executor` | Autonomous task execution |
48
+ | `code-reviewer` | Security, quality, performance review |
49
+ | `test-engineer` | Test coverage optimization (85%+) |
50
+ | `optimizer` | Fix issues found by reviewer |
51
+ | `doc-generator` | Documentation generation |
52
+ | `integration-tester` | E2E and integration tests |
53
+ | `plan-synthesizer` | Quick mode artifact generation |
54
+ | `qa-engineer` | Quality assurance |
55
+ | `refactor-specialist` | Code refactoring |
56
+
57
+ ### Code Intelligence Tools
58
+
59
+ - **ast-grep** - Pattern-based semantic code search
60
+ - **repomix** - AI-friendly codebase snapshots
61
+ - **tree-sitter** - AST parsing for 100+ languages
62
+ - **ctags/cscope** - Symbol navigation
63
+
64
+ ## Quick Start
65
+
66
+ ### Installation
67
+
68
+ ```bash
69
+ # Install CLI from npm
70
+ npm install -g @morebeans/cli
71
+
72
+ # Or with bun
73
+ bun install -g @morebeans/cli
74
+
75
+ # Initialize in your project
76
+ cd /your/project
77
+ beans init
78
+ beans config --valyu # Set Valyu API key (optional)
79
+ beans doctor # Verify setup
80
+ ```
81
+
82
+ ### CLI Commands
83
+
84
+ ```bash
85
+ beans init # Initialize BEANS in current project
86
+ beans config # Configure API keys interactively
87
+ beans config --valyu # Set Valyu API key
88
+ beans config --github # Set GitHub token
89
+ beans config --show # Show current configuration
90
+ beans doctor # Check installation status
91
+ beans help # Show help
92
+ ```
93
+
94
+ ### Configuration
95
+
96
+ API keys stored in `~/.beans/config.json`:
97
+ ```json
98
+ {
99
+ "valyu_api_key": "val_...",
100
+ "github_token": "ghp_..."
101
+ }
102
+ ```
103
+
104
+ ### Usage
105
+
106
+ ```bash
107
+ # In Claude Code:
108
+
109
+ /beans # List ready issues
110
+ /beans "Add dark mode toggle" # Full autonomous flow
111
+ /beans "Add dark mode" --quick # Quick mode (skip spec phases)
112
+ /beans task-042 # Build existing issue
113
+
114
+ # Individual phases:
115
+ /beans:research # Research phase only
116
+ /beans:requirements # Requirements phase only
117
+ /beans:design # Design phase only
118
+ /beans:tasks # Task planning only
119
+ /beans:implement # Execute tasks
120
+
121
+ # Beads commands:
122
+ /bd:create "Bug: login fails" # Create issue
123
+ /bd:show task-042 # Show issue details
124
+ /bd:ready # List unblocked issues
125
+ /bd:close task-042 # Close issue
126
+ ```
127
+
128
+ ## Architecture
129
+
130
+ ```
131
+ beans/
132
+ ├── package/
133
+ │ ├── beads/ # Git-backed issue tracker (Go)
134
+ │ │ └── claude-plugin/ # 31 Claude Code commands
135
+ │ ├── smart-ralph/ # Spec-driven development
136
+ │ │ └── plugins/
137
+ │ │ ├── ralph-specum/ # Research→Design→Tasks→Execute
138
+ │ │ └── ralph-speckit/ # Constitution-first methodology
139
+ │ └── valyu/ # Knowledge retrieval MCP
140
+
141
+ └── plugin/ # Unified BEANS plugin
142
+ ├── plugin.json # Manifest + hooks
143
+ ├── CLAUDE.md # Documentation
144
+ ├── commands/
145
+ │ ├── beans.md # Main /beans command
146
+ │ ├── bd/ # 31 beads commands
147
+ │ └── ralph/ # 13 ralph commands
148
+ ├── agents/ # 13 subagents
149
+ ├── skills/ # 10 skill definitions
150
+ ├── templates/ # Spec templates
151
+ ├── lib/
152
+ │ └── code-intelligence.sh # AST tools wrapper
153
+ ├── config/
154
+ │ └── hooks.json # Auto-review hooks
155
+ └── scripts/
156
+ ├── beans-setup.sh # Environment setup
157
+ ├── verify-beans-setup.sh # Verify installation
158
+ ├── build-unified.sh # Rebuild from sources
159
+ └── install.sh # Install to project
160
+ ```
161
+
162
+ ## Workflow
163
+
164
+ ### Standard Mode
165
+
166
+ ```
167
+ /beans "Add OAuth2 login"
168
+
169
+
170
+ ┌─────────────────┐
171
+ │ Create Issue │ → task-042
172
+ └────────┬────────┘
173
+
174
+
175
+ ┌─────────────────┐
176
+ │ Research │ → research.md
177
+ └────────┬────────┘
178
+ │ (user reviews, runs /beans:requirements)
179
+
180
+ ┌─────────────────┐
181
+ │ Requirements │ → requirements.md
182
+ └────────┬────────┘
183
+ │ (user reviews, runs /beans:design)
184
+
185
+ ┌─────────────────┐
186
+ │ Design │ → design.md
187
+ └────────┬────────┘
188
+ │ (user reviews, runs /beans:tasks)
189
+
190
+ ┌─────────────────┐
191
+ │ Tasks │ → tasks.md
192
+ └────────┬────────┘
193
+ │ (user runs /beans:implement)
194
+
195
+ ┌─────────────────┐
196
+ │ Execute │ Loops through tasks
197
+ │ + Quality │ code-reviewer → optimizer → test-engineer
198
+ └────────┬────────┘
199
+
200
+
201
+ ┌─────────────────┐
202
+ │ Complete │ Close issue, commit, push
203
+ └─────────────────┘
204
+ ```
205
+
206
+ ### Quick Mode
207
+
208
+ ```bash
209
+ /beans "Add OAuth2 login" --quick
210
+ ```
211
+
212
+ Skips interactive phases, auto-generates all artifacts, starts execution immediately.
213
+
214
+ ## Hooks
215
+
216
+ | Event | Action |
217
+ |-------|--------|
218
+ | `SessionStart` | Load beads context (`bd prime`) |
219
+ | `PreCompact` | Preserve beads context |
220
+ | `PostEdit` | Auto-review with code-reviewer (haiku) |
221
+ | `PreCommit` | Run lint + tests |
222
+ | `TaskComplete` | Verify coverage + sync beads |
223
+
224
+ ## Code Intelligence
225
+
226
+ ```bash
227
+ # Source the library
228
+ source ~/.local/share/beans/code-intelligence.sh
229
+
230
+ # AST-based code search
231
+ ag_find 'console.log($$$)' src/
232
+ ag_todos src/
233
+
234
+ # Codebase snapshots
235
+ snapshot_codebase "task-001" "1"
236
+
237
+ # File analysis
238
+ analyze_file src/app.ts
239
+
240
+ # Directory analysis
241
+ analyze_directory src/
242
+ ```
243
+
244
+ ## Environment Variables
245
+
246
+ ```bash
247
+ export VALYU_API_KEY="..." # For Valyu research (optional)
248
+ export GITHUB_TOKEN="..." # For PR creation (optional)
249
+ ```
250
+
251
+ ## Development
252
+
253
+ ### Rebuild Plugin
254
+
255
+ ```bash
256
+ # Rebuild from source packages
257
+ ./plugin/scripts/build-unified.sh
258
+ ```
259
+
260
+ ### Plugin Structure
261
+
262
+ The unified plugin merges:
263
+ - `package/beads/claude-plugin/` → `plugin/commands/bd/`
264
+ - `package/smart-ralph/plugins/ralph-specum/` → `plugin/commands/ralph/`, `plugin/agents/`
265
+ - Custom agents → `plugin/agents/`
266
+ - Code intelligence → `plugin/lib/`
267
+
268
+ ## Related Projects
269
+
270
+ - [Beads](https://github.com/steveyegge/beads) - Original git-backed issue tracker
271
+ - [Smart Ralph](https://github.com/tzachbon/smart-ralph) - Spec-driven development plugins
272
+ - [Claude Code Plugins](https://github.com/anthropics/claude-code-plugins) - Official plugin docs
273
+
274
+ ## License
275
+
276
+ MIT License - see [LICENSE](LICENSE) for details.
277
+
278
+ ---
279
+
280
+ **BEANS v2.0** - Autonomous development, simplified.
package/index.ts CHANGED
@@ -16,7 +16,7 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
16
16
  import { join, resolve } from "path";
17
17
  import { homedir } from "os";
18
18
 
19
- const VERSION = "2.5.0";
19
+ const VERSION = "2.5.2";
20
20
  const BEANS_HOME = join(homedir(), ".beans");
21
21
  const BEANS_CONFIG = join(BEANS_HOME, "config.json");
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morebeans/cli",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "BEANS CLI - Setup and configure autonomous development for Claude Code",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -12,7 +12,8 @@
12
12
  },
13
13
  "files": [
14
14
  "index.ts",
15
- "package.json"
15
+ "package.json",
16
+ "README.md"
16
17
  ],
17
18
  "keywords": [
18
19
  "beans",