heartcode 0.1.59 → 0.1.62

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/CHANGELOG.md CHANGED
@@ -2,6 +2,76 @@
2
2
 
3
3
  What changed in each version of HeartCode, newest first.
4
4
 
5
+ ## 0.1.62 (2026-11-10)
6
+
7
+ - **"Done" is checked, not taken on trust**: a web page or game that was changed is opened in a real
8
+ browser by HeartCode itself before "done" is accepted; errors, a blank page or a canvas that draws
9
+ nothing send the model back with screenshots (a canvas showing one flat color now counts as
10
+ broken). Saying "done" again without changing anything doesn't pass.
11
+ - **Better models take over**: a model that times out or errors, goes round in circles, says it's
12
+ stuck or keeps failing the browser check hands the task to the best-ranked of your models
13
+ (LMArena) not tried yet, not just the next in your list (often a much smaller one). Your #1 still
14
+ starts every message. Helpers are picked best-ranked first by default (Used: by score).
15
+ - **Fixes don't lose earlier work**: the changes tool lists a file's earlier versions from every
16
+ conversation in the project (versions, version: N). A changed file much smaller than an earlier
17
+ version stops "done" until what was lost is checked, and the review checks that what earlier
18
+ messages asked for still works. Rules: a fix keeps everything working; never rewrite a whole
19
+ working file to fix part of it; judge by what's on screen, not values inside the program.
20
+ - **One agent or several**: a plan of several steps asks whether to work on it with several agents
21
+ at once. With several, parts that stand alone run side by side, and a part no model is sure of
22
+ (compare) is done by the two best-ranked models, each in a copy of the project; HeartCode checks
23
+ both and another model picks the better one.
24
+ - **The screen stays tidy**: "waiting for" shows once; a plan shows 3 steps (Alt+L or /todos for all
25
+ of it); thinking shows 2 lines (Alt+O for all); the same call made again shows once with ×N.
26
+ - **Works on Windows**: npm start installs from source (paths from file URLs were /C:/…); MCP
27
+ servers, language servers and npm/npx (.cmd files) start through cmd.exe with proper quoting; a
28
+ stopped command, server or background job takes its whole process tree with it; formatters and
29
+ ffmpeg are found with their .exe/.cmd; voice records from the microphone (DirectShow); the model
30
+ is told the shell its commands really run in.
31
+ - **Settings page**: Save list is always there and saves the list exactly as shown, keeping the
32
+ sort and filters; Clear sort in one click; Suggest helpers only marks the suggestions (no
33
+ filtering; the Helpers filter is gone); plain-language tooltips on the Models settings; Give up,
34
+ Stalled and Tests wait can't contradict each other (Tests wait and Stalled ≥ Give up: the one you
35
+ set stays, the other moves, and the page says why).
36
+
37
+ ## 0.1.61 (2026-11-09)
38
+
39
+ - **No more hours of "not answering" after a connection dies**: requests go over HeartCode's own
40
+ HTTP/1.1 client (node:http/https, no packages) instead of Node's built-in fetch. That one used
41
+ HTTP/2, one connection for every request to a host; when it died without a word, every later
42
+ request waited on it and none was sent (every model behind one proxy "didn't start answering"
43
+ while the host answered at once). Now each request has its own socket, a stopped one takes it
44
+ with it, and the next request goes through on a fresh connection.
45
+ - **Alt+B shows the running background commands**; `A` shows the stopped and finished ones too.
46
+
47
+ ## 0.1.60 (2026-11-08)
48
+
49
+ - **Models say when they're stuck, and get help**: a todo step can be marked `stuck` with why; the
50
+ 1st time it's told to change approach, the 2nd another model gives a second opinion (a Big & hard
51
+ helper first), the 3rd the next model takes over (not another version of the same one, nor one
52
+ given up on already). An answer that says it didn't manage counts the same; with no model left,
53
+ it says plainly what blocks it. Headless: `stuck` events, `why` on todos.
54
+ - **No giving up without trying**: "I can't browse / run…" before any tool is used gets a reminder
55
+ of its tools, then the next model. An answer repeated after "not done" or a review's no hands the
56
+ task over. The review now also checks tasks that changed no files but ran commands or a browser.
57
+ - **Helpers see what they're asked about**: an image named in a helper's job is attached, so a model
58
+ that can see takes it; a helper that can't see gets its screenshots described by one that can.
59
+ The same tool failing three times in a row: told to stop and find out why.
60
+ - **Learns from struggles**: what blocked a task (from how it ended and the review, not from the
61
+ model's excuses) or what got it unstuck is saved as a lesson; a failed task's lesson is what to
62
+ check first next time.
63
+ - **Settings, Models page**: helper jobs and narrow columns are icons (names on hover), rankings show
64
+ the place only, and the table fits the screen on a desktop and a 1280px laptop; the controls in
65
+ three rows with icons (the list's actions by the title; fail-over and helper settings; filters).
66
+ Helpers: **Automatic / Manual**, used in list order, by provider or **by score** (best ranked
67
+ first). A phone gets a dismissible "works best on a desktop".
68
+ - **No more you/your**: the settings page and the CLI use plain labels ("Models", "List").
69
+ - **Settings load fast**: model profiles, models.dev lookups and the saved model lists are kept in
70
+ memory (read again when their files change) and warmed in the background: the Providers page with
71
+ 2,895 models is ready in about a third of a second (was several seconds).
72
+ - **Model lists**: a provider that answers with a bare list (Typhoon) is read; loading a list waits
73
+ up to a minute.
74
+
5
75
  ## 0.1.59 (2026-11-07)
6
76
 
7
77
  - **You see which model does what**: every step names its model (`● web_fetch … · model`), each
package/README.md CHANGED
@@ -27,20 +27,32 @@ has none, so there's nothing for anyone to poison.
27
27
  down or fails, the next one answers and the work goes on. A ↻ in the status bar shows it.
28
28
  - When a conversation gets too long for a model, it moves to one of your models with more room
29
29
  instead of summarizing things away.
30
- - When a model goes round in circles, the next one takes over. Only you stop it (Esc).
30
+ - When a model goes round in circles, another takes over. Only you stop it (Esc).
31
+ - A model that shows it can't do the task (stuck, going round, or saying "done" while the work is
32
+ still broken) hands it to the best-ranked of your models it hasn't tried (LMArena's rankings),
33
+ not just the next in your list. Your list still decides who starts, and who answers when one is
34
+ down.
35
+ - Models are told to say when they're stuck, and believed: first a different approach, then a
36
+ second opinion from another of your models, then the next model takes over (not another version
37
+ of the same one). The same happens when a model says "I can't" without trying its tools, or
38
+ answers again without doing anything after being told it isn't done.
31
39
 
