Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Router: keep lookup nudges to short follow-ups
Lin (kwant bot)d309491332e3
diff --git a/src/router/team.rs b/src/router/team.rsindex b16d4fc3..d5bd8b8a 100644--- a/src/router/team.rs+++ b/src/router/team.rs@@ -742,8 +742,12 @@ fn settles_without_discussion(prompt: &str, pick: &Option<Pick<'_>>, members: &[fn is_lookup_nudge(prompt: &str) -> bool {const LOOKUP: &[&str] = &["check", "checking", "look", "lookup", "research", "search", "google", "find", "read", "visit"];const BACK: &[&str] = &["question", "questions", "yourself", "yourselves", "site", "website", "page", "docs"];+ // Other asks in the same message ("design it, write the copy, and check the docs", "…and discuss") are real work+ const WORK: &[&str] = &["discuss", "propose", "design", "write", "create", "build", "draft", "launch", "decide", "summarize"];let words = tokens(prompt);!is_complex_query(prompt)+ && words.len() <= 12+ && !words.iter().any(|w| WORK.contains(&w.as_str()))&& words.iter().any(|w| LOOKUP.contains(&w.as_str()))&& words.iter().any(|w| BACK.contains(&w.as_str()))}@@ -1096,6 +1100,20 @@ mod tests {assert!(matches!(plan, TeamDecision::Discuss { .. }));}+ #[test]+ fn a_lookup_word_inside_real_multi_part_work_still_discusses() {+ let (team, members) = make_test_fixture();+ let sure = json!({"answers": {"team_decision": {"choice": "discuss", "probabilities": {"discuss": 0.9}}, "lead_kwant": {"choice": "kwant-1"}}});+ for p in [+ "Should we use Postgres or SQLite? Check the docs and discuss",+ "Look at our site and propose a new onboarding flow",+ "Launch the new pricing page: design it, write the copy, and check the docs",+ ] {+ let d = parse_laya_team_answers(p, &sure, &team, &members).unwrap();+ assert!(matches!(d, TeamDecision::Discuss { .. }), "{p}");+ }+ }+#[test]fn test_parse_laya_team_answers_json() {let (team, members) = make_test_fixture();