[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114975":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":13,"starSnapshotCount":13,"syncStatus":15,"lastSyncTime":27,"discoverSource":28},114975,"roam","xiaoshaguabuzai\u002Froam","xiaoshaguabuzai","个人助手智能体，只需登录网页各大智能助手即可使用。","",null,"Kotlin",142,0,102,2,19,7,52.4,false,"main",true,[],"2026-11-13 01:04:44","2026-11-22 20:05:25","# Roam\n\nEnglish | [简体中文](README.zh-CN.md)\n\n> A local-first, **zero model cost** AI agent for Android and desktop.\n> It answers through a free web assistant you already log into (Doubao \u002F Qwen), keeps every memory in local SQLite,\n> and exposes phone capabilities as tools — all in one Compose Multiplatform codebase.\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fxiaoshaguabuzai\u002Froam\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fxiaoshaguabuzai\u002Froam\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Kotlin](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FKotlin-2.2.21-7F52FF?logo=kotlin&logoColor=white)](https:\u002F\u002Fkotlinlang.org)\n[![Compose Multiplatform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCompose%20Multiplatform-1.9.3-4285F4)](https:\u002F\u002Fwww.jetbrains.com\u002Fcompose-multiplatform\u002F)\n[![Platform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Android%20%7C%20Desktop-lightgrey)](#)\n\n---\n\n## Why Roam\n\n- **No subscription, no per-token billing.** The model is a web assistant session you already have; the app never calls a paid API.\n- **Memory that belongs to you.** Raw messages are append-only in SQLite; summaries are derived and can be rebuilt at any time.\n- **One codebase, two platforms.** Compose Multiplatform shares `commonMain` between the Android app and the desktop app.\n- **Phone capabilities as tools.** Clipboard, apps, calendar and notifications are exposed to the agent with explicit permissions.\n- **Built to degrade.** Every free channel can break (risk control, site redesign). Failures fall back to a local stub, never to a frozen session.\n\n## Architecture\n\n```\nAndroid (Compose)  ─┐\n                    ├─ commonMain: AgentRuntime · MemoryEngine · ToolRegistry · UI\nDesktop (Compose)  ─┘        │\n                             ├─ WebViewDriver (Android): in-app WebView → doubao.com\n                             ├─ GatewayDriver (Desktop): HTTP → FreeBridge (Playwright)\n                             └─ SQLite via SQLDelight (AndroidSqliteDriver \u002F JdbcSqliteDriver)\n\nFreeBridge (Node) ── Playwright + persistent profile ── doubao.com\n```\n\nMemory is layered: **L0** raw messages → **L1** segment summaries → **L2** rolling session summary → **L3** extracted facts.\nThe context builder budgets and prioritises these layers instead of replaying the whole conversation every turn.\n\n## Screenshots\n\n| Mobile | Desktop |\n|---|---|\n| ![Mobile](docs\u002Fevidence\u002Fphone-main.png) | ![Desktop](docs\u002Fevidence\u002Fdesktop-real-answer.png) |\n\nThe UI deliberately mirrors DeepSeek Harness: three-pane layout, `#f9fafb` sidebar, `#edf3fe` user bubble,\n`#4176e6` send button. See [docs\u002Fui-spec.md](docs\u002Fui-spec.md) for the full spec and known differences.\n\n## Quick start\n\n### Prerequisites\n\n| Tool | Version | Notes |\n|---|---|---|\n| JDK | 21 | portable build is installed by the setup script |\n| Android SDK | platform 36 | only needed for the Android target |\n| Node.js | 22 | only needed for the desktop bridge |\n| Microsoft Edge | recent | used by Playwright for the desktop channel |\n\n### 1. Toolchain (Windows, one-off)\n\n```powershell\n.\\scripts\\setup-toolchain.ps1 -Persist\n# reopen the terminal afterwards; JAVA_HOME \u002F PATH will point at .tools\n```\n\nThe script installs portable JDK 21, Node 22 and Gradle into `.tools\u002F` (git-ignored) and can write the user environment variables.\n\n### 2. Android\n\n```powershell\n.\\gradlew.bat :composeApp:assembleDebug\nadb install -r composeApp\\build\\outputs\\apk\\debug\\composeApp-debug.apk\n```\n\nOpen **Roam → model chip → 登录**, log in to Doubao once, then chat. The login cookie stays on the device.\n\n### 3. Desktop\n\n```powershell\n.\\gradlew.bat :composeApp:run\n```\n\nClick the model chip → **登录**. Roam starts FreeBridge in visible mode and opens a browser window;\nlog in there once and the chip switches to `豆包网关`.\n\nManual alternative:\n\n```powershell\ncd bridge\nnpm install --registry=https:\u002F\u002Fregistry.npmmirror.com\nnode server.mjs\n```\n\nSee [bridge\u002FREADME.md](bridge\u002FREADME.md) for endpoints and troubleshooting.\n\n## Project layout\n\n```\ncomposeApp\u002F          Compose Multiplatform app (commonMain \u002F androidMain \u002F desktopMain)\n  ├─ core\u002Fmemory     layered memory engine, SQLDelight schema\n  ├─ core\u002Ftool       tool registry, text tool protocol, local intent router\n  ├─ core\u002Fassistant  AssistantDriver abstraction\n  ├─ ui              DSH-style UI, store, memory panel\n  └─ androidMain     WebView driver, phone tools, notification listener\nbridge\u002F              FreeBridge: Playwright gateway for the desktop channel\ndocs\u002F                design, feasibility report, UI spec, ADRs, evidence\nscripts\u002F             portable toolchain and icon generator\n```\n\n## Documentation\n\n| Document | Contents |\n|---|---|\n| [docs\u002Ftechnical-design.md](docs\u002Ftechnical-design.md) | architecture, data model, memory algorithm, roadmap |\n| [docs\u002Ffeasibility-report.md](docs\u002Ffeasibility-report.md) | measured M0 experiments and go\u002Fno-go |\n| [docs\u002Fui-spec.md](docs\u002Fui-spec.md) | DSH-style UI spec and mobile adaptation |\n| [docs\u002Fadr\u002F](docs\u002Fadr) | key decisions (layered memory, free-channel drivers, CMP) |\n\n## Testing\n\n```powershell\n.\\gradlew.bat :composeApp:desktopTest    # 18 unit tests\n.\\gradlew.bat :composeApp:lintDebug      # Android lint (0 errors)\n```\n\nCovered: memory seq\u002Fcompaction\u002Frebuild\u002Fexport, tool protocol parsing, local intent routing.\n\nGitHub Actions runs the same suite plus Android lint and an APK build on every push and pull request (.github\u002Fworkflows\u002Fci.yml). Pushing a \u000b* tag builds and publishes the APK and a Linux desktop bundle (.github\u002Fworkflows\u002Frelease.yml).\n\n## Known limitations\n\n- **Web automation is fragile.** Selectors break when Doubao ships a redesign; answers may include UI leftovers.\n- **No Markdown rendering yet.** Code blocks and lists are shown as plain text.\n- **One Doubao conversation per app launch.** Session binding is on the roadmap.\n- **Calendar \u002F notifications need permissions.** Calendar asks at startup; notifications require “notification access” in system settings.\n- **Desktop needs a browser session.** The bridge profile (`bridge\u002F.profile`) must be logged in once.\n\n## Roadmap\n\n- [x] M0 feasibility: web channel, tool protocol, MCP SDK, memory cost, CMP spike\n- [x] M1: CMP shell, SQLDelight memory, Doubao WebView channel, read-only tools\n- [ ] M2: Qwen\u002FTongyi channels, router with circuit breaker, MCP adapter\n- [ ] M3: session binding, Markdown rendering, desktop packaging\n\n## Security & privacy\n\n- Everything is local-first: memory lives in a SQLite file on your device.\n- Login cookies stay in the app's WebView \u002F `bridge\u002F.profile`; both are git-ignored.\n- No paid API keys are used, and no telemetry is sent.\n- Tool calls are audited; sensitive clipboard\u002Fnotification content is a deliberate design surface — review before enabling.\n\n## Disclaimer\n\nRoam is a personal, self-hosted project. Driving a website's UI with automation may violate that site's terms of service;\nuse it only with your own account and at your own risk. The project is not affiliated with ByteDance, Alibaba, DeepSeek or JetBrains.\n\n## License\n\nNot chosen yet. Add the license you want (MIT \u002F Apache-2.0 are common for this kind of project) before distributing.\n","Roam 是一款本地优先的开源AI智能体应用，支持 Android 和桌面平台，通过复用用户已登录的免费网页版AI助手（如豆包、通义千问）提供服务，无需调用付费API。核心特点包括：零模型使用成本、全量对话数据本地SQLite存储、基于Compose Multiplatform的跨平台统一代码库，以及将手机系统能力（剪贴板、日历、通知等）封装为可授权调用的工具。适用于注重隐私、希望规避订阅费用与云端依赖的个人用户，在日常问答、信息整理、轻量自动化等场景中提供可控、可降级的AI交互体验。","2026-11-24 04:49:57","CREATED_QUERY"]