Skip to content

Merry v0.1.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 16:37
· 61 commits to main since this release
v0.1.1
d6809f0

English · 简体中文 · Install


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, and providers/ plus external api_key_file secrets remain denied (most-specific-prefix precedence).
  • Kernel confinement hardening — Rejects workspace-escaping cwd symlinks; streams policies via anonymous stdin pipe instead of /tmp; upgrades Linux Landlock to ABI V6 (AbstractUnixSocket + Signal), drops Execute on /, blocks io_uring_setup/AF_VSOCK offline, restricts gpg-agent to its native socket, narrows $XDG_CACHE_HOME to existing dev-tool subdirs, scopes Landlock required_paths to the current action (deleted grants no longer break later runs), and fixes macOS Seatbelt rule ordering/quoting.
  • Env isolation — Strips MERRY_* (and HERDR_* 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, with MERRY_API_KEY_FILE denied in sandbox.
  • Headless merry run & merry cmd parity — 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, cooperative SIGINT/SIGTERM cancellation, and session_id + usage in JSONL output.
  • Herdr pane lifecycle — Non-blocking idle/working/blocked status reporting, direct merry resume [SESSION_ID], and pane release on exit.

TUI

  • Everforest theme (#74), reply anchor header with Alt+R jump-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 in v0.1.0).

SDKs & Runtime

  • Context window & lifecycle hooks — context_window_tokens (with bundled model catalog) and typed hooks (before/after model 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, dedicated compaction_provider, and Agent.compact() / InteractiveSession.compact() policy overrides in Rust & Python.
  • Cross-process session locking — OS-level .session.lock enabled by default on AgentBuilder, plus explicit close() / is_closed() (and async with in Python).
  • Reliability & architecture — Reasoning replay across tool turns (#91, fixing DeepSeek HTTP 400 + compaction accounting & TUI replay), control-character sanitization in freeform text, merry-cli routed via merry facade (CodingSession), decoupled tool admission/dispatch, and Windows LiveProcessBackend build fix.

Packaging & Docs

  • Nix & Home Manager (#72) — nix run github:locez/merry and declarative homeManagerModules.default.
  • Added README.zh-CN.md, updated CI/headless docs & badges, pinned Zig 0.17.1 in 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 全面经由 merry facade(CodingSession)调用、解耦工具准入与内置分发、修复 Windows LiveProcessBackend 编译。

打包与文档

  • Nix & Home Manager(#72)— 支持 nix run github:locez/merry 与 homeManagerModules.default 声明式配置。
  • 新增 README.zh-CN.md、更新 CI/Headless 文档与徽章、发布流水线固定 Zig 0.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 | iex
cargo 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 flake

Contributors / 致谢

  • @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