Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
export type InitialMessageHandoff = {
message: string;
sessionId: string;
};
export const pendingInitialMessageHandoff = ({
handledSessionId,
loadedSessionId,
loading,
locationState,
routeSurfaceActive,
sessionId,
}: {
handledSessionId: string | null;
loadedSessionId: string | undefined;
loading: boolean;
locationState: unknown;
routeSurfaceActive: boolean;
sessionId: string | undefined;
}): InitialMessageHandoff | null => {
if (!routeSurfaceActive || loading || !sessionId || loadedSessionId !== sessionId) return null;
if (handledSessionId === sessionId) return null;
const message = (locationState as { initialMessage?: unknown } | null)?.initialMessage;
return typeof message === 'string' && message.length > 0 ? { message, sessionId } : null;
};