Skip to content

feat: add ZCode memory integration - #111

Merged
Grivn merged 2 commits into
masterfrom
agent/zcode-integration
Aug 22, 2026
Merged

feat: add ZCode memory integration#111
Grivn merged 2 commits 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

Grivn added 2 commits August 22, 2026 17:44
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.
Install native PowerShell hook assets on Windows while retaining the POSIX scripts on macOS and Linux. Keep ZCode process-hook registration platform-specific and cover both argv shapes in tests.\n\nValidated with go build, make test, POSIX hook protocol samples, and a Windows cross-build.
@Grivn
Grivn force-pushed the agent/zcode-integration branch from 22dae92 to 0fcb3b6 Compare August 22, 2026 09:47
@Grivn
Grivn marked this pull request as ready for review August 22, 2026 09:49
@Grivn
Grivn merged commit 2228b15 into master Aug 22, 2026
2 checks passed
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