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:
@@ -13,6 +13,12 @@ pub(crate) enum SubCommand {
|
||||
Doctor,
|
||||
/// Set Luxe up: a theme, a provider, the tools and the start screen.
|
||||
Init(InitArgs),
|
||||
/// Join a session another Luxe on this machine is running, speaking the `--rpc` protocol on
|
||||
/// stdin and stdout.
|
||||
Join(JoinArgs),
|
||||
/// Serve your sessions to your own phone or tablet, through Tailscale.
|
||||
#[cfg(feature = "remote")]
|
||||
Remote(RemoteArgs),
|
||||
/// Run the agent through a phased plan on its own.
|
||||
Loop(LoopArgs),
|
||||
/// Add, list and sign in to MCP servers.
|
||||
@@ -139,6 +145,70 @@ pub(crate) struct InitArgs {
|
||||
pub(crate) defaults: bool,
|
||||
}
|
||||
|
||||
/// Join arguments.
|
||||
#[derive(Parser, Debug)]
|
||||
pub(crate) struct JoinArgs {
|
||||
/// The session: its id or the start of it, or the process id of the Luxe running it. Omit
|
||||
/// it to join the one running in this folder.
|
||||
pub(crate) target: Option<String>,
|
||||
/// List the sessions running on this machine that can be joined, and exit.
|
||||
#[arg(long, conflicts_with = "target")]
|
||||
pub(crate) list: bool,
|
||||
}
|
||||
|
||||
/// Remote arguments.
|
||||
#[cfg(feature = "remote")]
|
||||
#[derive(Parser, Debug)]
|
||||
pub(crate) struct RemoteArgs {
|
||||
#[command(subcommand)]
|
||||
pub(crate) command: Option<RemoteCommand>,
|
||||
/// The port to listen on, on this machine only.
|
||||
#[arg(long, default_value_t = 4519, global = true)]
|
||||
pub(crate) port: u16,
|
||||
/// Also let this tailnet login in, besides this machine's owner (repeatable).
|
||||
#[arg(long = "allow", value_name = "LOGIN", global = true)]
|
||||
pub(crate) allow: Vec<String>,
|
||||
}
|
||||
|
||||
/// Remote subcommand — pair and manage your devices.
|
||||
#[cfg(feature = "remote")]
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub(crate) enum RemoteCommand {
|
||||
/// Check Tailscale, publish the bridge on your tailnet, start it at login, and pair a device.
|
||||
Setup,
|
||||
/// Show a QR code and link that pair one phone or tablet, good for ten minutes.
|
||||
Pair,
|
||||
/// List the paired devices.
|
||||
Devices {
|
||||
#[command(subcommand)]
|
||||
command: Option<DevicesCommand>,
|
||||
},
|
||||
/// Manage the user service that runs the bridge at login.
|
||||
Service {
|
||||
#[command(subcommand)]
|
||||
command: ServiceCommand,
|
||||
},
|
||||
}
|
||||
|
||||
/// Service subcommand.
|
||||
#[cfg(feature = "remote")]
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub(crate) enum ServiceCommand {
|
||||
/// Stop the service and stop it starting at login.
|
||||
Remove,
|
||||
}
|
||||
|
||||
/// Devices subcommand.
|
||||
#[cfg(feature = "remote")]
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub(crate) enum DevicesCommand {
|
||||
/// Unpair a device and close its open sessions.
|
||||
Revoke {
|
||||
/// The device's id, from `luxe remote devices`
|
||||
id: String,
|
||||
},
|
||||
}
|
||||
|
||||
/// Sessions arguments.
|
||||
#[derive(Parser, Debug)]
|
||||
pub(crate) struct SessionsArgs {
|
||||
|
||||
Reference in New Issue
Block a user