32
40
  **It works carefully**
33
41
  - It asks what you want before it builds, reads the current docs before it uses something, and
34
42
  makes a plan before it changes anything.
35
43
  - It runs and tests what it changed before it says "done", and another of your models checks the
36
44
  result against what you asked.
45
+ - A web page or game it changed, HeartCode opens in a real browser itself before it accepts "done":
46
+ errors, a blank page or a canvas that draws nothing send it back to work, whatever the model's own
47
+ checks said.
37
48
  - It writes the least code that works and changes only what the task needs.
38
49
 
39
50
  **It learns, per project**
40
51
  - Every web page it reads is saved in `.heartcode/research/`.
41
52
  - After a task, it saves what's worth knowing as notes (`.heartcode/memory/`) and deletes the junk
42
53
  and throwaway files, in the background.
43
- - A mistake it fixes becomes a lesson it won't repeat.
54
+ - A mistake it fixes becomes a lesson it won't repeat. So does what blocked a task, or what got it
55
+ unstuck, so the next task like it starts knowing.
44
56
 
45
57
  **It gets good work out of small and local models**
46
58
  - Models that can't call tools are guided one simple question at a time.
@@ -53,7 +65,7 @@ has none, so there's nothing for anyone to poison.
53
65
  - **Skills, MCP servers and hooks** in Claude Code's formats; `/import` brings yours over.
54
66
  - **Tabs** (`Alt+T`) and git worktrees, for work kept apart.
