heartcode 0.1.62 → 0.1.63
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 +9 -0
- package/README.md +98 -66
- package/package.json +1 -1
- package/src/config.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of HeartCode, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.1.63 (2026-11-10)
|
|
6
|
+
|
|
7
|
+
- **Time limits set for free models out of the box**: Give up 45 s, Stalled 60 s, Tests wait 60 s
|
|
8
|
+
(never shorter than Give up), so Test all works without changing anything. Values already saved stay.
|
|
9
|
+
- **`heart models --all`** lists only the providers that are switched on.
|
|
10
|
+
- **README**: the setup as I do it, step by step (add every provider's models, Update model info,
|
|
11
|
+
Test all, keep the ones that work, sort by coding, save), with what the time limits do; old
|
|
12
|
+
screenshots taken out for new ones.
|
|
13
|
+
|
|
5
14
|
## 0.1.62 (2026-11-10)
|
|
6
15
|
|
|
7
16
|
- **"Done" is checked, not taken on trust**: a web page or game that was changed is opened in a real
|
package/README.md
CHANGED
|
@@ -8,8 +8,7 @@ ones, local ones, several at once.
|
|
|
8
8
|
**Zero dependencies.** Only Node.js (22 or newer) and HeartCode's own code. No `node_modules`, no
|
|
9
9
|
install scripts. What you install is what you can read.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-

|
|
11
|
+
<img width="972" height="611" alt="Image" src="https://github.com/user-attachments/assets/4f747a6f-a958-4056-97ee-b6a8b9394b4a" />
|
|
13
12
|
|
|
14
13
|
## Why I made it
|
|
15
14
|
|
|
@@ -94,7 +93,10 @@ has none, so there's nothing for anyone to poison.
|
|
|
94
93
|
files but ran commands or a browser); a no sends it back.
|
|
95
94
|
7. **It tidies up** in the background: saves notes for next time, removes throwaway files.
|
|
96
95
|
|
|
97
|
-
## How
|
|
96
|
+
## How I set it up
|
|
97
|
+
|
|
98
|
+
There are many ways to set HeartCode up. This is how I do it: every free model I can get, tested,
|
|
99
|
+
the ones that work kept, the best at coding first.
|
|
98
100
|
|
|
99
101
|
### 1. Install
|
|
100
102
|
|
|
@@ -123,49 +125,110 @@ Type `/settings`. The page opens in your browser. Its link also works from anoth
|
|
|
123
125
|
network (handy when HeartCode runs on a server over SSH). Only that link works: it has a secret
|
|
124
126
|
key. A running HeartCode picks up your changes right away.
|
|
125
127
|
|
|
126
|
-
|
|
127
|
-

