@holt-os/holt 0.8.4 → 0.9.0
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/README.md +181 -2
- package/dist/cli.js +2944 -224
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,7 @@ holt memory # stats for this folder
|
|
|
90
90
|
holt memory facts # show the distilled facts (facts.md)
|
|
91
91
|
holt memory search <query> # find remembered moments
|
|
92
92
|
holt memory embed # embed older moments for semantic recall
|
|
93
|
+
holt memory global # share high-value facts across your folders
|
|
93
94
|
holt memory clear # wipe this folder's memory
|
|
94
95
|
```
|
|
95
96
|
|
|
@@ -97,6 +98,30 @@ Turns saved before semantic memory was enabled are upgraded in one pass with `ho
|
|
|
97
98
|
|
|
98
99
|
Long conversations stay cheap: only recent turns are replayed verbatim, older context comes back through recall.
|
|
99
100
|
|
|
101
|
+
### Optional global memory (`holt memory global`)
|
|
102
|
+
|
|
103
|
+
By default every folder's memory is **isolated**: recall never crosses folders. If you want a folder to draw on what you learned elsewhere, opt it into a shared store:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
holt memory global on # this folder now contributes + reads shared facts
|
|
107
|
+
holt memory global status # who is sharing, and global store stats
|
|
108
|
+
holt memory global off # stop sharing + reading (recall goes local-only)
|
|
109
|
+
holt memory global off --purge # also delete this folder's rows from the store
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
What opting in does:
|
|
113
|
+
|
|
114
|
+
- **Facts only.** Only distilled facts (the `fact` rows, which includes wiki pages) are promoted, never raw turns. Each promoted fact is **tagged with the absolute path of the folder it came from**, so you always know its origin.
|
|
115
|
+
- **One switch = contribute + read.** An opted-in folder both pushes its facts to the shared store and, during recall, also scores the shared store and merges the hits, so `holt memory search` and chat recall surface knowledge from your *other* opted-in folders. Your own folder's rows are excluded from the global read (they are already in local memory, so there is no double counting). Global hits are shown tagged with their source folder.
|
|
116
|
+
- **`on` backfills** the folder's existing facts, then new facts mirror automatically. Saving the same fact twice does not duplicate it (dedup by normalized content + folder).
|
|
117
|
+
|
|
118
|
+
Everything lives outside your projects, so a folder that never opts in is completely unaffected:
|
|
119
|
+
|
|
120
|
+
- **Store:** `~/.holt/global/turns.jsonl`, one row per promoted fact plus a `workspace` field.
|
|
121
|
+
- **Registry:** `~/.holt/memory-scopes.json`, shape `{ "enabled": ["<abs folder path>", ...] }`. This is the whole list of folders that participate. Per-folder `config.json` is not touched.
|
|
122
|
+
|
|
123
|
+
A missing or corrupt global store degrades silently to local-only recall. Per-folder isolation stays the default.
|
|
124
|
+
|
|
100
125
|
## Brains
|
|
101
126
|
|
|
102
127
|
A brain is an agent CLI installed and logged in on your machine. No API keys to paste.
|
|
@@ -122,7 +147,39 @@ A brain can also be a direct provider connection: no CLI install, your own key.
|
|
|
122
147
|
- Turns that mean similar things (when local embeddings exist) get a strong link.
|
|
123
148
|
- Drag to pan, scroll to zoom, click a turn to read it in full, click a concept to light up its turns, and search to highlight matching memory live.
|
|
124
149
|
|
|
125
|
-
Options: `--out <path>` to write elsewhere, `--no-open` to skip the browser.
|
|
150
|
+
Options: `--out <path>` to write elsewhere, `--no-open` to skip the browser. When a wiki exists (see below), the graph auto-includes wiki pages as green nodes wired by their `[[links]]`; force it on or off with `--wiki` / `--no-wiki`. This is the graph as a view over your wiki.
|
|
151
|
+
|
|
152
|
+
## Knowledge wiki: `holt wiki`
|
|
153
|
+
|
|
154
|
+
Memory has three layers, each derived from the one below it:
|
|
155
|
+
|
|
156
|
+
1. **Raw turns** (`turns.jsonl`): every exchange, append-only, authoritative.
|
|
157
|
+
2. **Facts** (`facts.md`): 1 to 5 durable facts distilled per session.
|
|
158
|
+
3. **Wiki** (`.holt/wiki/`): a cross-linked set of Markdown pages, synthesized and maintained by an LLM. This is the "kept and connected" layer.
|
|
159
|
+
|
|
160
|
+
The core rule: **wiki pages are derived and regenerable, never a sole source of truth.** Turns and facts stay authoritative. Every page records which fact ids it drew from (frontmatter `sources:`), so `holt wiki rebuild` can regenerate the whole wiki from scratch. A bad synthesis is therefore never lossy: rebuild recovers it. Pages are plain Obsidian-compatible Markdown with `[[wikilinks]]` and an `index.md`, so you can point Obsidian at `.holt/wiki` as a vault, or edit pages by hand (a rebuild will overwrite hand-edits, so keep the folder under git if you edit).
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
holt wiki # status: maintainer, model, page count, last sync, RAM hint
|
|
164
|
+
holt wiki sync # fold new facts into pages (route + merge)
|
|
165
|
+
holt wiki rebuild # wipe and regenerate every page from facts (asks first)
|
|
166
|
+
holt wiki lint # audit pages for contradictions, duplicates, gaps
|
|
167
|
+
holt wiki list # list pages (title, updated, size)
|
|
168
|
+
holt wiki show <page> # print one page
|
|
169
|
+
holt wiki open # open the wiki in your default app (Obsidian reads it natively)
|
|
170
|
+
holt wiki setup # recommend a local model for this machine's RAM
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**How sync works.** `holt wiki sync` gathers facts added since the last sync (a marker in `.holt/wiki/.state.json`), embeds each one locally, and routes it to the nearest existing page by cosine similarity. Related facts land on the same page; a fact that matches nothing new starts a fresh page. Facts are grouped by target page and the maintainer is called **once per changed page** (not once per fact), so it only rewrites the few pages that actually changed. Routing is always local and free, which is what keeps the maintainer's cost minimal. `holt wiki rebuild` folds every fact from scratch; `holt wiki lint` reports issues but does not rewrite (propose-only).
|
|
174
|
+
|
|
175
|
+
**Who maintains it (the key knob).** Synthesis is a reasoning task, and you choose who does it with `wiki.maintainer`:
|
|
176
|
+
|
|
177
|
+
- `brain` (default): the folder's configured brain, exactly like fact distillation. When the brain is the Claude Code CLI this rides your existing Claude plan, so there are no marginal dollars per sync.
|
|
178
|
+
- `local`: a local generative model via Ollama (set `wiki.localModel`, default `qwen2.5:7b`). Free and offline, lower quality, and it trades dollars for RAM. If the model is not pulled, Holt prints the exact `ollama pull` line and falls back to the brain rather than failing.
|
|
179
|
+
|
|
180
|
+
`holt wiki setup` (or the hint in `holt wiki status`) reads your total RAM and recommends a model: under 16 GB it discourages local (use the brain); 16 GB suggests `qwen2.5:7b` (tight alongside the embed model, an always-on machine is a better host); 24 to 32 GB suggests `qwen2.5:14b`; 48 GB and up suggests `qwen2.5:32b`.
|
|
181
|
+
|
|
182
|
+
Wiki pages also participate in recall: each page is embedded and indexed like a high-value fact, so `holt memory search` and chat recall can surface synthesized knowledge, not just raw turns.
|
|
126
183
|
|
|
127
184
|
## Skills
|
|
128
185
|
|
|
@@ -173,6 +230,28 @@ claude mcp add holt -- holt mcp
|
|
|
173
230
|
|
|
174
231
|
Point the client at the folder whose memory you want it to use; Holt serves whatever folder the server process starts in.
|
|
175
232
|
|
|
233
|
+
## Ambient memory for Claude Code (`holt hook`)
|
|
234
|
+
|
|
235
|
+
The MCP server above lets Claude Code recall and remember **when it decides to**. `holt hook` goes further: it makes Holt's per-folder memory work **ambiently**, with no `holt chat` and no manual tool call. Two directions, both wired as [Claude Code hooks](https://docs.claude.com/en/docs/claude-code/hooks):
|
|
236
|
+
|
|
237
|
+
- **Inject** (`UserPromptSubmit`): before each prompt, Holt quietly recalls the most relevant remembered notes for the current folder and adds them to the model's context.
|
|
238
|
+
- **Capture** (`Stop`): when a session ends, Holt distills durable facts from the transcript (via this folder's configured brain) and saves them to the folder's memory.
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
holt hook install # install both hooks into ~/.claude/settings.json
|
|
242
|
+
holt hook install --inject-only # only the before-prompt recall hook
|
|
243
|
+
holt hook install --capture-only # only the end-of-session fact hook
|
|
244
|
+
holt hook install --project # write ./.claude/settings.json instead of the global one
|
|
245
|
+
holt hook status # show what is installed and which directions are active
|
|
246
|
+
holt hook remove # remove ONLY Holt's hooks, leaving everything else intact
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Install **merges** into any existing `hooks` config, never clobbers unrelated settings or other hooks, is **idempotent** (re-running does not duplicate), and backs the file up to `settings.json.holt-bak` before writing. `remove` deletes only the entries whose command is `holt hook inject` / `holt hook capture`.
|
|
250
|
+
|
|
251
|
+
**Trusted-folder guard (important).** The two runtime hooks (`holt hook inject` and `holt hook capture`, invoked by Claude Code, not you) no-op **silently** unless the folder is a trusted Holt workspace with an existing `.holt/memory`. So Holt never injects your private notes into an unrelated project, and never creates memory in a folder you never set up. To make a folder ambient, run `holt init` (or `holt chat`) there once so it becomes trusted and gets its `.holt/memory`. The inject hook keeps stdout clean (only the context block is printed, since Claude Code injects it verbatim); all diagnostics go to stderr, and both hooks always exit 0 so a memory step never blocks or slows your prompt.
|
|
252
|
+
|
|
253
|
+
To uninstall, run `holt hook remove` (add `--project` if you installed with `--project`).
|
|
254
|
+
|
|
176
255
|
## Output format
|
|
177
256
|
|
|
178
257
|
Replies print as markdown. `/output html` (or `markdown`) switches the save format and persists it. `/save [name]` writes the last reply to the current folder: `.md`, or a small self-contained dark-theme `.html` page.
|
|
@@ -216,6 +295,99 @@ holt run "daily brief" | holt notify # pipe any output to your phone
|
|
|
216
295
|
|
|
217
296
|
The token is stored in `~/.holt/telegram.json` (mode 600) and never printed in full.
|
|
218
297
|
|
|
298
|
+
### holt routine
|
|
299
|
+
|
|
300
|
+
A routine is a named, reusable job: it bundles the pieces above into one object you can run by name or on a schedule. A routine is a **task source** (an installed skill or an inline prompt) plus an optional **daily schedule** plus **output routing** (stdout, a file, or Telegram). It is the generic version of a recurring "agent" such as a daily brief.
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
# an inline task you can rerun by name
|
|
304
|
+
holt routine add brief --task "summarize what changed and what is open here" --notify
|
|
305
|
+
|
|
306
|
+
# a routine backed by an installed skill
|
|
307
|
+
holt routine add triage --skill inbox-triage --out triage.md
|
|
308
|
+
|
|
309
|
+
# a scheduled routine: installs an OS timer that fires "holt routine run digest --quiet"
|
|
310
|
+
holt routine add digest --task "digest today's changes" --at 07:00 --notify
|
|
311
|
+
|
|
312
|
+
# a built-in template (daily-brief or standup)
|
|
313
|
+
holt routine add myday --template daily-brief
|
|
314
|
+
|
|
315
|
+
holt routine run brief # run it now and stream the reply
|
|
316
|
+
holt routine run brief --out b.md # also write the reply to a file this run
|
|
317
|
+
holt routine list # name, source, schedule, outputs, workspace
|
|
318
|
+
holt routine show brief # full detail
|
|
319
|
+
holt routine remove brief # deletes the routine and its OS timer, if any
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Sources: give exactly one of `--skill <name>`, `--task "<prompt>"`, or `--template <t>`. A skill routine splices that skill's `SKILL.md` body into the prompt at run time; a task routine uses the prompt as-is.
|
|
323
|
+
|
|
324
|
+
Scheduling: `--at HH:MM` (24h, daily) installs an OS timer through the same scheduler `holt schedule` uses (launchd on macOS, cron on Linux) whose command is `holt routine run <name> --quiet`. Omit `--at` for a manual, run-on-demand routine. Removing the routine removes its timer.
|
|
325
|
+
|
|
326
|
+
Output routing: by default the result prints to stdout. `--out <file>` also writes it to a file (relative to the routine's workspace); `--notify` pushes it to Telegram (guarded cleanly when Telegram is not set up). Both `--out` and `--notify` can also be passed to `holt routine run` for a single run. In `--quiet` mode (what the scheduler uses) stdout is suppressed but `--out` and `--notify` still fire.
|
|
327
|
+
|
|
328
|
+
Routines are stored in `~/.holt/routines.json` (one entry per routine, each carrying its absolute workspace). A routine with a schedule also produces an entry in `~/.holt/schedules.json`, keyed by the routine name; the two are kept consistent.
|
|
329
|
+
|
|
330
|
+
## Machine check (`holt doctor`)
|
|
331
|
+
|
|
332
|
+
Not sure how best to run Holt on your hardware? `holt doctor` looks at this machine and its installed tools and tells you, in plain language, what to do.
|
|
333
|
+
|
|
334
|
+
```bash
|
|
335
|
+
holt doctor
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
It reports, section by section:
|
|
339
|
+
|
|
340
|
+
- **Machine**: platform, CPU, RAM (total and free), and Node version.
|
|
341
|
+
- **Brains**: which agent CLIs (`claude`, `codex`, `gemini`) are installed, plus a recommendation (prefer an installed CLI brain; otherwise install one or add an API brain).
|
|
342
|
+
- **Semantic memory**: whether a local Ollama with the embed model is reachable, and how to enable it (`ollama pull nomic-embed-text`) so recall is semantic and fully private.
|
|
343
|
+
- **Knowledge wiki maintainer**: `brain` (the default, best quality, rides your existing plan) versus a local model sized to your RAM. On a 16 GB machine it names `qwen2.5:7b`; more RAM gets a larger model; under 16 GB it steers you to `brain`.
|
|
344
|
+
- **Always-on / Telegram**: whether a Telegram bot is set up, and a note on hosting the bot on a low-power always-on machine while keeping heavy local models on a bigger one.
|
|
345
|
+
- **Recommended next steps**: a short checklist built from whatever gaps it found.
|
|
346
|
+
|
|
347
|
+
It is read-only advice: it changes nothing, needs no trust, and always exits cleanly even when a probe fails.
|
|
348
|
+
|
|
349
|
+
The RAM-to-model table lives in `src/specs.ts` (`LOCAL_MODEL_RECS` / `recommendLocalModel`), the single source of truth the wiki maintainer reads too.
|
|
350
|
+
|
|
351
|
+
## Your writing voice (`holt voice` + `holt write`)
|
|
352
|
+
|
|
353
|
+
Holt can learn how *you* write, then draft in that voice while steering clear of the patterns that make text read as machine written.
|
|
354
|
+
|
|
355
|
+
### Teach it your voice: `holt voice`
|
|
356
|
+
|
|
357
|
+
At the end of `holt init` you are offered a short optional interview. You can also run or redo it anytime:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
holt voice # run the interview, or add samples, or both
|
|
361
|
+
holt voice add <file> # learn from a writing sample you already have
|
|
362
|
+
holt voice show # print your profile
|
|
363
|
+
holt voice edit # show where the profile lives (it is a plain JSON file)
|
|
364
|
+
holt voice clear # remove it
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
The interview asks you to pick a **depth** up front: `quick` (a few questions) or `detailed` (more). Questions are about **writing and communication style only**: tone, sentence length, first vs third person, emoji habits, words you love or ban, who you write for, and what you want to sound like and not sound like.
|
|
368
|
+
|
|
369
|
+
Privacy is a hard rule. The interview never asks for personal details (no name, job, location, or life story). If you happen to mention something personal in an answer, Holt stores only what you typed and never asks follow ups.
|
|
370
|
+
|
|
371
|
+
You can also feed it real writing. `holt voice add <file>` reads a file; inside the interview you can paste a sample instead. Samples are stored as a hash and length by default; an excerpt is kept only if you say yes, so Holt can match your rhythm directly.
|
|
372
|
+
|
|
373
|
+
From the answers and samples, Holt asks your configured brain to build a **style profile**: tone, formality (1 to 5), average sentence length, person, emoji and formatting habits, signature moves, banned words, target audiences, and a short "sounds like / does not sound like" summary. If no brain is set yet, your raw answers are saved and the profile synthesizes the next time you run `holt voice` with a brain configured.
|
|
374
|
+
|
|
375
|
+
The profile lives at `~/.holt/voice.json` (mode 600, since it can hold writing excerpts). It is global to you, not per folder, and you can hand edit it.
|
|
376
|
+
|
|
377
|
+
### Draft in your voice: `holt write`
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
holt write "a linkedin post about shipping Holt" --type linkedin
|
|
381
|
+
holt write "a reply to a customer asking for a refund" --type email --out reply.txt
|
|
382
|
+
holt write "a short post about testing" --fast
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
`holt write` composes three things into one prompt: your voice profile, a built in **anti-AI rubric**, and your request. Then it runs your default brain. `--type` shapes length and format (`linkedin`, `email`, `tweet`, `blog`, `generic`), `--out` also writes the draft to a file, and `--brain <id>` picks a brain.
|
|
386
|
+
|
|
387
|
+
By default a second pass checks the draft against the rubric and fixes any tells; `--fast` skips it for a single call. The anti-AI rubric bans em-dashes, "rule of three" cliches, "in today's fast-paced world" openers, "it is not X, it is Y" reframes, tidy bow-tie conclusions, uniform sentence rhythm, hedging filler, corporate buzzwords, and emoji unless your profile allows them. The output is always em-dash free.
|
|
388
|
+
|
|
389
|
+
With no profile yet, `holt write` still works using a plain, natural voice.
|
|
390
|
+
|
|
219
391
|
## Commands
|
|
220
392
|
|
|
221
393
|
```
|
|
@@ -223,12 +395,18 @@ holt init set up (trust, brains, sign-in, defaults) for this folder
|
|
|
223
395
|
holt chat start a session that remembers past ones
|
|
224
396
|
holt run <task> run one task non-interactively (recall, brain, remember)
|
|
225
397
|
holt schedule run a task on a timer: add | list | remove
|
|
398
|
+
holt routine named, reusable, scheduled jobs: add | run | list | show | remove
|
|
226
399
|
holt telegram chat with Holt from your phone: telegram [setup]
|
|
227
400
|
holt notify [msg] push a message to your phone over Telegram (stdin-friendly)
|
|
401
|
+
holt doctor check this machine and recommend how best to run Holt here
|
|
402
|
+
holt voice teach Holt your writing voice: add <file> | show | edit | clear
|
|
403
|
+
holt write <what> draft content in your voice with anti-AI checks (--type, --out, --fast)
|
|
228
404
|
holt graph see your memory as an interactive knowledge graph
|
|
229
405
|
holt mcp run an MCP server so other tools use this folder's memory (holt mcp setup)
|
|
406
|
+
holt hook ambient memory for Claude Code: install | remove | status
|
|
230
407
|
holt skill manage skills: list | show | create | add | remove
|
|
231
408
|
holt memory inspect memory: holt memory [search <query> | facts | embed | clear]
|
|
409
|
+
holt wiki derived knowledge wiki: holt wiki [sync | rebuild | lint | list | show | status]
|
|
232
410
|
holt setting configure brains, API brains, and launch command
|
|
233
411
|
holt login <brain> sign in to claude, codex, or gemini
|
|
234
412
|
holt version print version
|
|
@@ -253,7 +431,8 @@ Built in always-shippable phases toward a full-vision v1:
|
|
|
253
431
|
3. **Skills**: portable SKILL.md skills, create/add/run *(shipped)*
|
|
254
432
|
4. **Knowledge graph**: see and navigate your own memory with `holt graph` *(shipped)*
|
|
255
433
|
5. **Everywhere**: MCP server so other tools read Holt's memory, plus `holt run`, scheduling, and Telegram *(shipped)*
|
|
256
|
-
6. **
|
|
434
|
+
6. **Knowledge wiki**: LLM-maintained, cross-linked, regenerable pages over your memory with `holt wiki` *(shipped)*
|
|
435
|
+
7. **Next**: docs site, skill registry publishing, more channels
|
|
257
436
|
|
|
258
437
|
## Contributing
|
|
259
438
|
|