55
67
  - **Servers in the background**: the model starts a dev server and keeps working. `Alt+B` shows
56
- their logs live.
68
+ the running ones' logs live (`A`: the stopped ones too).
57
69
  - **Telegram messages** when a task finishes, fails or waits for you.
58
70
  - **Logs** of exactly what you choose (seven kinds, all off by default), readable on the settings page.
59
71
  - **`heart -p`** runs one task without the screen, for other tools and AI agents, like `claude -p`
@@ -69,12 +81,17 @@ has none, so there's nothing for anyone to poison.
69
81
  2. **It reads up** on whatever it's about to use, instead of trusting its memory.
70
82
  3. **It makes a plan**: a todo list you can see. Its first change of each message waits for one.
71
83
  4. **It does the work**: reading files, running commands, editing.
72
- 5. **It may split the work.** Your #1 model can hand a job to a helper, or run separate parts at
73
- the same time, each on its own files. The model decides. Pick your helpers yourself (below), or
74
- let HeartCode pick them; without any, it can use any of your models, in your order. Every step
75
- on screen names the model doing it.
84
+ 5. **It splits the work, if you want.** When the plan has several steps, HeartCode asks: several
85
+ agents at once, or one? With several, steps that stand alone run at the same time, each on its
86
+ own files and on the model best at it. A step no model is sure to do well is done by two of your
87
+ best-ranked models, each in a copy of the project, and the better result is kept (HeartCode checks
88
+ both, another model picks). Nobody to answer (`heart -p`): several. Pick your helpers yourself
89
+ (below), or let HeartCode pick them; without any, it can use any of your models. Every step on
90
+ screen names the model doing it.
76
91
  6. **It checks before it says it's done**: it must have tested what it changed, finished its todo
77
- list and made the files it names. Then your next models say yes or no; a no sends it back.
92
+ list and made the files it names. A web page it changed, HeartCode opens in a browser itself.
93
+ Then your next models say yes or no (also when it changed no
94
+ files but ran commands or a browser); a no sends it back.
78
95
  7. **It tidies up** in the background: saves notes for next time, removes throwaway files.
79
96
 
80
97
  ## How to set it up
@@ -111,7 +128,7 @@ key. A running HeartCode picks up your changes right away.
111
128
 
112
129
  What's in the sidebar:
113
130
 
114
- - **Models**: *Your list* (the models HeartCode uses, in order) and *Providers* (where they come from).
131
+ - **Models**: *List* (the models HeartCode uses, in order) and *Providers* (where they come from).
115
132
  - **General**: what it may do without asking, colors, thinking effort, voice input, web search,
116
133
  and the *Status bar* (drag and drop what it shows). **Notifications**: Telegram.
117
134
  - **Skills**, **MCP servers** and **System prompt**: what HeartCode can do and what it's told.
@@ -128,20 +145,21 @@ On **Models → Providers**:
128
145
 
129
146
  ### 5. Put your list in order
130
147
 
131
- On **Models → Your list**:
148
+ On **Models → List**:
132
149
 
133
150
  1. **Sort.** Click *Abilities*, then *Context*: the most capable models come first, the biggest
134
151
  context window first among those. Click **Save list**.
135
152
  2. **Drag rows** to fine-tune. #1 is the one HeartCode uses; the rest are its fallbacks, in order.
136
153
  3. **Test** (optional): **Test all** sends each model a short message and shows which answer and
137
154
  how fast (*Works?*). Sort by it to put the fastest first.
138
- 4. **Filter** (optional): by name, provider, test result, context, abilities, free or helpers.
155
+ 4. **Filter** (optional): by name, provider, test result, context, abilities or free.
139
156
  **Use only these** keeps just the ones you see, in that order.
140
157
  5. **Helpers** (optional): the models #1 can hand parts of a task to. In the *Helper* column, switch
141
158
  a model on and pick what it's good at: **UI & visuals**, **Code & logic**, **Big & hard**,
