pub fn machine_spend(
homes: &HarnessHomes,
since_ms: i64,
now_ms: i64,
harnesses: &[String],
sort: &str,
limit: Option<usize>,
) -> ValueExpand description
Every Claude Code and Codex session on this machine with recorded use from since_ms to now, a subagent’s use on
its parent. Sorted by sort: cost (the default) puts priced sessions first, most cost first, then the rest by
tokens; tokens sorts all by tokens. harnesses limits the reading (empty: both); limit keeps the first rows.