luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app

- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in
  opens the model picker instead of choosing for you.
- Every list in a modal takes the mouse wheel and a draggable scrollbar.
- The phone app shows reasoning in full, stays put while you read back through a long session, and
  shows a question's answer on its card.
- On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup
  again.
- The file tree no longer shows "engine busy" in a large project, loop output is easier to follow,
  and the name is written lowercase.

The CHANGELOG has the full list.
This commit is contained in:
Evan Whittaker
2026-10-20 13:51:34 -05:00
parent 6184aa21fb
commit a0666d6c81
591 changed files with 4926 additions and 2942 deletions

View File

@@ -368,7 +368,7 @@ fn parse_match(value: &serde_json::Value) -> Result<AstGrepMatch, AstGrepError>
Ok(AstGrepMatch {
file: PathBuf::from(file),
range: (start as usize, end as usize),
// ast-grep reports 0-based lines; every other Luxe surface is 1-based.
// ast-grep reports 0-based lines; every other luxe surface is 1-based.
line: line as usize + 1,
column: column as usize,
text: text.to_string(),

View File

@@ -1,4 +1,4 @@
//! ast-grep output — what a call reports, and what an applied rewrite tells the rest of Luxe.
//! ast-grep output — what a call reports, and what an applied rewrite tells the rest of luxe.
use super::*;

View File

@@ -434,7 +434,7 @@ const UNDER_A_TERMINAL: &str = "LUXE_TEST_UNDER_A_TERMINAL";
/// The omacvm incident, end to end: a background job that changes the terminal's settings, as a
/// spinner does with `stty -echo < /dev/tty`, then a foreground `echo`.
///
/// Before commands left Luxe's terminal, the kernel suspended the whole process group for that,
/// Before commands left luxe's terminal, the kernel suspended the whole process group for that,
/// foreground shell included, and the call timed out having "printed nothing". Reproducing it
/// takes a real controlling terminal and a process not run by nextest (which runs tests where
/// none of this happens), so this re-runs its own test binary under `script(1)`.

View File

@@ -43,7 +43,7 @@ fn edit_schema() -> ToolSchema {
disambiguate, or set `replaceAll` to change every occurrence. Multiple \
edits apply atomically (all-or-nothing) and must not overlap. Trailing \
whitespace and a uniformly shifted indent are tolerated and reported. You \
must have seen the file in this Luxe run — with `read`, lines of it from \
must have seen the file in this luxe run — with `read`, lines of it from \
`grep`, or printed by `cat`, `sed -n` or a search in `bash` — and it must \
not have changed \
on disk since (read-before-edit + staleness guards); otherwise read it \
@@ -299,7 +299,7 @@ impl EditTool {
let Some(tracker) = &self.tracker else { return Ok(()) };
match tracker.status(&cx.session_id, full_path) {
ReadStatus::Unseen => Err(ToolResultData::error(format!(
"Error: no read of '{shown}' is on record for this Luxe run \
"Error: no read of '{shown}' is on record for this luxe run \
({READ_BEFORE_EDIT}). The record is per process, so a resumed \
session starts empty even where the transcript shows an earlier read. \
Use the `read` tool, then retry — nothing was written."

View File

@@ -2,7 +2,7 @@
//!
//! Exa hosts a public MCP endpoint that answers `tools/call` over JSON-RPC with no credential.
//! That is what makes search a *default capability* rather than a setup step: a user installs
//! Luxe and the model can research immediately. A configured `BRAVE_API_KEY`/`TAVILY_API_KEY`/
//! luxe and the model can research immediately. A configured `BRAVE_API_KEY`/`TAVILY_API_KEY`/
//! `EXA_API_KEY` still wins, since an explicit choice outranks the fallback, but having none does
//! not mean having no web search.
//!
@@ -21,7 +21,7 @@ const MCP_URL: &str = "https://mcp.exa.ai/mcp";
/// The MCP tool that exposes filters, extra queries, and highlight extraction.
const ADVANCED_TOOL: &str = "web_search_advanced_exa";
/// Identifies Luxe to Exa, so the endpoint's operators can see who its traffic is.
/// Identifies luxe to Exa, so the endpoint's operators can see who its traffic is.
const SOURCE_HEADER: &str = "luxe";
/// Longest highlight payload requested per result. Enough to answer from, short enough that ten
@@ -103,7 +103,7 @@ impl SearchBackend for ExaMcpBackend {
}
}
/// Map Luxe's options onto Exa's argument names.
/// Map luxe's options onto Exa's argument names.
fn build_arguments(query: &str, n: usize, options: &SearchOptions) -> serde_json::Value {
let mut arguments = serde_json::json!({
"query": query,

View File

@@ -1,7 +1,7 @@
//! `git` `checks` — why CI is failing, bounded.
//!
//! `gh run view --log-failed` prints every line of every failing step: 3,671 lines for one Clippy
//! step of Luxe's own, with the error in the last dozen. This reads the same logs through GitHub
//! step of luxe's own, with the error in the last dozen. This reads the same logs through GitHub
//! and keeps the tail of each failing step, says how much it left out, and also lists the failing
//! checks that are not Actions jobs at all — a commit status from another CI, which that command
//! cannot see. Reading only; re-running a job stays behind the permission engine's `ask`.

View File

@@ -565,7 +565,7 @@ fn init_repo(path: &std::path::Path) -> bool {
};
run(&["init", "--quiet"])
&& run(&["config", "user.email", "test@luxe.invalid"])
&& run(&["config", "user.name", "Luxe Test"])
&& run(&["config", "user.name", "luxe Test"])
// A signing key the machine may not have would fail every commit here.
&& run(&["config", "commit.gpgsign", "false"])
}

View File

@@ -105,7 +105,7 @@ const GREP_MAX_LINES: usize = 200;
/// Character budget for one search, the second half of the bound the schema promises.
///
/// Sized against Luxe's own tree, where a broad pattern's 200 rows measure ~21 KB and the worst
/// Sized against luxe's own tree, where a broad pattern's 200 rows measure ~21 KB and the worst
/// measured — one reaching generated assets — came to 72 KB. So this leaves an ordinary search
/// untouched and cuts the pathological one to a third.
const GREP_MAX_CHARS: usize = 24_000;

View File

@@ -83,10 +83,10 @@ fn shell_command(command: &str, cwd: &Path) -> Command {
child
}
/// The `PYTHONUTF8` a command gets, when Luxe sets one: on Windows, unless the user chose.
/// The `PYTHONUTF8` a command gets, when luxe sets one: on Windows, unless the user chose.
///
/// Python there writes to a pipe in the console's code page, cp1252, so a script printing `✓`
/// fails with `UnicodeEncodeError` under Luxe and works in the user's terminal. UTF-8 mode is what
/// fails with `UnicodeEncodeError` under luxe and works in the user's terminal. UTF-8 mode is what
/// Python does everywhere else.
fn python_utf8(inherited: Option<&std::ffi::OsStr>, windows: bool) -> Option<&'static str> {
(windows && inherited.is_none()).then_some("1")

View File

@@ -1,6 +1,6 @@
use super::*;
/// Windows Python writes cp1252 into a pipe, so a `✓` in a test's output crashed it under Luxe.
/// Windows Python writes cp1252 into a pipe, so a `✓` in a test's output crashed it under luxe.
#[test]
fn windows_commands_get_python_utf8_mode() {
assert_eq!(python_utf8(None, true), Some("1"));

View File

@@ -259,7 +259,7 @@ impl ReadTool {
/// `lines[start..end]` as a result, each line numbered, kept under [`READ_MAX_CHARS`] by cutting at
/// a line boundary.
///
/// Numbered because Luxe's other tools take line numbers as input (`lsp_navigation` positions,
/// Numbered because luxe's other tools take line numbers as input (`lsp_navigation` positions,
/// `debug` breakpoints, `read`'s own `offset`), and a line the agent has to count to is one it gets
/// wrong. A result that stops early closes with the exact `offset` to continue from. The line cap
/// cannot bound a minified file, one enormous line, so the character budget is counted as lines

View File

@@ -273,10 +273,10 @@ pub fn is_available() -> bool {
capture::desktop_capture_available(capture::detect_backend()) || browser::is_available()
}
/// Modes that photograph whatever is on the reader's screen, rather than a page Luxe rendered.
/// Modes that photograph whatever is on the reader's screen, rather than a page luxe rendered.
///
/// The distinction the permission engine and the unattended guard are both drawn on: `url` shows a
/// model a document it asked Luxe to load, and these show it the desktop — a password manager, a
/// model a document it asked luxe to load, and these show it the desktop — a password manager, a
/// private message, a colleague on a shared display.
fn captures_the_desktop(mode: &str) -> bool {
matches!(mode, "fullscreen" | "region" | "window")

View File

@@ -13,7 +13,7 @@
//! CGNAT, ULA. Reaching these is lateral movement: credentials the user never handed over, or a
//! machine that merely shares their network. Denied, and a much stronger claim than the tool's
//! convenience.
//! - **This machine** — loopback. Luxe is a coding agent with an unrestricted `bash`, so
//! - **This machine** — loopback. luxe is a coding agent with an unrestricted `bash`, so
//! `curl http://127.0.0.1:4321` is already one tool call away and permitted by default. Refusing
//! the same origin to `web_fetch` and `screenshot` grants no protection whatsoever; it only breaks
//! the thing `screenshot mode=url` exists to do, and the model works around it with `bash` and a

View File

@@ -1,4 +1,4 @@
//! Tavily — a search API built for agents, so it takes Luxe's whole option set as parameters.
//! Tavily — a search API built for agents, so it takes luxe's whole option set as parameters.
//!
//! Domain include/exclude, a recency window and a result cap are all first-class here, and the
//! `content` field on each result is already the query-relevant extract rather than a meta

View File

@@ -296,7 +296,7 @@ async fn a_filtered_run_says_it_proves_nothing_about_what_it_skipped() {
/// Probes with a real run rather than `--version`, because those are different questions: an
/// installed pytest that autoloads a broken third-party plugin answers `--version` happily and
/// then dies during collection, which failed this test on a machine where nothing was wrong with
/// Luxe. Probe the capability you need, not a proxy for it.
/// luxe. Probe the capability you need, not a proxy for it.
async fn pytest_can_run(dir: &Path) -> bool {
let Some(python) = luxe_core::program::resolve("python3") else {
return false;

View File

@@ -94,7 +94,7 @@ async fn fetch_into(
let cache = luxe_core::fetched::cache_dir(root);
let Some(dest) = checkout_dir(&cache, owner, repo) else {
return ToolResultData::error(format!(
"`{owner}/{repo}` is not a GitHub repository name Luxe will clone."
"`{owner}/{repo}` is not a GitHub repository name luxe will clone."
));
};
{
@@ -252,7 +252,7 @@ fn clone_command(git: &Path, source: &str, staging: &Path, cwd: &Path) -> tokio:
}
/// A fresh staging directory name under `cache`, carrying the time it was made so [`tidy`] can tell
/// a leftover from a clone still running in another Luxe.
/// a leftover from a clone still running in another luxe.
fn staging_dir(cache: &Path, owner: &str, repo: &str) -> PathBuf {
let nanos = SystemTime::now().duration_since(UNIX_EPOCH).map_or(0, |since| since.as_nanos());
let secs = nanos / 1_000_000_000;

View File

@@ -124,7 +124,7 @@ fn the_limits_are_the_ones_the_guide_promises() {
assert_eq!(STAGING_STALE_AFTER, Duration::from_secs(3_600));
}
/// A staging directory carries the second it was made, which is all that stops one Luxe from
/// A staging directory carries the second it was made, which is all that stops one luxe from
/// tidying away a clone another is still making.
#[test]
fn a_staging_directory_made_just_now_survives_tidying() {

View File

@@ -3,13 +3,13 @@
use super::*;
/// Default polite user agent.
pub(super) const UA_DEFAULT: &str = concat!("Luxe/", env!("CARGO_PKG_VERSION"));
pub(super) const UA_DEFAULT: &str = concat!("luxe/", env!("CARGO_PKG_VERSION"));
/// Browser-like user agent for the bot-protection-bypass fallback.
pub(super) const UA_STEALTH: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36";
/// Whether `web_fetch` may read from the machine it runs on.
///
/// It may. Luxe ships an unrestricted `bash`, so `curl http://127.0.0.1:4321` is already a tool call
/// It may. luxe ships an unrestricted `bash`, so `curl http://127.0.0.1:4321` is already a tool call
/// away — refusing the same origin here protects nothing and costs the ordinary case of reading your
/// own dev server. The boundary that *is* real (private LAN, cloud metadata) is unaffected; see
/// [`crate::ssrf`].

View File

@@ -20,7 +20,7 @@ fn write_schema() -> ToolSchema {
name: "write".to_string(),
description: "Write a whole file, creating parent directories as needed. Best for NEW \
files; for targeted changes to an existing file use `edit`. Overwriting an \
existing file requires having `read` it in this Luxe run (and it not \
existing file requires having `read` it in this luxe run (and it not \
having changed since) so you don't clobber content you never saw."
.to_string(),
parameters: json!({
@@ -79,7 +79,7 @@ impl WriteTool {
}
match tracker.status(&cx.session_id, full_path) {
ReadStatus::Unseen => Err(ToolResultData::error(format!(
"Error: '{shown}' exists and has no read on record for this Luxe run \
"Error: '{shown}' exists and has no read on record for this luxe run \
({READ_BEFORE_WRITE}), so overwriting it would be blind. \
The record is per process, so a resumed session starts empty \
even where the transcript shows an earlier read. Read it (or \