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

@@ -197,6 +197,46 @@ pub fn chapter_needs_review(budget: &ReviewBudget, chapter: &ReviewChapter) -> b
budget.chapter(&chapter.id).needs_review > 0
}
/// The one reason every item in `chapter` is accounted for: `None` when anything in it needs the
/// reviewer, or when different things vouch for different items.
pub fn shared_reason(budget: &ReviewBudget, chapter: &ReviewChapter) -> Option<Accounted> {
let mut reason: Option<Accounted> = None;
for item in &chapter.items {
let ItemVerdict::Accounted(accounted) = budget.verdict(item) else {
return None;
};
match &reason {
Some(seen) if *seen != accounted => return None,
_ => reason = Some(accounted),
}
}
reason
}
/// What one chapter asks of the reader, for a front end that has the chapters but not the lines
/// the budget is decided from.
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct ChapterReading {
/// The chapter it's about
pub chapter_id: ChapterId,
/// Items still on the reviewer's list
pub needs_review: usize,
/// The label of [`shared_reason`], when there is one
#[serde(default, skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
}
/// What every chapter of `review` asks of the reader, from the budget the terminal reads.
pub fn chapter_readings(review: &GuidedReview) -> Vec<ChapterReading> {
let budget = review_budget(review, &super::review_flags(review));
let reading = |chapter: &ReviewChapter| ChapterReading {
chapter_id: chapter.id.clone(),
needs_review: budget.chapter(&chapter.id).needs_review,
reason: shared_reason(&budget, chapter).map(|reason| reason.label()),
};
review.chapters.iter().map(reading).collect()
}
fn hunk_verdict(
hunk: &ReviewHunk,
file: &ReviewFile,