Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
import { basename, dirname } from "node:path";
/** A signed macOS bundle starts the same core directly, without an interpreter shell. */
export function runnerAppContents(executable: string, platform: string) {
const macos = dirname(executable);
const contents = dirname(macos);
return platform === "darwin" &&
basename(macos) === "MacOS" &&
basename(contents) === "Contents" &&
dirname(contents).endsWith(".app")
? contents
: undefined;
}