Luxe 0.1.3: your sessions on your phone, joinable sessions, and nested AGENTS.md

- luxe remote puts the sessions on your computer in reach of your own phone or tablet over
  Tailscale: write, steer, answer prompts, send photos, browse files, diffs and GitHub, with a
  paired device and your own Tailscale login.
- luxe join lets another program on the same machine join a running session over the RPC protocol.
- An AGENTS.md in a subfolder reaches the model the first time it works there.
- Long sessions stay fast: no stall before each model call, lighter memory, cheaper drawing.
- A session is open in one Luxe at a time, web_search shares results across its phrasings, and a
  grep glob starting with ! excludes.

The CHANGELOG has the full list.
This commit is contained in:
Evan Whittaker
2026-10-20 02:40:13 -05:00
parent 99e30d6d0f
commit d2129a886f
423 changed files with 31666 additions and 1669 deletions

View File

@@ -219,18 +219,15 @@ impl ThemeStyles {
/// How full the context window reads at `percent`: body text, then warning, then error.
///
/// One ramp, two surfaces. The rail prints the number in a telemetry row and the statusline
/// prints it in a slab, and they had drifted — one went default-to-warning at 75 while the other
/// went green-to-warning at 70, so the same session read as "fine" in one place and "filling" in
/// the other. Low is body text rather than a color, because a window with room left is not news;
/// the hue is spent on the point where the next long turn compacts.
/// One ramp for every surface that prints the number (the rail, the statusline, the phone
/// app), so a session never reads as "fine" in one place and "filling" in another. Low is body
/// text rather than a color, because a window with room left is not news; the hue is spent on
/// the point where the next long turn compacts.
pub fn context_fill(&self, percent: f32) -> Style {
if percent >= CONTEXT_ERROR_PCT {
self.error
} else if percent >= CONTEXT_WARNING_PCT {
self.warning
} else {
self.text
match ContextFill::at(percent) {
ContextFill::Full => self.error,
ContextFill::Filling => self.warning,
ContextFill::Roomy => self.text,
}
}
@@ -466,6 +463,30 @@ const CARD_TINT: f32 = 0.09;
/// obviously located at a glance but the marks read first.
const DIFF_EMPHASIS_TINT: f32 = 0.20;
/// How full a context window reads, on the ramp [`ThemeStyles::context_fill`] colors.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum ContextFill {
/// Room left, which is not news
Roomy,
/// Past the warning mark
Filling,
/// Near the point where the next long turn compacts
Full,
}
impl ContextFill {
/// Where `percent` sits on the ramp.
pub(crate) fn at(percent: f32) -> Self {
if percent >= CONTEXT_ERROR_PCT {
Self::Full
} else if percent >= CONTEXT_WARNING_PCT {
Self::Filling
} else {
Self::Roomy
}
}
}
/// Context occupancy at which the reading turns warning-colored.
const CONTEXT_WARNING_PCT: f32 = 75.0;