Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps<{ locale: string }>()
const isZh = computed(() => props.locale === 'zh-CN')
const shot = (name: string) => `/readme/${name}`
const copy = computed(() =>
isZh.value
? {
stories: [
{
eyebrow: '独立工作台',
title: '不依附 IDE,\n也不挤在终端里。',
body: '项目、会话、评审、预览和 Agent 都在同一个桌面空间里长期存在。',
image: shot('chat_zh.webp'),
alt: '持久会话',
},
{
eyebrow: '插件驱动',
title: 'Core 只是底座。\n工作台由你组装。',
body: '面板、视图、Widget、Tool、MCP、主题与后台服务,都可以插件化。',
image: shot('plugins_zh.webp'),
alt: '插件市场',
},
{
eyebrow: 'Agent 编排',
title: '一个 Agent 不够,\n就拆开做。',
body: 'Subagent 处理独立任务,Worker Session 承接更长的工作流,并行推进。',
image: shot('session-orchestrator-overview.webp'),
alt: '多智能体编排',
},
{
eyebrow: '模型自由',
title: '模型是零件。\n工作流是你的。',
body: '云端、本地、自建网关、兼容 API。随时切换,不必重搭流程。',
image: shot('model_zh.webp'),
alt: '模型切换',
},
],
modes: [
{ label: 'Agent', text: '直接执行。适合日常开发。' },
{ label: 'Plan', text: '先审方案。适合重构与高风险变更。' },
{ label: 'Goal', text: '锁定结果。适合复杂长任务。' },
],
modesTitle: '三种节奏,\n同一种工作台。',
galleryTitle: '看见它如何工作。',
gallery: [
{ src: shot('session-orchestrator-overview.webp'), alt: 'Session Orchestrator' },
{ src: shot('session-orchestrator-worker.webp'), alt: 'Worker Session' },
{ src: shot('addmodel_zh.webp'), alt: '自定义供应商' },
{ src: shot('chat_zh.webp'), alt: '持久会话' },
],
localTitle: '本地优先。',
localBody: '项目、会话、设置默认留在本地。无强制账号,无强制中转。凭据进系统钥匙串,模型请求直达你的供应商。',
stepsTitle: '四步开始。',
steps: ['下载安装', '连接模型', '打开项目', '开始工作'],
ctaTitle: '把 Agent\n放进工作台。',
ctaBody: 'macOS · Windows · Linux',
download: '立即下载',
docs: '使用文档',
downloadHref: 'https://github.com/vastsa/PI-Desktop/releases/latest',
docsHref: '/zh-CN/guide/',
}
: {
stories: [
{
eyebrow: 'Independent workspace',
title: 'Not another tab.\nNot another IDE plugin.',
body: 'Projects, sessions, reviews, previews, and agents live in one persistent desktop space.',
image: shot('chat_en.webp'),
alt: 'Persistent sessions',
},
{
eyebrow: 'Plugin-powered',
title: 'The Core is the base.\nYou assemble the rest.',
body: 'Panels, views, widgets, tools, MCP servers, themes, and services — all pluggable.',
image: shot('plugins_en.webp'),
alt: 'Plugin market',
},
{
eyebrow: 'Agent orchestration',
title: 'One agent\nis not enough.',
body: 'Subagents take independent work. Worker Sessions carry longer flows in parallel.',
image: shot('session-orchestrator-overview.webp'),
alt: 'Multi-agent orchestration',
},
{
eyebrow: 'Model freedom',
title: 'Models are parts.\nThe workflow is yours.',
body: 'Cloud, local, custom gateways, compatible APIs. Swap models without rebuilding.',
image: shot('model_en.webp'),
alt: 'Model switching',
},
],
modes: [
{ label: 'Agent', text: 'Just execute. For everyday development.' },
{ label: 'Plan', text: 'Review first. For refactors and high-risk changes.' },
{ label: 'Goal', text: 'Lock the outcome. For complex, long-running work.' },
],
modesTitle: 'Three rhythms.\nOne workspace.',
galleryTitle: 'See it work.',
gallery: [
{ src: shot('session-orchestrator-overview.webp'), alt: 'Session Orchestrator' },
{ src: shot('session-orchestrator-worker.webp'), alt: 'Worker Session' },
{ src: shot('addmodel_en.webp'), alt: 'Custom providers' },
{ src: shot('chat_en.webp'), alt: 'Persistent sessions' },
],
localTitle: 'Local-first.',
localBody:
'Projects, sessions, and settings stay local by default. No mandatory account. No mandatory relay. Credentials live in the OS keychain. Model requests go straight to your provider.',
stepsTitle: 'Four steps.',
steps: ['Download', 'Connect a model', 'Open a project', 'Start working'],
ctaTitle: 'Put agents\nin a workspace.',
ctaBody: 'macOS · Windows · Linux',
download: 'Download',
docs: 'Documentation',
downloadHref: 'https://github.com/vastsa/PI-Desktop/releases/latest',
docsHref: '/guide/',
}
)
</script>
<template>
<div class="launch">
<section
v-for="(story, index) in copy.stories"
:key="story.eyebrow"
class="story"
:class="index % 2 === 1 ? 'story--flip' : ''"
>
<div class="story__copy">
<p class="story__eyebrow">{{ story.eyebrow }}</p>
<h2 class="story__title">
<template v-for="(line, i) in story.title.split('\n')" :key="i">
<span>{{ line }}</span>
</template>
</h2>
<p class="story__body">{{ story.body }}</p>
</div>
<div class="story__visual">
<img :src="story.image" :alt="story.alt" loading="lazy" decoding="async" />
</div>
</section>
<section class="modes">
<h2 class="modes__title">
<template v-for="(line, i) in copy.modesTitle.split('\n')" :key="i">
<span>{{ line }}</span>
</template>
</h2>
<div class="modes__list">
<article v-for="mode in copy.modes" :key="mode.label" class="mode">
<h3>{{ mode.label }}</h3>
<p>{{ mode.text }}</p>
</article>
</div>
</section>
<section class="gallery">
<h2 class="gallery__title">{{ copy.galleryTitle }}</h2>
<div class="gallery__rail">
<figure v-for="item in copy.gallery" :key="item.src" class="gallery__item">
<img :src="item.src" :alt="item.alt" loading="lazy" decoding="async" />
</figure>
</div>
</section>
<section class="local">
<h2 class="local__title">{{ copy.localTitle }}</h2>
<p class="local__body">{{ copy.localBody }}</p>
</section>
<section class="steps">
<h2 class="steps__title">{{ copy.stepsTitle }}</h2>
<ol class="steps__list">
<li v-for="(step, index) in copy.steps" :key="step">
<span class="steps__index">{{ String(index + 1).padStart(2, '0') }}</span>
<span class="steps__label">{{ step }}</span>
</li>
</ol>
</section>
<section class="finale">
<h2 class="finale__title">
<template v-for="(line, i) in copy.ctaTitle.split('\n')" :key="i">
<span>{{ line }}</span>
</template>
</h2>
<p class="finale__body">{{ copy.ctaBody }}</p>
<div class="finale__actions">
<a class="pill pill--solid" :href="copy.downloadHref">{{ copy.download }}</a>
<a class="pill pill--ghost" :href="copy.docsHref">{{ copy.docs }}</a>
</div>
</section>
</div>
</template>