Library / SDK
Playa-0v0/Cyrene-Agent avatar
Playa-0v0/Cyrene-Agent

Cyrene-Agent: a Live2D companion with a replay-proof agent loop

An open-source desktop AI agent built around Cyrene’s persona and powered by the self-developed Cyrene_Harness framework. It combines immersive character chat with practical Agent capabilities for daily tasks, coding assistance, learning, and tools like music and weather.

816 stars105 forksTypeScriptMIT

At a glance

What is it?
Cyrene-Agent is a MIT-licensed Windows desktop companion built on Electron and TypeScript around Cyrene from Honkai: Star Rail, with four conversation modes and an in-house harness that treats a transcript as the source of truth, refuses to replay an unknown side effect, and separates the clock that runs your task from the clock that waits for you.
Who is it for?
Cyrene-Agent is interesting as a reference implementation rather than as a product to adopt, because the harness documentation describes problems most agent frameworks treat as unspecified: what happens to a side effect whose result is unknown, whether an interrupted run can be resumed without replaying an external action, and what the model sees after a compaction boundary. Two things to weigh before installing it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Playa-0v0/Cyrene-Agent816 ★ · +210
Star history
Repository2026-09-192026-11-25
Playa-0v0/Cyrene-Agent606816

210 Stars in the last 67 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Cyrene is a Honkai: Star Rail character, and that shapes everything

The project is built around one character. Cyrene, known as Xilian in the original, is a character from Honkai: Star Rail, and this desktop application exists to put that persona on your desktop as a Live2D companion rather than as a text box. That decision explains most of the engineering. The rendering path uses `pixi-live2d-display` with Cubism Core, supports an always-on-top desktop presence, mouse interaction, idle animation and lip sync, and ties expressions, motions, states, moods and desktop bubbles to the conversation rather than leaving the character static while text scrolls. The application is Electron with TypeScript, the product name is simply Cyrene, and it runs on Windows. Four conversation modes sit on top of that. Chat is character conversation with no tools exposed at all. Work handles general tasks. Code binds a trusted code directory. Learn binds an Obsidian vault. The persona is not decoration over a chatbot, it is the reason the mode split exists, since a roleplay conversation and a tool-using session have almost nothing in common.

Chat mode exposes no tools, and the other three are gated differently

The mode split is a security boundary as much as a product decision. Chat keeps session history, your style and long term memory, and it does not expose any tool, so there is nothing for a model to call by accident. Work is the opposite: a general task session that chains together web search, a browser panel on the right side of the window, file handling, document generation and everyday life services. Code is narrower still, because it binds a trusted code directory and provides language-server semantic queries alongside restricted read, write and edit command execution, with the security boundary handled by one permission approval path rather than per-command prompts. Learn binds an Obsidian vault and helps you work through material, organise notes, generate exercises and track progress. Two supporting systems sit under all of them: layered L0, L1 and L2 memory with a worldbook and entry lifecycle management, and voice, which covers text to speech, speech recognition and voice calls. The same tool surface is also reachable from Feishu, WeChat iLink and QQ through NapCat or OneBot 11.

Four-state tool outcomes are what stop a side effect being replayed

The harness assigns every tool result one of four states: success, failure, unknown or not executed. That fourth category is the whole design. When a tool returns unknown and its side effect is marked non-idempotent, the side effect is written into an uncertain effects ledger in the state and the loop is halted, so the same kind of call is not automatically repeated. That is the failure mode most agent loops get wrong, because a timeout after a payment API call looks identical to a timeout before it. The same reasoning appears in recovery: after a crash, a tool call that was in flight when the process died is classified by its run state as unknown rather than being optimistically marked as not executed, precisely so the replay logic does not fire an external action twice. There is a related rule for user-wait tools. The ask-user and confirm-uncertain-effect built-ins must own their round exclusively, and every other tool called in that same round is written back as not executed with the progress text discarded, so a model cannot have half its tools run while waiting for you to answer.

One transcript is authoritative, and everything else is a projection

The conversation layer is built around a canonical transcript architecture, and the rule is that the canonical journal is the only source of truth. The model context, the user interface projection and the messages sent to external channels are all derived from that transcript rather than assembled separately. Compression is therefore a journal operation: summaries are persisted as checkpoints, hot logs are archived into a segments directory, and an edit or regeneration can walk back through history. The one rule that limits how far you can walk back is that neither can cross a compaction boundary, because the information needed to reconstruct it has been summarised away. The same reasoning shapes prompt caching. The stable prefix is layered into a session prefix and a mode prefix, volatile state such as the to-do list is forbidden from entering the prefix, the tool list is frozen for the duration of a run, and dynamic facts are materialised into the transcript once instead of being concatenated every round. A cache epoch counter advances across compaction and recovery so stale prefixes are not reused, and vendor hints such as a prompt cache key are injected at the request layer.

Two clocks, so waiting for you does not burn your task timeout

Timeout handling is split in a way that is worth copying regardless of framework. Execution timing and user-wait timing are separate clocks, and the execution clock pauses while an ask-user tool is waiting, so however long you take to think does not consume the task's timeout budget. The loop then settles into one of four terminal states, each with an explicit flag and reason: success when the model stops calling tools and ends the turn, cancelled when an abort signal fires, error when the model call throws or a checkpoint fails, and timeout when the configured total timeout in milliseconds is exceeded. Cancellation is handled consistently rather than by throwing. Almost every await is wrapped so an abort returns a cancelled result with an empty final answer, and importantly no final answer event is emitted at all, so a consumer cannot mistake an aborted run for a completed one with an empty string. Retries are equally conservative. Whether a failed tool is retried depends on how the error is classified and how the side effect is resolved, and the backoff between attempts can itself be interrupted.

