EN | Aivatar is a local-first desktop companion for AI coding agents. Your pixel companion lives across a customizable main room, Card Room, and Hilltop Park while reacting to Codex, Claude Code, opencode, Tencent WorkBuddy, or a custom local agent bridge.
中文 | Aivatar 是一个本地优先的 AI 编程智能体桌面伙伴。像素小伙伴会生活在可装修的主房间、纸牌屋和山顶公园中,并对 Codex、Claude Code、opencode、腾讯 WorkBuddy 或自定义本地 agent 桥接的实时状态作出反应。
Download macOS DMG 0.4.1 · Download Windows EXE 0.4.1 · Download Windows MSI 0.4.1 · Release 0.4.1
EN
- Hilltop Park now has deterministic weekly rain: exactly two rainy days per local week, randomized 10-minute to 6-hour events, natural cloud gathering/clearing, and minimum clear gaps between storms.
- Rain intensity transitions smoothly through sprinkle, light, moderate, heavy, and storm stages, with duration floors for stronger stages so natural weather no longer flickers rapidly.
- Weather visuals include full-sky storm clouds, sea/cliff haze, night-aware rain colors, pond ripples, and grass splashes that scale continuously with rain intensity.
- Layered rain ambience crossfades without abrupt audio gaps; storm stages add separated near, medium, and distant thunder candidates.
- Cached rain sprites, deterministic particle seeds, cropped splash buffers, and bounded surface updates preserve the accepted look while substantially reducing storm render cost.
- Autonomous cooking now blocks unrelated Coffee Machine brewing until cooking finishes; Oil Easel/bed-foot occlusion, cliff-fog coverage, fish localization, and Cute Crayfish fishing grip have also been corrected.
- Cute Crayfish uses both of its own claws to hold the rod at a chest-level grip during casting instead of rendering a duplicate claw or stretched arm.
- Internal Debug controls remain available for focused source QA but are hidden in normal release builds.
中文
- 山顶公园加入确定性的每周天气:每个本地自然周恰有两个下雨日,单场雨随机持续 10 分钟至 6 小时,并包含自然的乌云聚集、放晴过程和雨间晴天间隔。
- 雨量会在零星、小雨、中雨、大雨和暴雨之间平滑过渡;中雨、大雨和暴雨具有最低持续时间,避免自然天气频繁闪变。
- 天气画面加入覆盖完整天空的乌云、悬崖下海面朦胧、夜间适配的雨线颜色,以及随雨量连续变化的池塘波纹和草地水花。
- 分层雨声音效可平滑交叉切换;暴雨阶段会以明确间隔随机播放近、中、远三种距离的雷声。
- 通过缓存雨线 sprite、预生成粒子种子、裁剪水花缓冲区和限制水面刷新频率,在不改变确认视觉的前提下显著降低暴雨渲染开销。
- 自主烹饪期间不会再转去启动咖啡机;同时修复了画架与床尾遮挡、悬崖雾气覆盖、鱼类汉化,以及可爱龙虾的钓鱼握杆动作。
- 可爱龙虾甩杆时会在胸前使用自身两只钳子握杆,不再额外绘制重复钳子或异常拉长手臂。
- 正式发布版继续隐藏内部 Debug 控件,同时保留源码中的专项 QA 能力。
EN | These GIFs show the core room and Card Room experience introduced in 0.3.0, including companion routines, room visits, live status, and everyday work/life moments.
中文 | 以下 GIF 展示 0.3.0 引入的主房间与纸牌屋核心体验,包括小伙伴日常、串门、实时状态,以及工作和生活场景。
EN: Companions sit down for Hold'em in the new side room with cards, chips, and room-specific controls.
中文: 小伙伴们在新的侧房间里围桌打德州扑克,展示纸牌、筹码和独立的纸牌屋玩法。
EN: The companion keeps a cozy room routine while status and growth details update around the room.
中文: 小伙伴在温暖的主房间里活动,状态和成长信息随着日常行为更新。
EN: Room materials, furniture, and companion stats make each save slot feel personal.
中文: 房间材质、家具摆设和小伙伴状态让每个存档都有自己的生活感。
EN: A focused room view keeps the companion scene readable in a smaller frame.
中文: 紧凑视图让小伙伴房间在较小画面里依然清晰可读。
EN: Companions can visit each other, chat, and share small social moments between rooms.
中文: 小伙伴可以互相串门、聊天,并在不同房间之间产生轻量社交互动。
EN: The room remains useful even while idle, with visible character state and save-slot context.
中文: 即使处于待机状态,房间也会保留清晰的角色状态和存档上下文。
EN: Guest and host companions can share short generated or fallback social lines.
中文: 来访和主人小伙伴可以触发简短的生成式或回退式社交对白。
EN: The companion reacts to coding status while the room stays usable as a desktop companion.
中文: 小伙伴会跟随编程状态变化,同时房间仍可作为桌面陪伴空间使用。
EN
- The Windows main room now avoids the native maximize/restore path that could leave the fixed-size room at a stale, odd restore size.
- The desktop shell normalizes the main window size on startup and side-panel resizing, including clearing maximized state before applying the fixed room bounds.
- Tencent WorkBuddy discovery now supports the China mainland home at
%USERPROFILE%\.workbuddywhile continuing to support the international%USERPROFILE%\.workbuddy-aihome. - Both the JavaScript discovery helper and packaged Tauri native discovery scan the mainland and international WorkBuddy homes by default, read only session metadata, and keep token baselines separated by home.
- WorkBuddy discovery smoke coverage now exercises missing, mainland-style, and international-style homes together.
- This patch publishes Windows NSIS EXE and MSI installers for 0.3.2. The macOS universal DMG remains on 0.3.0 until the next macOS build.
中文
- Windows 主房间现在避开原生最大化/还原路径,避免固定尺寸房间在还原后留下异常的旧窗口大小。
- 桌面壳会在启动和右侧面板缩放时重新规范主窗口尺寸,并在应用固定房间边界前先清除最大化状态。
- 腾讯 WorkBuddy 发现现在支持中国大陆版目录
%USERPROFILE%\.workbuddy,同时继续支持国际版%USERPROFILE%\.workbuddy-ai。 - JavaScript 发现脚本和打包后的 Tauri 原生发现都会默认扫描大陆版与国际版 WorkBuddy 目录,只读取会话元数据,并按目录隔离 token baseline。
- WorkBuddy 发现烟测现在会同时覆盖缺失目录、大陆版风格目录和国际版风格目录。
- 本补丁发布 0.3.2 Windows NSIS EXE 和 MSI 安装包;macOS universal DMG 仍暂时沿用 0.3.0,等待下一次 macOS 打包。
EN
- 0.3.0 introduces Card Room, a standalone poker side room with a fixed desktop window size, a casino-style table scene, companion seating, hand controls, and room-specific save/economy state.
- Hold'em play is now backed by stricter rule handling, including blinds, betting rounds, all-in side pots, showdown reveal order, timeout flow, and focused smoke coverage for Card Room rule paths.
- The Card Room economy adds player and companion chip balances, house-bank accounting, debt settlement, owner gifts, chip exchange, and a dedicated Chip Shop.
- Card Room also adds hidden dark-trait growth: greed, foolishness, recklessness, cowardice, arrogance, and coldness can evolve through poker play and shape companion betting behavior without replacing the main-room Growth personality.
- Card Room decor is now a real content surface: upgraded wall materials, floor materials, window assets, poker furniture, and shop filtering let the side room visually evolve independently from the main room.
- Desktop rendering is hardened for the heavier poker scene with cached static room layers and WebAudio-based deal-card sounds to avoid WKWebView short-audio stutter during deal animations.
- Windows 0.3.0 installers were refreshed with Tencent WorkBuddy support: Aivatar can discover local WorkBuddy
workingandcodingsessions, map their live status into avatar bubbles, show context token usage, and settle eligible completions intobits. - This release publishes a new universal macOS DMG, Windows NSIS EXE, and Windows MSI installer for 0.3.0.
中文
- 0.3.0 新增纸牌屋 Card Room:一个独立的扑克侧房间,拥有固定桌面窗口比例、赌场风格牌桌场景、小伙伴入座、手牌操作和独立的房间存档/经济状态。
- 德州扑克流程更接近正式规则:包含盲注、下注轮、all-in 边池、摊牌顺序、叫钟/超时流程,并加入针对纸牌屋规则路径的烟测。
- 纸牌屋经济系统加入玩家与小伙伴筹码余额、房主银行、债务结算、老板赠送、筹码兑换和专用 Chip Shop。
- 纸牌屋还加入隐藏的黑化人格成长:贪婪、愚钝、鲁莽、怯懦、傲慢和冷漠会随打牌过程变化,并影响小伙伴的下注风格,但不会取代主房间的普通 Growth 人格。
- 纸牌屋装修成为独立内容面:升级墙纸、地板、窗户、扑克家具与商店筛选,使侧房间可以独立于主房间演进视觉风格。
- 为更重的扑克场景加固桌面渲染:缓存静态房间层,并把发牌短音效改为 WebAudio 播放,避免 macOS WKWebView 在发牌动画中因短音频连续触发而卡顿。
- Windows 0.3.0 安装包已刷新,加入腾讯 WorkBuddy 支持:Aivatar 可以发现本地 WorkBuddy 的
working与coding会话,把实时状态映射到头像气泡,显示 context token 用量,并将符合条件的完成会话结算为bits。 - 本版本发布新的 0.3.0 macOS universal DMG、Windows NSIS EXE 和 Windows MSI 安装包。
EN
- 0.2.3 focuses on desktop stability: shop buy buttons now debounce rapid clicks, long press buys up to 10 repeatable items, and DOM-level smoke coverage verifies the purchase path remains responsive.
- Rendering and runtime resilience are tighter, with stable canvas backing-store sizing, cached placed-item render passes, and a React error boundary fallback.
- Local bridge security is hardened with explicit CSP plus Origin/CORS checks for HTTP and WebSocket status traffic.
- Desktop launches now use a single-instance guard so repeat launches focus the existing window instead of leaving extra WebView processes alive.
- New companion appearances and room polish: Little Octopus, Rush Spark, Mood Slime, Red Crayfish, Cute Ghost, Cute Penguin, Green Lizard, richer furniture/floor/window materials, the Starship console UI skin, bundled Antonio/Smiley Sans fonts, and quieter sleep snore audio.
- Broader AI agent support for Codex Desktop, Codex CLI, Claude Code, opencode, scheduled CLI tasks, custom local status sources, and Codex 5-hour/weekly token-limit HUD readouts.
- Room Visit now supports autonomous visits, pair affinity, shared activities, and generated guest/host social dialogue through the local bridge with safe heuristic fallbacks.
- Task Cabinet/File Cabinet polish adds deeper visible cabinet-top sprite depth, expanded top placement area, and a larger lower collision footprint for better room editing and pathing.
中文
- 0.2.3 重点加固桌面稳定性:商店购买按钮现在会抑制快速连点,长按可一次购买最多 10 个可重复物品,并新增 DOM 级烟测确认购买路径保持响应。
- 渲染和运行时韧性进一步增强:稳定 canvas backing store 尺寸、缓存摆放物渲染分类/排序,并增加 React Error Boundary 兜底。
- 本地桥接安全加固:显式 CSP,并对 HTTP/WebSocket 状态流量做 Origin/CORS 校验。
- 桌面启动加入 single-instance 防护,重复启动会聚焦已有窗口,不再留下额外 WebView 进程。
- 新增并打磨多个角色与房间视觉:小章鱼、急急 Spark、心情史莱姆、红色小龙虾、半透明小幽灵、可爱小企鹅、绿色小蜥蜴,以及更丰富的家具/地板/窗景材质、Starship 控制台主题、内置 Antonio/Smiley Sans 字体和更安静的睡眠呼噜音效。
- 扩展 AI agent 工作流:Codex Desktop、Codex CLI、Claude Code、opencode、定时 CLI 任务、自定义本地状态源,以及 Codex 5 小时/每周 token 限额 HUD。
- Room Visit 串门支持自动拜访、关系亲密度、共享活动,以及通过本地桥接生成 guest/host 社交对话,并带安全的启发式回退。
- Task Cabinet/File Cabinet 细节升级:文件柜顶部 sprite 视觉纵深加深,顶部可放置面积扩大,脚底碰撞范围加大,房间编辑和路径移动更稳定。
Watch the 30-second vertical demo video / 观看 30 秒竖屏演示
Current status / 当前状态: 0.4.1 is available through GitHub Releases as a universal macOS DMG, Windows NSIS EXE, and Windows MSI installer. These builds are unsigned and intended for GitHub tester distribution while signing, notarization, and release-mode integrations continue to harden.
- User Manual / 用户手册
- UI Showcase / UI 展示
- Developer Manual / 开发者手册
- Agent Status Protocol / Agent 状态协议
- Content Configuration / 内容配置
- Privacy And Local Data / 隐私与本地数据
- Roadmap Notes / 路线图说明
EN
- Shows a cozy pixel room with bedroom, office, kitchen, furniture, windows, wallpaper, floor styles, and placed items.
- Lets you choose from multiple companion appearances when creating a new character room.
- Animates an avatar across behavior states such as idle, exploring, sleeping, interacting, thinking, coding, waiting, error, and success.
- Follows live local agent sessions through a WebSocket bridge, native desktop bridge, and CLI wrappers.
- Tracks multiple sessions by
agent + sessionId, including current, followed, connected, stale, and idle sessions. - Rewards eligible completed Codex or Claude Code sessions with
bitsbased on reported token usage. - Lets you spend
bitson consumables, decor, furniture skins, windows, wall surfaces, floor surfaces, and room items. - Provides local save slots, avatar naming, JSON/folder save import, and local state persistence.
- Includes a Task Cabinet for launching one-off or scheduled markdown prompt tasks through the selected CLI agent.
- Provides a CLI Launcher for starting connected Codex or Claude Code sessions from the desktop app.
- Shows Codex context-window plus 5-hour and weekly token-limit usage in compact HUDs when available.
- Supports Room Visit social dialogue, relationship affinity, and autonomous visits between currently open save-slot rooms.
- Includes an Asset Studio entry point, but it is currently marked as in development.
中文
- 展示一个像素风房间,包含卧室、办公区、厨房、家具、窗户、墙纸、地板和可摆放物品。
- 创建新角色房间时,可从多个小伙伴外观中选择。
- 让小伙伴根据状态执行不同动作,例如闲置、探索、睡觉、互动、思考、编码、等待用户、报错和成功。
- 通过本地 WebSocket 桥接、桌面原生桥接和 CLI 包装脚本实时跟随 agent 会话。
- 按
agent + sessionId跟踪多会话,区分当前、跟随中、已连接、过期和闲置状态。 - 对符合条件的 Codex 或 Claude Code 完成会话,根据上报 token 用量奖励
bits。 - 用
bits购买消耗品、装饰、家具皮肤、窗户、墙面、地板和房间物品。 - 支持本地存档槽、角色命名、JSON/文件夹存档导入和本地状态持久化。
- 提供任务柜,可以把 Markdown prompt 作为一次性或定时任务交给 CLI agent 执行。
- 提供 CLI 启动器,可从桌面应用中启动已连接的 Codex 或 Claude Code 会话。
- 在可用时显示 Codex context window、5 小时和每周 token 限额用量的紧凑 HUD。
- 支持当前打开存档房间之间的 Room Visit 社交对话、关系亲密度和自动串门。
- 包含素材工坊入口,但当前仍标记为开发中,不应视为完整功能。
EN
- Launch Aivatar.
- Choose an existing local save slot, create a new character room, or import an Aivatar save JSON/folder.
- Use the room directly even without Codex or Claude Code installed.
- Interact with furniture and placed items in the canvas.
- Open Inventory, Shop, and Decor panels to use items, buy supplies, apply furniture skins, change wall/floor surfaces, and move windows or furniture.
- Open Agent Sessions to inspect live sessions, follow a session, disconnect one, or clear stale sessions.
- Internal Debug controls are hidden in normal releases and can be re-enabled in source for focused QA builds.
中文
- 启动 Aivatar。
- 选择已有本地存档,创建新的角色房间,或导入 Aivatar 存档 JSON/文件夹。
- 即使没有安装 Codex 或 Claude Code,也可以独立使用房间、背包、商店、装修和存档功能。
- 在画布中点击家具或摆放物品进行互动。
- 打开背包、商店和装修面板,使用物品、购买道具、应用家具皮肤、更换墙面/地板,以及移动窗户或家具。
- 打开 Agent 会话面板查看实时会话、跟随会话、断开会话或清理过期会话。
- 正常发布版会隐藏内部 Debug 控件;需要专项 QA 时可在源码中重新启用。
EN
Aivatar works without an agent, but live companion behavior needs a local status source.
- For a desktop build, the Tauri app can start the local bridge.
- For web preview or development, run
npm.cmd run status:bridge. - Codex Desktop can connect through the bundled Aivatar session connector.
- Codex CLI, Claude Code, and opencode can be launched through connected wrapper scripts when Node.js and the selected CLI are available on
PATH. - Custom tools and agents can post status events through the generic local HTTP/WebSocket bridge.
Connect the current Codex Desktop session:
npm.cmd run aivatar:session:setup
npm.cmd run aivatar:connectDisconnect it:
npm.cmd run aivatar:disconnect中文
Aivatar 不依赖 agent 也能运行,但实时陪伴行为需要一个本地状态来源。
- 桌面版可以由 Tauri 应用启动本地桥接。
- Web 预览或开发时,可以运行
npm.cmd run status:bridge。 - Codex Desktop 可通过仓库内置的 Aivatar session connector 连接。
- 当 Node.js 和对应 CLI 已在
PATH中时,Codex CLI、Claude Code 与 opencode 可通过 connected 包装脚本启动并被 Aivatar 跟随。 - 自定义工具或 agent 也可以通过通用本地 HTTP/WebSocket 桥接发送状态事件。
连接当前 Codex Desktop 会话:
npm.cmd run aivatar:session:setup
npm.cmd run aivatar:connect断开连接:
npm.cmd run aivatar:disconnectMore details / 更多细节: docs/aivatar-session-plugin.md
EN
Task Cabinet lets you register Markdown prompt files and dispatch them through the selected CLI Launcher configuration.
- Only
.mdtask paths are accepted. - Each prompt should stay at or below 24,000 characters.
- Aivatar reads the Markdown file once, creates a temporary prompt copy, and does not write back to the source file.
- Tasks can be run once, rerun, or scheduled.
- Schedule conditions include always, only when idle, and after the previous success.
- A File Cabinet item is part of the in-room dispatch fantasy and can be placed as furniture. The File Cabinet now has a visibly deeper top surface, larger top placement area, and larger lower collision footprint.
中文
任务柜用于登记 Markdown prompt 文件,并通过当前 CLI 启动器配置派发给 agent。
- 只接受
.md任务路径。 - 每个 prompt 建议不超过 24,000 字符。
- Aivatar 只读取 Markdown 文件一次,生成临时 prompt 副本,不会写回源文件。
- 任务可以一次性执行、重新执行或设置排程。
- 排程条件包括永远执行、仅闲置时执行、上次成功后执行。
- File Cabinet 文件柜既是房间家具,也是任务派发的视觉入口。文件柜现在拥有更深的可见顶部、更大的顶部摆放面积和更大的底部碰撞范围。
EN
- Completed supported sessions can grant
bits. bitscan be spent on supplies, decor, surfaces, windows, and furniture skins.- Consumables affect avatar stats such as energy, mood, and hunger.
- Aivatar records recent local memory events, growth level, XP, milestones, and trait changes.
- Session learning is ignored when marked high privacy risk.
中文
- 受支持的完成会话可以奖励
bits。 bits可用于购买道具、装饰、墙面/地板、窗户和家具皮肤。- 消耗品会影响小伙伴的能量、心情、饥饿等状态。
- Aivatar 会在本地记录近期事件、成长等级、XP、里程碑和特质变化。
- 如果 session learning 结果标记为高隐私风险,应用会忽略该学习结果。
EN
- Frontend: React 18, TypeScript, Vite.
- Desktop shell: Tauri 2.
- Native bridge and desktop commands: Rust under
src-tauri. - Local agent helpers: Node.js scripts under
scriptsandplugins/aivatar-session-bridge. - Runtime content: JSON config under
public/config/aivatar.config.json, with TypeScript defaults insrc/data/defaultContent.ts.
中文
- 前端:React 18、TypeScript、Vite。
- 桌面壳:Tauri 2。
- 原生桥接和桌面命令:
src-tauri下的 Rust 代码。 - 本地 agent 辅助脚本:
scripts和plugins/aivatar-session-bridge下的 Node.js 脚本。 - 运行时内容:
public/config/aivatar.config.json,并由src/data/defaultContent.ts提供 TypeScript 默认值。
.
├─ src/
│ ├─ App.tsx # Main React UI and app state
│ ├─ i18n.ts # zh-HK, zh-CN, and English UI text
│ ├─ types.ts # Shared app data and protocol types
│ ├─ data/
│ │ ├─ defaultContent.ts # Built-in room, item, shop, and avatar defaults
│ │ └─ loadContent.ts # Runtime content loading
│ ├─ game/
│ │ ├─ interactions.ts # Placement, hit testing, and room interaction rules
│ │ ├─ renderScene.ts # Pixel canvas rendering
│ │ └─ simulation.ts # Avatar simulation and behavior transitions
│ └─ hooks/useCodexStatus.ts # Bridge connection and status snapshot hook
├─ src-tauri/ # Tauri app, Rust bridge, local commands
├─ scripts/ # CLI wrappers, bridge, status sender, learning worker
├─ plugins/aivatar-session-bridge/ # Bundled Codex Desktop session connector
├─ public/config/aivatar.config.json # Runtime content configuration
├─ public/assets/art/ # Pixel-art asset provenance and sheets
├─ public/audio/ # Audio assets and attribution notes
└─ docs/ # Release and integration docs
EN
Install dependencies:
npm.cmd installUse npm.cmd on Windows if PowerShell blocks npm.ps1.
Run the web UI:
npm.cmd run devRun as a desktop app:
npm.cmd run tauri devBuild:
npm.cmd run build中文
安装依赖:
npm.cmd install如果 Windows PowerShell 阻止 npm.ps1,请使用 npm.cmd。
运行 Web UI:
npm.cmd run dev以桌面应用运行:
npm.cmd run tauri dev构建:
npm.cmd run build| Script | Purpose | 用途 |
|---|---|---|
npm.cmd run dev |
Start Vite web dev server | 启动 Vite Web 开发服务器 |
npm.cmd run tauri dev |
Start Tauri desktop dev app | 启动 Tauri 桌面开发应用 |
npm.cmd run build |
Type-check and build web assets | 类型检查并构建前端资源 |
npm.cmd run status:bridge |
Start local status bridge | 启动本地状态桥接 |
npm.cmd run status:mock |
Start mock status source | 启动模拟状态源 |
npm.cmd run status:send |
Send one status message | 发送单条状态消息 |
npm.cmd run aivatar:run -- <cmd> |
Wrap a command lifecycle | 包装一个命令生命周期 |
npm.cmd run codex:run |
Start Codex through wrapper | 通过包装器启动 Codex |
npm.cmd run claude:run |
Start Claude Code through wrapper | 通过包装器启动 Claude Code |
npm.cmd run codex:connected |
Start connected Codex runner | 启动已连接的 Codex runner |
npm.cmd run claude:connected |
Start connected Claude Code runner | 启动已连接的 Claude Code runner |
npm.cmd run aivatar:connect |
Connect current Codex Desktop session | 连接当前 Codex Desktop 会话 |
npm.cmd run aivatar:disconnect |
Disconnect current session | 断开当前会话 |
EN
Start the bridge:
npm.cmd run status:bridgeSend status updates:
npm.cmd run agent:send -- --agent codex --session codex-demo thinking "Reading project files"
npm.cmd run agent:send -- --agent codex --session codex-demo executing "Applying patch"
npm.cmd run agent:send -- --agent codex --session codex-demo waiting_for_user "Need approval"
npm.cmd run agent:send -- --agent codex --session codex-demo complete "Task finished"Wrap an arbitrary command:
npm.cmd run aivatar:run -- npm.cmd run build
npm.cmd run aivatar:run -- codex
npm.cmd run agent:run -- --agent claude-code -- claude中文
启动桥接:
npm.cmd run status:bridge发送状态更新:
npm.cmd run agent:send -- --agent codex --session codex-demo thinking "Reading project files"
npm.cmd run agent:send -- --agent codex --session codex-demo executing "Applying patch"
npm.cmd run agent:send -- --agent codex --session codex-demo waiting_for_user "Need approval"
npm.cmd run agent:send -- --agent codex --session codex-demo complete "Task finished"包装任意命令:
npm.cmd run aivatar:run -- npm.cmd run build
npm.cmd run aivatar:run -- codex
npm.cmd run agent:run -- --agent claude-code -- claudeEN | Aivatar listens for status snapshots over WebSocket and accepts HTTP status updates through the local bridge.
中文 | Aivatar 通过 WebSocket 接收状态快照,并通过本地桥接的 HTTP 接口接受状态更新。
WebSocket:
ws://127.0.0.1:38987/agent-status
ws://127.0.0.1:38987/codex-status legacy compatibility
HTTP:
POST http://127.0.0.1:38988/agent-status
GET http://127.0.0.1:38988/agent-status
POST http://127.0.0.1:38988/codex-status legacy compatibility
GET http://127.0.0.1:38988/codex-status legacy compatibility
GET http://127.0.0.1:38988/health
{
"agent": "codex | claude-code | aider | cursor | custom",
"sessionId": "optional session id",
"status": "idle | thinking | executing | waiting_for_user | error | complete",
"phase": "optional short phase name",
"task": "optional current task summary",
"summary": "optional short bubble text",
"detail": "optional longer detail",
"progress": 0,
"message": "optional display text",
"severity": "info | warning | error",
"timestamp": "ISO-8601"
}{
"type": "aivatar.status.snapshot",
"currentStatus": {},
"sessions": [],
"activeSessionKey": "optional active agent:sessionId",
"connectedSessionKey": "optional connected agent:sessionId",
"currentSessionKey": "optional current agent:sessionId",
"timestamp": "ISO-8601"
}EN | The bridge keeps the latest status per agent + sessionId and broadcasts session snapshots. Old single-status payloads remain supported for compatibility.
中文 | 桥接会按 agent + sessionId 保存最新状态并广播会话快照。旧版单状态消息仍被兼容。
EN
Aivatar loads runtime content from:
public/config/aivatar.config.json
If loading fails, it falls back to src/data/defaultContent.ts. The content model includes:
- avatar name and sprite reference
- room theme, zones, furniture, windows, wall surfaces, and floor surfaces
- starter inventory and placed items
- item definitions, item prices, effects, unlock levels, placement rules, and furniture skins
- shop inventory and currency
- starter pet stats and wallet
中文
Aivatar 会从以下位置加载运行时内容:
public/config/aivatar.config.json
如果加载失败,会回退到 src/data/defaultContent.ts。内容模型包括:
- avatar 名字和 sprite 引用
- 房间主题、区域、家具、窗户、墙面和地板
- 初始背包和已摆放物品
- 物品定义、价格、效果、解锁等级、摆放规则和家具皮肤
- 商店库存和货币
- 初始宠物状态和钱包
EN
Aivatar is designed around same-machine local integration.
- The bridge listens on
127.0.0.1by default. - Local saves are stored on the user's machine.
- Depending on enabled integrations, Aivatar may read local Codex Desktop session metadata, rollout JSONL activity, Claude Code hook/status payloads, selected Markdown task files, and local save data.
- Task Cabinet reads selected Markdown files into temporary prompt copies and does not write back to source files.
- Operational files may be written under the system temp directory, including bridge state, session helper records, avatar state snapshots, task prompt copies, and learning context digests.
- Review local session files, saves, temp files, and logs before sharing them.
Disable session learning:
$env:AIVATAR_LEARNING_ENABLED = "0"Security reporting: see SECURITY.md.
中文
Aivatar 的集成边界是同一台机器上的本地通信。
- 桥接默认监听
127.0.0.1。 - 本地存档保存在用户机器上。
- 根据启用的集成,Aivatar 可能读取本地 Codex Desktop 会话元数据、rollout JSONL 活动、Claude Code hook/status payload、用户选择的 Markdown 任务文件和本地存档数据。
- 任务柜会把选中的 Markdown 文件读取为临时 prompt 副本,不会写回源文件。
- 运行文件可能写入系统临时目录,包括桥接状态、session helper 记录、avatar 状态快照、任务 prompt 副本和 learning context 摘要。
- 分享本地会话文件、存档、临时文件或日志前,应先自行审查。
关闭 session learning:
$env:AIVATAR_LEARNING_ENABLED = "0"安全问题报告请见 SECURITY.md。
EN | Bundled asset provenance is tracked in ATTRIBUTIONS.md, public/audio/README.md, and public/assets/art/README.md. The current 0.4 series README banner was generated for this repository and saved at docs/assets/aivatar-readme-hero-0.4-hilltop-park.png.
中文 | 内置资源来源记录在 ATTRIBUTIONS.md、public/audio/README.md 和 public/assets/art/README.md。当前 0.4 系列 README 顶部宣传图是为本仓库生成的,保存于 docs/assets/aivatar-readme-hero-0.4-hilltop-park.png。
EN
Current release-prep notes:
- The 0.4.1 release is available through GitHub Releases as a universal macOS
.dmg, Windows NSIS.exe, and Windows MSI installer. The current artifacts are unsigned. - Codex Desktop connector and connected CLI runner scripts are bundled as resources, but connected CLI launch still requires Node.js and the requested agent CLI on
PATH. - Character choices, upgraded room materials, furniture skins, the Starship UI skin, expanded desktop/CLI agent workflows, Room Visit social dialogue, autonomous visits, polished Task Cabinet/File Cabinet interactions, Card Room, Hilltop Park, fishing, directional gas-range cooking, dynamic rain/weather, and the 0.4.1 interaction/rendering fixes are now part of the preview surface.
- Native bridge support exists for local status, Codex Desktop session discovery, Tencent WorkBuddy China mainland/international
working/codingsession discovery, rollout watching, token-usage rewards, Codex token-limit HUD fields, avatar-state snapshots, painting plans, social dialogue, and local heuristic/provider-backed session learning fallbacks. - A fully Rust-native connected runner and provider-backed release-mode learning remain future hardening work.
- Linux packaging remains planned after the desktop integration path is stable.
中文
当前发布准备阶段说明:
- 0.4.1 已通过 GitHub Releases 提供 macOS universal
.dmg、Windows NSIS.exe和 Windows MSI 安装包;当前产物尚未签名。 - Codex Desktop connector 和 connected CLI runner 脚本已作为资源打包,但 connected CLI 启动仍需要 Node.js 和目标 agent CLI 位于
PATH中。 - 多角色选择、升级后的房间材质、家具皮肤、Starship UI 主题、扩展后的桌面/CLI agent 工作流、Room Visit 社交对话/自动串门、打磨后的 Task Cabinet/File Cabinet 交互、纸牌屋 Card Room、山顶公园、钓鱼、四向燃气灶烹饪、动态雨天系统,以及 0.4.1 交互/渲染修复,已经纳入预览体验。
- 本地状态、Codex Desktop 会话发现、腾讯 WorkBuddy 大陆版/国际版
working/coding会话发现、rollout watching、token 用量奖励、Codex token 限额 HUD 字段、avatar-state 快照、绘画计划、社交对话、本地启发式/provider-backed session learning 回退,已有原生桥接预览实现。 - 完全 Rust-native 的 connected runner 和面向发布模式的 provider-backed learning 仍是后续加固工作。
- Linux 打包计划会在桌面集成路径继续稳定后推进。
See LICENSE.








