Skip to content

sena-nana/MutsukiCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutsuki

A domain-neutral Agent runtime kernel implemented as a Rust framework.

Current boundary: Rust-first runtime kernel

The root workspace is now the Rust framework surface. It provides serializable runtime contracts, the reusable AgentRuntime kernel, and a native host helper that can run an Agent loop without Python.

Python code from the earlier framework has been moved to python/reference-mutsuki. Treat it as a reference and migration layer for plugin-host ideas, transport examples, and Python checks. It is no longer the root runtime implementation, but the name does not imply the code is deprecated or disposable.

The new Python backend kit lives in python/mutsuki-runtime-python. It mirrors the Rust contracts and provides an in-process Python backend host for strategy, operation, and resource lease experiments. It is not a standalone runtime and does not depend on the old reference package.

The long-term integration shape is:

Caller
  -> Rust Runtime Kernel
  -> Capability Backend

Callers can be Rust applications, Python plugin entries, HTTP services, CLIs, or other projects. Capability backends can be native Rust hosts, Python sidecars, or remote services. Python may act as both a runtime caller and a backend provider, but AgentRuntime remains the only runtime kernel: lifecycle, routing, inboxes, registry facts, resource governance, trace, and events stay in Rust.

Crates

  • crates/mutsuki-runtime-contracts - pure serializable contracts: Agent, Envelope, ScopeRule, Operation / Source snapshots, trace, errors, and resource descriptors, plus runtime events.
  • crates/mutsuki-runtime-core - runtime mechanics: lifecycle, inbox ticks, routing, operation registry, source registry, trace bookkeeping, event stream, election policy, trace closure checks, and resource lease governance.
  • crates/mutsuki-runtime-host - native Rust host helper: in-memory operation/source backend for direct framework use, smoke tests, and a generic stdio JSONL backend adapter.
  • python/mutsuki-runtime-python - optional Python backend kit: pure contract mirrors, in-process backend host, descriptor-only resource backend, stdio JSONL server, Python plugin/capability host fixtures, and documented future runtime-caller boundaries.

Verification

cargo test

Optional Python reference checks live under python/reference-mutsuki and should be run from that folder when intentionally working on that layer.

Python backend kit checks live under python/mutsuki-runtime-python:

uv run ruff check src tests
uv run pyright src tests
uv run pytest

Reading Order

License

See LICENSE.

About

Agent运行时框架,用于机器人核心、Agent运行后端等

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors