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

@@ -37,16 +37,24 @@ pub(crate) const RESUME_BRIEFING: &str = "## Resuming\n";
/// Those are only ever added after what the reader sent, so the first block is theirs whatever it
/// starts with: a pasted hook log is still a message.
pub fn readers_words(content: &[crate::message::ContentBlock]) -> Vec<(usize, String)> {
readers_texts(content.iter().map(|block| match block {
crate::message::ContentBlock::Text(text) => Some(text.as_str()),
_ => None,
}))
}
/// [`readers_words`] over each block's text, `None` for a block without any: for a front end that
/// has a message only as it arrived on the wire, an image's bytes left behind.
pub fn readers_texts<'a>(
blocks: impl IntoIterator<Item = Option<&'a str>>,
) -> Vec<(usize, String)> {
let for_the_model = |text: &str| {
let ours = [HOOK_CONTEXT, BRANCH_NOTE, RESUME_BRIEFING];
crate::mode::note(text).is_some() || ours.iter().any(|opener| text.starts_with(opener))
};
let text = content.iter().enumerate().filter_map(|(index, block)| match block {
crate::message::ContentBlock::Text(text) => Some((index, text)),
_ => None,
});
let text = blocks.into_iter().enumerate().filter_map(|(index, text)| Some((index, text?)));
text.filter(|(index, text)| *index == 0 || !for_the_model(text))
.map(|(index, text)| (index, text.clone()))
.map(|(index, text)| (index, text.to_string()))
.collect()
}