Skip to content

Phase 15 (v0.1.13): gap-fill batch — 5 new subcommands#22

Merged
lai3d merged 1 commit into
mainfrom
claude/phase-15-gap-fill
May 22, 2026
Merged

Phase 15 (v0.1.13): gap-fill batch — 5 new subcommands#22
lai3d merged 1 commit into
mainfrom
claude/phase-15-gap-fill

Conversation

@lai3d

@lai3d lai3d commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

`hermes` ships 42 top-level subcommands; merlion had 21. This PR closes the easy quality-of-life gap with 5 new subcommands, built by 5 parallel subagents.

cmd what it does
`dump` plain-text setup snapshot for bug reports (redacted)
`debug share` tar.gz bundle of redacted config + log tails for support
`checkpoints {stats,list,prune,vacuum}` sessions.db management
`hooks {list,test}` inspect + dry-run shell-script lifecycle hooks (config schema added; not yet wired into agent loop)
`uninstall` stops gateway, removes `~/.merlion/`, hints brew/cargo uninstall

Also adds `hooks:` field to `merlion_config::Config` (with `#[serde(default)]` so existing config files still load).

Deferred (each its own future phase): lsp, webhook, whatsapp, pairing, insights, dashboard, kanban, profile, acp, plugins, external memory providers. Skipped: claw (Nous-specific), computer-use (macOS screen control), slack manifest helpers (gateway adapter already exists).

Test plan

  • 5 new modules, 14 new unit tests total
  • `cargo test --workspace` all green
  • `cargo clippy --workspace --all-targets -- -D warnings` clean
  • Local smoke tests: `merlion dump`, `merlion checkpoints stats`, `merlion hooks list`, `merlion --help` lists all 5 new commands
  • `merlion uninstall --yes --keep-data --keep-binary` round-trip in CI (probably unsafe to exercise live)

🤖 Generated with Claude Code

hermes ships 42 top-level subcommands; merlion had 21. Heavy lifts
(dashboard, kanban, profile, acp) and Nous-specific commands (claw,
slack-manifest, computer-use) are deferred; everything else got
batched here. Spawned 5 parallel subagents to build the modules; main
thread serialized the wire-up in main.rs.

- `status` — already aliased to `doctor` via clap; no-op confirmation.
- `dump` — plain-text setup snapshot for bug reports (version, OS,
  config redacted, env-var presence matrix, credential files, store
  sizes, MCP servers, gateway state, cron jobs, log tails). Never
  prints secrets — only env-var names.
- `debug share` — tar.gz bundle: redacted config + .env-with-values
  -stripped + last-N lines of each log file + MCP/fallback yamls.
  Multi-layer redaction including pattern-based scrubbing of
  sk- / xoxb- / xapp- / Telegram bot tokens in log tails.
- `checkpoints {stats,list,prune,vacuum}` — sessions.db management.
  Prune is transactional + supports humantime durations
  (`--older-than 30d`); cascades through messages and FTS rows.
- `hooks {list,test}` — config-driven shell-script hooks at agent
  lifecycle events (before_tool / after_tool / session_start /
  session_end). Adds `hooks:` section to merlion_config::Config. Hooks
  are NOT yet wired into the agent loop — that's a follow-up phase.
- `uninstall [--yes] [--keep-data] [--keep-binary]` — stops gateway
  daemon, removes ~/.merlion/, classifies the running binary's path
  and prints the right `brew uninstall` / `cargo uninstall` command.
  Never deletes its own running binary.

`merlion --help` now lists 25 subcommands (was 20) plus `status`
alias. 14 new unit tests across the 5 modules.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lai3d lai3d merged commit e8c605e into main May 22, 2026
2 checks passed
@lai3d lai3d deleted the claude/phase-15-gap-fill branch May 22, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant