← Catalog

pi-semantic-memory

Local-first semantic memory for Pi coding agent. Powered by LogosDB MCP server — vector search, zero cloud, stdio-only.

Extension

Install

Install with PiG

pig install npm:pi-semantic-memory

Install with Pi

pi install npm:pi-semantic-memory
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.2.0 (README.md). PiG does not review it.

image

pi-semantic-memory

Local-first semantic memory for Pi coding agent, powered by LogosDB.

Vector search runs entirely on your machine — no cloud, no external API, stdio-only.

Install

pi install npm:pi-semantic-memory

Verify setup:

/logos-setup

Requirements

logosdb-mcp-server must be reachable. Install globally for best performance:

npm install -g logosdb-mcp-server

Falls back to npx --yes logosdb-mcp-server if not found in PATH.

What happens automatically

EventAction
Session startBackground-indexes the project directory (incremental, honours .gitignore)
Every user promptSemantic search → injects relevant memories into the system prompt silently
After each agent turnPersists a turn record (Q+A) to memory; incremental re-index for changed files
Session compactionStores a handoff note

All automatic actions are silent — nothing is printed to the console.

Memory scope

Controlled by LOGOS_MEMORY_MODE (default: global).

global (default)

Turn records are stored in pi-global and are visible across all sessions and all projects.
Context injection searches both pi-global and the current project namespace.

# default — no env var needed
pi

project

Turn records and searches are isolated to the current project namespace (pi-proj-<name>).
Each repo has its own independent memory.

LOGOS_MEMORY_MODE=project pi

Or add to your shell profile / Pi config:

export LOGOS_MEMORY_MODE=project

Namespaces

NamespacePurpose
pi-globalCross-project memories (default store for turn records in global mode)
pi-proj-<name>Project-specific memory and indexed source files; auto-derived from cwd basename

Tools

ToolDescription
logos_rememberStore a memory in a namespace
logos_recallSemantic search across a namespace
logos_forgetDelete by semantic match
logos_namespacesList all collections

Commands

CommandDescription
/logos-setupVerify MCP server and print configuration
/logos-statusShow mode, active namespace, indexing state
/logos-indexManually trigger incremental re-indexing of the current directory

Environment variables

VariableDefaultDescription
LOGOS_MEMORY_MODEglobalglobal or project — controls memory scope
LOGOS_TOP_K5Results injected per prompt / default logos_recall size (1–50)
LOGOSDB_PATH~/.pi/agent/logosdbPath to the LogosDB database directory
LOGOSDB_MCP_BIN(auto)Override the logosdb-mcp-server binary path

Changelog

See CHANGELOG.md. Latest: 1.2.0 — LOGOS_TOP_K configures injection size.

License

MIT