Skip to content

Commit f5e8f0b

Browse files
committed
docs: add PowerShell $env:TEMP form and Windows XDG fallback
Thread 9: log row now shows %TEMP%/$env:TEMP on Windows. Thread 10: sandbox note shows %USERPROFILE%\.local\share on Windows, syncs phrasing to matches table.
1 parent 92d673a commit f5e8f0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ All durable states live in a local SQLite database. If the database can't be ope
420420
|------|------|
421421
| SQLite database (tags, compartments, memories, dream queue, all state) | `$XDG_DATA_HOME/cortexkit/magic-context/context.db` (resolves to `~/.local/share/cortexkit/magic-context/context.db` when unset) |
422422
| Embedding model cache (downloaded ONNX model, ~90 MB) | `$XDG_DATA_HOME/cortexkit/magic-context/models/` (resolves to `~/.local/share/cortexkit/magic-context/models/` when unset) |
423-
| Log file (diagnostic, non-essential) | `{tmpdir}/{harness}/magic-context/magic-context.log``{tmpdir}` is the OS temp directory (`/tmp` on Linux/macOS, `%TEMP%` on Windows); `{harness}` is auto-detected from the host app at startup: `opencode` (OpenCode) or `pi` (Pi) |
423+
| Log file (diagnostic, non-essential) | `{tmpdir}/{harness}/magic-context/magic-context.log``{tmpdir}` is the OS temp directory (`/tmp` on Linux/macOS, `%TEMP%`/`$env:TEMP` on Windows); `{harness}` is auto-detected from the host app at startup: `opencode` (OpenCode) or `pi` (Pi) |
424424

425-
> **Sandboxed / ephemeral environments** — The SQLite database and embedding model cache **must persist** between sandbox resets to avoid data loss and repeated model downloads. These paths derive from `$XDG_DATA_HOME` (default `~/.local/share`); override by setting `$XDG_DATA_HOME` to point to a persistent mount. The log file uses the OS temp directory and is optional.
425+
> **Sandboxed / ephemeral environments** — The SQLite database and embedding model cache **must persist** between sandbox resets to avoid data loss and repeated model downloads. These paths derive from `$XDG_DATA_HOME` (resolves to `~/.local/share` when unset; equivalent to `%USERPROFILE%\.local\share` on Windows); override by setting `$XDG_DATA_HOME` to point to a persistent mount. The log file uses the OS temp directory and is optional.
426426
427427
| Table | Purpose |
428428
|-------|---------|

0 commit comments

Comments
 (0)