142
- **Quick & cheap** (hover a pill to see what it covers). **Suggest helpers** proposes them from
143
- the models that passed **Test all** and the rankings; or set *Helpers* to **picked for you**.
144
- *Helpers picked* (beside **Order providers**): in your order, or by your provider ranking.
159
+ **Quick & cheap** (hover an icon to see what it covers). **Suggest helpers** proposes them from
160
+ the models that passed **Test all** and the rankings; or set *Helpers* (at the top) to
161
+ **Automatic**. *Used*: which helper #1 takes first: **by score** (the default: best placed in
162
+ LMArena's rankings first), in your order, or by your provider ranking.
145
163
 
146
164
  **Update model info** fetches what each model can do and costs (from models.dev) and its places in
147
165
  LMArena's public rankings for coding, web apps and vision, as columns to sort by. A model *not
@@ -215,7 +233,9 @@ Ask it to read, change, run and fix things in your project, like any coding agen
215
233
  - `Esc` twice stops it; `Esc` also closes a dialog.
216
234
  - While it works, `Enter` queues a message. `Esc` (or `↑`) takes queued messages back into the box
217
235
  to change or drop, without stopping the work.
218
- - `Shift+Enter` (or `Option+Enter`) adds a new line. `Alt+O` shows all of the model's thinking.
236
+ - `Shift+Enter` (or `Option+Enter`) adds a new line. `Alt+O` shows all of the model's thinking (two lines
237
+ of it show otherwise), `Alt+L` the whole plan (three of its steps show while it works). The same
238
+ call made again and again shows once, with a count (×4).
219
239
  - While it works, commands that don't change the conversation (`/help`, `/cost`, `/diff`,
220
240
  `/settings`…) run at once; the ones that do (`/compact`, `/rewind`…) wait until it's done.
221
241
 
package/SKILL.md CHANGED
@@ -295,7 +295,8 @@ a program that doesn't know a subtype can skip it, as for Claude Code):
295
295
  | `subtype` | Fields | When |
296
296
  |---|---|---|
297
297
  | `status` | `status`, `model` | what it's doing now, as the screen's spinner says it ("thinking", "waiting for …", "preparing read_file README.md", a running command's latest output line, read once a second); sent when it changes. A helper's: its model |
298
- | `todos` | `todos`: `[{ content, status, by? }]` | the whole plan, each time it changes; `status` is `pending`, `in_progress` or `completed`; `by`: the model a step was handed to |
298
+ | `todos` | `todos`: `[{ content, status, why?, by? }]` | the whole plan, each time it changes; `status` is `pending`, `in_progress`, `completed` or `stuck` (`why`: the model's reason); `by`: the model a step was handed to |
299
+ | `stuck` | `step`, `why`, `count`, `model` | the model says it's stuck on a step (`count` this message): the 1st time it's told to change approach, the 2nd another model gives a second opinion, the 3rd the next model takes over (a `warning` says so) |
299
300
  | `helper` | `tool_use_id`, `label`, `model`, `status` | a helper at work: `starting`, then what it's doing, then `done`. `tool_use_id` is its `agent` call (several parts of a plan run at once can share one); `label` its job |
300
301
  | `review` | `model`, `verdict` (`yes`/`no`), `issues` | another model's look at the changes before the answer; a `no` sends the work back to be fixed |
301
302
  | `model_switch` | `from`, `to`, `reason`, `place` | the user's list moved on: `from` failed (`reason`, e.g. `rate-limited (429)`), `to` answers now (`place`: its place in the list) |
package/bin/heart.js CHANGED
@@ -22,7 +22,7 @@ const fail = (msg) => {
22
22
  console.error(msg)
23
23
  process.exit(1)
24
24
  }
25
- if (Number(process.versions.node.split('.')[0]) < 22) fail(`HeartCode needs Node.js 22 or newer (you have ${process.version}): https://nodejs.org`)
25
+ if (Number(process.versions.node.split('.')[0]) < 22) fail(`HeartCode needs Node.js 22 or newer (this is ${process.version}): https://nodejs.org`)
26
26
 
27
27
  const args = process.argv.slice(2)
28
28
  const realHome = process.env.HEART_HOME || path.join(os.homedir(), '.heart')