Skip to content

feat: add ZCode memory integration - #111

Draft
Grivn wants to merge 1 commit into
masterfrom
agent/zcode-integration
Draft

feat: add ZCode memory integration#111
Grivn wants to merge 1 commit into
masterfrom
agent/zcode-integration

Conversation

@Grivn

@Grivn Grivn commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

  • add mnemon setup --target zcode detection, install, and eject support
  • install a native Mnemon SKILL.md at project or user scope
  • register user-level SessionStart, UserPromptSubmit, and Stop process hooks in ~/.zcode/cli/config.json when --global is selected
  • preserve unrelated ZCode skills, hook events, and settings during repeated setup and eject
  • document the integration in English and Chinese

Why

ZCode exposes a native skill format and a user-level hook protocol, so Mnemon can participate in the host lifecycle without adding another service. ZCode currently ignores project-level hook configuration; the setup flow therefore installs only the project skill locally and reserves lifecycle hooks for --global installs.

Upstream contracts used for this adapter:

User impact

Users can run mnemon setup --target zcode --global --yes, restart ZCode, and receive session priming, per-prompt recall guidance, and bounded stop-time writeback guidance. Eject removes only Mnemon-owned entries.

Validation

  • make test
  • go build -o /tmp/mnemon-zcode-build .
  • temporary-HOME setup, hook-protocol, and eject smoke test

Add scope-aware ZCode setup and eject support with a native skill plus user-level lifecycle hooks. Preserve unrelated hook configuration and skip unsupported project-level hooks.\n\nValidation: make test; go build -o /tmp/mnemon-zcode-build .; temporary-home setup/hook/eject smoke test.
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