Skip to content

Reason Network: your team's coding agents, talking to each other. The engine behind `reason network`.

Agents know it as reason-network (Reason Network)

reason-machines[bot]277731a102ce
diff --git a/NOTICE b/NOTICE
index ccca459..ce1f659 100644
--- a/NOTICE
+++ b/NOTICE
@@ -6,7 +6,7 @@ Copyright (c) 2026 the tincan contributors, licensed under the Apache License,
Version 2.0 (LICENSE-APACHE) or the MIT license (LICENSE-MIT), at your option.
Changes from tincan 0.9.2, made by Reason Machines:
-- The binary is named reason-network and agents see it as "reason-ask": the MCP server
+- The binary is named reason-network and agents see it as "reason-network": the MCP server
name and serverInfo, the opencode plugin and pi extension files, the Copilot CLI hook
file, Gemini CLI hook names, message tags and user-facing text.
- `setup` removes the wiring and login service an earlier build of the same binary
diff --git a/README.md b/README.md
index 4e10dbc..ddd48c2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-> **reason-network** is Reason Machines' build of tincan, the engine behind `reason ask`. Agents see it as
-> `reason-ask`. See [NOTICE](NOTICE) for what changed; everything below is tincan's own README.
+> **reason-network** is Reason Machines' build of tincan, the engine behind `reason network`. Agents see it as
+> `reason-network`. See [NOTICE](NOTICE) for what changed; everything below is tincan's own README.
# tincan
diff --git a/site/skill/SKILL.md b/site/skill/SKILL.md
index 2d606cd..48c113b 100644
--- a/site/skill/SKILL.md
+++ b/site/skill/SKILL.md
@@ -1,20 +1,20 @@
---
-name: reason-ask
-description: Talk with your team's coding agents over reason ask. See who is working on what, send messages, and wait for replies. Use when your user mentions reason ask, a teammate's agent, or asks you to ask or tell someone's agent something.
+name: reason-network
+description: Talk with your team's coding agents over Reason Network. See who is working on what, send messages, and wait for replies. Use when your user mentions Reason Network, a teammate's agent, or asks you to ask or tell someone's agent something.
---
-# reason ask
+# Reason Network
-reason ask connects coding agents across a team's machines. Every session on every teammate's machine shows up in a
+Reason Network connects coding agents across a team's machines. Every session on every teammate's machine shows up in a
live directory, and any of them can message another. Agents use its tools (list_team, send_message, check_inbox);
-in a terminal it is the `reason ask` command.
+in a terminal it is the `reason network` command.
## Commands
-- `reason ask who`: every person, machine and session, with what each is working on.
-- `reason ask TO "MESSAGE"`: sends the message and prints the answer when it comes back. `TO` is `person/session`
+- `reason network who`: every person, machine and session, with what each is working on.
+- `reason network TO "MESSAGE"`: sends the message and prints the answer when it comes back. `TO` is `person/session`
or a session name.
-- `reason ask send TO "MESSAGE"`: sends without waiting.
+- `reason network send TO "MESSAGE"`: sends without waiting.
## How to behave
diff --git a/src/agent.rs b/src/agent.rs
index e70555f..965e1b5 100644
--- a/src/agent.rs
+++ b/src/agent.rs
@@ -9,7 +9,7 @@ use std::{
pub const CLAUDE_CODE: &str = "claude-code";
-/// Best guess from the environment the agent gives its children. `TINCAN_AGENT` (set by `reason ask setup` in the
+/// Best guess from the environment the agent gives its children. `TINCAN_AGENT` (set by `reason network setup` in the
/// MCP config) wins.
pub fn detect_env() -> Option<&'static str> {
let has = |k: &str| std::env::var_os(k).is_some();
diff --git a/src/claude.rs b/src/claude.rs
index 022fb25..e2bdf64 100644
--- a/src/claude.rs
+++ b/src/claude.rs
@@ -52,7 +52,7 @@ impl ClaudeSession {
}
}
-/// Whether tincan is one of Claude Code's MCP servers here (`reason ask setup` chose Claude Code). Read once: the
+/// Whether tincan is one of Claude Code's MCP servers here (`reason network setup` chose Claude Code). Read once: the
/// daemon restarts after setup.
pub fn wired() -> bool {
static WIRED: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
diff --git a/src/client.rs b/src/client.rs
index 5163f3a..000be13 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1,4 +1,4 @@
-//! Connection to the local daemon, starting it if needed. Long-lived clients (`reason ask mcp`) reconnect on their
+//! Connection to the local daemon, starting it if needed. Long-lived clients (`reason network mcp`) reconnect on their
//! own and re-register their sessions, so a daemon restart is invisible to the agent.
use crate::{ipc, paths, proto::*};
@@ -144,7 +144,7 @@ async fn reconnect(link: Weak<Link>) {
let Some(link) = link.upgrade() else { return };
match link.connect().await {
Ok(_) => return,
- Err(e) => eprintln!("reason ask: reconnecting to daemon: {e:#}"),
+ Err(e) => eprintln!("reason network: reconnecting to daemon: {e:#}"),
}
wait = (wait * 2).min(Duration::from_secs(30));
}
@@ -200,14 +200,14 @@ async fn connect_or_start(start: bool) -> Result<ipc::Stream> {
}
}
}
- // Reaped when it exits, so a long-lived client (`reason ask mcp`) never collects zombies.
+ // Reaped when it exits, so a long-lived client (`reason network mcp`) never collects zombies.
if let Some(mut c) = child {
std::thread::spawn(move || c.wait());
}
connected.ok_or_else(failed)
}
-/// Starts `reason ask daemon` (`--service` with `service`) detached from this process group, logging to
+/// Starts `reason network daemon` (`--service` with `service`) detached from this process group, logging to
/// `~/.tincan/daemon.log`.
pub fn start_daemon(service: bool) -> Result<std::process::Child> {
paths::ensure_home()?;
diff --git a/src/config.rs b/src/config.rs
index ffd757f..5ef9209 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -24,7 +24,7 @@ pub struct Config {
}
/// What happens to messages from teammates' agents: `accept` delivers them, `hold` waits for you to approve
-/// (`reason ask held`), `refuse` bounces them.
+/// (`reason network held`), `refuse` bounces them.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct Inbound {
@@ -65,7 +65,7 @@ impl Default for Inbound {
impl Config {
pub fn load() -> Self {
Self::load_strict().unwrap_or_else(|e| {
- eprintln!("reason ask: ignoring {} (fix or delete it): {e}", paths::config().display());
+ eprintln!("reason network: ignoring {} (fix or delete it): {e}", paths::config().display());
Config::default()
})
}
diff --git a/src/daemon/directory.rs b/src/daemon/directory.rs
index 8731174..4858125 100644
--- a/src/daemon/directory.rs
+++ b/src/daemon/directory.rs
@@ -397,14 +397,14 @@ impl Daemon {
theirs.sort();
theirs.dedup();
if theirs.is_empty() {
- bail!("messages go to agent sessions, and {spec} has none on reason ask right now");
+ bail!("messages go to agent sessions, and {spec} has none on Reason Network right now");
}
bail!("messages go to agent sessions; {spec}'s are: {}", theirs.join(", "));
} else {
self.pick(cands.iter().copied().filter(|c| c.name == spec).collect(), spec, &target)?
};
if targets.is_empty() {
- bail!("nobody matches '{to}' right now; run list_team (or `reason ask who`) to see who is around");
+ bail!("nobody matches '{to}' right now; run list_team (or `reason network who`) to see who is around");
}
Ok(targets)
}
@@ -415,7 +415,7 @@ impl Daemon {
let pool: Vec<&&Cand> = if live.is_empty() { found.iter().collect() } else { live };
match pool.as_slice() {
[] => bail!(
- "no session called '{spec}'. Run list_team (or `reason ask who`) to see who is around (sessions without reason ask can't \
+ "no session called '{spec}'. Run list_team (or `reason network who`) to see who is around (sessions without Reason Network can't \
receive)."
),
[one] => Ok(vec![target(one)]),
diff --git a/src/daemon/mail.rs b/src/daemon/mail.rs
index f8999bc..ad637fb 100644
--- a/src/daemon/mail.rs
+++ b/src/daemon/mail.rs
@@ -25,7 +25,7 @@ const IN_FLIGHT_TTL: Duration = Duration::from_secs(90);
/// How a session on this machine gets a message into its conversation.
enum Channel {
- /// Its `reason ask mcp` posts into Claude Code's session socket.
+ /// Its `reason network mcp` posts into Claude Code's session socket.
ClaudeSocket(u64),
/// The agent's own CLI: `codex queue --thread <id> --message`, `reason session send <id> --message`.
Command(&'static str, Vec<String>),
@@ -64,7 +64,7 @@ impl Inner {
}
}
-const UPGRADE: &str = "update reason (then `reason ask setup`): messages go between agent sessions now";
+const UPGRADE: &str = "update reason (then `reason network setup`): messages go between agent sessions now";
const LOOP_NOTE: &str = "refused: these two agents have exchanged a lot of messages in the last few minutes, which \
looks like a loop. Check with your user before continuing.";
@@ -217,7 +217,7 @@ impl Daemon {
let hook_note = if matches!(l.reg.agent.as_str(), "opencode" | "pi") {
"queued: delivered within seconds once the session is idle"
} else if l.reg.agent == "cli" {
- "queued: it gets it the next time it runs `reason ask listen`"
+ "queued: it gets it the next time it runs `reason network listen`"
} else {
"queued: it sees it at its next tool call or when its turn ends"
};
@@ -460,7 +460,7 @@ impl Daemon {
messages
};
if !messages.is_empty() || tokio::time::Instant::now() >= deadline {
- // A `reason ask listen` session replies with the CLI.
+ // A `reason network listen` session replies with the CLI.
let text = render::for_agent(&messages, agent.as_deref(), agent.as_deref() == Some("cli"));
return Ok(Inbox { messages, text });
}
@@ -512,7 +512,9 @@ impl Drop for Polling<'_> {
}
fn unregistered() -> anyhow::Error {
- anyhow!("this session isn't registered with reason ask; restart the agent session, or use the reason-ask tools")
+ anyhow!(
+ "this session isn't registered with Reason Network; restart the agent session, or use the reason-network tools"
+ )
}
fn is_group(to: &str) -> bool {
diff --git a/src/daemon/mod.rs b/src/daemon/mod.rs
index e0c8a95..e588606 100644
--- a/src/daemon/mod.rs
+++ b/src/daemon/mod.rs
@@ -123,7 +123,7 @@ struct Inner {
struct Live {
reg: SessionReg,
name: String,
- /// The client connection (`reason ask mcp`) that owns it; `None` for sessions known only through hooks.
+ /// The client connection (`reason network mcp`) that owns it; `None` for sessions known only through hooks.
conn: Option<u64>,
git: GitInfo,
doing: Option<String>,
diff --git a/src/daemon/reason.rs b/src/daemon/reason.rs
index 966dedd..70eb4fa 100644
--- a/src/daemon/reason.rs
+++ b/src/daemon/reason.rs
@@ -1,5 +1,5 @@
//! Reason sessions. Reason's agent runs in its cloud, so there is no hook or MCP server here: when `reason` is on
-//! (`reason ask setup`), the daemon lists your live Reason sessions (`reason session list --json`) every few seconds,
+//! (`reason network setup`), the daemon lists your live Reason sessions (`reason session list --json`) every few seconds,
//! and delivers to them with `reason session send`. They reply through the tincan CLI, which runs here.
use super::{Daemon, log};
diff --git a/src/daemon/sessions.rs b/src/daemon/sessions.rs
index 4e260bf..1aeea67 100644
--- a/src/daemon/sessions.rs
+++ b/src/daemon/sessions.rs
@@ -1,4 +1,4 @@
-//! Sessions running on this machine: registered by `reason ask mcp` (a connection), or by hooks (no connection,
+//! Sessions running on this machine: registered by `reason network mcp` (a connection), or by hooks (no connection,
//! kept alive by hook events and the agent's process).
use super::{Daemon, Inner, Live, log};
diff --git a/src/daemon/teamops.rs b/src/daemon/teamops.rs
index fa00aac..b1a9731 100644
--- a/src/daemon/teamops.rs
+++ b/src/daemon/teamops.rs
@@ -175,7 +175,7 @@ impl Daemon {
relay: Option<String>,
) -> Result<TeamInfo> {
if let Some(t) = self.team_state() {
- bail!("already in team '{}'; run `reason ask leave` first", t.name());
+ bail!("already in team '{}'; run `reason network leave` first", t.name());
}
let (name, person) = (name.trim(), util::slug(person));
if name.is_empty() || person.is_empty() {
@@ -212,7 +212,7 @@ impl Daemon {
others.dedup();
if !others.is_empty() {
bail!(
- "already in team '{}' (with {}). To switch, run `reason ask leave`, then join again",
+ "already in team '{}' (with {}). To switch, run `reason network leave`, then join again",
t.name(),
others.join(", ")
);
@@ -284,9 +284,9 @@ impl Daemon {
/// Makes an invite: a code (this machine listens for it until it is used or expires) and the equivalent
/// long ticket (which any teammate's machine can redeem).
pub(super) async fn invite(&self, me: bool, hours: u64) -> Result<InviteInfo> {
- let net = self
- .net()
- .ok_or_else(|| anyhow!("not connected to a team yet (run `reason ask init` or `reason ask join`)"))?;
+ let net = self.net().ok_or_else(|| {
+ anyhow!("not connected to a team yet (run `reason network init` or `reason network join`)")
+ })?;
net.online(Duration::from_secs(5)).await;
let hours = hours.clamp(1, 24 * 30);
let code = invite::generate();
@@ -343,7 +343,7 @@ impl Daemon {
}
let state = {
let mut g = self.inner.lock().unwrap();
- let team = g.team.as_mut().ok_or_else(|| anyhow!("not in a team yet: run `reason ask`"))?;
+ let team = g.team.as_mut().ok_or_else(|| anyhow!("not in a team yet: run `reason network`"))?;
if new || team.link_secret().is_none() {
team.new_link(&self.key);
}
@@ -360,9 +360,9 @@ impl Daemon {
}
pub(super) fn team_info(&self) -> Result<TeamInfo> {
- let team = self
- .team_state()
- .ok_or_else(|| anyhow!("not in a team yet: `reason ask init <team>` or `reason ask join <invite>`"))?;
+ let team = self.team_state().ok_or_else(|| {
+ anyhow!("not in a team yet: `reason network init <team>` or `reason network join <invite>`")
+ })?;
Ok(TeamInfo {
name: team.name().into(),
relay: team.meta.body.relay.clone(),
@@ -433,7 +433,7 @@ impl Daemon {
bail!("'{who}' matches machines of several people; say which: {}", opts.join(", "));
}
if hits.iter().any(|h| h.0 == me) {
- bail!("that includes this machine; use `reason ask leave` instead");
+ bail!("that includes this machine; use `reason network leave` instead");
}
for (id, person, machine) in &hits {
team.put_member(&self.key, *id, person, machine, false);
@@ -451,7 +451,10 @@ impl Daemon {
}
}
let names: Vec<String> = removed.iter().map(|(_, p, m)| format!("{p} on {m}")).collect();
- Ok(format!("Removed {}. The team link changed too (`reason ask link` shows the new one).", names.join(", ")))
+ Ok(format!(
+ "Removed {}. The team link changed too (`reason network link` shows the new one).",
+ names.join(", ")
+ ))
}
pub(super) async fn leave(self: &Arc<Self>, force: bool) -> Result<String> {
@@ -460,7 +463,7 @@ impl Daemon {
if !anyone && !self.peer_ids().is_empty() && !force {
bail!(
"no teammate is online to hear that this machine left. Try again when one is, or use --force (they'll \
- need to `reason ask remove` it then)"
+ need to `reason network remove` it then)"
);
}
let state = {
@@ -509,10 +512,12 @@ impl Daemon {
}
self.restart_soon();
let (now, cmd) = match &url {
- Some(u) => (format!("The team now uses relay {u}, and nothing of n0's."), format!("reason ask relay {u}")),
- None => ("The team now uses n0's public relays.".into(), "reason ask relay default".into()),
+ Some(u) => {
+ (format!("The team now uses relay {u}, and nothing of n0's."), format!("reason network relay {u}"))
+ }
+ None => ("The team now uses n0's public relays.".into(), "reason network relay default".into()),
};
- let mut out = format!("{now} Team links from before stop working: `reason ask link` shows the new one.");
+ let mut out = format!("{now} Team links from before stop working: `reason network link` shows the new one.");
// A machine that is off can't hear about it, and won't find the team where it looks when it's back.
if !away.is_empty() {
out += &format!(
diff --git a/src/hook.rs b/src/hook.rs
index 145b136..5a405da 100644
--- a/src/hook.rs
+++ b/src/hook.rs
@@ -1,4 +1,4 @@
-//! `reason ask hook <agent> <event>`: run by an agent's hook system. Tells the daemon the session is alive (and busy
+//! `reason network hook <agent> <event>`: run by an agent's hook system. Tells the daemon the session is alive (and busy
//! or idle), and prints whatever makes the agent show incoming mail. It never fails loudly: a broken tincan must
//! not break the agent.
@@ -94,7 +94,7 @@ async fn handle(
// Say who it is on tincan once, at session start.
(None, "start", Some(addr)) => {
format!(
- "reason ask: you are {addr}. Teammates' agents can message you; list_team and send_message reach them."
+ "reason network: you are {addr}. Teammates' agents can message you; list_team and send_message reach them."
)
}
_ => return None,
diff --git a/src/main.rs b/src/main.rs
index 30f16a8..e5457bb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,9 +33,9 @@ pub const SITE_URL: &str = match option_env!("TINCAN_SITE_URL") {
_ => "https://larstalian.github.io/tincan",
};
-/// The one line that installs tincan and runs `reason ask <args>`: for macOS and Linux, and for Windows.
+/// The one line that installs tincan and runs `reason network <args>`: for macOS and Linux, and for Windows.
/// The name agents know this by: their MCP server, plugin and extension files, hook names.
-pub const AGENT_NAME: &str = "reason-ask";
+pub const AGENT_NAME: &str = "reason-network";
/// The name the upstream engine wired agents in under; `setup` takes out what this binary put there under it.
pub const LEGACY_NAME: &str = "tincan";
@@ -69,8 +69,8 @@ pub fn join_url(ticket: &str) -> String {
#[command(
name = "reason-network",
version,
- about = "The engine behind `reason ask`: your team's coding agents, talking to each other",
- after_help = "Run `reason ask` on its own to get set up, then to see who's working on what."
+ about = "The engine behind `reason network`: your team's coding agents, talking to each other",
+ after_help = "Run `reason network` on its own to get set up, then to see who's working on what."
)]
struct Cli {
#[command(subcommand)]
@@ -91,7 +91,7 @@ enum Cmd {
},
/// Send a message to an agent session (`person/session`), all of a person's (`person/*`), `repo:<name>` or `*`.
/// It comes from the agent session whose shell runs it, `--from <session>`, or from a plain terminal,
- /// `<you>/terminal` (read replies with `reason ask listen --as terminal`)
+ /// `<you>/terminal` (read replies with `reason network listen --as terminal`)
Send {
to: String,
/// The message; read from stdin when omitted or `-`
@@ -101,7 +101,7 @@ enum Cmd {
/// Don't wake the recipient; it reads this at its next natural pause
#[arg(long)]
fyi: bool,
- /// Send as this agent session here (e.g. one made with `reason ask listen --as <name>`)
+ /// Send as this agent session here (e.g. one made with `reason network listen --as <name>`)
#[arg(long)]
from: Option<String>,
},
@@ -120,7 +120,7 @@ enum Cmd {
/// Don't configure agents or install the background service
#[arg(long)]
no_setup: bool,
- /// Your own iroh relay, from the start (see `reason ask relay`)
+ /// Your own iroh relay, from the start (see `reason network relay`)
#[arg(long)]
relay: Option<String>,
},
@@ -243,7 +243,7 @@ async fn main() -> Result<()> {
std::process::exit(0)
}
Some(cmd) => cli(cmd).await,
- // `reason ask` alone: get set up if needed, else show who's around.
+ // `reason network` alone: get set up if needed, else show who's around.
None => {
let in_team = Link::new(None).call::<TeamInfo>(Request::Team).await.is_ok();
if !in_team && wizard::interactive() {
@@ -251,7 +251,7 @@ async fn main() -> Result<()> {
}
if !in_team {
println!(
- "Not in a team yet. Run `reason ask` in a terminal to get set up (or `reason ask init <team>` / `reason ask join <code>`)."
+ "Not in a team yet. Run `reason network` in a terminal to get set up (or `reason network init <team>` / `reason network join <code>`)."
);
return Ok(());
}
@@ -261,7 +261,7 @@ async fn main() -> Result<()> {
}
/// The agent session this shell belongs to, if it runs inside one.
-/// A session driven from the command line (`reason ask listen --as <id>`, or `terminal` for plain-terminal sends): kept
+/// A session driven from the command line (`reason network listen --as <id>`, or `terminal` for plain-terminal sends): kept
/// alive like a hook-known session, so it stays reachable between commands.
async fn cli_session(link: &std::sync::Arc<Link>, id: &str, event: &str) -> Result<HookReply> {
let req = Request::Hook(HookCall {
@@ -357,7 +357,9 @@ async fn cli(cmd: Cmd) -> Result<()> {
let l: LinkInfo = link.call(Request::Link { new }).await?;
let copied = wizard::interactive() && wizard::copy(&l.url);
println!("Team link for {}{}:\n\n{}\n", l.team, if copied { " (on your clipboard)" } else { "" }, l.url);
- println!("Anyone with it can join: it opens a page with one command. `reason ask link --new` replaces it.");
+ println!(
+ "Anyone with it can join: it opens a page with one command. `reason network link --new` replaces it."
+ );
}
Cmd::Invite { me: false, code: false, .. } => Box::pin(cli(Cmd::Link { new: false })).await?,
Cmd::Setup { dry_run: false, remove: false, no_service: false } if wizard::interactive() => {
@@ -365,7 +367,7 @@ async fn cli(cmd: Cmd) -> Result<()> {
}
Cmd::Init { team, person, no_setup, relay } => {
let Some(team) = team else {
- bail!("name the team: `reason ask init <team>` (or run it in a terminal to be asked)")
+ bail!("name the team: `reason network init <team>` (or run it in a terminal to be asked)")
};
let t: TeamInfo =
link.call(Request::CreateTeam { name: team, person: default_person(person), relay }).await?;
@@ -375,10 +377,10 @@ async fn cli(cmd: Cmd) -> Result<()> {
println!();
setup::run(false, false, false).await?;
}
- println!("\nNext: `reason ask link` prints the team link to send your teammates.");
+ println!("\nNext: `reason network link` prints the team link to send your teammates.");
}
Cmd::Join { invite, person, no_setup } => {
- let Some(invite) = invite else { bail!("give the invite code: `reason ask join <code>`") };
+ let Some(invite) = invite else { bail!("give the invite code: `reason network join <code>`") };
let t: TeamInfo = link.call(Request::Join { ticket: invite, person: default_person(person) }).await?;
wait_exit(daemon_pid()).await;
println!("Joined team {} as {} on {}.", t.name, t.person, t.machine);
@@ -408,13 +410,13 @@ async fn cli(cmd: Cmd) -> Result<()> {
println!("They run this, which installs it and joins the team (the second line on Windows):\n");
println!(" {unix}\n {windows}\n");
println!(
- "(or `reason ask join {}` if they have reason). Works once, within {}h, while this machine is online.",
+ "(or `reason network join {}` if they have reason). Works once, within {}h, while this machine is online.",
i.code, i.hours
);
- println!("If this machine will be offline, use the long form instead: reason ask join {}", i.ticket);
+ println!("If this machine will be offline, use the long form instead: reason network join {}", i.ticket);
if me {
println!(
- "\nFor a cloud agent of yours (Grok Bot, Dots, Muse, …), send it: join my reason ask team as {}: {}",
+ "\nFor a cloud agent of yours (Grok Bot, Dots, Muse, …), send it: join my Reason Network team as {}: {}",
default_person(None),
join_url(&i.ticket)
);
@@ -460,7 +462,7 @@ async fn cli(cmd: Cmd) -> Result<()> {
println!("Nothing held.");
} else {
print!("{}", render::for_human(&msgs));
- println!("`reason ask approve <id>` delivers, `reason ask reject <id>` drops (or --all).");
+ println!("`reason network approve <id>` delivers, `reason network reject <id>` drops (or --all).");
}
}
Cmd::Approve { ids, all } | Cmd::Reject { ids, all } if ids.is_empty() && !all => {
@@ -477,7 +479,7 @@ async fn cli(cmd: Cmd) -> Result<()> {
Cmd::Setup { dry_run, remove, no_service } => setup::run(dry_run, remove, no_service).await?,
Cmd::Doctor => setup::doctor().await?,
Cmd::Upgrade => {
- bail!("the network engine updates with the reason CLI: update reason, then run `reason ask setup`");
+ bail!("the network engine updates with the reason CLI: update reason, then run `reason network setup`");
}
Cmd::Stop => {
if !stop_daemon().await {
diff --git a/src/mcp.rs b/src/mcp.rs
index c854db2..53cb9cf 100644
--- a/src/mcp.rs
+++ b/src/mcp.rs
@@ -1,4 +1,4 @@
-//! `reason ask mcp`: the stdio MCP server an agent spawns. A thin client of the daemon.
+//! `reason network mcp`: the stdio MCP server an agent spawns. A thin client of the daemon.
use crate::{
agent::{self, ClaudeSocket},
@@ -33,7 +33,7 @@ const SKILL: &str = include_str!("../site/skill/SKILL.md");
fn instructions() -> String {
// Windows checkouts may have turned the file's line ends into \r\n.
let rules = SKILL.split_once("## How to behave").map_or(String::new(), |(_, r)| r.trim().replace('\r', ""));
- format!("reason ask connects you with your teammates' coding agents.\n\n{rules}")
+ format!("Reason Network connects you with your teammates' coding agents.\n\n{rules}")
}
#[derive(Debug, Deserialize, JsonSchema)]
@@ -65,7 +65,7 @@ pub struct InboxArgs {
}
#[derive(Clone)]
-pub struct ReasonAskMcp {
+pub struct ReasonNetworkMcp {
link: Arc<Link>,
env_agent: Option<&'static str>,
claude: Option<Arc<ClaudeSocket>>,
@@ -76,12 +76,12 @@ pub struct ReasonAskMcp {
pub async fn run() -> Result<()> {
let (tx, mut events) = mpsc::unbounded_channel();
- let server = ReasonAskMcp {
+ let server = ReasonNetworkMcp {
link: Link::new(Some(tx)),
env_agent: agent::detect_env(),
claude: agent::claude_socket().map(Arc::new),
client_agent: Default::default(),
- tool_router: ReasonAskMcp::tool_router(),
+ tool_router: ReasonNetworkMcp::tool_router(),
};
let service = server.clone().serve(stdio()).await?;
@@ -101,7 +101,7 @@ pub async fn run() -> Result<()> {
if !agent::multiplexed(agent)
&& let Err(e) = s.session(agent, None).await
{
- eprintln!("reason ask: registering session: {e:#}");
+ eprintln!("reason network: registering session: {e:#}");
}
});
@@ -110,7 +110,7 @@ pub async fn run() -> Result<()> {
}
#[tool_router]
-impl ReasonAskMcp {
+impl ReasonNetworkMcp {
#[tool(
description = "List your team's live agent sessions: who, which machine and agent, repo@branch, busy/idle, \
and what each is doing. Use it to find the right recipient.",
@@ -185,7 +185,7 @@ impl ReasonAskMcp {
}
#[tool_handler(router = self.tool_router)]
-impl ServerHandler for ReasonAskMcp {
+impl ServerHandler for ReasonNetworkMcp {
fn get_info(&self) -> ServerConfig {
ServerConfig::new(ServerCapabilities::builder().enable_tools().build())
.with_server_info(Implementation::new(crate::AGENT_NAME, env!("CARGO_PKG_VERSION")))
@@ -206,7 +206,7 @@ impl ServerHandler for ReasonAskMcp {
}
}
-impl ReasonAskMcp {
+impl ReasonNetworkMcp {
/// Whether messages reach this session by being pushed into it: Claude Code, through its inbox.
fn pushed(&self, agent: &str) -> bool {
agent == agent::CLAUDE_CODE && self.claude.is_some()
@@ -291,8 +291,8 @@ impl ReasonAskMcp {
Ok(Ok(())) => {
let _ = self.link.call::<Value>(Request::Delivered { key, ids }).await;
}
- Ok(Err(e)) => eprintln!("reason ask: delivering to Claude Code: {e}"),
- Err(e) => eprintln!("reason ask: delivering to Claude Code: {e}"),
+ Ok(Err(e)) => eprintln!("reason network: delivering to Claude Code: {e}"),
+ Err(e) => eprintln!("reason network: delivering to Claude Code: {e}"),
}
}
}
diff --git a/src/opencode-plugin.ts b/src/opencode-plugin.ts
index 6596daf..e3b1bde 100644
--- a/src/opencode-plugin.ts
+++ b/src/opencode-plugin.ts
@@ -1,5 +1,5 @@
-// reason ask for opencode: written by `reason ask setup`, removed by `reason uninstall`.
-// Reports each session's busy/idle state and what it is doing (its title and todo in progress) to reason ask, and
+// reason network for opencode: written by `reason network setup`, removed by `reason uninstall`.
+// Reports each session's busy/idle state and what it is doing (its title and todo in progress) to reason network, and
// delivers teammates' messages into idle sessions.
import type { Plugin } from "@opencode-ai/plugin"
import { execFile } from "node:child_process"
@@ -11,7 +11,7 @@ const run = (args: string[], cwd: string) =>
execFile(ENGINE, args, { cwd, timeout: 10_000 }, (err, out) => resolve(err ? "" : String(out).trim())),
)
-export const ReasonAsk: Plugin = async ({ client, directory }) => {
+export const ReasonNetwork: Plugin = async ({ client, directory }) => {
const idle = new Set<string>()
const subagents = new Set<string>()
const delivering = new Set<string>()
diff --git a/src/pi-extension.ts b/src/pi-extension.ts
index 9491d49..07b7070 100644
--- a/src/pi-extension.ts
+++ b/src/pi-extension.ts
@@ -1,6 +1,6 @@
-// reason ask for pi: written by `reason ask setup`, removed by `reason uninstall`.
-// Gives each session reason ask's tools (deferred: kept out of the model's context until it looks for them), tells
-// reason ask whether the session is busy and what it is called, and delivers teammates' messages into it.
+// reason network for pi: written by `reason network setup`, removed by `reason uninstall`.
+// Gives each session reason network's tools (deferred: kept out of the model's context until it looks for them), tells
+// reason network whether the session is busy and what it is called, and delivers teammates' messages into it.
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"
import { execFile } from "node:child_process"
@@ -34,7 +34,7 @@ export default function (pi: ExtensionAPI) {
pi.on("session_start", async (_event, ctx) => {
id = ctx.sessionManager.getSessionId()
cwd = ctx.cwd
- pi.registerMcpServer("reason-ask", {
+ pi.registerMcpServer("reason-network", {
command: ENGINE,
args: ["mcp"],
env: { REASON_NETWORK_AGENT: "pi", REASON_NETWORK_SESSION: id },
diff --git a/src/proto.rs b/src/proto.rs
index e5748bf..2699e15 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -1,4 +1,4 @@
-//! The local API between the daemon and its clients (`reason ask mcp`, the CLI, hooks): one JSON object per line
+//! The local API between the daemon and its clients (`reason network mcp`, the CLI, hooks): one JSON object per line
//! over `~/.tincan/tincan.sock`. Requests carry an `id` and get a [`Reply`] with the same id; a connection that
//! registered sessions also receives [`Event`]s for them.
@@ -74,7 +74,7 @@ pub struct HookCall {
/// What the session is doing, from agents that say so themselves (the opencode plugin).
#[serde(default)]
pub doing: Option<String>,
- /// The session's name, for sessions that pick one (`reason ask listen --as`).
+ /// The session's name, for sessions that pick one (`reason network listen --as`).
#[serde(default)]
pub name: Option<String>,
}
@@ -133,7 +133,7 @@ pub enum Request {
key: String,
ids: Vec<String>,
},
- /// An agent hook fired (`reason ask hook`): keeps hook-only sessions alive and returns mail to inject.
+ /// An agent hook fired (`reason network hook`): keeps hook-only sessions alive and returns mail to inject.
Hook(HookCall),
/// For agents whose MCP calls carry no session id (Cursor, opencode): the hook-known session of this agent
/// that is most likely making the call.
@@ -168,7 +168,7 @@ pub enum Request {
who: String,
},
Leave {
- /// Leave even if no teammate is online to hear it (they'll need to `reason ask remove` this machine).
+ /// Leave even if no teammate is online to hear it (they'll need to `reason network remove` this machine).
#[serde(default)]
force: bool,
},
diff --git a/src/render.rs b/src/render.rs
index b9f87df..8dcf056 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -94,7 +94,7 @@ pub fn directory(d: &Directory, agent: bool, paint: Paint) -> String {
let n = unreachable.len();
let _ = writeln!(
out,
- " + {n} session{} without reason ask (can't be messaged)",
+ " + {n} session{} without Reason Network (can't be messaged)",
if n == 1 { "" } else { "s" }
);
}
@@ -150,7 +150,7 @@ impl Layout {
_ => "",
};
let tier = match s.tier {
- Tier::None => paint.on(DIM, "not on reason ask"),
+ Tier::None => paint.on(DIM, "not on Reason Network"),
Tier::Push => paint.on(GREEN, "push"),
Tier::Turn => paint.on(CYAN, "turn"),
t => paint.on(DIM, t.as_str()),
@@ -242,7 +242,7 @@ pub fn for_agent(msgs: &[Message], agent: Option<&str>, cli: bool) -> String {
};
// No tincan tools (Reason's agent; a Claude session from before tincan), but commands run on this computer.
let reply = if cli || agent == Some("reason") {
- format!("Reply if useful: reason ask send {} --from {} \"<reply>\"", last.from, last.to)
+ format!("Reply if useful: reason network send {} --from {} \"<reply>\"", last.from, last.to)
} else {
format!("Reply if useful with send_message to \"{}\".", last.from)
};
@@ -304,7 +304,11 @@ pub fn for_human(msgs: &[Message]) -> String {
pub fn unread_notice(u: &Unread) -> Option<String> {
(u.count > 0).then(|| {
let plural = if u.count == 1 { "" } else { "s" };
- format!("[reason ask] {} unread message{plural} from {}. Call check_inbox to read.", u.count, u.from.join(", "))
+ format!(
+ "[reason network] {} unread message{plural} from {}. Call check_inbox to read.",
+ u.count,
+ u.from.join(", ")
+ )
})
}
diff --git a/src/setup.rs b/src/setup.rs
index 2b5e375..77dcec4 100644
--- a/src/setup.rs
+++ b/src/setup.rs
@@ -1,6 +1,6 @@
-//! `reason ask setup`: wires reason ask into every agent on this machine (MCP server, plus hooks where the agent
-//! has them) and installs the daemon as a login service. `reason ask setup --remove` undoes it. Every file it edits
-//! is backed up once, as `<file>.bak-reason`. Also `reason ask doctor`.
+//! `reason network setup`: wires reason network into every agent on this machine (MCP server, plus hooks where the agent
+//! has them) and installs the daemon as a login service. `reason network setup --remove` undoes it. Every file it edits
+//! is backed up once, as `<file>.bak-reason`. Also `reason network doctor`.
//!
//! The upstream engine wired agents in as `tincan`. Each step here also takes out what this binary's path put
//! there under that name, so an update moves an agent over and leaves nothing behind; a separately installed
@@ -128,7 +128,7 @@ fn write_file(path: &Path, content: &str, dry: bool) -> Result<bool> {
}
fn write_json(path: &Path, v: &Value, dry: bool) -> Result<bool> {
- // Removing reason ask from a config that never existed leaves an empty shell: don't create a file for that.
+ // Removing reason network from a config that never existed leaves an empty shell: don't create a file for that.
if !path.exists() && hollow(v) {
return Ok(false);
}
@@ -333,7 +333,7 @@ fn codex(exe: &Path, remove: bool, dry: bool) -> Result<Option<Report>> {
let did = write_json(&hooks_path, &v, dry)?;
r.lines.push(changed(&hooks_path, did));
if did && !remove {
- r.notes.push("Codex asks once to trust reason ask's hooks: choose \"Trust all and continue\".".into());
+ r.notes.push("Codex asks once to trust reason network's hooks: choose \"Trust all and continue\".".into());
}
Ok(Some(r))
}
@@ -410,7 +410,7 @@ fn gemini(exe: &Path, remove: bool, dry: bool) -> Result<Option<Report>> {
let did = write_json(&path, &v, dry)?;
r.lines.push(changed(&path, did));
if did && !remove {
- r.notes.push("Gemini CLI only runs reason ask in trusted folders (`/permissions trust`).".into());
+ r.notes.push("Gemini CLI only runs reason network in trusted folders (`/permissions trust`).".into());
}
Ok(Some(r))
}
@@ -472,7 +472,7 @@ fn opencode(exe: &Path, remove: bool, dry: bool) -> Result<Option<Report>> {
let path = dir.join("opencode.json");
if dir.join("opencode.jsonc").exists() && !path.exists() {
r.notes.push(format!(
- "opencode: you use opencode.jsonc, which reason ask doesn't edit. Add under \"mcp\": \"{AGENT_NAME}\": {{\"type\": \"local\", \"command\": [\"{}\", \"mcp\"], \"environment\": {{\"REASON_NETWORK_AGENT\": \"opencode\"}}}}",
+ "opencode: you use opencode.jsonc, which reason network doesn't edit. Add under \"mcp\": \"{AGENT_NAME}\": {{\"type\": \"local\", \"command\": [\"{}\", \"mcp\"], \"environment\": {{\"REASON_NETWORK_AGENT\": \"opencode\"}}}}",
exe.display()
));
} else {
@@ -508,7 +508,7 @@ fn opencode(exe: &Path, remove: bool, dry: bool) -> Result<Option<Report>> {
// ---- pi ----
-/// One extension does it all: it adds reason ask's MCP server to each session (deferred, so the tools stay out of
+/// One extension does it all: it adds reason network's MCP server to each session (deferred, so the tools stay out of
/// the model's context until it looks for them) and delivers messages.
fn pi(exe: &Path, remove: bool, dry: bool) -> Result<Option<Report>> {
if !pi_home().exists() && agent::find_bin("pi").is_none() {
@@ -719,7 +719,7 @@ async fn service(exe: &Path, remove: bool, dry: bool) -> Result<String> {
}
let home_env = engine_home.map(|h| format!("Environment=\"REASON_NETWORK_HOME={h}\"\n")).unwrap_or_default();
let unit = format!(
- "[Unit]\nDescription=Reason network daemon (reason ask)\n\n[Service]\nExecStart={} daemon --service\nRestart=always\nRestartSec=3\nEnvironment=\"PATH={}\"\n{home_env}StandardError=append:{}\n\n[Install]\nWantedBy=default.target\n",
+ "[Unit]\nDescription=Reason network daemon (reason network)\n\n[Service]\nExecStart={} daemon --service\nRestart=always\nRestartSec=3\nEnvironment=\"PATH={}\"\n{home_env}StandardError=append:{}\n\n[Install]\nWantedBy=default.target\n",
shell_cmd(exe, "").trim_end(),
service_path_env(),
paths::log().display()
@@ -938,7 +938,7 @@ pub struct Applied {
pub service: Option<bool>,
}
-/// Wires reason ask into the `install` agents and out of the `remove` ones; installs (`Some(true)`) or removes
+/// Wires reason network into the `install` agents and out of the `remove` ones; installs (`Some(true)`) or removes
/// (`Some(false)`) the login service.
pub async fn apply(exe: &Path, install: &[&str], remove: &[&str], service: Option<bool>, dry: bool) -> Applied {
let mut out = Applied::default();
@@ -971,7 +971,8 @@ pub async fn apply(exe: &Path, install: &[&str], remove: &[&str], service: Optio
out.service = Some(on);
}
Err(e) => {
- out.notes.push(format!("Not running in the background: {e:#}; reason ask starts it when you use it."));
+ out.notes
+ .push(format!("Not running in the background: {e:#}; reason network starts it when you use it."));
}
}
}
@@ -985,9 +986,9 @@ pub async fn run(dry: bool, remove: bool, no_service: bool) -> Result<()> {
let verb = if dry {
"Would change"
} else if remove {
- "Removing reason ask"
+ "Removing reason network"
} else {
- "Setting up reason ask"
+ "Setting up reason network"
};
println!("{verb} ({}):", crate::util::tilde(&exe.display().to_string()));
if found.is_empty() && !remove {
@@ -1030,18 +1031,18 @@ pub async fn doctor() -> Result<()> {
}
if others > 0 && online == 0 {
println!(
- " ! no teammate connected: check your internet, or that their machines are on (`reason ask doctor` there)"
+ " ! no teammate connected: check your internet, or that their machines are on (`reason network doctor` there)"
);
// Nothing tells a machine that was off when the team changed relays where the team went.
println!(
- " ! if the team changed relays while this machine was off, set the same one here: `reason ask relay <url>`"
+ " ! if the team changed relays while this machine was off, set the same one here: `reason network relay <url>`"
);
- println!(" (or `default` for n0's); `reason ask team` on a teammate's machine shows which");
+ println!(" (or `default` for n0's); `reason network team` on a teammate's machine shows which");
}
}
Err(e) if e.to_string().contains("not in a team") => {
println!("✓ daemon running");
- println!("- not in a team yet: run `reason ask`");
+ println!("- not in a team yet: run `reason network`");
}
Err(e) => println!("✗ daemon: {e:#}"),
}
@@ -1049,13 +1050,13 @@ pub async fn doctor() -> Result<()> {
println!(
"{} login service: {}",
if svc { "✓" } else { "-" },
- if svc { "installed" } else { "not installed (`reason ask setup`)" }
+ if svc { "installed" } else { "not installed (`reason network setup`)" }
);
for f in detect(&exe) {
if f.wired {
println!("✓ {}: wired up", f.name);
} else {
- println!("- {}: installed, not on reason ask (`reason ask setup`)", f.name);
+ println!("- {}: installed, not on Reason Network (`reason network setup`)", f.name);
}
}
Ok(())
diff --git a/src/team.rs b/src/team.rs
index 2d801c8..0263198 100644
--- a/src/team.rs
+++ b/src/team.rs
@@ -62,7 +62,7 @@ pub struct Invite {
/// blake3 of the secret; the secret itself only travels in the ticket.
pub hash: String,
pub expires: i64,
- /// Set for `reason ask invite --me`: only this person can redeem it (adding a machine of their own).
+ /// Set for `reason network invite --me`: only this person can redeem it (adding a machine of their own).
pub person: Option<String>,
pub used_by: Option<EndpointId>,
pub ts: i64,
@@ -71,7 +71,7 @@ pub struct Invite {
pub reusable: bool,
}
-/// The team link's secret, known to every member so any of them can show the link (`reason ask link`).
+/// The team link's secret, known to every member so any of them can show the link (`reason network link`).
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Link {
pub secret: String,
diff --git a/src/tray.rs b/src/tray.rs
index 4d38c02..6a47a22 100644
--- a/src/tray.rs
+++ b/src/tray.rs
@@ -1,4 +1,4 @@
-//! `reason ask tray`: the menu bar icon (macOS). The background service starts it and it exits with the daemon. It
+//! `reason network tray`: the menu bar icon (macOS). The background service starts it and it exits with the daemon. It
//! shows who's around and what their sessions are doing, and the messages waiting for you.
#[cfg(not(target_os = "macos"))]
@@ -151,7 +151,7 @@ mod mac {
Some(t) => items.push(Box::new(info(&format!("{t} · you're {}", v.me)))),
None => {
items.push(Box::new(info("Not in a team yet")));
- items.push(Box::new(info("Run `reason ask` in a terminal to set up")));
+ items.push(Box::new(info("Run `reason network` in a terminal to set up")));
}
}
items.push(Box::new(sep()));
@@ -182,7 +182,7 @@ mod mac {
}
}
if *without > 0 {
- let _ = sub.append(&info(&format!("+ {without} without reason ask")));
+ let _ = sub.append(&info(&format!("+ {without} without Reason Network")));
}
let _ = sub.append(&sep());
let _ = sub.append(&info("Click a session to copy its address"));
@@ -210,7 +210,7 @@ mod mac {
}
}
- /// Hidden for good: `reason ask setup` brings it back.
+ /// Hidden for good: `reason network setup` brings it back.
fn hide() -> ! {
if let Ok(mut cfg) = Config::load_strict() {
cfg.tray = false;
diff --git a/src/wizard.rs b/src/wizard.rs
index 52afad5..ab6b884 100644
--- a/src/wizard.rs
+++ b/src/wizard.rs
@@ -1,4 +1,4 @@
-//! The guided setup: what `reason ask`, `reason ask init`, `reason ask join`, `reason ask invite` and `reason ask setup` do when a person
+//! The guided setup: what `reason network`, `reason network init`, `reason network join`, `reason network invite` and `reason network setup` do when a person
//! runs them in a terminal. Without a terminal (an agent running them), the commands use defaults and flags.
use crate::{
@@ -20,7 +20,7 @@ pub fn interactive() -> bool {
pub async fn guided(f: impl std::future::Future<Output = Result<()>>) -> Result<()> {
match f.await {
Err(e) if e.downcast_ref::<std::io::Error>().is_some_and(|e| e.kind() == std::io::ErrorKind::Interrupted) => {
- let _ = outro_cancel("Stopped. Run `reason ask` to pick up where you left off.");
+ let _ = outro_cancel("Stopped. Run `reason network` to pick up where you left off.");
Ok(())
}
r => r,
@@ -48,18 +48,18 @@ fn ask_name() -> Result<String> {
}
/// Start or join a team. With an invite (a team link, from the installer), it only asks for your name.
-/// `start`: `Some(true)` from `reason ask init`, `Some(false)` from `reason ask join`, `None` to ask.
+/// `start`: `Some(true)` from `reason network init`, `Some(false)` from `reason network join`, `None` to ask.
pub async fn onboard(
start: Option<bool>,
team: Option<String>,
invite: Option<String>,
person: Option<String>,
) -> Result<()> {
- intro(" reason ask ")?;
+ intro(" reason network ")?;
let link = Link::new(None);
if let Ok(t) = link.call::<TeamInfo>(Request::Team).await {
log::info(format!("You're in team {} as {} on {}.", t.name, t.person, t.machine))?;
- outro("`reason ask` shows who's around; `reason ask invite` gives you the team link.")?;
+ outro("`reason network` shows who's around; `reason network invite` gives you the team link.")?;
return Ok(());
}
let mut person = match person {
@@ -188,12 +188,12 @@ pub async fn agents_and_preferences() -> Result<()> {
let found = setup::detect(&exe);
let chosen: Vec<&str> = if found.is_empty() {
log::warning(
- "No coding agents found here (Claude Code, Codex, Cursor, Gemini CLI, Copilot CLI, opencode, pi, Reason). Install one, then run `reason ask setup`.",
+ "No coding agents found here (Claude Code, Codex, Cursor, Gemini CLI, Copilot CLI, opencode, pi, Reason). Install one, then run `reason network setup`.",
)?;
Vec::new()
} else {
let initial: Vec<&str> = found.iter().filter(|f| f.wired).map(|f| f.id).collect();
- let mut pick = multiselect("Which agents should be on reason ask? (space to toggle, enter to confirm)")
+ let mut pick = multiselect("Which agents should be on Reason Network? (space to toggle, enter to confirm)")
.required(false)
.initial_values(initial);
for f in &found {
@@ -201,13 +201,13 @@ pub async fn agents_and_preferences() -> Result<()> {
}
pick.interact()?
};
- let service = confirm("Keep reason ask running in the background, so teammates can always reach you?")
+ let service = confirm("Keep Reason Network running in the background, so teammates can always reach you?")
.initial_value(true)
.interact()?;
let mut cfg = Config::load_strict().map_err(|e| anyhow!("fix {} first: {e}", crate::paths::config().display()))?;
cfg.inbound.default = select("When a teammate's agent messages one of yours")
.item(Policy::Accept, "Deliver it", "recommended")
- .item(Policy::Hold, "Hold it until I approve", "you approve with `reason ask held`")
+ .item(Policy::Hold, "Hold it until I approve", "you approve with `reason network held`")
.initial_value(cfg.inbound.default)
.interact()?;
cfg.share_paths = confirm("Show teammates your full working directories? (otherwise just the folder name)")
@@ -247,7 +247,7 @@ pub async fn show_link(new: bool) -> Result<String> {
};
note(
title,
- "Send it to your friends: one paste and their name, and they're in.\nIt works for everyone until `reason ask link --new`.",
+ "Send it to your friends: one paste and their name, and they're in.\nIt works for everyone until `reason network link --new`.",
)?;
Ok(l.url)
}
@@ -260,7 +260,7 @@ pub async fn show_code(me: bool) -> Result<()> {
note(
format!("Invite code: {}", i.code),
format!(
- "On {who}: {unix}\n(on Windows: {windows})\n(or `reason ask join {}` if reason is there already)\nWorks once, within {}h, while this machine is online.",
+ "On {who}: {unix}\n(on Windows: {windows})\n(or `reason network join {}` if reason is there already)\nWorks once, within {}h, while this machine is online.",
i.code, i.hours
),
)?;
@@ -290,27 +290,27 @@ pub fn copy(text: &str) -> bool {
})
}
-/// `reason ask invite` in a terminal: the team link, or a one-time code for another machine of yours.
+/// `reason network invite` in a terminal: the team link, or a one-time code for another machine of yours.
pub async fn invite() -> Result<()> {
- intro(" reason ask invite ")?;
+ intro(" reason network invite ")?;
let what = select("Who's joining?")
.item(0, "Friends", "the team link, works for everyone")
.item(1, "Another machine of mine", "a one-time code")
.interact()?;
if what == 0 {
let url = show_link(false).await?;
- outro("They'll show up in `reason ask` once they've joined.")?;
+ outro("They'll show up in `reason network` once they've joined.")?;
println!("\n{url}\n");
} else {
show_code(true).await?;
- outro("It'll show up in `reason ask` once it has joined.")?;
+ outro("It'll show up in `reason network` once it has joined.")?;
}
Ok(())
}
-/// `reason ask setup` in a terminal.
+/// `reason network setup` in a terminal.
pub async fn setup_agents() -> Result<()> {
- intro(" reason ask setup ")?;
+ intro(" reason network setup ")?;
agents_and_preferences().await?;
outro("Done.")?;
Ok(())