Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(pi): correct the extension path in MCP setup guidance

yoggsaron010-lang9d12afee739e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index da1fca12..2bc62bc6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ version in [`docs/changelog/`](docs/changelog/):
## [Unreleased]
### Fixed
+- Corrected Pi MCP setup guidance to name `ai-memory-pi.ts` and describe its
+ location when `PI_CODING_AGENT_DIR` is set.
- Added exact hover timestamps to `/web` page metadata, made the OKF upgrade
dialog keyboard accessible, and added a labelled main-navigation landmark
with current-page state and narrow-screen wrapping.
diff --git a/crates/ai-memory-cli/src/commands/install_mcp.rs b/crates/ai-memory-cli/src/commands/install_mcp.rs
index 1c846c96..6125900b 100644
--- a/crates/ai-memory-cli/src/commands/install_mcp.rs
+++ b/crates/ai-memory-cli/src/commands/install_mcp.rs
@@ -2404,7 +2404,9 @@ fn pi_mcp_render_guidance(args: &InstallMcpArgs) -> String {
# Install ai-memory's generated Pi extension instead; it includes\n\
# lifecycle capture and an HTTP MCP bridge that registers tools in Pi.\n\
ai-memory install-hooks --agent pi --apply --server-url {}{}\n\
- # Restart Pi after installing ~/.pi/agent/extensions/ai-memory.ts.\n",
+ # The extension is installed at ~/.pi/agent/extensions/ai-memory-pi.ts by default.\n\
+ # If PI_CODING_AGENT_DIR is set, it is at $PI_CODING_AGENT_DIR/extensions/ai-memory-pi.ts instead.\n\
+ # Restart Pi after installing the extension.\n",
hook_server_url_from_mcp_url(args.server_url.as_deref().unwrap_or(DEFAULT_MCP_URL)),
if args.auth_token.is_some() {
" --auth-token <token>"
@@ -4447,7 +4449,9 @@ mod tests {
let pi = render_pi(&args_for(McpClient::Pi)).unwrap();
assert!(pi.contains("Pi has no native mcp.json"));
assert!(pi.contains("install-hooks --agent pi --apply"));
- assert!(pi.contains("~/.pi/agent/extensions/ai-memory.ts"));
+ assert!(pi.contains("~/.pi/agent/extensions/ai-memory-pi.ts"));
+ assert!(pi.contains("$PI_CODING_AGENT_DIR/extensions/ai-memory-pi.ts"));
+ assert!(!pi.contains("~/.pi/agent/extensions/ai-memory.ts"));
assert!(!pi.contains("~/.omp"));
assert!(render_for_test(McpClient::AntigravityCli).contains("\"serverUrl\""));
// The snippet must point at the documented global config, not the