Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/ci/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ code. The easy fixes (a sleep, a retry, a looser assertion) turn CI green and hi

```bash
gh pr view "$PR" --json reviews,comments -q '.reviews[] , .comments[] | "\(.author.login): \(.body[0:200])"'
gh api "repos/parawanderer/window-ml/pulls/$PR/comments" -q '.[] | "\(.user.login) \(.path):\(.line): \(.body[0:200])"' # inline review comments
gh api "repos/wanderdev0/window-ml/pulls/$PR/comments" -q '.[] | "\(.user.login) \(.path):\(.line): \(.body[0:200])"' # inline review comments
```

Anything there is answered before the merge: fixed on the branch, or replied to with why not. A bot's comment
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/pyodide-build/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ node scripts/fetch-pyodide-wheels.mjs --core <work>/pyodide-restricted-<pyodide>
npm run build && node scripts/test.mjs python && npx playwright test tests/e2e/python-stream.spec.mjs

# 3. publish on the fork, then put the sha256 (and tag/url) in tools/pyodide-dist.json
gh release create <tag> <tarball> -R parawanderer/cpython --target <fork commit> --notes "<fork commit, Pyodide, emscripten, sha256>"
gh release create <tag> <tarball> -R wanderdev0/cpython --target <fork commit> --notes "<fork commit, Pyodide, emscripten, sha256>"

# 4. After a bump, IN THE SAME PR: rerun the package oracle, or tests/pkg-verdict.test.mjs stays red on its pin test.
# About 3 h of queued probes plus ~15 min unqueued; the packages lane reviews the new data. Fresh directories for both:
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CLAUDE.md — window.ml

Check warning on line 1 in AGENTS.md

View workflow job for this annotation

GitHub Actions / tools

The last prompt review was 2026-11-17 (14 days ago; 28 commits have changed what the model reads since). Worth a review when this work settles: docs/dev/prompt-review.md, then update the date in AGENTS.md.

