You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ look up later":
46
46
|[`privacy-and-telemetry.md`](privacy-and-telemetry.md)| What stays on your machine, what's optionally sent to us, how to turn telemetry off. |
47
47
|[`v0.4.60-release-notes.md`](v0.4.60-release-notes.md)| The memory-footprint round: −15% RSS, 35× tighter variance, −41% binary, no behaviour change. Two new env knobs (`MEMTRACE_UNIFIED_CACHE_MB`, `MEMTRACE_ORT_LOW_RSS`); both have sensible defaults. |
48
48
49
+
**0.6.10 highlights** (see also [`cli-reference.md`](cli-reference.md) and [`environment-variables.md`](environment-variables.md)): fixes for GitHub issues #7–#17 (Claude Code hook JSON, graph/stats/temporal accuracy), unified `--headless` / `MEMTRACE_HEADLESS`, and removal of `memtrace service` / OS login autostart.
Copy file name to clipboardExpand all lines: docs/cli-reference.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,10 @@ memtrace --help
18
18
| Command | Purpose |
19
19
|---|---|
20
20
|`memtrace start`| Start the local UI/API server, file watcher, PR command loop, and workspace owner against MemDB. This is also the default command when you run `memtrace` with no subcommand. |
21
-
|`memtrace stop`| Stop the running Memtrace daemon. |
21
+
|`memtrace stop`| Stop the running `memtrace start` workspace runtime (and unload any legacy OS service registrations from older installs). |
22
22
|`memtrace status`| Show backend, index, and runtime status. |
23
23
|`memtrace mcp`| Run the MCP server for Claude, Cursor, Codex, and other MCP-compatible agents. It attaches to an existing workspace owner or becomes the owner if none is running. |
24
24
|`memtrace index <path>`| Index a repository or workspace into MemDB, then exit. |
25
-
|`memtrace daemon install/start/status/stop`| Install or control the optional background service where supported. |
26
25
|`memtrace code-review setup`| Choose the default headless agent for `@memtrace fix this`. |
27
26
|`memtrace code-review --pr <url>`| Review a GitHub pull request using local Memtrace context. |
28
27
|`memtrace pr status`| Show local PR watches registered by `memtrace code-review --post --watch`. |
@@ -65,8 +64,10 @@ owners for the same workspace.
65
64
|`--clear`, `--fresh`|`start`, `index`| Wipe the resolved local MemDB data directory before connecting. |
66
65
|`--workspace <path>`|`start`, `index`, `mcp` workspace resolution | Treat `path` as a multi-repo workspace root and write a `.memtrace-workspace` marker there. |
67
66
|`--no-workspace`|`start`| Disable the auto-workspace behavior when the current directory looks like a parent folder containing multiple git repos. |
68
-
|`--no-ui`, `--headless`|`start`| Skip the HTTP UI/API server entirely (no bind on `MEMTRACE_UI_PORT`). Use when you truly do not need health, search, or the value ledger. |
69
-
|`--no-browser`|`start`| Keep the HTTP UI/API server on `MEMTRACE_UI_PORT` but do not auto-open a browser tab on startup. Prefer this for Orbit, CI, and headless hosts that still need `:3030`. |
67
+
|`--headless`|`start`| Keep the HTTP API on `MEMTRACE_UI_PORT` (default `3030`) but do not auto-open a browser tab. Use for Orbit, CI, and agent hosts. |
68
+
|`--no-ui`, `--no-browser`|`start`|**Deprecated aliases** for `--headless` (one-time note on first use). Prefer `--headless` or `MEMTRACE_HEADLESS=1`. |
69
+
70
+
> **Removed in 0.6.10:**`memtrace service` / `memtrace daemon` (OS login autostart install) was removed. Use `memtrace start` (optionally `--headless`) or `memtrace mcp`. `memtrace stop` still tears down legacy launchd/systemd/Windows service registrations if an older install left them behind.
70
71
71
72
## Code review
72
73
@@ -174,9 +175,10 @@ MEMTRACE_UI_PORT=3030
174
175
175
176
| Variable | Purpose |
176
177
|---|---|
177
-
|`MEMTRACE_UI_PORT`| Local UI port. Default: `3030`. |
178
-
|`MEMTRACE_NO_UI`| Skip HTTP UI/API server (`1`, `true`, `yes`, or `on`). |
179
-
|`MEMTRACE_NO_BROWSER`| Keep UI server; skip auto-open browser on start. |
178
+
|`MEMTRACE_UI_PORT`| Local HTTP API + dashboard port. Default: `3030`. |
179
+
|`MEMTRACE_UI_HOST`| Bind address for the HTTP API. Default: `127.0.0.1`. Set only when you intentionally need remote/VM/container exposure. |
180
+
|`MEMTRACE_HEADLESS`| Skip browser auto-open on `memtrace start` (`1`, `true`, `yes`, or `on`). API stays up. |
181
+
|`MEMTRACE_NO_UI`, `MEMTRACE_NO_BROWSER`| Deprecated aliases for `MEMTRACE_HEADLESS`. |
180
182
|`MEMTRACE_TRANSPORT`| MCP transport: `stdio`, `streamable-http`, `sse`, or `http`. |
181
183
|`MEMTRACE_PORT`| MCP HTTP port when transport is not stdio. |
@@ -24,9 +25,11 @@ the defaults auto-tune to your machine.
24
25
|---|---|---|
25
26
|`MEMTRACE_TRANSPORT`|`stdio`| How `memtrace mcp` talks to its agent. See [`mcp-and-transports.md`](mcp-and-transports.md). Values: `stdio`, `streamable-http`, `sse` (alias for streamable-http), `http` (alias for streamable-http). Anything else is rejected with a clear error since v0.3.32. |
26
27
|`MEMTRACE_PORT`|`3000`| When transport is HTTP, the port `memtrace mcp` binds. |
27
-
|`MEMTRACE_UI_PORT`|`3030`| The local dashboard. Always-on while the daemon is running (unless `MEMTRACE_NO_UI` / `--no-ui`). |
28
-
|`MEMTRACE_NO_UI`| (unset) | Set to `1` to skip the HTTP UI/API server entirely. Alias: `MEMTRACE_HEADLESS`. |
29
-
|`MEMTRACE_NO_BROWSER`| (unset) | Set to `1` to keep the UI server on `MEMTRACE_UI_PORT` but skip auto-opening a browser tab on `memtrace start`. Same as `--no-browser`. |
28
+
|`MEMTRACE_UI_PORT`|`3030`| Local HTTP API + dashboard port while `memtrace start` (or an attached owner) is running. |
29
+
|`MEMTRACE_UI_HOST`|`127.0.0.1`| Bind address for the HTTP API. Set to `0.0.0.0` only when you intentionally need remote/VM/container exposure. |
30
+
|`MEMTRACE_HEADLESS`| (unset) | Set to `1` to skip auto-opening a browser tab on `memtrace start`. The API stays bound on `MEMTRACE_UI_PORT`. Same as `--headless`. |
31
+
|`MEMTRACE_NO_UI`| (unset) |**Deprecated alias** for `MEMTRACE_HEADLESS` (skips browser only — does not disable the HTTP API). |
32
+
|`MEMTRACE_NO_BROWSER`| (unset) |**Deprecated alias** for `MEMTRACE_HEADLESS`. Prefer `MEMTRACE_HEADLESS=1` or `memtrace start --headless`. |
30
33
|`MEMTRACE_WS_PORT`|`3031`| Internal WebSocket bus that pushes index events to the UI. Don't change unless 3031 is taken. |
31
34
32
35
## On-disk locations
@@ -68,6 +71,8 @@ the defaults auto-tune to your machine.
68
71
|`MEMTRACE_FIELD_BOOST_BODY_STRINGS`|`0.5`|**(v0.3.82)** BM25 weight on the new `body_strings` field (function-body string literals extracted at index time). Improves recall on natural-language → log-line queries. |
69
72
|`MEMTRACE_DISABLE_COREML`| (unset) | Set to `1` on Apple Silicon to force CPU execution provider instead of CoreML / ANE. Useful if CoreML's first-run graph compile hangs on your machine. |
70
73
|`MEMTRACE_TIER`| auto-detected (`light` / `standard` / `heavy`) | Force the host tier instead of letting Memtrace pick from RAM + CPU + accelerator signals. |
74
+
|`MEMTRACE_SKIP_EMBED`| (unset) | Set to `1` to disable **all** embedding (index, watcher, semantic search). Structural graph tools still work. |
75
+
|`MEMTRACE_SKIP_WATCHER_EMBED`| (unset) | Set to `1` to disable per-save watcher embedding only; index-time embedding still runs. |
71
76
72
77
## Reranker
73
78
@@ -126,7 +131,7 @@ Branch switch (`git checkout other-branch`) re-targets the watcher to the new ac
126
131
|---|---|---|
127
132
|`MEMTRACE_HOOK_MODE`|`advisory`| Set to `off` for unconditional no-op of the UserPromptSubmit hook. |
128
133
|`MEMTRACE_HOOK_DEBOUNCE_SECS`|`120`| Per-session debounce window. After the hook fires once for a session, suppresses further fires within this window. Set to `0` to disable debounce (every message fires). |
129
-
|`MEMTRACE_HEALTH_URL`|`http://localhost:3030/health`| Where the hook probes daemon liveness. Override for non-default UI ports. |
134
+
|`MEMTRACE_HEALTH_URL`|`http://localhost:3030/api/health`| Where the Claude Code `UserPromptSubmit`hook probes runtime liveness. Override for non-default UI ports. |
130
135
131
136
Session ID resolution (used to key the lock file at `~/.memtrace/hook-debounce/<session_id>.lock`):
132
137
1.`CLAUDE_SESSION_ID` env (if Claude Code sets it)
@@ -159,16 +164,23 @@ After @Magalz's report that `watch_directory` registrations vanished on MCP disc
159
164
160
165
The watch file is a JSON array of `{ path, repo_id, registered_at, origin }` objects; `origin` is `"manual"` for entries you registered explicitly via `watch_directory` and `"restored"` for entries that were re-armed from a prior session.
161
166
162
-
## Daemon lifecycle (v0.3.89)
167
+
## Headless / browser (v0.6.10)
163
168
164
-
After @Magalz's report that `memtrace daemon start` was reporting "started" while the daemon silently exited 2-3 s later on Windows, the launcher now health-checks before declaring success.
169
+
`memtrace start --headless` (or `MEMTRACE_HEADLESS=1`) keeps the HTTP API on `:3030` but skips auto-opening a browser tab. This is the recommended mode for Orbit, CI, and agent hosts that need health/search endpoints without a GUI session.
165
170
166
-
| Var | Default | Purpose |
167
-
|---|---|---|
168
-
|`MEMTRACE_DAEMON_HEALTH_TIMEOUT_MS`|`10000`| How long `memtrace daemon start` polls `/api/health` before giving up and printing the "did not bind within Ns" warning. Increase on slow / cold-cache Windows hosts. |
Legacy names `--no-ui`, `--no-browser`, `MEMTRACE_NO_UI`, and `MEMTRACE_NO_BROWSER` still work as aliases and print a one-time deprecation note.
172
+
173
+
## Legacy daemon lifecycle (removed v0.6.10)
174
+
175
+
`memtrace service` / `memtrace daemon install|start|status|stop` was removed in **0.6.10**. Use `memtrace start` (foreground or `--headless` in tmux/screen/nohup) or `memtrace mcp` for agent workflows. `memtrace stop` still unloads legacy launchd/systemd/Windows service registrations if an older install left them behind.
176
+
177
+
The following env vars are **obsolete** and ignored by current binaries:
170
178
171
-
The daemon now also writes `~/.memtrace/logs/daemon.log` (rotated at 10 MB, max 5 files) from its first startup tick, so even an "exits immediately" failure leaves a breadcrumb. Run `memtrace daemon start --foreground` (alias `--verbose`) to skip the detach and see stderr directly in your shell.
179
+
| Var | Was used for |
180
+
|---|---|
181
+
|`MEMTRACE_DAEMON_HEALTH_TIMEOUT_MS`|`memtrace daemon start` health poll (removed) |
182
+
|`MEMTRACE_DAEMON_HEALTH_INTERVAL_MS`|`memtrace daemon start` health poll interval (removed) |
183
+
|`MEMTRACE_LOGS_DIR`| Override for `~/.memtrace/logs/daemon.log` (file logging removed with OS service install) |
0 commit comments