Repository navigation
Release 0.3.0 - #29
Merged
Merged
Conversation
The update image is detached by up to three plain tries, then forced. The forced tries came at 1.8, 3.0 and 4.5 s. On a busy macOS CI runner the disk-image service failed through all three, so the busy image stayed attached and `a_busy_update_image_is_detached_anyway` failed on main. The tests' own hdiutil steps already allow 7.5 s for such a service outage. Eight tries now give 8.4 s of pauses, five of the tries forced. This runs off the UI thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…pprovals
The first part of Clew's plugin system (docs/plugins.md is the design).
A plugin is one WebAssembly component written in Rust, run by wasmtime
inside Clew, and able to do only what its imports allow.
- crates/clew-plugin/wit/plugin.wit is the contract: views a plugin shows,
commands and graphs it exports, and what it may import (`host` is free,
`project` needs read, `git` needs git).
- crates/clew-plugin-sdk is what a plugin is written against: bindings
generated from the WIT (with its digest), the small part of wit-bindgen's
runtime they call written out as plain Rust, a `Plugin` trait with
defaults, `export!` (macro_rules), and builders. It has no dependencies,
build script or proc macro, so a plugin build runs only the compiler.
- clew_rules::plugin maps each import to the permission it needs and
refuses imports Clew does not provide. A component only imports what its
code calls, so permissions are read from the code itself.
- crates/clew-plugin covers the manifest, inspection and the store.
- manifest: plugin.toml, checked with messages an agent can act on.
- inspect: reads a file without running it, from the plugin.toml
embedded as a custom section.
- store: plugins.toml approvals by fingerprint, and read-only approved
copies, checked on every read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The runtime runs plugins in Clew's process with wasmtime 48. - Linking: a plugin is linked only with what the user granted (clew_rules::plugin::may_link decides first), and WASI is linked with nothing behind it. - Calls: each call gets a fresh instance (microseconds, from a pre-linked plugin), so calls run in parallel and a crash takes nothing with it. - Limits: each call has an epoch deadline and a memory limiter that records when it refused. - Failures are told in a sentence, with the Rust panic message when the plugin panicked. - Output: standard output and error go to the plugin's log, capped and never an error. - Compiled code is cached by file digest and engine settings. - What a plugin returns is capped, and places outside the project are dropped. The builder turns plugin.toml + src/**/*.rs into a checked plugin file. - Inputs: it writes Cargo.toml itself, and copies only Rust sources into a clean folder, with no symlinks and size caps. - Toolchain: cargo and rustc run by absolute path, with RUSTFLAGS and wrappers removed. - Dependencies: it refuses those that run a build script or proc macro, other than a short list of well-known crates (cargo metadata, which runs nothing). - What the agent gets: the compiler's own messages, or the plugin, read as an install would read it. The two test plugins in fixtures/ are built by that builder (an ignored test) and checked in with the digest of their sources, so CI needs no wasm target. 15 integration tests run them through the runtime: deadlines, memory limits, panics, refusals, parallel calls, the cache, the plugin's store, and a manifest that hides a permission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The same tool table serves Clew's Ask agent (run by the window) and every
ACP agent (through clew-server mcp), so both can make, build, try and
install a plugin:
- plugin_guide, plugin_new, plugin_files, plugin_read, plugin_write
- plugin_build, plugin_try, plugin_install, plugin_status
- authoring:
- New plugins start from a template that builds as it is.
- Writes stay inside the plugin's own source folder: plugin.toml or
Rust files under src/, nothing else.
- A broken plugin.toml never replaces a good one, and an id never
changes.
- GUIDE.md is what an agent reads before writing a plugin: plugin.toml,
the SDK's API, views, permissions, limits, and what a good plugin does
for the user.
- tools: try and install are handed back to the caller as a Step,
carrying the latest build exactly as an install would read it. The
window does them itself.
- requests: clew-server mcp has no window, so it files a request in
<data>/plugins/requests/ naming the build by its digest, and waits for
the window's answer. Stale or foreign files are cleared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Clew's window now runs installed plugins. Each enabled plugin's commands are in the command palette as "Plugin: Command". A command that asks for a line of text asks for it first. What a command gives back is shown as Clew's own page over the code, opens a place, or is said on the status line; a failure says why, and the plugin's log keeps it. Installing asks the user first, as Clew's other trust questions do: a numbered question with the answer delay. It shows what the plugin adds, what it may do (new permissions marked when it updates one), and where it came from. Settings → Plugins lists what is installed, with a switch, Remove, the log's last lines, and "Install from a file…". The Ask agent gets the plugin tools, so it can write, build, try and offer a plugin. Requests that `clew-server mcp` files are watched off the window's thread, and exactly one window claims each one by an atomic rename. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The plugin system's security decisions now live in clew-rules, and each one is proved in Lean, of the Rust itself. Charon and Aeneas translate the source (ClewRules.lean); PluginEqual.lean proves each function always returns (no panic, no overflow, every loop ends) and computes exactly the model in Plugin.lean. The theorems are then restated of the code: - Linking: need_of, with_need and may_link link a plugin only when nothing it imports is unknown and each permission an import takes was granted. Importing clew:plugin/project is never linked without read, importing git never without git, and anything Clew does not provide (a network interface, say) is never linked at all. - Names: a plugin or command id and a request nonce are one plain name (no /, \, :, NUL; never . or ..), so joined to a folder each resolves exactly one level below it. - Agent writes: a source path an agent may write is plugin.toml or a Rust file under src/ that passes check_lexical, so it never leaves the plugin's folder. - Store files: a store key's file is a plain name, and no two keys share one. All proofs use only Lean's three standard axioms (both audits check this). Proving these found two holes, now closed and covered by tests: - write_file validated plugin.toml only when spelled exactly that, but ./plugin.toml was accepted too. A manifest written there skipped both the check and the rule that an id cannot change. Both now go through source_kind, on one spelling. - last_build looked up a build under an id the agent passed, which could be a path. Every folder of a plugin's is now named through store::checked_id (id_ok). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
`clew-server mcp` now serves the plugin tools beside the code tools. An agent writes and builds a plugin there; a try or an install is filed as a request for Clew's window, which has the plugin runtime and the user, and the tool waits for its answer (90 s for a try, 15 min for an install). The client's name, from `initialize`, is what the user sees as the asker. - The window takes a try only for the local project it has open, matched by canonical path, so a project opened through a symlink or a remote one with the same path is not mistaken for it. - An install answer carries the approved copy's fingerprint; the agent's words (the plugin's name and its commands) are kept apart from it. - A run's stop reason is structured (timed out, out of memory, crashed, stopped) so the window says it in the reader's language; host errors plugins read stay in English. - Plugin cards and settings wording, translated into fr, ja, ko and zh. - Tests: the window takes only the requests meant for it; an agent's install is answered as the user decides (declined, or the fingerprint); the plugin dialogs hold Time Travel's chords like every other overlay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
… answered `clew-server mcp` marked every tool read-only, the plugin tools that write a plugin's source, build it or ask for an install included. A client that runs read-only tools without asking (Clew's own "trust read-only tools" setting among them) would have run those unasked. Each tool now carries whether it only reads, and its annotations say so: one that does more is not read-only, may change things, is not idempotent and may reach outside. A plugin request the agent stopped waiting for (the user was still on the install dialog when the 15 minutes ran out) is no longer answered into a file no one reads, and answers left unread are cleared once stale. Docs: the MCP server's plugin tools (English and Chinese), how requests are claimed, matched and withdrawn, plugin_files and plugin_read in the tool table, a Chinese mirror of the plugin doc's user part, and the guide says which source file names a plugin may have. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- The palette offers an installed plugin's commands, named by the plugin and the command, and running one runs the plugin; a plugin turned off offers none. - A plugin's page draws every kind of block (heading, Markdown, notice, items, tree, table, facts, code) in Clew's widgets, and a row naming a place opens it and puts the page away. - The install-answer test now arms the window's answer delay, as the other consent tests do: in tests it is zero unless set, so the check that an Allow before the dialog was read is refused tested nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A plugin could declare a [[graph]] and the install card named it, but the graph never appeared. Project Graphs now lists each enabled plugin's graphs after the project's own, and builds one when it is shown: by the copy of the plugin installed, with the permissions granted, under the graph limits. It is built again when the project's files or the plugin change, never twice at once, and the last graph built stays on screen while the next is built. The list says which plugin added the graph, says when it is being built, says why a build failed with a Try again button, and says when the plugin found nothing to draw. The graph view points to the list for the reason. Turning a plugin off or removing it takes its graphs away. Tested with the fixture plugin through the real runtime: offered, built when picked, drawn with its places, not rebuilt when nothing moved, rebuilt on Try again, gone when turned off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
An agent's plugin build failed with no way forward for a user without Rust, or with Rust but not the WebAssembly target. Settings → Plugins now has a "Building plugins" section that says whether plugins can be built here and offers the one step that fixes what is missing: - With rustup, "Add the WebAssembly target" runs `rustup target add wasm32-wasip2` (about 100 MB). - Otherwise (no Rust, a package manager's Rust, one too old, rustup with no default), "Install Rust for Clew" installs rustup's own minimal stable Rust with the target into Clew's data folder (about 700 MB): nothing in the user's home, PATH or shell profile changes. The installer comes from static.rust-lang.org, is checked against the SHA-256 published beside it before it runs, and is not kept. Each step shows how it goes and can be cancelled; a step that fails says why, in the installer's own last words. Clew's own Rust can be removed from the same section. The user's own Rust is used first when it is ready. An agent whose build hits a missing toolchain is told to ask the user to click the button, by name. The reasons are structured, so the window says them in the reader's language while agents read English. Tested: the install path against a loopback server and a fake installer (arguments, folder, environment, a forged installer never run, a failure's reason, nothing left behind), and the section's states in the window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…e clicked A command with where = "code" is now offered in the code's menu, named as the palette names it, and runs with the file and line clicked rather than the caret's. A command that asks for a line of text keeps its question in sight above the field, and is refused before asking when no project is open or another command is still running. A plugin of one command named as itself is listed once, not "Word count: Word count". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…s code by its name A build identified the plugin's own crate and the SDK by name, so a crates.io crate named like the plugin had its build script run. They are now known as the local packages Clew wrote, and a dependency may not be named like the plugin. The generated Cargo.toml has build = false. Code being compiled could read any file or variable through include_str!, env! and the like, and what it read could come back to the agent. Now: - cargo is told only what finding the toolchain and the linker needs; the network's settings go only to cargo fetch, and metadata and build run offline; - the plugin's own code may not include files or read variables at all; - a dependency may include only files of its own package, or what an allowed build script wrote, its library and modules must be in the package, and no file there may link out. A passing crates.io version is noted and not read again. paste leaves the allow-list (it can assemble an include_str! the check would not see). The list is brought up to date with what serde, serde_json and url need today (serde_core, zmij, the ICU4X derives and data crates, libc): before, any plugin using serde was refused. A real build of a plugin using regex, serde_json, url, chrono, toml and ten other popular crates passes; the plugin's own include_str! is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- A command run, or one asking what to run with, no longer outlives its project: its end was dropped by its stamp and left "still running" set, refusing every command after. - A run passes on at most 1000 log lines or 256 KiB of a plugin's log; a loop logging filled the window's memory, not the plugin's. - A web link on a plugin's page opens only after the user has seen the whole address and said yes: the plugin read the project, and the link could carry it away. A link to a place in the project opens at once. - Removing a plugin, or the Rust Clew installed, asks first. - A newer build offered in place of one being asked about tells the first asker so: an Ask turn or an MCP request waited for good. - A try runs with a store of its own, empty and gone after, not the store of an installed plugin of the same id, and keeps no compiled copy. - A graph built while its plugin was turned off no longer stays "Building" for good when the plugin is turned on again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- An install that fails or is cancelled partway removes what it put in Clew's own Rust folder: left, half a Rust was reported as Clew's own, broken, with "Not in use: your own Rust is ready" beside the failure. - Rust is ready only with the target's standard library, not just its folder, which a stopped install leaves. - A cancel says it was cancelled, not that setting up did not work. A failure is said on the status bar too, since an install takes minutes. - Adding the WebAssembly target to the user's own Rust runs to its end: stopped partway, rustup can refuse to add it again. - When Rust is ready, the user is told to ask an agent that was building to build again. - The row of Clew's own Rust says whether it is in use, not used, or not working. - The store's sweep of unused plugin copies runs under the store's lock with the install or remove that calls for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…hread - A page holds 4 MiB of text at most across its blocks, besides its row cap, and one cut short ends with a notice saying so, in the reader's language. The largest page allowed is built in tens of milliseconds. - Stopping an Ask turn stops a plugin build it started; one ran on for up to ten minutes. - A requested build (up to 32 MB) is read and checked off the window's thread. - The requests waiting are looked at again when a project opens: a try left for a window that had its project open waited for good if this one opened the project after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…he guide - plugin_try builds a graph (graph = id) as well as running a command, and tells the agent what it built: its size, its first nodes with their places, its first arrows, and the log. An agent writing a graph could not check it before asking to install it. - What an agent is told once a plugin is installed names its commands as the palette lists them and its graphs as Project Graphs lists them, from one sentence the window and clew-server mcp share; the Ask agent is told the tool that runs a command by its real name, window_run_command. - The status bar says where an install put what it added: the palette, or Project Graphs, or both. - Settings lists a plugin's graphs beside its commands. - A graph's title can be translated, as a command's can. - A command's host::progress is shown, as a percentage beside "Running", over the run's own words only. - The guide documents [[graph]], its code and its limits, and no longer says graphs come later. - The MCP binary test expects the plugin tools that write to say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- clew-server mcp: a try or install no Clew window takes is given up after 8 seconds with a message that says what to do, not after the whole wait; the MCP server reports its own version. - Install card: origin and version are two pieces; an unnamed MCP agent shows as "Made by an agent" in the reader's language; a new permission's chip says "Newly asked". - Tests follow Ask offering the plugin tools after the window's own, and the new agent messages are listed and translated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- A command that fails stands on the status bar: Try again runs it again as it was run (same input, same line), Settings opens Settings → Plugins at its log. One that finishes takes it away. - An install that fails after Install is said where the user is. - Settings → Plugins: a plugin whose last run or graph build failed says it is not working, with Copy log and, where Clew has its source, Ask to fix it (a request with the log, put in Ask's field to send). - A failed graph offers See its log beside Try again. - Settings' Plugins failure goes as Settings is left; Check again where Rust is set up outside Clew. - A changed approved file says what to do (remove, install again), in the reader's language; "the file could not be read" translated. - ja full-width question marks, fr "Vérification…" and "compiler" for plugin builds, zh one verb for building graphs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- docs/plugins.md and its Chinese page: the real consent card, Rust needed to build (Settings → Plugins sets it up), graphs shipped, the failure sentence and its next steps, memory per command and graph, output caps, the card centred over the window, "Newly asked" on an update, plugin_try for graphs, the 8-second give-up, sizes (700 MB for Clew's own Rust, 100 MB for the target), a status list for phases. - GUIDE.md: a row that points at the code shows its place itself. - Consent cards (plugin install, language server) say "N more after this" beside their buttons: as a line of its own, held empty, it left a gap under every card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Run end to end in the real app with a real plugin (an MCP agent wrote version 0.2.0 of a plugin with a command that panics, built, tried and offered it; it was updated, run from the palette, failed, and fixed from Settings → Plugins): - An update card's answers say Update and Don't update, as its title does, not Install. - The standard library's "run with RUST_BACKTRACE=1" hint after a panic is left out of a plugin's log: no one can set it for a plugin. - A try's log for the agent names its levels in words ([warning]), not as Rust writes the enum ([Level::Warning]). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A failed build left the last good one in place, and plugin_try and
plugin_install used it: the agent tried the old code, and the user was
offered the previous build as an "update" to the version installed.
- A successful build records the source it was built from (a digest of
plugin.toml and the staged Rust files). Try and install refuse a build
whose source changed since, or whose rebuild failed: build again first.
- The very build already installed is not asked about again: the agent
is told so, and told when the user turned it off. Its copy gone bad,
installing it again mends it, asked as "Install again?".
- The status bar says the setup offer short before what was just said is
cut ("TODO count is installed: its commands are in the comma…").
- Ask to fix it, Copy log and the graph's See its log covered by tests;
the file-tree scrollbar test says both readings when it fails.
- Docs and the plugin guide say all this.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…view Found running the real app through a plugin that crashes, is fixed by an agent and updated: - Project Graphs' graph view said only "Switch to List to see why" for a plugin's graph that failed. It now says why, with Try again and See its log, in place of the graph, or above the last build still drawn. - Ask to fix it, reached from a graph's See its log, opened Ask under Project Graphs, out of sight. Project Graphs is put away for it. - After a new build was installed, the last build's crash stayed in the log under the new version, as if the new one had crashed. A new build's log starts empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- What an install says is shorter ("TODO count is installed, in the
command palette and Project Graphs"): in more words it was cut at
1280 px beside the setup offer. Tested whole at 1280 and 1440.
- Installing a new build of a plugin takes away the standing failure of
a run of the build it replaces: it stood beside the new build, its Try
again and Settings about the old one. Another plugin's install leaves
it.
Checked in the real app with one window: the plugin's command run from
the keyboard (Ctrl+P, typed, Enter), a crashing build's log filled, the
fixed build installed — log empty, failure gone, message whole.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Every App ran theme::init, which read config.toml again and pointed the process's palette at it. A window opened later therefore moved every open window to whatever the file said, a preview under way included, and the shell had to put the open windows' appearance back afterwards. In the tests the appearance is each thread's own, but the file is shared: once the command palette's test chose "Theme: Light", every later test's window opened light. The file tree's scrollbar render test then read light pixels where it had drawn dark ones (at rest 240, under the pointer 240). It failed every time when run after that test, and passes now. theme::init now applies the saved appearance once per process, as i18n::init already does for the language, and returns the preference in effect. The shell no longer re-applies the appearance for a new window. A test pins it: a config.toml that says otherwise on every count moves nothing when a later window opens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…inter
A failure on the status line kept up to 320 px empty beside it for
whatever might be said next, so its Try again, Settings and × never
moved. Most of the time nothing was said there: notices expire after
12 s and the failure's own words are not repeated. So its reason was cut
beside empty room ("Oldest TODO did not finish: …").
Now the failure has the room while nothing is said beside it, and gives
half of it (up to 320 px) when something is. With nothing beside it, the
setup offer gives way to its mark and count before the failure's reason
does: an offer waits.
The controls still never move under the pointer. While the pointer is on
the status line, the failure is laid out as it was when the pointer came
(FailureNotice::held), including when a new failure replaces it there.
Notices don't expire meanwhile, and get their 12 s again once the pointer
leaves: one said beside a held failure may have had no room to show.
Checked in the real app at 1280 px with a plugin run that failed:
- the failure filled the line and the offer showed as its count;
- Ctrl+D under a resting pointer moved nothing;
- moving away showed "Bookmarked src/cart.rs:9" beside a shortened
failure;
- the failure took the room back when the notice expired.
Each new check fails when its rule is reverted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
From an independent review of the plugin system (logic and UX):
- A plugin that slept was never stopped. WASI's clock waits in the host,
where the epoch deadline does not reach: thread::sleep held the run,
and every run after it, for good. The run's monotonic clock now ends
every wait at the deadline, and a call that waited that long counts as
timed out. Tested with a real sleeping fixture command; without the
fix the test hangs.
- A plugin turned off, removed or replaced in one window still ran in
the others, from their own list and loaded copy. Every run and graph
build now re-checks the approval record first (covering another copy
of Clew too), and the shell tells every window to read the list again
when one changes it.
- An agent's try could run on a project opened after the request was
claimed. The project is checked again before the try runs, and an Ask
turn's try or install needs its conversation to still be this
window's.
- Tables counted for nothing against the memory limit. Every memory and
table now grows one budget.
- An install whose agent stopped waiting could still be installed later.
The card goes as the request is withdrawn, and Install re-checks it.
An outside agent's card asks for the window's attention, and the tool
tells the agent to send the user to Clew.
- A build read plugin.toml before its lock, and could record a new
digest for an old manifest. It now hashes, then reads, under the lock.
- A plugin's own reason (Err("The project has no git history")) read as
a crash, with Try again and "It is not working". It is now its answer.
A run that finishes, or a plugin turned off or removed, takes only its
own plugin's failure off the status line.
- Docs: one engine per window and compiling at first run, as shipped;
sleeping counts against the deadline.
Each new test fails with its fix reverted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…setup, wording) - A running command has a status-bar chip for as long as it runs: its name with its plugin, how far it has come, and a Stop. The runtime stops it within a tick (a wait included), and it says it was stopped. - Settings opens at the plugin's row from the status line and from a graph's "See its log". - Opening a result row keeps the page: "Back to …" in the trail shows it again. - Ask's plugin steps run, wait and end as done or failed, as other tools'. - A changed plugin file says to install it again, with no Try again or Ask to fix it; a file-installed plugin's log goes to whoever made it. - Voice and jump name each row's switch and buttons by its plugin. - The install card: Install is the primary button, as on the other consent cards; it says a turned-off plugin is turned on, and which commands are in the code's menu. Updates say their new version. - An Ask turn stopped takes its install card with it. - A command's question needs an answer before Run. - Rust setup: Check again always, the version needed and `rustup update`, the agent told where to go rather than English button names, and a failed Ask build for want of Rust said on the status line with Settings. Clew's own Rust that cannot be removed says why. - The link question says why it asks; an empty plugin graph says the plugin found nothing; inspect reasons are translated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Checked in the real app: a command that never says how far it has come kept room for a percentage it never showed, so its × stood apart from its words. The room is kept only once it counts. The chip takes the plugins' cube mark: the plug beside it is the language servers' setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- A command's chip, and its Stop, is laid out with the other chips: laid
out after a failure standing with a long reason, it had no room left.
- A failure says what failed whole: "TODO count: List TODOs did not
finish", not "TODO count" cut at the plugin name's own ": ".
- Settings opens where a notice is about: a damaged copy's row, and Rust's
setup for "Plugins cannot be built here".
- "Run rustup update" only for a Rust rustup installed.
- A new build of the same version says it is updated, not "updated to"
the version it already was.
- Why Clew's own Rust could not be removed stays while it is there.
- A new run clears the last run's word ("… was stopped").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A Lake project that uses Mathlib (its lake-manifest.json names it, or it is Mathlib) whose Mathlib build is not there is offered "Get Mathlib's Build Cache" in the Goals margin and the palette: Lean would otherwise build all of Mathlib itself, for hours, the first time a file importing it is checked, with nothing said. It runs `lake exe cache get` in the project with the project's own lake, shows the line lake last said while it works, says why when it fails (Try again), and once the build is in place has Lean check the open Lean files afresh. The card shows whatever state the Lean server is in, starting included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A Lean file in a Lake project below the folder Clew opened (a repository with its proofs in lean/, or several Lake projects side by side) had Lean's server started at the folder: it found no lakefile there and read the file without the project's dependencies. The server now starts in the nearest folder holding a lakefile.lean or lakefile.toml, and when the file being read belongs to another Lake project the server restarts there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The shown tab said its name beside its icon, so picking a tab made it grow and pushed the others along. Every tab is now its icon alone: the shown one is filled like a chosen segment, and each tab's name is in its tooltip, as the header's tools beside them are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The tabs stood 26 high to the tools' 28 and a little narrower, so their glyphs sat a pixel above the tools' and at another pitch. A tab is now a header tool's size, the same gap apart: every glyph on one line, 34 apart. The turnstile was the smallest mark in the row, leaning left in its box; it is as tall as the glyphs beside it and set where its weight centres. The Explanations page and spark sat low and left; they are redrawn to balance in the middle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A `use` of another crate of the project's own (a workspace member, or a package's library from its binary and tests) read as an external crate: the Imports view, the graphs and the cycles stopped at the crate's edge. Each Cargo package's manifest now says what its library is called in code and where it is (`[lib] name`/`path`, else the package's name and src/lib.rs), and its other targets' roots, so `use acme_core::store::X` from the server crate is acme-core's store.rs, and a library or binary at a path of its own is a crate root. A Python project's own modules under a root its pyproject.toml names (setuptools' where and package-dir, Poetry's from, Hatch's packages, PDM's package-dir, maturin's python-source, pytest's pythonpath, Pyright's extraPaths, mypy's mypy_path) read as packages from elsewhere. Imports are now looked for under those roots too, and a module with only a stub (a compiled extension's .pyi) resolves to its stub. Both are read where the files live: protocol v29 carries them in the project's manifests for a remote project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
A Rust file's outline was a flat list: `fmt` was nobody's, a file's two `new`s read as one name twice, and a trait listed only the methods it provides. Each impl block now heads its items in the outline, named by what it implements (`Display for Point`, `Point`), a jump to its line; a trait's required methods are its items too, declared without a body as an interface's are; and every row stands in as deep as what holds it — a method under its class or its impl, a module's items under the module, a nested function under its function. The outline's follow counts the block rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…ections A dataclass, a pydantic or Django model, or an enum read in the outline showed its methods and none of what it holds. A class's fields (each an assignment in its body) are now its items, under it in the outline and among its members in the Docs view. A module that says what it exports (`__all__`, a list or tuple of names, `+=` more, over as many lines as it takes) is taken at its word in the Docs view: the listed names are its API, an underscore's or not, and its other top-level names are not. A computed __all__ leaves the underscore rule standing. Docstring sections render as what they are: Google style's (Args:, Returns:, Raises:, …), NumPy style's (headings over a rule of dashes) and Sphinx fields (:param:, :type:, :returns:, :rtype:, :raises:) become bold headings with an entry per name, and a doctest example a Python block. As written, an indented entry rendered as a code block and Sphinx's fields as one run-on paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The languages page had no word of Rust's or Python's own support, and Lean's predated its proof tools. It now says what each gives: Rust's outline by impl block, hovers, codes, macro, layout and tests, workspace crates, Cargo runs and one-test runs, panics in the debugger; Python's project environment, class fields, __all__ and docstring sections, source roots and stubs, pytest runs and exceptions in the debugger; Lean's Goals margin with how far a file is checked, Step Through Proof, Restart File, Mathlib's build cache, and Lake projects in subfolders. In English and Chinese. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Python - Run Test without pytest asks to install it (pip, shown first, then the run starts) instead of running the file as a script and calling a test that never ran "passed". pytest's own exit codes 2, 3 and 4 say the test never ran. - A Poetry environment is found for names with `_` or `.` (PEP 503), and on Windows; conda's auto-activated `base` comes after the project's own. - A computed `__all__` no longer hides a module's API; `.extend` and `.append` add to it. - Docstrings: one set of headings (Parameters, Returns, Raises, Examples), a return's type in code, examples and indented code kept as code. - The hover's local peek is set as Markdown, not shown raw. - Fields and constants get no "understood" circle and are not counted; undocumented member fields say nothing rather than "No documentation." Rust - A module only `main.rs` declares is the program's: Run Test on its test no longer ran the library's test of the same name, and the fallback match needs the whole name. - A test that was built but not found says "not run", not "build failed"; the build status names the test's target; target names are translated. - Manifests and crate roots are read capped and never blocked on. - Stop during a chatty Cargo build stops at once. - Changing Cargo.toml or pyproject.toml re-resolves local imports. Lean - Mathlib's build is looked for, fetched and re-checked in the Lake project of the file read, once per project; its card has a title, a Not now, and says what failed. - The Goals tab: an import that fails is shown wherever the cursor is; another line's goals are not shown as this one's while Lean is behind; each server state is said as it is; Restart File shows that it is checking; clearer wording. - A status-bar Goals chip when the Goals are not on screen (another tab, a split, a narrow window). - Lean examples and same-named methods in two `impl` blocks no longer share a note or an understood tick. Debugger: watches and hovers are evaluated in the frame the stop is shown at (a Rust panic's), not the panic machinery's. Margin tabs say what each shows; Goals sits last, so the others never move; Explanations' glyph no longer carries the AI sparkle. Palette: Margin: Goals only in Lean files, "Lean: Restart File". Translations and docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Run on a Lean file with no launch file told the reader to write one, which no debugger could use. A file with a `main` now runs as Lean runs it: `lake env lean --run <file>` in its Lake project, its output streamed into a run tab, its exit code said, Stop stopping Lean and Lake with it. A file of proofs says it has no main and points to the Goals tab and Step Through Proof; Debug says Lean has no debugger and what to use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- A Lean run said "Running Main.lean with Lean…" long after the program
ended: no adapter comes to say it runs, so what start_session says is
now its running state, taken down when the program exits.
- The outline's Rust impl rows: one that holds no items
(`impl Eq for P {}`) is drawn dimmer, and a label cut to fit
("From<HashMap<String,…") shows the whole of it in a tooltip.
- The overview card says what to do: "Run Explain All first to write
them", in all five languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- Hover cards show again when only prepared Markdown (pyright's signature and docstring) is available. - Python runs and tests in a src layout put src/ on PYTHONPATH, so pytest finds the package. - The overview's module graph names packages as they are imported (library, library.__main__) and tells same-named files apart. - Code Statistics right-aligns its number columns and skips empty files in Largest files. - Weak Spots shows a centred "Nothing stands out" empty state. - The setup sheet says Close when there is nothing to set up. - A def inside a class is shown as a method in the outline and cards. - History: the Uncommitted changes clock sits on the commit rail, and its words and files start where the commit subjects do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- Every sidebar view sets its fields, switches and row bands 10 in from the edges, as the views' switch and the Files filter are, and its words 14 in, under the view's title. Search, Find by meaning and the reading guide stood 8 in (2 wider than the switch) and 8 lower; History's filter stood 20 in with its Refresh 6 below its middle; the trail's and History's rows ran from edge to edge. - Your notes: the "0/7 understood" count is on its section's line, at its other end; the outline's circles and pencils are centred on their names, on the section name's left edge. - Imports and Call hierarchy: the root heads the tree once (with its folder or file:line, pressed to go there) instead of again as the first row; rows are as tall as the Files view's, pressed across the band, their words cut with an ellipsis. - A view chosen from ⋯ is named without a × beside it: the views' switch is the way back, as for every other view. - History: a commit's dot sits on its subject's line, not between its two lines; the reading trail keeps no empty arrow column. - Run panel: a run's × is inside its tab, its state a mark on the icon's corner, with no empty slot after the name. - Tooltips: where one control sits inside another, only the innermost tooltip shows (a tab's × showed its own and the tab's at once). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- Margin: the card for the caret's function stays pinned at the top or foot while its function is scrolled away, with a button back to it; plain notes end in an ellipsis and keep their head line whole. - A button after the margin tabs hides the margin; the same button in the header brings it back. - The sidebar divider's lit line stops where the sheet's corners round. - Setup sheet: .clew by name (its path in a tooltip), and "Add an API Key…" under the line that asks for one. - Welcome: "Open a folder" said once, not in three places. - Settings: a filter on Keyboard shortcuts (by name or keys); a code text size row in Appearance, kept between launches; "Show available models" under the Model field lists the models the key can call (a free read of the account) to pick from; a set language server reads "set for this project", not "your choice". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The accent line a hovered or dragged divider shows now ends in half circles (radius half its width) rather than square cuts, so where it stops short of the sheet's rounded corners it ends as softly as they do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
All branches of a fork sat at one indent with nothing between them, so a
forked trail read as a single path. Each row now draws its forks' lines:
a tee where a branch begins, an elbow at the last one, a line through
while a fork's later branch is still to come. The fork's fold is its own
mark (the separate chevron column and the fork glyph are gone), in the
tree's grey unless it is where the reader is, with a tooltip and a voice
name ("Hide its branches: LoanError"). A folded fork says how many stops
it hides (+4).
A stop inside a function now says its line ("give_back():50"), and an
edit no longer snaps it to the function's first line: re-indexing moves
it with its function, as far in as it was. Snapped, it became the stop
before it, and the trail read "give_back()" twice in a row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…words
Clew's own hints, descriptions, tooltips, notices and errors read as
machine-written. About 440 strings are rewritten as a product writer would
put them, in all five languages:
- clauses joined with " — " become two sentences, or "so", "because",
"but", or parentheses ("{server} isn't running. Start it from the
language servers panel.");
- colons that introduce an explanation become plain sentences ("Not on a
branch (at commit {commit})"); colons stay only before an error's
detail, in "Category: Command" names and in label: value pairs;
- semicolons are split or joined with "and" / "but";
- coined or odd wording goes ("the look" -> the scan, "refusing" ->
"was blocked" / "Clew won't", "said" -> shown, "Look again" -> "Scan
again", "kept for this session" -> "They'll last only for this
session").
Status lines that Clew assembles from parts (the Explain summary, the call
graph's refinement, the scan summary, notes after a connect) joined them
with "; " and " — ". A new i18n::sentences joins them as sentences in the
reader's language, and leaves out the period when the first part already
ends one ("Settings saved. Add an API key to use Explain.. The embedding"
read double). The run tab's tooltip and the glossary peek put their
detail in parentheses.
clew-plugin's NO_EXPORTS, NOT_KEPT and log-note English change with the
app's templates that read them back, and clew-core's graph descriptions
with the labels the app shows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The errors and advice clew-core, clew-server, clew-voice and clew-speak write, which the app shows inside its own sentences, are rewritten the same way as the interface text (146 templates, in all five languages): "X — use `search` instead" becomes "X. Use `search` instead", "— refusing" and "— giving up" become "so it was not unpacked", "and was stopped" and the like, explanatory colons and semicolons become plain sentences. The proxy advice the crates add to a message starts with ". " instead of " — ", and the app's translator (i18n::message) splits the advice off at ADVICE = ". ". The keychain advice reads "To fix this, Clew needs the user name and password in environment variables … because it cannot read proxy passwords from the keychain". Also: - The archive's over-limit message and clew-server's closed-project one, constants the message list does not see, are reworded as well. - The redirect refusal is shortened to fit the status line's detail. - French entries this pass touched take a non-breaking space before : ; ? ! and inside « », as the rest of the catalog does. - The message-list test leaves out the advice tails (listed apart), accepts a message that opens with a place and a sentence break, and reads messages up to 240 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
- "{project} — reading notes" becomes "Reading notes for {project}" (the
export's title), and the finder's greyed row "— no longer in the
project —" becomes "(no longer in the project)".
- Two tutorial lines read plainly: "the two discounts built on it" for
"the two kinds of it the shop has", and "such as a summary above each
function, the type of each name, or a map of the file".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The last 65 strings whose colon joined a label to an explanation were reviewed one by one. 45 were rewritten as plain phrases in all five languages (shortcut labels, trace counts, walkthrough notes, occurrence counts, AI-call estimates, the lsp.toml and server refusals, protocol and checksum errors); the rest quote other programs' output or show a format, and stay. French catalog strings left with a plain space before : ? ! or inside « » now use a no-break space. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
…date Clew's price table matched a model by the start of its id, so gpt-5.2, gpt-5.4 and gpt-5.5 were priced as gpt-5 (gpt-5.5 at a quarter of its input rate), and Gemini not at all. A model now matches only its own id or a dated snapshot of it (-20250514, -2024-08-06, -latest); one the table does not know is unpriced, and the reader is asked for its price, rather than given an older model's. The table adds OpenAI's GPT-5.x and GPT-6 rows and Google's Gemini rows, at their pricing pages' standard rates read 2026-11-21, and the Claude ids the old start match covered (Opus 4.1, Sonnet 4.5 and 4.6, the -4-0 aliases). Price changes Google has announced (Gemini 4 Carbon and Argon on December 1, 3.6 and 3.8 Flash on January 1, 2.5 Pro billed as 3.8 Flash once retired) take effect on their day, and a ledger call is priced as of when it was made, so a change does not reprice the calls before it. The reader's own prices still hold for every call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Clew's model prices now live in assets/prices.json: built into the app, and kept in the repository, where they are corrected when a provider changes them. With the reader's consent to update checks, Clew fetches the repository's copy from the update check's host when it starts (once a day at most) and when the reader checks for updates, keeps it in the data directory, and uses it when it was checked more recently than the list in use. A new price reaches readers without a release; offline, or with checks off, the built-in list (or the last copy kept) prices. A copy is data only: read as JSON in format 1, at most 256 KiB, every row checked (a model id, rates that are prices, a cache no dearer than input, dated changes in order), or the whole copy is not read. The reader's own prices still come first. Settings → Usage says when Clew's list was last checked, and the update question and setting say that the check also fetches model prices, in all five languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
scripts/check-toolchain.sh required every crate's rust-version to be the pinned channel's, and clew-plugin-sdk, now a workspace member, declares 1.82 on purpose: plugins are built with their author's Rust, and 1.82 is the first that targets wasm32-wasip2. Every CI job stopped at that step. The SDK is now the one exception: its rust-version must be set and no newer than the channel; every other crate's must still equal it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The extracted Lean was written just before plugin.rs gained four lines of comments, so its "Source:" notes for fine_at, path_ok, KEY_MAX, hex_digit and key_name named lines four short, and the Aeneas job's check that the file is exactly what Aeneas makes of the crate failed on them. Only those comments change: every definition is as extracted, and each of the file's 229 source notes now names the lines its item is on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The four comment lines added to plugin.rs sit inside source_kind, so its note ends at line 239, not 235: the last of the ten source notes the Aeneas job's diff names. Every other line of the file is as extracted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The text pass joined "Nothing re-explained" and the unreadable-file note as two sentences, and this test still looked for the old semicolon. It returns early when run as root, so only CI's non-root run reached it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The text pass made it "a temporary copy that macOS made"; this macOS-only test still looked for "a temporary copy macOS made". The other refusal it checks still says "cannot modify". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
The store keeps installed copies read-only, so writing over one fails for anyone but root. The test now makes the copy writable first, as the store's own tamper test does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.3.0: everything on
claude/vigilant-thompson-b3g5besince 0.2.5.What's new
Plugins
Rust, Python and Lean 4
__all__and docstring sections.main.Interface
Usage and prices
gpt-5.5is no longer priced asgpt-5. A model Clew doesn't know is left unpriced, and you're asked for its price.assets/prices.json. With the reader's consent to update checks, Clew fetches the repository's copy at most once a day, so a price change reaches users without a release. Every row is checked before it is used, and Settings → Usage shows the list's date.Checks run before this PR
cargo test --bin clew: 2,339 passedclew-coreandclew-servertests pass, includingtests/protocol.rscargo clippy -D warningson the app and crates, andcargo fmt --checkhttps://claude.ai/code/session_01JJhW61edgoVZBStjCVuifR
Generated by Claude Code