Repository navigation
fix(memory): isolate Pi prompts and support Windows installs - #165
Merged
Merged
Conversation
Install a Pi-specific direct-write guide without changing other hosts, and align global setup and eject with Pi directory overrides. Resolve native and npm-installed status binaries without a shell, use the system home directory, and bound child runtime and output. Validated with go build -o mnemon ., make test, and 33 opt-in Pi callback/process regressions. Add old-asset controls and a native Windows Manual Integration route covering HOME-unset profiles, custom directories, and npm layouts.
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.
Pi currently injects the shared Claude guide, including
Task/sonnetdelegation and a prohibition on writing memory from the main conversation. Native Windows also loses the guide and skill path whenHOMEis unset, and cannot execute npm'smnemon.cmdwithexecFileSync.Closes #164.
Install Pi's direct-write guide and skill under
prompt/pi/, preserving the shared Claude files regardless of setup order. Resolve the home directory withhomedir(), align setup/detection/eject withPI_CODING_AGENT_DIR, and discover only Mnemon's own skill. Status calls resolve native executables and standard npm platform packages without a shell, with bounded output and a hard process timeout. Preserve ordinary executable lookup, including non-executable PATH shadows and unrelated script wrappers.mnemon remember/linkHOMEabsentValidation uses isolated synthetic stores and no paid model calls:
make test.HOMEunset, and original-asset controls. The npm fixtures use the repository launcher/target registry and built binary; actual Pi CLI sessions were run on macOS.After updating Mnemon, rerun
mnemon setup --target pi --yeswith the original scope (--globalfor a user installation), then restart Pi or use/reload. The real Pi host probes verify loading, model-facing guidance and tool execution; they do not measure an LLM's compliance with the guide.