heartcode 0.1.30 → 0.1.33
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 +57 -0
- package/README.md +13 -3
- package/SKILL.md +7 -1
- package/bin/heartcode.js +240 -56
- package/package.json +1 -1
- package/prompts/agent.md +21 -2
- package/src/agent.js +85 -20
- package/src/background.js +105 -0
- package/src/config.js +1 -1
- package/src/headless.js +2 -1
- package/src/settings.html +119 -19
- package/src/settings.js +35 -0
- package/src/tools.js +30 -5
- package/src/ui.js +342 -40
- package/src/web.js +69 -30
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of HeartCode, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.1.33 (2026-11-01)
|
|
6
|
+
|
|
7
|
+
- Text you may need can be selected and copied, not only the conversation: drag to select (copied
|
|
8
|
+
when you let go), double-click to copy a word (an address, a path, a model's name). Inside a
|
|
9
|
+
dialog (the settings page's address, /help, /context, /diff, the background logs, a permission's
|
|
10
|
+
command, the choices), the header's folder (a double click copies the whole path, also when it's
|
|
11
|
+
shown cut), the input box and the status bar. Not the tab bar, the borders or the key hints. A
|
|
12
|
+
plain click in a dialog still does its job (a tab in the background logs). /help lists it, and
|
|
13
|
+
Shift+drag (Option+drag on macOS) for the terminal's own selection.
|
|
14
|
+
- Windows: the browser opens through Windows' URL handler (rundll32 url.dll,FileProtocolHandler)
|
|
15
|
+
instead of `cmd /c start`, for /settings and an MCP server's sign-in page.
|
|
16
|
+
|
|
17
|
+
## 0.1.32 (2026-11-01)
|
|
18
|
+
|
|
19
|
+
- Dialogs: pickers (`/select_model`, `/resume`, `/rewind`, `/export`…), permission questions, typed
|
|
20
|
+
questions (`/rename`, "what should it do instead?") and what commands show (`/help`, `/context`,
|
|
21
|
+
`/cost`, `/diff`, `/mcp`, `/doctor`, `/model_info`) open in a box over the conversation: 70% of
|
|
22
|
+
the width, as tall as what's in it (70% at most), everything behind dimmed. A short list is
|
|
23
|
+
cards (name, description under it); a permission shows what it's about (this task's last lines)
|
|
24
|
+
above the choices; long text scrolls. Esc closes any of them; a question the model asks closes
|
|
25
|
+
an open dialog so it can be answered.
|
|
26
|
+
- Commands that run in the background: `run_command` with `background: true` (a dev server, a
|
|
27
|
+
watcher) answers after a few seconds and keeps it running; the `background` tool reads its new
|
|
28
|
+
output, lists them, stops one; the model hears when one exits. `⚙ 1 running` in the status bar;
|
|
29
|
+
`Alt+B` (or `/background`) shows their logs live in a dialog, a tab each (←/→, a click), ↑/↓ and
|
|
30
|
+
PgUp/PgDn scroll, K twice stops one and closes its tab. Everything still running is stopped when
|
|
31
|
+
HeartCode exits. Alt+B only acts in an empty box (Option+← sends the same keys: the word jump).
|
|
32
|
+
- `/context`: what fills the context window, part by part (system prompt, tools, your messages,
|
|
33
|
+
notes, replies, tool results whole and as pointers), the room left, and the biggest pieces.
|
|
34
|
+
- The wrap-up after a task (notes, research pages kept or dropped, throwaway files removed) runs
|
|
35
|
+
after the answer is back, beside what you do next, on a connection of its own; it keeps a file a
|
|
36
|
+
new message may use. `heart -p` prints the result first and exits once it's done; `/exit` waits
|
|
37
|
+
for it.
|
|
38
|
+
- Web search: your own SearXNG (settings page → General → Web search: its address in its own row,
|
|
39
|
+
with Test), and the engines in the order you set (↑/↓, each switchable). They're asked in that
|
|
40
|
+
order: the next only when one hasn't found enough, failed or took over 3 s; the rest aren't asked
|
|
41
|
+
once there's enough. A SearXNG's JSON API is used when it's on there.
|
|
42
|
+
- `/select_model` has an "auto" row (back to your whole list, forgetting this folder's choice), and
|
|
43
|
+
a folder that picked its own models says so at start.
|
|
44
|
+
- `/` commands in alphabetical order (the `/` menu and `/help`).
|
|
45
|
+
- Settings page: one light/dark button at the top right instead of the switch in the sidebar; on a
|
|
46
|
+
phone, the top bar no longer grows taller than its tabs. Typing and pasting in the SearXNG and
|
|
47
|
+
skill-URL boxes work (an Enter handler cancelled every other key).
|
|
48
|
+
|
|
49
|
+
## 0.1.31 (2026-11-01)
|
|
50
|
+
|
|
51
|
+
- Commands typed while HeartCode works run at once instead of waiting in the queue, when they leave
|
|
52
|
+
the conversation alone: `/help`, `/cost`, `/model_info`, `/diff`, `/copy`, `/mcp`, `/doctor`,
|
|
53
|
+
`/toggle_thinking`, `/btw`, `/rename`, `/export`, `/tab`, `/close_tab`, `/exit`, `/settings`,
|
|
54
|
+
`/login_mcp`, `/install_skill`, `/import`, `/voice`, `/select_model`. The ones that change it
|
|
55
|
+
(`/compact`, `/clear_chat`, `/resume`, `/rewind`, `/tree`, `/fork`, `/init`, skills, `/tidy_memory`,
|
|
56
|
+
`/test_model`, `/reset`) still wait until it's done.
|
|
57
|
+
- `/select_model` while it works: the task goes on with its models, yours from the next message.
|
|
58
|
+
`/exit` while it works asks first (that stops the task).
|
|
59
|
+
- One question on screen at a time: a command's picker and the task's question (a permission)
|
|
60
|
+
take turns instead of drawing over each other.
|
|
61
|
+
|
|
5
62
|
## 0.1.30 (2026-11-01)
|
|
6
63
|
|
|
7
64
|
- Settings page: the sidebar is 7 items in 4 groups split by lines (Models · General, Notifications ·
|
package/README.md
CHANGED
|
@@ -31,7 +31,8 @@ tried did what I needed:
|
|
|
31
31
|
current official docs first, not blogs or memory.
|
|
32
32
|
- **Learns, per project, and keeps it.** Every web page it reads is kept whole in
|
|
33
33
|
`.heartcode/research/`. When a task ends it saves what's worth knowing as notes
|
|
34
|
-
(`.heartcode/memory/`), drops the junk and removes throwaway files
|
|
34
|
+
(`.heartcode/memory/`), drops the junk and removes throwaway files, in the background, while
|
|
35
|
+
you go on. A mistake it fixes becomes a
|
|
35
36
|
lesson it won't repeat. The next task starts from what's known instead of searching again.
|
|
36
37
|
- **Checks its work before calling it done**: a plan first, a run after every change, and another
|
|
37
38
|
model reviewing the result against what you asked. Going round in circles hands the work to
|
|
@@ -55,6 +56,11 @@ tried did what I needed:
|
|
|
55
56
|
see what went wrong.
|
|
56
57
|
- **Takes skills, MCP servers and hooks** in Claude Code's formats; `/import` brings yours over.
|
|
57
58
|
- **Tabs** (`Alt+T`), each with its own conversation, and git worktrees for work kept apart.
|
|
59
|
+
- **Servers and watchers in the background**: the model starts one and goes on working, reads its
|
|
60
|
+
output when it needs to, and stops it. `Alt+B` (or `/background`) shows their logs live above the input,
|
|
61
|
+
a tab each (←/→ or a click switches), while you work; nothing outlives HeartCode.
|
|
62
|
+
- **`/context`**: what fills the context window, part by part (system prompt, tools, messages, tool
|
|
63
|
+
results) and the biggest single pieces.
|
|
58
64
|
|
|
59
65
|
## How I set it up and use it
|
|
60
66
|
|
|
@@ -99,7 +105,7 @@ The sidebar, in four groups:
|
|
|
99
105
|
- **Models**: *Your list* (the models HeartCode uses, in order) and *Providers* (where they
|
|
100
106
|
come from).
|
|
101
107
|
- **General**: *Settings* (what it may do without asking, terminal colors, features, thinking
|
|
102
|
-
effort, voice input, and which outside tools are ready) and *Status bar* (drag and drop what the
|
|
108
|
+
effort, voice input, web search: your own SearXNG and the engines' order, and which outside tools are ready) and *Status bar* (drag and drop what the
|
|
103
109
|
bottom lines show, with a live preview). **Notifications**: Telegram.
|
|
104
110
|
- **Skills**, **MCP servers** and **System prompt**: what HeartCode can do and how it's told.
|
|
105
111
|
- **Advanced**: *Logs* (requests and runs) and *Files* (the rest of the settings, as files).
|
|
@@ -155,7 +161,11 @@ Type `Hi` and press Enter. Wait for the reply: your model works.
|
|
|
155
161
|
|
|
156
162
|
Use HeartCode like any other coding agent: ask it to read, change, run and fix things in your
|
|
157
163
|
project. `/` shows every command, `Shift+Tab` changes what it may do without asking, `Esc` stops
|
|
158
|
-
it, and `heart --help` lists everything else.
|
|
164
|
+
it, and `heart --help` lists everything else. While it works, commands that leave the conversation
|
|
165
|
+
alone (`/help`, `/cost`, `/diff`, `/select_model`, `/settings`, `/tab`, `/exit`…) run at once; the
|
|
166
|
+
ones that change it (`/compact`, `/rewind`, `/resume`…) wait until it's done. Pickers, questions and what
|
|
167
|
+
commands show (`/help`, `/context`, `/diff`…) open in a dialog over the conversation; `Esc`
|
|
168
|
+
closes it.
|
|
159
169
|
|
|
160
170
|
## License
|
|
161
171
|
|
package/SKILL.md
CHANGED
|
@@ -204,7 +204,13 @@ Unless you pass `--no-memory`, a run keeps what it learns in the project it work
|
|
|
204
204
|
git) and `.heartcode/memory/` (notes). Notes and pages that match a task come with it next time,
|
|
205
205
|
so later runs research less. After a task that read the web, ran commands or made files, a
|
|
206
206
|
wrap-up request saves notes, keeps or deletes the pages it read, and removes throwaway files and
|
|
207
|
-
empty folders the task made (a test script, a debug log).
|
|
207
|
+
empty folders the task made (a test script, a debug log). It runs after the answer: the
|
|
208
|
+
`result` (or the printed answer) comes first, and `heart -p` exits once the wrap-up is done (a few
|
|
209
|
+
seconds more).
|
|
210
|
+
|
|
211
|
+
A command that keeps running (a dev server, a watcher) is started with `run_command` and
|
|
212
|
+
`background: true`; the `background` tool reads its new output, lists such commands and stops one.
|
|
213
|
+
Whatever is still running is stopped when HeartCode exits.
|
|
208
214
|
|
|
209
215
|
Before a task that changed files ends, another of the user's models (the same one when only one is
|
|
210
216
|
used) reviews the work against the request in a request of its own; a NO sends it back to fix.
|