Subagents: task tool (explore on cheap model, general), child sessions, usage roll-up, stats
This commit is contained in:
1 parent
6b980591ed
commit
359a5058d7
14 files changed
+525
-2
No files matched your search
@@ -166,6 +166,12 @@ fn outcome(name: &str, content: &str, err: bool) -> String {
|
||||
.rsplit_once('(')
|
||||
.map_or("ok".into(), |(_, r)| r.trim_end_matches(')').to_string()),
|
||||
"read" => format!("{} lines", content.lines().count()),
|
||||
// `[task explore · 12 tool calls · 41k tok · 38s]` is the last line of a task result
|
||||
"task" => content
|
||||
.lines()
|
||||
.last()
|
||||
.and_then(|l| l.strip_prefix("[task ")?.strip_suffix(']'))
|
||||
.map_or("ok".into(), str::to_string),
|
||||
_ => "ok".into(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user