|
|
128
|
+
<img width="1920" height="1083" alt="Image" src="https://github.com/user-attachments/assets/b51c5884-1da3-4fc9-9a0c-de119d8bb15e" />
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
### 4. Add your providers and pick their models
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
- **General**: what it may do without asking, colors, thinking effort, voice input, web search,
|
|
133
|
-
and the *Status bar* (drag and drop what it shows). **Notifications**: Telegram.
|
|
134
|
-
- **Skills**, **MCP servers** and **System prompt**: what HeartCode can do and what it's told.
|
|
135
|
-
- **Advanced**: *Logs* and *Files* (the rest of the settings, as files).
|
|
132
|
+
On **Models → Providers**:
|
|
136
133
|
|
|
137
|
-
|
|
134
|
+
1. **+ Add a provider**: its name, base URL and API key. A preset fills in the URL.
|
|
135
|
+
2. **Pick models.** I take all of them: tick the box at the top (*select every model shown*), then
|
|
136
|
+
**Add N to the list**. Or click a model to add just that one.
|
|
137
|
+
3. Do the same for every provider you have.
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
### 5. Update model info
|
|
140
|
+
|
|
141
|
+
On **Models → List**, click **Update model info**. It fetches what each model can do and costs
|
|
142
|
+
(from [models.dev](https://models.dev)) and its places in LMArena's public rankings for coding, web
|
|
143
|
+
apps and vision. The rankings become columns you can sort by (step 9).
|
|
144
|
+
|
|
145
|
+
### 6. Test all
|
|
146
|
+
|
|
147
|
+
Click **Test all**. It sends each model a short message and shows in the *Works?* column which ones
|
|
148
|
+
answer, and how fast.
|
|
149
|
+
|
|
150
|
+
Why: most providers have free and paid models side by side, and not every model they list works
|
|
151
|
+
for your key. The test shows which ones really answer for you. (A paid model charges for its few
|
|
152
|
+
tokens.)
|
|
153
|
+
|
|
154
|
+
The three time limits next to the buttons are already set the way I use them:
|
|
155
|
+
|
|
156
|
+
| Setting | Default | What it does |
|
|
157
|
+
|---|---|---|
|
|
158
|
+
| **Give up** | 45 s | How long a model gets to start answering (its first word, thought or tool call). Nothing by then: it counts as failed and the next model takes over. |
|
|
159
|
+
| **Stalled** | 60 s | How long a reply may go quiet once it has started. A model that keeps sending is never cut off; one silent for this long is asked again, or another takes over. |
|
|
160
|
+
| **Tests wait** | 60 s | Only for the Test buttons: how long each model gets to answer the test message. No answer by then shows as *no answer*. |
|
|
161
|
+
|
|
162
|
+
Give up and Stalled apply to real work too. They're kept consistent: Stalled and Tests wait are
|
|
163
|
+
never shorter than Give up. Change one so they would clash and the other moves with it (the page
|
|
164
|
+
says so). Hover any setting for what it does.
|
|
165
|
+
|
|
166
|
+
### 7. Wait for every test to finish
|
|
140
167
|
|
|
141
|
-
|
|
168
|
+
With many models this takes a while. When it's done, a message says how many work.
|
|
142
169
|
|
|
143
|
-
|
|
144
|
-
2. **Pick models**: click a model to add it to your list. I use the free ones.
|
|
170
|
+
### 8. Keep only the ones that work
|
|
145
171
|
|
|
146
|
-
|
|
172
|
+
In the filters above the list, set *Result* to **✓ Works**. Only the models that answered show.
|
|
147
173
|
|
|
148
|
-
|
|
174
|
+
### 9. Sort by coding
|
|
149
175
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
3. **Test** (optional): **Test all** sends each model a short message and shows which answer and
|
|
154
|
-
how fast (*Works?*). Sort by it to put the fastest first.
|
|
155
|
-
4. **Filter** (optional): by name, provider, test result, context, abilities or free.
|
|
156
|
-
**Use only these** keeps just the ones you see, in that order.
|
|
157
|
-
5. **Helpers** (optional): the models #1 can hand parts of a task to. In the *Helper* column, switch
|
|
158
|
-
a model on and pick what it's good at: **UI & visuals**, **Code & logic**, **Big & hard**,
|
|
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.
|
|
176
|
+
Click the **`</>`** column header (*Coding*): the 9th header counting from *#*, right after the
|
|
177
|
+
wrench, bulb and image icons, before the globe and eye. The models best placed in LMArena's coding ranking come first. #1 is
|
|
178
|
+
the one HeartCode uses first, so the best coder answers, and the next ones take over when it fails.
|
|
163
179
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
180
|
+
### 10. Save
|
|
181
|
+
|
|
182
|
+
Click **Use only these N**. HeartCode uses just these models, in the order shown. The others stay
|
|
183
|
+
under Providers, and the sort and filter stay as they are for next time.
|
|
184
|
+
|
|
185
|
+
### 11. Back to HeartCode
|
|
186
|
+
|
|
187
|
+
Go back to the terminal. While the settings page is on, HeartCode shows a dialog and waits.
|
|
188
|
+
**Turn off** is selected: press Enter to stop the settings page. Your changes are already in.
|
|
189
|
+
|
|
190
|
+
### 12. Start coding
|
|
191
|
+
|
|
192
|
+
Ask it to read, change, run and fix things in your project, like any coding agent.
|
|
193
|
+
|
|
194
|
+
- `/` shows every command; `heart --help` lists the rest.
|
|
195
|
+
- `Shift+Tab` changes what it may do without asking.
|
|
196
|
+
- `Esc` twice stops it; `Esc` also closes a dialog.
|
|
197
|
+
- While it works, `Enter` queues a message. `Esc` (or `↑`) takes queued messages back into the box
|
|
198
|
+
to change or drop, without stopping the work.
|
|
199
|
+
- `Shift+Enter` (or `Option+Enter`) adds a new line. `Alt+O` shows all of the model's thinking (two lines
|
|
200
|
+
of it show otherwise), `Alt+L` the whole plan (three of its steps show while it works). The same
|
|
201
|
+
call made again and again shows once, with a count (×4).
|
|
202
|
+
- While it works, commands that don't change the conversation (`/help`, `/cost`, `/diff`,
|
|
203
|
+
`/settings`…) run at once; the ones that do (`/compact`, `/rewind`…) wait until it's done.
|
|
167
204
|
|
|
168
|
-
|
|
205
|
+
<img width="972" height="611" alt="Image" src="https://github.com/user-attachments/assets/dcf9488a-7cee-4a24-8e3e-c86876d379c9" />
|
|
206
|
+
|
|
207
|
+
## More on the settings page
|
|
208
|
+
|
|
209
|
+
What's in the sidebar:
|
|
210
|
+
|
|
211
|
+
- **Models**: *List* (the models HeartCode uses, in order) and *Providers* (where they come from).
|
|
212
|
+
- **General**: what it may do without asking, colors, thinking effort, voice input, web search,
|
|
213
|
+
and the *Status bar* (drag and drop what it shows). **Notifications**: Telegram.
|
|
214
|
+
- **Skills**, **MCP servers** and **System prompt**: what HeartCode can do and what it's told.
|
|
215
|
+
- **Advanced**: *Logs* and *Files* (the rest of the settings, as files).
|
|
216
|
+
|
|
217
|
+
On **Models → List**, also:
|
|
218
|
+
|
|
219
|
+
- **Drag rows** to fine-tune the order. **Clear sort** puts the list back in its own order; **Clear
|
|
220
|
+
all** turns off the filters too.
|
|
221
|
+
- **Filter** by name, provider, test result, context, abilities or free.
|
|
222
|
+
- **Helpers**: the models #1 can hand parts of a task to. In the *Helper* column, switch a model on
|
|
223
|
+
and pick what it's good at: **UI & visuals**, **Code & logic**, **Big & hard**, **Quick & cheap**
|
|
224
|
+
(hover an icon to see what it covers). **Suggest helpers** proposes them from the models that
|
|
225
|
+
passed **Test all** and the rankings; or set *Helpers* (at the top) to **Automatic**. *Used*:
|
|
226
|
+
which helper #1 takes first: **by score** (the default: best placed in LMArena's rankings first),
|
|
227
|
+
in your order, or by your provider ranking.
|
|
228
|
+
- A model *not found* in models.dev: **Retry** looks it up again, or **Set up** tells HeartCode what
|
|
229
|
+
it can do.
|
|
230
|
+
|
|
231
|
+
### Recommended: let it see what it builds
|
|
169
232
|
|
|
170
233
|
Out of the box, HeartCode reads, writes and runs code. It can't see a page it made or click
|
|
171
234
|
through an app. These three fix that. They're optional, but you'll get much better results with
|
|
@@ -208,37 +271,6 @@ hands the looking to the first of your models that can.
|
|
|
208
271
|
- **Advanced → Logs**: switch on only the kinds you need and read them there (by run, searched,
|
|
209
272
|
live). Logs older than 3 days are deleted.
|
|
210
273
|
|
|
211
|
-
### 7. Back to HeartCode
|
|
212
|
-
|
|
213
|
-
Go back to the terminal. While the settings page is on, HeartCode shows a dialog and waits. Your
|
|
214
|
-
changes are already in.
|
|
215
|
-
|
|
216
|
-
### 8. Press Enter to stop the settings page
|
|
217
|
-
|
|
218
|
-
**Turn off** is selected: press Enter.
|
|
219
|
-
|
|
220
|
-
<!-- image: the "settings page is on" dialog -->
|
|
221
|
-