Chrome extension (Manifest V3) that exposes a scripting API, `window.ml`, on
web pages and bridges it to local LLMs via OpenWebUI / Ollama. It's a
Expand Down Expand Up @@ -28,7 +28,7 @@
| `hub/` (+ `hub/runtime/`), `pairing/`, `archive/`, `chat/`, `native/`, `proto/` | as named; `hub/runtime/` is this browser AS a runtime |
| `sidebar/` (+ `resource/`, `transcript/`, `card/`, `code/`, `export/`, `settings/`) | the panel, by view |
| `gallery/` | the component gallery's page (`gallery.mjs`, the `gallery` skill) |
| `shell/` | what describes a call to `ml.sh`: program manifests (`manifests/<program>.json`) and `describeCall`; the process host itself is [window-ml-host](https://github.com/parawanderer/window-ml-host) |
| `shell/` | what describes a call to `ml.sh`: program manifests (`manifests/<program>.json`) and `describeCall`; the process host itself is [window-ml-host](https://github.com/wanderdev0/window-ml-host) |
| `pdf/` | reading a PDF page by page with pdf.js: the measurements, the classifier, the reader, the worker the offscreen document starts (`pdf-*`) |
| `backup/` | the backup and archive-folder file format: compression, encryption, keys |
| `lab/<topic>/` | LAB code: research that lives here but is not for window.ml (`lab/gradient/`). Each topic imports nothing outside its folder (`tests/lab.test.mjs`), has a `docs/spec/` file, and its PRs carry `@lab` |
Expand Down Expand Up @@ -284,7 +284,7 @@

## Forked backends (patched servers)

Several capabilities need `parawanderer/ollama` (branch `slop`) or `parawanderer/open-webui` (branch
Several capabilities need `wanderdev0/ollama` (branch `slop`) or `wanderdev0/open-webui` (branch
`ml/tool-execute-api`); each is optional and absent means "not reported". **Read `docs/FORKED-BACKENDS.md` before
assuming a resource-panel field is broken.** Hints go through `wireHint`; **an absent `use` means unknown, never guess.**

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Optional, and only for the things that need them:
## 2. Clone

```bash
git clone https://github.com/parawanderer/window-ml.git
git clone https://github.com/wanderdev0/window-ml.git
cd window-ml
```

Expand Down Expand Up @@ -108,7 +108,7 @@ looks exactly like a change that did nothing.
### Putting the app on your own phone (Android)

Nothing to build. Every commit on main is packaged by CI and published as the
[`android-latest`](https://github.com/parawanderer/window-ml/releases/tag/android-latest) release: open that page on
[`android-latest`](https://github.com/wanderdev0/window-ml/releases/tag/android-latest) release: open that page on
the phone, download `window-ml.apk`, and open it. Android asks once whether the browser may install apps.

It is signed with the standard Android debug key, which is all a sideload needs, and means an app already installed
Expand All @@ -123,7 +123,7 @@ yourself names no repository and never checks.

### Using it on a device with no packaged app (an iPad, any browser)

The same client, hosted: **https://parawanderer.github.io/window-ml/**. Open it, and the browser offers to install it
The same client, hosted: **https://wanderdev0.github.io/window-ml/**. Open it, and the browser offers to install it
(iOS: Share → Add to Home Screen). It then opens as its own app, with no browser chrome, and works offline: a service
worker holds its files (`src/chat/pwa/`, stamped into `dist-app/` by `scripts/build-web.mjs`).

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ that work on the same problem by a different mechanism; those rows say what the
| Read-only work runs without asking me; everything else asks. The permission is whether the script is written in a dialect of the language that can only read, always halts, and leaves nothing behind when it refuses. Where the proof lives depends on the runtime: in JavaScript it is an interpreter beside V8, which cannot be touched; in Python it goes into the interpreter itself, as a restricted mode of CPython whose gates sit in the object layer, with the build's specialization switch part of the argument | [the JavaScript dialect](docs/dev/readonly-exec.md), in daily use; the Python one as a CPython fork that runs natively and under Pyodide, whose first slice costs about 6% on 684 real cells and 1.66x on pure-Python benchmarks, measured, and which bounds each cell's memory on both platforms with a cap that fails closed: about 4% at the upper quartile over 1,702 real cells, 1.36x only on a bare loop of approved C calls; the fork's Pyodide build is pinned as a release of the fork, with the fail-closed release pinned (#957). In the extension, `python_exec`'s `mode` is gone: a cell reaches `ml` over the same wire as JavaScript, matplotlib figures come back as images, and a cell inside the dialect runs unasked under the fork's gate while every other cell asks ([notes](docs/spec/PYTHON_DIALECT.md)) | the agent; for Python, the language runtime |
| A standing permission is a function over a call's resolved facts, written in that same dialect so that it halts and can only answer. My rules and the built-in free tier are the same kind of object, listed on one page, and nothing widens a grant from a button on a card | the policy realm of the dialect, a store with global and run scopes, a policy page, and three consumers: remembered URLs, `ml.sh` calls, and a tool by which the model proposes a run policy that only the person's answer on a card adds; a call that asks says why when the policy that covered it is gone. A lifter turns a policy that fits a typed fragment into a tree, and covers 63% of the policies models write for `fetch` and 45% for `sh` (15 models), below what was predicted; not built: the tree as what a card leads with, and folding the older grant stores into the one page ([notes](docs/spec/POLICIES.md)) | the agent |
| What a call can affect is one algebra of (operation, resource) pairs. A library, a program and a fetch describe themselves in it, and "runs without asking" is a subset test against what the sandbox at that placement bounds | the algebra as code; manifests for fifteen programs, with a root's top-level names outside the free tier and `write-names` a manifest word; under the host's sandbox the judged claims are sent as the envelope; the same corpus deciding which Python the dialect admits ([notes](docs/spec/EFFECTS.md)) | the agent, and the manifests that ship with tools |
| Processes are a capability of the one executor, reached as `ml.sh` under the same rules, never a second world the model has to carry data between. The host is a separate program the browser attaches to, built with no relay code in it, and under its sandbox a manifest's description of a program is enforced as the envelope the program runs in, so a wrong manifest fails the command rather than granting an effect | [the host](https://github.com/parawanderer/window-ml-host), v0.10.0, is reachable as `ml.sh` from JavaScript and from a full Python cell; a call a policy covers runs, a call whose effects stay inside what the sandbox bounds plus reads in its roots runs by default, and anything else asks on the running step, with a card showing the program's facts, never the script. Each call starts under the envelope its judged facts derive, enforced by bubblewrap and Landlock on Linux and by Seatbelt on macOS, with the root's top-level names and `.git` hooks and config held read-only from one list; every call reports what changed among those names, and the result says which envelope the host applied. The hub transport is built behind an optional feature the default build does not compile, and no client drives it yet ([notes](docs/spec/SHELL.md)) | the host, on the person's machine |
| Processes are a capability of the one executor, reached as `ml.sh` under the same rules, never a second world the model has to carry data between. The host is a separate program the browser attaches to, built with no relay code in it, and under its sandbox a manifest's description of a program is enforced as the envelope the program runs in, so a wrong manifest fails the command rather than granting an effect | [the host](https://github.com/wanderdev0/window-ml-host), v0.10.0, is reachable as `ml.sh` from JavaScript and from a full Python cell; a call a policy covers runs, a call whose effects stay inside what the sandbox bounds plus reads in its roots runs by default, and anything else asks on the running step, with a card showing the program's facts, never the script. Each call starts under the envelope its judged facts derive, enforced by bubblewrap and Landlock on Linux and by Seatbelt on macOS, with the root's top-level names and `.git` hooks and config held read-only from one list; every call reports what changed among those names, and the result says which envelope the host applied. The hub transport is built behind an optional feature the default build does not compile, and no client drives it yet ([notes](docs/spec/SHELL.md)) | the host, on the person's machine |
| An agent uses my credentials without ever being able to read them: it holds a handle, and the secret stays in the client's background worker. Holding a handle while a broker keeps the secret is an old pattern in security; I have not found it done for a browser agent | not started; its place among policies, the effect algebra and processes is now written down ([notes](docs/spec/SECRET_HANDLES.md)) | the client's background worker, and the host for the secrets processes need |
| I drive an agent at home from my phone through a relay designed so that it cannot drive the agent itself | [the relay](https://github.com/parawanderer/window-ml-hub) carries sealed traffic and a connector republishes a box's telemetry through it, self-hosted. The client's own connector is not built, so nothing drives an agent through it yet ([notes](docs/spec/RUNTIME_HUB.md)) | a small relay server, and the client |
| I drive an agent at home from my phone through a relay designed so that it cannot drive the agent itself | [the relay](https://github.com/wanderdev0/window-ml-hub) carries sealed traffic and a connector republishes a box's telemetry through it, self-hosted. The client's own connector is not built, so nothing drives an agent through it yet ([notes](docs/spec/RUNTIME_HUB.md)) | a small relay server, and the client |

<!-- TODO: one flat sentence in the placement row on what the stock scheduler could not do without the caller tuning it. -->

Expand Down Expand Up @@ -66,15 +66,15 @@ job.

- **Client:** a browser extension that puts `window.ml` on web pages (this repository). A web page is an easy
source of real tasks with me watching.
- **Chat server:** [a modified OpenWebUI](https://github.com/parawanderer/open-webui), where the client needs a
- **Chat server:** [a modified OpenWebUI](https://github.com/wanderdev0/open-webui), where the client needs a
route it does not have.
- **Serving layer:** [a heavily modified Ollama](https://github.com/parawanderer/ollama). The changes are in the
- **Serving layer:** [a heavily modified Ollama](https://github.com/wanderdev0/ollama). The changes are in the
scheduler: what it reports about itself, and what it learns to predict from use.
- **Engine:** [a modified llama.cpp](https://github.com/parawanderer/llama.cpp), for what the serving layer cannot
- **Engine:** [a modified llama.cpp](https://github.com/wanderdev0/llama.cpp), for what the serving layer cannot
see or change.
- **Relay:** [window-ml-hub](https://github.com/parawanderer/window-ml-hub), written for this, which lets devices
- **Relay:** [window-ml-hub](https://github.com/wanderdev0/window-ml-hub), written for this, which lets devices
reach each other's runtimes.
- **Host:** [window-ml-host](https://github.com/parawanderer/window-ml-host), written for this, which runs processes
- **Host:** [window-ml-host](https://github.com/wanderdev0/window-ml-host), written for this, which runs processes
for the client on the machine it is attached to, under the operating system's sandbox. It is not the relay and the
relay is not it: either works without the other.

Expand Down
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ and 0.10.2) — unknown routes return the frontend HTML page.

Everything on this page runs against a **stock** Ollama behind a **stock** OpenWebUI. The resource panel's
capacity, placement and event stream (and `ml.info()`) need a patched Ollama,
[`parawanderer/ollama`](https://github.com/parawanderer/ollama) branch `slop`; OpenWebUI's tool execute route needs
[`parawanderer/open-webui`](https://github.com/parawanderer/open-webui) branch `ml/tool-execute-api`. Without them
[`wanderdev0/ollama`](https://github.com/wanderdev0/ollama) branch `slop`; OpenWebUI's tool execute route needs
[`wanderdev0/open-webui`](https://github.com/wanderdev0/open-webui) branch `ml/tool-execute-api`. Without them
those features say "not reported" rather than break. What each field feeds: [FORKED-BACKENDS.md](FORKED-BACKENDS.md).

### Feature support by API format
Expand Down
8 changes: 4 additions & 4 deletions docs/FORKED-BACKENDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ worse than one that says so.
Nothing here is a hard requirement to *use* the extension. Everything degrades: the affected features
either turn themselves off or say "unknown", and the rest of the extension is unaffected.

## Ollama — `parawanderer/ollama`, branch `slop`
## Ollama — `wanderdev0/ollama`, branch `slop`

Formerly `local/ps-gpu-attribution`; that branch name is stale. Parts of it are upstream as
**#18197** (per-device `/api/ps` plus three fixes), **#18198** (VRAM prediction from measured loads) and
Expand Down Expand Up @@ -208,7 +208,7 @@ Where the whole call differs from the fragments, and what the client does about
Raw captures from the deployed build, replayed by `tests/background-stream-calls.test.js`:
`tests/fixtures/tool-call-deltas/`.

## OpenWebUI — `parawanderer/open-webui`, branch `ml/tool-execute-api`
## OpenWebUI — `wanderdev0/open-webui`, branch `ml/tool-execute-api`

Two commits ahead of upstream: `POST /api/v1/tools/id/{id}/execute`, which runs exactly the callable the
chat pipeline would — local tools, OpenAPI tool servers, and MCP servers — so an external client can
Expand Down Expand Up @@ -275,7 +275,7 @@ Most of this runs against stock Ollama + stock OpenWebUI. Three capabilities do
broken:

- **`GET /api/info`** (machine capacity) and **`gpus[]` on `/api/ps`** (which card a model is on, and how
a split is divided) come from `parawanderer/ollama`, branch `slop` (the old `local/ps-gpu-attribution`
a split is divided) come from `wanderdev0/ollama`, branch `slop` (the old `local/ps-gpu-attribution`
name is stale). Stock Ollama
doesn't serve `/api/info` at all — OpenWebUI answers with its SPA's HTML, which is why a non-JSON body
is read as "unknown", never as an error. Without them `ml.info()` is `null`, the panel draws no ceiling
Expand Down Expand Up @@ -315,7 +315,7 @@ broken:
`tests/runner-activity.test.mjs` asserts against it directly rather than against shapes written here —
two of its cases are ones nobody would have invented: an idle runner still reporting occupancy, and a
generation containing no prefill sample at all.
- **`POST /api/v1/tools/id/{id}/execute`** comes from `parawanderer/open-webui`, branch
- **`POST /api/v1/tools/id/{id}/execute`** comes from `wanderdev0/open-webui`, branch
`ml/tool-execute-api` — it runs the callable the chat pipeline would, so an external client can
drive its own loop over OpenWebUI-configured tools. **The extension does not call it yet**: server
tools go through upstream's `tool_ids` + `function_calling` loop (hence the `SERVER_TOOL_MODES` probe).
Expand Down
Loading
Loading