feat: add ZCode memory integration - #111
Merged
Merged
Conversation
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
force-pushed
the
agent/zcode-integration
branch
from
August 22, 2026 09:47
22dae92 to
0fcb3b6
Compare
Grivn
marked this pull request as ready for review
August 22, 2026 09:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mnemon setup --target zcodedetection, install, and eject supportSKILL.mdat project or user scopeSessionStart,UserPromptSubmit, andStopprocess hooks in~/.zcode/cli/config.jsonwhen--globalis selectedWhy
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
--globalinstalls.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 testgo build -o /tmp/mnemon-zcode-build .