Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat: approve tool requests automatically for new bots

leepokaifc5ed036d600
diff --git a/apps/linux/src/compose.rs b/apps/linux/src/compose.rs
index c4b75a18..1f12905f 100644
--- a/apps/linux/src/compose.rs
+++ b/apps/linux/src/compose.rs
@@ -391,7 +391,7 @@ fn create(ui: &App) {
let backends = st.hello["backends"].as_array().cloned().unwrap_or_default();
let n = uuid::Uuid::new_v4().as_u128() as usize;
json!({
- "name": name, "description": "", "permission": "ask", "model": null, "command": null,
+ "name": name, "description": "", "permission": "auto", "model": null, "command": null,
"cwd": "",
"avatarShape": avatar::SHAPES[n % avatar::SHAPES.len()],
"avatarColor": avatar::COLORS[(n / 8) % avatar::COLORS.len()].0,
diff --git a/apps/linux/src/dialogs.rs b/apps/linux/src/dialogs.rs
index 47e942e8..d673a948 100644
--- a/apps/linux/src/dialogs.rs
+++ b/apps/linux/src/dialogs.rs
@@ -37,7 +37,7 @@ pub fn editor(ui: &App, bot: Option<Value>) {
let d = Rc::new(RefCell::new(bot.clone().unwrap_or_else(|| {
let n = client_seed();
json!({
- "name": "", "description": "", "permission": "ask", "model": null, "command": null, "cwd": "",
+ "name": "", "description": "", "permission": "auto", "model": null, "command": null, "cwd": "",
"avatarShape": avatar::SHAPES[n % avatar::SHAPES.len()],
"avatarColor": avatar::COLORS[n % avatar::COLORS.len()].0,
"backend": backends.iter().find(|b| b["available"] == true).and_then(|b| b["id"].as_str()).unwrap_or("claude"),
diff --git a/host/src/chat/team.rs b/host/src/chat/team.rs
index 3e5d1c59..92ff755c 100644
--- a/host/src/chat/team.rs
+++ b/host/src/chat/team.rs
@@ -307,7 +307,7 @@ mod tests {
let cfg: BotConfig = serde_json::from_value(json!({
"id": id, "name": id, "backend": "fixture", "cwd": cwd,
"command": format!("python3 -u '{}'", agent.display().to_string().replace('\'', "'\\''")),
- "notify": false,
+ "notify": false, "permission": "ask",
}))
.unwrap();
store.save_bot(&cfg).unwrap();
diff --git a/host/src/store.rs b/host/src/store.rs
index 1b9071de..c3696162 100644
--- a/host/src/store.rs
+++ b/host/src/store.rs
@@ -19,9 +19,9 @@ use std::sync::Mutex;
#[serde(rename_all = "lowercase")]
pub enum Permission {
/// Every request becomes an approval card on the phone.
- #[default]
Ask,
- /// Requests are approved once, automatically.
+ /// Requests are approved once, automatically. New bots start here.
+ #[default]
Auto,
}
diff --git a/host/src/tui/app.rs b/host/src/tui/app.rs
index 35aec245..a7dda13f 100644
--- a/host/src/tui/app.rs
+++ b/host/src/tui/app.rs
@@ -2215,7 +2215,7 @@ impl App {
backend,
model: Editor::default(),
cwd: String::new(),
- auto: false,
+ auto: true,
notify: true,
computer: false,
color: (n * 7) % COLORS.len(),
diff --git a/kit/Sources/CodyncKit/Models/Models.swift b/kit/Sources/CodyncKit/Models/Models.swift
index dfb9c3e4..9766ee16 100644
--- a/kit/Sources/CodyncKit/Models/Models.swift
+++ b/kit/Sources/CodyncKit/Models/Models.swift
@@ -457,7 +457,7 @@ public struct BotDraft: Codable, Hashable, Sendable {
public init(name: String = "", description: String = "", avatarColor: String = AvatarPalette.colors.randomElement()!.id,
avatarShape: String = AvatarPalette.shapes.randomElement()!, backend: String = "claude", cwd: String = "",
- permission: String = "ask") {
+ permission: String = "auto") {
self.name = name
self.description = description
self.avatarColor = avatarColor
@@ -506,7 +506,7 @@ extension Bot {
command = try c.decodeIfPresent(String.self, forKey: .command)
cwd = try c.decodeIfPresent(String.self, forKey: .cwd) ?? ""
managedWorkspace = try c.decodeIfPresent(Bool.self, forKey: .managedWorkspace) ?? false
- permission = try c.decodeIfPresent(String.self, forKey: .permission) ?? "ask"
+ permission = try c.decodeIfPresent(String.self, forKey: .permission) ?? "auto"
model = try c.decodeIfPresent(String.self, forKey: .model)
pinned = try c.decodeIfPresent(Bool.self, forKey: .pinned) ?? false
hidden = try c.decodeIfPresent(Bool.self, forKey: .hidden) ?? false