Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
import { useEffect, useState } from "react";
// Renderer-sized copies of the brand marks. The 1024px masters in build/ are
// installer icons for electron-builder; BrandLogo never renders above 64px.
import brandLogoUrlLight from "../assets/brand/logo-light.png";
import brandLogoUrlDark from "../assets/brand/logo-dark.png";
export function BrandLogo({ size = 16 }: { size?: number }) {
const [dark, setDark] = useState(() => document.documentElement.dataset.theme !== "light");
useEffect(() => {
const el = document.documentElement;
const observer = new MutationObserver(() => {
setDark(el.dataset.theme !== "light");
});
observer.observe(el, { attributes: true, attributeFilter: ["data-theme"] });
return () => observer.disconnect();
}, []);
return (
<img
className="brand-logo"
src={dark ? brandLogoUrlDark : brandLogoUrlLight}
alt=""
aria-hidden="true"
width={size}
height={size}
draggable={false}
/>
);
}