+0
Daily
+0
Weekly
299
stars
44
forks
0
watchers
3
prs
21
issues
28
releases
README
English · 简体中文 Liyuan (梨园) An RP Agent built on pi, bringing coding agent superpowers to role-playing. 📖 Documentation · 🚀 Releases · 🌐 Website !Liyuan Main Interface --- What is Liyuan? Liyuan (梨园) is a next-generation Role-Play Agent built on top of pi. By reimagining coding agent primitives for creative storytelling and roleplay, Liyuan tackles the chronic limitations of traditional RP frontends—such as context bloat, setting drift, ungrounded hallucination, prompt clutter, and vendor lock-in—delivering an immersive, transparent, and deterministic role-playing experience. --- The RP Paradigm: Coding Agent Primitives Reimagined Liyuan's core architecture translates proven software engineering agent paradigms directly into roleplay mechanics: | Coding Agent Primitive | Liyuan RP Equivalent | Description | |---|---|---| | Workspace / cwd | Isolated Card Space | One directory per character card, isolating assets, sessions, memory, and state | | Code | Story Prose | The narrative text treated as living creative output | | Edit / Patch | In-Place Targeted Revisions | Surgical prose edits and adjustments without regenerating entire paragraphs | | Grep / Search | Text & Lore Retrieval | On-demand search across lorebooks and past chapters without bloating context | | Rewind / Checkpoint | Branch Rollback & Revision | Non-destructive story branching and checkpoint restore for alternate storylines | | Context Compaction | Narrative Compaction (Story Recap) | Summarizing past chapters into faithful story recaps while keeping recent prose pristine | | Cross-Session Memory | Card-Level Memory & Forgetting | Per-card consolidation across sessions with synchronized physical forgetting | | Permission Gate | Narrative Fork Decision Cards | Interactive decision prompts (ask tool) at crucial plot junctures for user choice | | SYSTEM.md / AGENTS.md | Engine Protocols & World Laws | Fully transparent, file-based prompt layers with modular toggles | --- Key Capabilities 1. Advanced Memory Architecture - Pristine Context & Narrative Compaction: The harness deterministically filters intermediate thought processes and noise, compiling lengthy dialogues into coherent story recaps. - Real-Time State Ledger & Cast Roster: A sidecar ledger automatically tracks in-universe time, locations, items, and character presence to prevent setting drift across turns. - On-Demand Lorebook Retrieval: Worldbooks and knowledge bases remain outside the active prompt window until the model explicitly queries them, keeping the context window light and focused. - Card-Level Cross-Session Memory & Physical Forgetting: Session debriefs automatically merge into persistent card memory; deleting a conversation physically triggers true forgetting of associated facts. !Character Profile & Cast Roster 2. High Customizability & Co-Creation - Layered Prompt Architecture: Exposes SYSTEM.md (engine protocol) and AGENTS.md (world rules and character lore) for transparent, file-level
Top issues
#18状态栏可能会卡住不更新,且状态栏没有上下滑动的功能(运行版本 v1.7.0)3 comments · 2026-11-17#25手机端修改连接中的渠道配置模型清单时无法滑动到最下端的保存按钮0 comments · 2026-11-27#24[功能建议] 支持对话目录导航及带目录的离线 HTML 导出0 comments · 2026-11-25#23角色卡预设 HTML 渲染及暗色模式适配异常 & 页面版本号显示不一致(运行版本 v1.7.1)0 comments · 2026-11-25
Latest release
Liyuan Agent v1.7.1 v1.7.1 2026-11-25Liyuan Agent 1.7.1
新增与改进
- 英文全链路体验补全
- 界面切换为英文后,斜杠命令提示、过程条、状态栏与登场名录、报错提示、桌面端菜单以及内置系统提示词和工具交互均同步切换为英文;未手改过的内置提示词会随语言自动无损切换,中文模式体验保持原样
- 新增 Turbo 模式(完全开放权限)
- 位于「设置 → agent 行为」,开启前需二次确认;开启后完全放开跨目录文件读写、终端命令执行询问与世界书/记忆写入限制,适合在个人设备上追求无打断自动操作时使用
- 模型默认开启原生看图能力
- 连接配置中未单独指定输入能力的模型,默认即可直接识图,无需手动编辑配置文件补写图片能力
- 状态栏与登场名录实用管理
- 状态栏顶部新增「手动更新」按钮,点击即可基于最新一轮剧情立即补跑一次状态刷新
- 登场名录各分节新增「清理非活跃」一键按钮与单条「合并」功能,方便快速整理重复或过期的角色、地点与事件条目
修复
- 修复引擎强行干预叙事语言的问题,移除内置语言强制要求与自动纠偏,正文与前情摘要统一顺应当前对话、角色卡与预设本身的语言
- 修复部分角色卡加载提示词模板脚本时误报「提示词模板未安装」的问题,并支持相关模板设置跨刷新保存
- 修复状态栏条目较多时无法上下滑动(桌面端与手机端),以及长对话下状态栏偶发卡住停更的问题