The Rust screenshot helper is not in the repository

Getting a first build running has one step that catches everyone out. The prerequisites are 64-bit Windows 10 or 11, Node.js 24 LTS with npm 10 or newer, and Rust stable plus the Visual Studio 2022 Build Tools, where the workload to select is desktop development with C++. The build tools are needed because the native screenshot helper is Rust, and the project is explicit that the compiled helper is not committed to the repository as an executable, so you must build it once after your first clone:

bash
npm run build:screenshot-helper
npm run build
npm start

The package scripts confirm the shape of that helper. The screenshot build has a matching verify step that checks the produced executable at a path inside the resources directory, and the overall build runs the main process build, the preload build, the CLI build and the renderer build in sequence. If you would rather not install a Rust toolchain, the readme says the packaged builds on the releases page need neither Rust nor the build tools, and Windows users can also double-click a setup batch file in the project root to do the install, build and link steps, then a second batch file to start it. A distributable directory build has its own script.

BGE-M3 is recommended, and everything degrades without it

The embedding model is the one optional piece of the stack that is worth installing. Cyrene needs no local language model to chat, but a BGE-M3 embedding model is recommended because three features depend on it: semantic matching for the sticker panel, semantic retrieval over the worldbook, and retrieval augmented generation search. The project's stance on what happens without it is stated plainly and is the right stance. Missing BGE-M3 does not affect basic chat, and any feature that depends on embeddings is switched off or degraded automatically rather than failing. The model itself comes from the releases page rather than from an install script, and it is licensed separately: the repository carries a dedicated model licence file alongside the main licence, a licences directory and third-party notices, which is the arrangement you would expect when a code repository also redistributes model assets and a character. Configuration happens in the settings window reached from the system tray, covering the model provider, text to speech, speech recognition, external channels and music credentials, and changes are stored in the application user data directory without needing a restart.

The repository name, the main repository link and the tag prefix all differ

Three details will waste your time if you are evaluating the project. The repository is named under one owner while the readme points at a different organisation as the main repository, with a Gitee mirror offered for users inside China. The package version is 1.3.0, while the newest release tag carries a product prefix before the version and the release itself is described as an installer size slimming test, so tags and manifest versions are not in one obvious namespace. And the build scripts are written partly as inline node invocations: the main process build deletes the plugin output directory and then copies plugin sources with a filter that keeps directories, manifest files and one native import shim, all inside a single command line rather than in a reusable script. Around that sit real verification steps for vendored binaries, a check that the generated plugin schema matches its committed copy, a chat performance baseline, and packaging preparation steps for MinGit and for an mpv helper binary. The project also keeps four separate TypeScript configurations, one of which covers a simulation target that the visible build scripts do not reference.

Editorial conclusion

Cyrene-Agent is interesting as a reference implementation rather than as a product to adopt, because the harness documentation describes problems most agent frameworks treat as unspecified: what happens to a side effect whose result is unknown, whether an interrupted run can be resumed without replaying an external action, and what the model sees after a compaction boundary. Two things to weigh before installing it. It is Windows-only, with the native screenshot helper, keyboard and mouse automation and several channel integrations all depending on that platform, and a source build needs Rust and Visual Studio Build Tools on top of Node 24. And a packaged build ships the character and its model assets, so read MODEL_LICENSE.md and the third-party notices next to the MIT licence rather than assuming the code licence covers everything in the tree.

Frequently asked questions

Where does Cyrene come from?

Cyrene, also known as Xilian, is a character from Honkai: Star Rail, and this project builds a Windows Live2D desktop companion around that persona using the CyreneHarness engine and a DMAE memory engine.

Which conversation modes does Cyrene-Agent have?

Four: Chat, which exposes no tools at all, Work for general task sessions with search and browser tools, Code bound to a trusted code directory with restricted commands and permission approval, and Learn bound to an Obsidian vault.

How does Cyrene-Agent avoid repeating a failed side effect?

Tool results are recorded as success, failure, unknown or not executed. An unknown result from a non-idempotent side effect is written into an uncertain effects ledger and halts the loop, and a tool that was in flight when the process crashed is recovered as unknown rather than as not executed.

What does the Cyrene-Agent harness treat as the source of truth?

The canonical transcript journal. The model context, the interface projection and messages sent to external channels are all derived from it, compression summaries persist as checkpoints, and an edit or regeneration cannot cross a compaction boundary.

Do I need Rust and Visual Studio to run Cyrene-Agent?

Only for a source build, because the native screenshot helper is written in Rust and its executable is not committed to the repository. The packaged builds on the releases page need neither Rust nor the Visual Studio Build Tools.

Official sources

  1. License: MIT
  2. Playa-0v0/Cyrene-Agent on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/playa-0v0-cyrene-agent.svg)](https://hysenlabs.com/projects/playa-0v0-cyrene-agent)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/playa-0v0-cyrene-agent.svg)](https://hysenlabs.com/projects/playa-0v0-cyrene-agent)

Was this useful?