Repository navigation
Merry v0.1.1
English
Sandbox & Security
- Live settings hot-reload — Toggling sandbox mode, network, or host integrations (
ssh_agent,gpg_agent,dbus) in TUI Settings now applies in-session without restarting, preserving background processes, clearing stale grants, and rolling back on error. - Unified
HostPathPolicy— State and config directories are readable by default (non-writable) while[skills]and durable memory stay writable, andproviders/plus externalapi_key_filesecrets remain denied (most-specific-prefix precedence). - Kernel confinement hardening — Rejects workspace-escaping
cwdsymlinks; streams policies via anonymous stdin pipe instead of/tmp; upgrades Linux Landlock to ABI V6 (AbstractUnixSocket+Signal), dropsExecuteon/, blocksio_uring_setup/AF_VSOCKoffline, restrictsgpg-agentto its native socket, narrows$XDG_CACHE_HOMEto existing dev-tool subdirs, scopes Landlockrequired_pathsto the current action (deleted grants no longer break later runs), and fixes macOS Seatbelt rule ordering/quoting. - Env isolation — Strips
MERRY_*(andHERDR_*in CLI) from child processes in both host and sandboxed modes.
CLI, CI & Herdr
MERRY_*env provider — Named (MERRY_PROVIDER) and zero-disk inline (MERRY_API_KEY/MERRY_API_KEY_FILE,MERRY_BASE_URL,MERRY_MODEL,MERRY_REASONING_EFFORT,MERRY_SERVICE_TIER,MERRY_CONTEXT_WINDOW_TOKENS, etc.) config for CI, withMERRY_API_KEY_FILEdenied in sandbox.- Headless
merry run&merry cmdparity — Unified precedence (defaults < config.toml < tui-preferences.toml < MERRY_* < CLI), new-C/--cwd,--provider,--model,--reasoning-effort,--service-tier,--max-turns,--output-schema,--no-preferences, cooperativeSIGINT/SIGTERMcancellation, andsession_id+usagein JSONL output. - Herdr pane lifecycle — Non-blocking
idle/working/blockedstatus reporting, directmerry resume [SESSION_ID], and pane release on exit.
TUI
- Everforest theme (#74), reply anchor header with
Alt+Rjump-to-latest-response, configurable corner copy buttons ([tui] copy_button_position) &/copy, and lower cold-start idle memory (23.4 MiB RSS vs. ~27 MiB inv0.1.0).
SDKs & Runtime
- Context window & lifecycle hooks —
context_window_tokens(with bundled model catalog) and typed hooks (before/aftermodel step & tool call: modify, deny, short-circuit,continue_with,stop_turn) across Rust (merry) and Python (merry-agent), preserving KV-cache prefixes. - Compaction customization —
CompactionPrompt,trigger_threshold_percent, dedicatedcompaction_provider, andAgent.compact()/InteractiveSession.compact()policy overrides in Rust & Python. - Cross-process session locking — OS-level
.session.lockenabled by default onAgentBuilder, plus explicitclose()/is_closed()(andasync within Python). - Reliability & architecture — Reasoning replay across tool turns (#91, fixing DeepSeek HTTP 400 + compaction accounting & TUI replay), control-character sanitization in freeform text,
merry-clirouted viamerryfacade (CodingSession), decoupled tool admission/dispatch, and WindowsLiveProcessBackendbuild fix.
Packaging & Docs
- Nix & Home Manager (#72) —
nix run github:locez/merryand declarativehomeManagerModules.default. - Added
README.zh-CN.md, updated CI/headless docs & badges, pinned Zig0.17.1in release builds, and enabled grouped Dependabot (#73).
简体中文
沙箱与安全
- 设置实时热重载 — 在 TUI 设置中切换沙箱、网络或宿主集成(
ssh_agent、gpg_agent、dbus)现可会话内即时生效,保留后台进程、清理旧授权,失败自动回滚。 - 统一
HostPathPolicy— 状态与配置目录默认只读防篡改,[skills]与持久化记忆保持可写,providers/及外部api_key_file按最长前缀优先严格拒绝访问。 - 内核隔离加固 — 拦截逃逸工作区的
cwd软链;改用匿名 stdin 管道传策略(不写/tmp);Linux Landlock 升级至 ABI V6(AbstractUnixSocket+Signal)、移除/执行权限、禁网时拦截io_uring_setup/AF_VSOCK、gpg-agent仅开放原生 socket、$XDG_CACHE_HOME收窄至已存在的开发缓存子目录、required_paths仅校验当前动作(历史已删文件不再影响后续命令);修复 macOS Seatbelt 规则顺序与引号转义。 - 环境变量隔离 — 宿主与沙箱子进程均默认剥离
MERRY_*(CLI 同步剥离HERDR_*)。
CLI、CI 与 Herdr
MERRY_*环境变量 Provider — 支持命名模式(MERRY_PROVIDER)与零落盘内联模式(MERRY_API_KEY/MERRY_API_KEY_FILE、MERRY_BASE_URL、MERRY_MODEL、MERRY_REASONING_EFFORT、MERRY_SERVICE_TIER、MERRY_CONTEXT_WINDOW_TOKENS等),并在沙箱中禁止访问MERRY_API_KEY_FILE。- Headless
merry run/merry cmd能力对齐 — 统一优先级(defaults < config.toml < tui-preferences.toml < MERRY_* < CLI),新增-C/--cwd、--provider、--model、--reasoning-effort、--service-tier、--max-turns、--output-schema、--no-preferences、SIGINT/SIGTERM协作取消,JSONL 输出补充session_id与usage。 - Herdr Pane 集成 — 非阻塞上报
idle/working/blocked状态、支持merry resume [SESSION_ID]直达恢复及退出时释放 pane。
TUI
- 新增 Everforest 主题(#74)、回复锚点标题与
Alt+R一键跳转最新回复、四角可配复制按钮([tui] copy_button_position)与/copy命令;冷启动空闲内存降至 23.4 MiB(v0.1.0为 ~27 MiB)。
SDK 与运行时
- 上下文窗口与生命周期 Hooks — Rust(
merry)与 Python(merry-agent)开放context_window_tokens(含内置模型目录)与强类型 Hooks(模型步/工具调用前后的修改、拒绝、短路、continue_with、stop_turn),保持 KV-Cache 前缀稳定。 - Compaction 定制 — 跨 Rust/Python 开放
CompactionPrompt、trigger_threshold_percent、独立compaction_provider及compact()策略覆盖。 - 跨进程会话锁 —
AgentBuilder默认启用.session.lock排他锁,新增close()/is_closed()(Python 支持async with)。 - 可靠性与架构 — 跨工具轮次推理内容回放(#91,修复 DeepSeek HTTP 400 并完善预算统计与 TUI 恢复)、自由文本控制字符自动清洗、
merry-cli全面经由merryfacade(CodingSession)调用、解耦工具准入与内置分发、修复 WindowsLiveProcessBackend编译。
打包与文档
- Nix & Home Manager(#72)— 支持
nix run github:locez/merry与homeManagerModules.default声明式配置。 - 新增
README.zh-CN.md、更新 CI/Headless 文档与徽章、发布流水线固定 Zig0.17.1、启用分组 Dependabot(#73)。
Install / 安装
# Linux (static musl: x86_64 / arm64) & macOS (Apple Silicon / Intel) — includes Alt+G Web viewer
curl -fsSL https://github.com/locez/merry/releases/download/v0.1.1/install.sh | sh# Windows (x86_64)
irm https://github.com/locez/merry/releases/download/v0.1.1/install.ps1 | iexcargo install --locked merry-cli --features web # crates.io CLI (Rust 1.95+) / cargo binstall merry-cli
cargo add merry --features anthropic # Rust SDK
pip install merry-agent # Python SDK (imports as `merry`)
nix run github:locez/merry # Nix flakeContributors / 致谢
- @serephus — Nix package & Home Manager module (#72), Dependabot (#73), Everforest theme (#74), reasoning replay across tool turns (#91)
Full Changelog: v0.1.0...v0.1.1