|
|
222
|
-
|
|
223
|
-
### 9. Send "Hi" as a test
|
|
224
|
-
|
|
225
|
-
Type `Hi` and press Enter. A reply means your model works.
|
|
226
|
-
|
|
227
|
-
### 10. Start using it
|
|
228
|
-
|
|
229
|
-
Ask it to read, change, run and fix things in your project, like any coding agent.
|
|
230
|
-
|
|
231
|
-
- `/` shows every command; `heart --help` lists the rest.
|
|
232
|
-
- `Shift+Tab` changes what it may do without asking.
|
|
233
|
-
- `Esc` twice stops it; `Esc` also closes a dialog.
|
|
234
|
-
- While it works, `Enter` queues a message. `Esc` (or `↑`) takes queued messages back into the box
|
|
235
|
-
to change or drop, without stopping the work.
|
|
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).
|
|
239
|
-
- While it works, commands that don't change the conversation (`/help`, `/cost`, `/diff`,
|
|
240
|
-
`/settings`…) run at once; the ones that do (`/compact`, `/rewind`…) wait until it's done.
|
|
241
|
-
|
|
242
274
|
## Thanks
|
|
243
275
|
|
|
244
276
|
A lot of what HeartCode handles, I learned from other coding agents and the problems they ran into
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -25,11 +25,11 @@ const SETTINGS = ['context', 'effort', 'permissions', 'autoCompact', 'director',
|
|
|
25
25
|
// sending for it is stalled.
|
|
26
26
|
export function speedOf(cfg) {
|
|
27
27
|
const sec = (v, d, min, max) => (Number.isInteger(Number(v)) && Number(v) >= min && Number(v) <= max ? Number(v) : d)
|
|
28
|
-
return { replyStart: sec(cfg.replyStart,
|
|
28
|
+
return { replyStart: sec(cfg.replyStart, 45, 5, 600), replyIdle: sec(cfg.replyIdle, 60, 10, 1800) }
|
|
29
29
|
}
|
|
30
|
-
// A model test's wait (seconds): the one set, else Give up's (a test that waits less
|
|
31
|
-
// broken that a task still waits for)
|
|
32
|
-
export const testWaitOf = (cfg) => (Number(cfg.testTimeout) > 0 ? Number(cfg.testTimeout) : speedOf(cfg).replyStart)
|
|
30
|
+
// A model test's wait (seconds): the one set, else 60, never less than Give up's (a test that waits less
|
|
31
|
+
// would call a model broken that a task still waits for)
|
|
32
|
+
export const testWaitOf = (cfg) => (Number(cfg.testTimeout) > 0 ? Number(cfg.testTimeout) : Math.max(60, speedOf(cfg).replyStart))
|
|
33
33
|
|
|
34
34
|
// The time limits that depend on one another, kept from contradicting: a test waits at least as long as
|
|
35
35
|
// a model gets to start answering (Tests wait ≥ Give up), and a reply that has started may go quiet at
|