@odarino/haren 1.1.0 → 1.1.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +200 -0
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Phung Vu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,200 @@
1
+ ```
2
+ ██╗ ██╗ █████╗ ██████╗ ███████╗ ███╗ ██╗
3
+ ██║ ██║ ██╔══██╗ ██╔══██╗ ██╔════╝ ████╗ ██║
4
+ ███████║ ███████║ ██████╔╝ █████╗ ██╔██╗ ██║
5
+ ██╔══██║ ██╔══██║ ██╔══██╗ ██╔══╝ ██║╚██╗██║
6
+ ██║ ██║ ██║ ██║ ██║ ██║ ███████╗ ██║ ╚████║
7
+ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═══╝
8
+ agentic SDLC framework · brainstorm → plan → build
9
+ ```
10
+
11
+ # haren
12
+
13
+ > Minimal, skill-based agentic SDLC framework.
14
+
15
+ `haren` scaffolds a structured workspace — agents, skills, templates, and an
16
+ auto-managed state file — that drives an AI coding agent (Claude Code or Cursor)
17
+ through a disciplined software-development lifecycle:
18
+
19
+ ```
20
+ research → discover → decompose → plan → implement → evaluate
21
+ ```
22
+
23
+ Instead of letting an LLM jump straight to code, haren enforces a phased
24
+ workflow: brainstorm and research first, decompose into modules, write a plan,
25
+ *then* implement. The result is fewer wasted tokens, fewer half-built features,
26
+ and a paper trail of decisions you can actually review.
27
+
28
+ ---
29
+
30
+ ## Why
31
+
32
+ LLM coding agents are eager. Ask for a feature and they'll start writing files
33
+ before anyone has agreed on *what* is being built. haren adds the missing
34
+ front-half of the SDLC and **gates implementation behind planning** — a module
35
+ cannot be coded until it has reached `planned` status. The gate is enforced by a
36
+ hook, not just a prompt, so the discipline holds even when the model forgets.
37
+
38
+ Everything lives in a single `haren/` directory you can read, diff, and commit.
39
+
40
+ ---
41
+
42
+ ## Requirements
43
+
44
+ - **[Bun](https://bun.com) ≥ 1.2** — installed and on your `PATH`.
45
+ haren runs on the Bun runtime; Node.js alone is not sufficient.
46
+ - An AI coding agent: **[Claude Code](https://claude.com/claude-code)** or
47
+ **[Cursor](https://cursor.com)** (or both).
48
+
49
+ ## Install
50
+
51
+ ```bash
52
+ npm install -g @odarino/haren
53
+ # or run without installing:
54
+ npx @odarino/haren init
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Quick start
60
+
61
+ ```bash
62
+ cd your-project
63
+ haren init # scaffold a haren/ workspace (interactive)
64
+ ```
65
+
66
+ `init` asks a few questions (project name, mode, language, editor) and creates a
67
+ `haren/` workspace plus the editor config your agent reads on every session.
68
+ Then open the project in your editor and say:
69
+
70
+ > **"what's next?"**
71
+
72
+ The agent reads `haren/skill.md`, orients itself from `manifest.yaml` and
73
+ `progress.json`, and guides you into the right phase.
74
+
75
+ ---
76
+
77
+ ## Commands
78
+
79
+ | Command | What it does |
80
+ |---------|--------------|
81
+ | `haren init` | Scaffold a new `haren/` workspace in the current directory. Interactive, or pass flags (below). |
82
+ | `haren upgrade` | Update framework files (agents, skills, templates) in an existing workspace to the installed version. |
83
+ | `haren agent` | Manage the local agent bridge *(experimental — for the in-progress Haren Portal)*. |
84
+
85
+ Run `haren` with no arguments for help.
86
+
87
+ ### `init` flags (skip the prompts)
88
+
89
+ ```bash
90
+ haren init \
91
+ --project "my-app" \
92
+ --mode blueprint \ # blueprint | explore | inherit | undecided
93
+ --language English \
94
+ --editor both \ # claude-code | cursor | both
95
+ --iterations \ # enable iteration-based planning
96
+ --duration "2 weeks" --start-date 2026-06-08 --demo-day Friday
97
+ ```
98
+
99
+ Re-running in an existing workspace requires `--force`.
100
+
101
+ ---
102
+
103
+ ## How it works
104
+
105
+ ### Modes
106
+
107
+ You pick a mode at init that matches where your project stands:
108
+
109
+ | Mode | When |
110
+ |------|------|
111
+ | `blueprint` | Greenfield project that already has docs/specs to work from. |
112
+ | `explore` | Greenfield project starting from just an idea. |
113
+ | `inherit` | Brownfield project with an existing codebase. |
114
+ | `undecided` | Let the agent help you choose on first session. |
115
+
116
+ ### Phases & the code gate
117
+
118
+ Each module progresses through phases **in order** — you can't skip ahead:
119
+
120
+ ```
121
+ discovered → specified → planned → implementing → evaluating → completed
122
+ ```
123
+
124
+ A `brainstorm-gate` hook blocks `Edit`/`Write` on any file **outside `haren/`**
125
+ until at least one module reaches `planned`. Discovery docs and specs are not
126
+ enough — planning must be done first. (Writes *inside* `haren/` are always
127
+ allowed so the planning phases can produce their artifacts.)
128
+
129
+ ### Agents
130
+
131
+ haren ships role-specific agent definitions that your LLM adopts per phase —
132
+ including a **researcher**, **ideator**, **architect**, **planner**,
133
+ **developer**, **reviewer**, and **qa-engineer**. Each has a focused scope so the
134
+ model behaves like the right specialist at the right time.
135
+
136
+ ### Skills
137
+
138
+ Skills are the procedures the agent follows — `discover` (brainstorming),
139
+ `research`, `decompose`, `plan`, `implement`, `evaluate`, `extract-stories`,
140
+ `generate-mockup`, and a set of artifact-management helpers
141
+ (`create-artifact`, `validate-artifact`, `search-artifact`, `update-tracking`,
142
+ and more).
143
+
144
+ ### The workspace
145
+
146
+ ```
147
+ haren/
148
+ ├── manifest.yaml # project config (mode, language, repos, sources)
149
+ ├── progress.json # auto-managed state — phases & module status
150
+ ├── skill.md # the LLM's operating manual (read every session)
151
+ ├── FEEDBACK.md # append-only log of framework friction
152
+ ├── agents/ # agent role definitions
153
+ ├── skills/ # phase + helper procedures
154
+ ├── templates/ # artifact templates (spec, design, tasks, research, …)
155
+ ├── hooks/ # brainstorm-gate.ts (the code gate)
156
+ └── artifacts/ # phase outputs, organised by stage
157
+ ├── 00-baseline/ # input docs
158
+ ├── 01-research/ ├── 02-discovery/ ├── 03-modules/
159
+ ├── 04-plans/ ├── 05-implementation/ └── 06-evaluation/
160
+ ```
161
+
162
+ ### Editor integration
163
+
164
+ `init` wires up whichever editor(s) you choose:
165
+
166
+ - **Claude Code** → `CLAUDE.md` + `.claude/settings.json` (registers the gate as
167
+ a `PreToolUse` hook).
168
+ - **Cursor** → `.cursorrules` + `.cursor/rules/haren.mdc` + `.cursor/hooks.json`
169
+ (registers the gate via `beforeFileEdit`/`preToolUse`).
170
+
171
+ Existing config files are appended to, not overwritten.
172
+
173
+ ---
174
+
175
+ ## Upgrading
176
+
177
+ ```bash
178
+ cd your-project
179
+ haren upgrade
180
+ ```
181
+
182
+ This refreshes the agents, skills, and templates in `haren/` to match the
183
+ installed CLI version, leaving your artifacts and state untouched.
184
+
185
+ ---
186
+
187
+ ## Credits
188
+
189
+ haren's workflow philosophy is heavily inspired by
190
+ **[Superpowers](https://github.com/obra/superpowers)** by Jesse Vincent — the
191
+ discipline of *brainstorm → write a plan → execute with fresh subagents → review*,
192
+ the test-driven and YAGNI-minded approach, and the idea of gating implementation
193
+ behind an approved design all trace back to that work. haren packages a similar
194
+ philosophy into a phased, artifact-driven SDLC for product teams. Many thanks.
195
+
196
+ ---
197
+
198
+ ## License
199
+
200
+ MIT — see [LICENSE](./LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odarino/haren",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Minimal skill-based agentic SDLC framework",
5
5
  "type": "module",
6
6
  "license": "MIT",