Your project, remembered.
Install MemKernel, connect your copilot, and give decisions, conventions, and code context a life beyond the current session.
New here? Follow the visual happy path and customize your setup ↗
One service. Two ways in.
MemKernel is both a Python library and an MCP server, distributed together as the memkernel package on PyPI from gosha70/memkernel. Import build_service() in Python, or let Claude Code or Kiro launch the installed memkernel executable. Both use the same MemoryService.
Memories are stored locally in ChromaDB by default. Retrieval combines dense embeddings and BM25 with reciprocal rank fusion, then ranks results using relevance, recency, and importance. Recall returns lightweight references so the agent can decide what to load.
Install for your workflow
The published package is memkernel on PyPI. Version 0.9.0 supports Python 3.11, 3.12, and 3.13; its metadata excludes Python 3.14. Choose the environment where you need the package:
| Your goal | Installation | How you use it |
|---|---|---|
| Memory for Claude Code or Kiro | pipx or uv tool | The client starts the memkernel MCP server executable |
| Memory inside a Python application | pip, uv, or Poetry in your project environment | Import memkernel.factory.build_service |
MCP server: install an isolated application
With pipx and Python 3.11 installed, run these commands in a macOS or Linux terminal. You can substitute an installed python3.12, python3.13, or a compatible interpreter’s absolute path:
python3.11 --version
pipx install --python python3.11 memkernel
pipx ensurepathIf ensurepath changes your shell configuration, open a new terminal. Selecting the interpreter explicitly avoids accidentally using a default Python 3.14 installation. See the pipx command reference.
If you use uv, choose this alternative:
uv tool install --python 3.11 memkernelSee uv’s tool guide for executable paths and Python selection. Then continue to Claude Code or Kiro.
Verify a pipx installation
pipx list
command -v memkernel
memkernel --version
memkernel --helppipx list shows the installed version and its Python interpreter. command -v locates the executable, commonly under ~/.local/bin. Use the returned absolute path in your client’s command field if its PATH differs from your terminal’s.
Python library: install in your project environment
Use a supported interpreter to create a virtual environment, then install the dependency there:
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install memkernel
python -m pip show memkernelOn Windows PowerShell, create the environment with py -3.11 -m venv .venv and activate it with .venv\Scripts\Activate.ps1, then run the same pip commands.
# In an activated, compatible project environment
uv pip install memkernel
# Or add the dependency to a compatible Poetry project
poetry add memkernelContinue to the Python example. pipx puts the package in a separate environment; it does not make import memkernel available to another project’s interpreter. Install the dependency in that project as well if you need both uses.
create_server() must account for its new MCPServer[MemKernelContext] return type in place of FastMCP. Both current memory and wiki servers use mcp>=2.3,<3.What the memkernel command does
memkernel --version prints the installed version; memkernel --help prints usage. Both exit without starting the server. These flags are supported from 0.4.0 onward; other arguments return an error.
Without arguments, memkernel starts the MCP server using MEMKERNEL_* settings. The default stdio transport waits for its client. Your copilot normally starts and manages this process; press Ctrl-C if you started it manually.
Already installed with pipx? Run pipx upgrade memkernel, then memkernel --version. If a shell still resolves an old removed executable, use the PATH troubleshooting below.
Connect Claude Code
1. Register the server
First complete the MCP server installation. From your project directory, run the registration command with memkernel on PATH:
claude mcp add \
--scope project \
--env MEMKERNEL_PROJECT_ID=my-project \
--env MEMKERNEL_PROJECT_ROOT="$PWD" \
--env MEMKERNEL_CHROMA_PERSIST_PATH="$HOME/.memkernel/my-project" \
--transport stdio \
memkernel -- memkernelReplace my-project with your project identifier. The command writes project-scoped configuration to .mcp.json. Alternatively, merge this entry into that file at the project root:
{
"mcpServers": {
"memkernel": {
"type": "stdio",
"command": "memkernel",
"args": [],
"env": {
"MEMKERNEL_PROJECT_ID": "my-project",
"MEMKERNEL_PROJECT_ROOT": "/absolute/path/to/project",
"MEMKERNEL_CHROMA_PERSIST_PATH": "${HOME}/.memkernel/my-project"
}
}
}
}Use a distinct project ID, your actual absolute project root, and a stable absolute data path. The project root anchors source-file revalidation. Claude Code expands ${HOME} in this JSON; you can also provide a literal absolute path. If the executable is not on Claude’s PATH, set command to the full path returned by command -v memkernel. A pipx installation does not need a project virtual environment activated. Launch Claude Code, approve the server when prompted, and check /mcp.
.mcp.json holds project MCP server entries; .claude/settings.json holds Claude Code settings such as hooks and permissions; CLAUDE.md holds the agent’s memory instructions. This follows the official Claude Code MCP documentation.2. Teach the agent when to remember
Add the repository's memory instructions template to your project's CLAUDE.md. Refresh this template when upgrading. It describes when to recall, retain, checkpoint, and promote. Decision records now preserve the requirement, chosen and rejected options, evidence, and when to revisit the choice.
3. Add lifecycle hooks when useful
The hook templates cover SessionStart, PreCompact, PostCompact, and SessionEnd. Follow each script's prerequisites and register hooks in .claude/settings.json. See the lifecycle section for the corresponding in-process component.
Connect Kiro
Give Kiro persistent project memory through MemKernel's stdio MCP server. The Kiro integration templates in the 0.9.0 release combine server settings, always-on memory instructions, and lifecycle hooks.
| Repository template | Project destination | Purpose |
|---|---|---|
settings/mcp.json ↗ | .kiro/settings/mcp.json | Register the MCP server |
steering/memory.md ↗ | .kiro/steering/memory.md | Tell the agent when to remember |
hooks/memkernel.json ↗ | .kiro/hooks/memkernel.json | Recall at session start; retain useful progress. Use the version-adjusted example below. |
1. Install an executable Kiro can find
Follow the isolated server installation. Select a supported Python interpreter explicitly; these examples use 3.11:
pipx install --python python3.11 memkernel
# Or: uv tool install --python 3.11 memkernel
command -v memkernelKiro's desktop process may have a different PATH from your shell. If startup fails, replace command below with the full executable path returned by command -v memkernel. On Windows, use where.exe memkernel.
2. Register the MCP server
Merge this into .kiro/settings/mcp.json in your project. Keep any existing server entries. For all workspaces, use ~/.kiro/settings/mcp.json instead.
{
"mcpServers": {
"memkernel": {
"command": "memkernel",
"args": [],
"env": {
"MEMKERNEL_PROJECT_ID": "my-project",
"MEMKERNEL_PROJECT_ROOT": "/absolute/path/to/project",
"MEMKERNEL_CHROMA_PERSIST_PATH": "${HOME}/.memkernel/my-project"
},
"disabled": false,
"autoApprove": ["recall", "get", "ask", "retain", "consolidate"]
}
}
}- Set
my-projectto your project identifier, replace/absolute/path/to/projectwith your repository root, and set the data directory. Keep these values stable across sessions. - Use an absolute storage path. The template expands your home directory; approve that variable in Kiro if prompted, or replace it with a literal absolute path. The default relative path can otherwise point somewhere unexpected when launched by an IDE.
- The template's
autoApprovelist allowsrecall,get,ask,retain, andconsolidatewithout a tool prompt. Edit this list to suit your workflow; the four other MemKernel tools are not pre-approved by this entry.
Save the file and check the server in Kiro's MCP panel. See Kiro's MCP configuration reference. To share a running local HTTP server instead, use the HTTP server quickstart and a url entry for http://127.0.0.1:8765/mcp.
3. Add the memory steering file
Copy the full memory steering template to .kiro/steering/memory.md. Keep its YAML front matter at the very beginning:
---
inclusion: always
---The rest of the template tells Kiro to recover checkpoints, retain task state and durable knowledge, consolidate candidates, and use document memory and the wiki bridge. The server provides the tools; these instructions make remembering part of the agent's workflow.
4. Add lifecycle hooks
For Kiro IDE 1.x and CLI V3, save this adapted template as .kiro/hooks/memkernel.json. It gives each hook a name, as required by the current hook schema.
{
"version": "v1",
"hooks": [
{
"name": "memkernel: recall context",
"trigger": "SessionStart",
"action": {
"type": "agent",
"prompt": "Using the memkernel MCP server: call recall(query=\"session checkpoint\", checkpoint_only=true, order=\"newest\", top_k=1) and recall(query=\"<current task>\", tier=\"long_term\", top_k=5). If the project has a wiki (MEMKERNEL_WIKI_DIR), read its index.md. Summarise what is relevant in three lines, then continue with the user's request."
}
},
{
"name": "memkernel: retain progress",
"trigger": "Stop",
"action": {
"type": "agent",
"prompt": "Before finishing: if this turn produced a decision, convention, fact or procedure that holds beyond this session, retain it in memkernel with that type (one idea per memory; use supersedes=<old ref_id> when it replaces an earlier one). If the plan or task state changed, retain(type=\"task\", content=\"Goal: ... Next: ... Open: ...\"). Do nothing if there is nothing worth keeping."
}
}
]
}| When | Trigger | Memory action |
|---|---|---|
| A session starts | SessionStart | Recall the last checkpoint and relevant long-term context |
| An agent turn ends | Stop | Retain durable findings and changed task state |
| You need a checkpoint | Send the prompt below | Save an episode, consolidate, and promote useful candidates |
The Stop hook runs after every turn and adds token usage. Remove it if session-start recall and occasional checkpoints suit your workflow better.
Manual hook. Current Kiro docs say CLI V3 lists it but cannot invoke it from /hooks, and IDE 1.x has no new Manual-trigger hook. Send this prompt in chat instead. Older Kiro releases use different hook formats; consult the trigger reference before adapting them.Using MemKernel, save a checkpoint episode with checkpoint=true.
Summarize what is done, the current task, next steps, and open questions.
Then call consolidate() and promote useful candidates into durable memories.Kiro CLI custom agents
For a custom profile in .kiro/agents/<name>.json, use includeMcpJson: true to load the workspace server, or put its entry directly in mcpServers. Add file://.kiro/steering/memory.md to resources if you manage context explicitly. Current profiles inherit default steering unless that inheritance is disabled. Check the agent configuration reference for your CLI version.
Legacy Amazon Q Developer CLI uses ~/.aws/amazonq/mcp.json for the same MCP server entry. Its agent hooks use older names such as agentSpawn and stop; do not mix the old profile format with the standalone v1 hook file above.
Check the connection
Ask Kiro to retain a small test fact, then recall it from a new session using the same project ID and storage path. If startup is slow, allow the local embedding model's first download to finish. If recall is empty, check both environment values before changing the memory protocol.
Use the Python library
First install MemKernel into the interpreter that runs your application. Then use the library directly; an MCP client is optional.
build_service() is the supported entry point. Configuration is read from MEMKERNEL_* environment variables or a .env file.
import os
from memkernel.factory import build_service
from memkernel.core.models import MemoryType
os.environ["MEMKERNEL_PROJECT_ID"] = "my-project"
memory = build_service()
ref_id = memory.retain(
"Use PostgreSQL for transactional inventory updates.",
MemoryType.DECISION,
tags=["architecture", "database"],
)
for ref in memory.recall("database choice", top_k=5):
print(ref.ref_id, ref.tier, ref.preview)
# Fetch the complete decision when needed.
decision = memory.get(ref_id)
print(decision.content if decision else "Memory not found")retain() returns a reference ID. Storing identical content with the same type is idempotent. For sourced code snapshots, identity also includes the source path; retaining changed code supersedes older snapshots of that path. recall() returns ArtifactRef objects rather than full memory bodies.
For a newer decision, retain the replacement with supersedes=ref_id. The replaced memory is hidden from recall. For a permanent deletion, call forget(ref_id).
get() returns the summary of a document memory, not its full body. Use ask() to retrieve relevant document passages or consult a configured external reasoner.Memory types & tiers
The memory type determines the tier and default retention policy. Durable memories do not expire; short-lived memories can be reinforced through recall and promoted when they prove useful.
| Type | Tier | Base retention | Purpose |
|---|---|---|---|
task | Working | 24 hours | Current goal, plan state, open questions |
observation | Short-term | 7 days | Findings and tool outputs |
episode | Short-term | 30 days | Session events and checkpoints |
decision | Long-term | No expiry | Architecture choices and rationale |
convention | Long-term | No expiry | Style rules and project patterns |
fact | Long-term | No expiry | Durable project facts and contracts |
procedure | Long-term | No expiry | Verified workflows and recipes |
code | Long-term | No expiry | Code snapshots and API contracts |
document | Long-term | No expiry | Large specifications, transcripts, and files |
For expiring memories, the retention window grows with access count: base_ttl × (1 + access_boost × access_count), measured from the later of creation and last access. The default access boost is 0.5.
Consolidate, then promote
consolidate() purges expired memories and returns promotion candidates. The caller supplies the distilled content to promote(); provenance is retained through promoted_from. Consolidation does not automatically turn every observation into a durable fact.
MCP tool reference
Version 0.9.0 exposes nine MCP tools. The signatures below show MCP parameter names; the Python service uses MemoryType and MemoryTier enums where applicable.
9 of 9 tools
retain
Store a memory and return its ref_id. Identical content and type are deduplicated; code snapshot identity also includes its source path. Mark episodes as checkpoints or link a replacement with supersedes.
recall
Find relevant memories by natural language or identifier. Returns lightweight references ranked by relevance, recency, and importance. Supports filters for type, tier, session, and checkpoints. Flagged code is excluded by default; flagged decisions stay visible with needs_review and review_reason. Use order="newest" with checkpoint_only=true to recover the latest checkpoint.
get
Retrieve a memory by reference ID and record an access. Returns full content for ordinary memories; for documents, returns the summary.
forget
Delete a memory and its associated indexes. Use supersession instead when you want a newer memory to replace an older decision in recall.
promote
Create a durable memory from a useful working or short-term memory. Supply the target type and optionally a distilled statement. Preserves the source reference as provenance.
consolidate
Purge expired memories, report store health counts, and rank promotion candidates. Set revalidate=true to check code snapshots and decisions with source files. With an external reasoner and synthesize=true, also return suggested long-term statements for review.
ask
Ask about one memory without loading its entire content into the caller's context. The local reasoner returns matching chunks in RAG mode. An external reasoner receives the selected mode.
wiki_export
Export long-term memories to Markdown drafts. With the wiki extra installed, writes pass through Wiki-Studio’s proposal and promotion gate. Defaults to ten new pages per call; inspect the returned remaining count.
wiki_import
Import approved revisions through the governed bridge. Approved corrections supersede earlier memories; deleted tracked pages and approved deprecations withdraw answers while keeping history. Adoption flags handle older stores and wiki identity.
No tools match. Try “memory”, “document”, or “wiki”.
Keep code and decisions current
MemKernel remembers the code snapshots your agent retains; it does not automatically index the whole repository. For reliable revalidation, retain the whole source file as a code memory with its project-relative source path, and set MEMKERNEL_PROJECT_ROOT to the absolute repository root.
- Retain a snapshot. The source path and content hash identify it. Retaining a changed file supersedes earlier live snapshots of that path.
- Revalidate.
consolidate(revalidate=true)compares the stored hash with the whole source file. Changed or missing files setneeds_review; a matching file clears it. - Review and refresh. Flagged code memories leave default recall. Use
include_needs_review=trueto inspect them, check the source, and retain the current file.
consolidate(revalidate=true)
recall(query="inventory reservation", include_needs_review=true)Recheck the evidence behind a decision
New decisions with a readable source file store its hash. Revalidation flags changed or missing sources, but leaves the decision in recall with needs_review and review_reason. Only the source field is checked; evidence mentioned inside the text is not automatically verified. Older decisions without a stored source hash can detect missing files only.
Review the evidence before reusing a flagged decision. Retain a corrected decision with supersedes when the old one no longer applies. A review flag does not decide which answer is true.
Inspect the store without changing it
The Python service's health() reports orphaned records, broken links, stale sources, unmarked replacements, review flags, and expired records still present. Full mode also checks recent long-term memories for near-duplicates. Health is a report, not an automatic repair.
Counts appear in memory://status and every consolidation report. The HTTP admin API exposes GET /health/store and POST /revalidate. A harness using MemoryLifecycle.on_session_start() also receives review and health information. Plain MCP registration alone does not run the lifecycle hooks.
Store the document. Ask for context.
The document memory type stores the body separately from its summary and indexes text chunks for retrieval. Use it for large specs, transcripts, or other artifacts.
from pathlib import Path
from memkernel.factory import build_service
from memkernel.core.models import MemoryType
memory = build_service()
spec = Path("specs/auth.md")
ref_id = memory.retain(
spec.read_text(encoding="utf-8"),
MemoryType.DOCUMENT,
source=str(spec),
)
result = memory.ask(
ref_id,
"Which endpoints need rate limiting?",
mode="auto",
)
if result is not None:
print(result.answer)Create the example input file specs/auth.md first, or replace that path with an existing document.
- Local reasoner (default): returns the most relevant document chunks using dense retrieval, BM25, and RRF. It does not generate an LLM answer and reports
mode="rag". - RLM Studio (optional): delegates to an external reasoner with
direct,rag,rlm, orauto. Install and configure it separately, then setMEMKERNEL_REASONER=rlmstudio. If the package is not importable, MemKernel logs a warning and falls back to the local reasoner.
Keep continuity across sessions
Using Kiro? Start with the Kiro steering and lifecycle setup for session recall, progress retention, and checkpoints.
MemoryLifecycle packages the session protocol for an in-process harness. Its methods return Markdown suitable for injecting into the agent's context.
from memkernel.factory import build_service
from memkernel.lifecycle import MemoryLifecycle
lifecycle = MemoryLifecycle(build_service())
# Inject this at the beginning of a session.
context = lifecycle.on_session_start()
# Before your harness compacts its context:
lifecycle.on_pre_compact("Your checkpoint summary")
# Re-inject after compaction:
recovered = lifecycle.on_post_compact()
# At the end of the session:
lifecycle.on_session_end("Your final session summary")Supply a meaningful checkpoint summary from the harness at each event. Calling these methods alone does not inject anything into an agent; your harness owns that step.
Claude Code hooks use a different event contract
Refresh all four scripts and the settings example when upgrading. Register SessionStart without a matcher. Give hooks and the MCP server the same project, storage, and state paths.
| Hook template | Event | Released behavior |
|---|---|---|
session-start.py | SessionStart | Startup/clear consolidate and recover context. Compact recovers the newest checkpoint without consolidation. Resume/fork inject nothing. |
pre-compact.py | PreCompact | Consolidate only: Claude Code supplies no summary at this event. |
post-compact.py | PostCompact | Save compact_summary as a checkpoint. Emit no model context; the next SessionStart with source=compact recovers it. |
session-end.py | SessionEnd | Write a lightweight session-spool record. The next startup can flag a session that ended without a checkpoint. |
Recovered memories are marked as stored data to inspect, not instructions to execute. The markers do not guarantee protection from malicious content.
Read the current hook templatesA human-readable memory layer
The wiki bridge connects long-term memories with a Markdown knowledge base that you can review and version in Git.
Wiki-Studio is the companion CLI and Python library for proposing, validating, querying, and maintaining pages in this shared schema. See its MemKernel integration and release compatibility.
- Install
memkernel[wiki]in MemKernel’s own environment. Use the current pair installation if you also want Wiki-Studio’s MCP server. - Set an absolute
MEMKERNEL_WIKI_DIRshared with Wiki-Studio. UseMEMKERNEL_WIKI_MODE=governedto require a compatible library, governed manifest, and matching schema. - Call
wiki_export. It proposes and promotes draft pages through the gate. Inspect its result and any receipt or gate error. - Review the draft, propose and promote a stable revision, then approve the exact revision under the wiki policy.
- Call
wiki_importto make approved knowledge available in recall. Repeat after approved corrections or withdrawals.
auto is the default mode: it uses Wiki-Studio when installed and an ungated path when absent. governed refuses to proceed if its requirements are missing; ungated never loads Wiki-Studio. Follow the governed visual workflow.
Approved corrects references supersede the named memories. Governed import withdraws answers for deleted ledger-tracked pages, approved deprecated revisions, and superseded pages. Unapproved edits do not become new approved knowledge. Inspect withdrawn, pending, and sync_failed in the response.
ambiguous. Use the documented one-time adopt_legacy=true procedure, or adopt_pages for specific mappings when multiple wikis are involved. A new manifest can require adopt_manifest=true. Review the mapping before adopting.Set an absolute MEMKERNEL_STATE_DIR shared by all processes using the store; it holds the sync ledger and session state. Keep it out of Git. Read the bridge and adoption guide.
Add a workflow around the memory
Code Copilot Team v2.1.0 coordinates coding phases, project rules, and review. Its experimental memory instructions activate when MemKernel is configured; it does not install or enable persistent memory just by sharing a wiki engine.
CCT pins base Wiki-Studio v0.9.0 in its managed environment. Keep current MemKernel and Wiki-Studio MCP servers in an external environment, then connect them through your host. See the three-product setup and interactive CCT guides.
Configuration
Settings are read from environment variables with the MEMKERNEL_ prefix, or a .env file. These are the most commonly changed defaults.
| Environment variable | Default | Purpose |
|---|---|---|
MEMKERNEL_PROJECT_ID | default | Project namespace |
MEMKERNEL_PROJECT_ROOT | . | Source-file boundary for code and decision revalidation; set an absolute project root |
MEMKERNEL_CHROMA_PERSIST_PATH | .memkernel/chroma | Persistent local storage; empty string uses ephemeral storage |
MEMKERNEL_EMBEDDING_MODEL | all-MiniLM-L6-v2 | Local sentence-transformers model |
MEMKERNEL_SEARCH_TOP_K | 5 | Default number of recall results |
MEMKERNEL_TASK_TTL_HOURS | 24 | Working-memory base retention |
MEMKERNEL_OBSERVATION_TTL_DAYS | 7 | Observation base retention |
MEMKERNEL_EPISODE_TTL_DAYS | 30 | Episode base retention |
MEMKERNEL_REASONER | local | Local passage retrieval or optional rlmstudio |
MEMKERNEL_STATE_DIR | .memkernel/state | Sync ledger and session state; use one absolute path across clients and keep it out of Git |
MEMKERNEL_WIKI_MODE | auto | Choose auto, governed, or ungated; governed requires the review gate |
MEMKERNEL_WIKI_PROPOSALS_DIR | Empty | Defaults to <project root>/.memkernel/wiki-proposals; set a shared proposals path when useful |
MEMKERNEL_WIKI_EXPORT_BATCH | 10 | Maximum new pages per export; 0 removes the limit |
MEMKERNEL_RECALL_LOG | false | Opt-in recall and hook-context log; stores query text locally |
MEMKERNEL_RECALL_LOG_MAX_BYTES | 5000000 | Rotate the recall log at this size |
MEMKERNEL_RECALL_LOG_MAX_FILES | 10 | Total recall-log files retained, including the current file |
MEMKERNEL_WIKI_DIR | Empty | Default Markdown wiki directory |
MEMKERNEL_HEALTH_DUPLICATE_THRESHOLD | 0.95 | Cosine similarity threshold for near-duplicate reporting |
MEMKERNEL_HEALTH_DUPLICATE_LIMIT | 500 | Recent long-term memories checked for duplicates in full mode |
MEMKERNEL_HEALTH_REPORT_LIMIT | 20 | Items listed per health category |
MEMKERNEL_TRANSPORT | stdio | stdio or streamable-http |
MEMKERNEL_HOST | 127.0.0.1 | HTTP bind address |
MEMKERNEL_PORT | 8765 | HTTP port |
The default persistence path is relative to the server's working directory. Set an absolute MEMKERNEL_CHROMA_PERSIST_PATH when you want multiple entry points to share a known local store.
MEMKERNEL_PROJECT_ID=my-project \
MEMKERNEL_TRANSPORT=streamable-http \
memkernel
# MCP endpoint: http://127.0.0.1:8765/mcpKeep local servers bound to localhost unless you have configured the necessary network access controls for your deployment. Project namespaces separate stored memories; they are not a user authentication system.
All configuration options ↗Troubleshooting
Is MemKernel a Python library or an MCP server?
Both. The PyPI package contains the importable library and exposes the memkernel executable. Python applications call the service in process; Claude Code and Kiro launch it through MCP. The official installation uses Python packaging tools.
Installation says “No matching distribution found”
Check which Python interpreter the installer selected. MemKernel 0.9.0 requires >=3.11,<3.14. With a supported interpreter installed, use pipx install --python python3.11 memkernel, or create your project environment with that interpreter. If the version is compatible, also check that the configured package index or mirror exposes memkernel. The error alone does not mean the public PyPI package is absent.
Bash still tries a removed Homebrew executable path
After moving an installation to pipx, Bash may have cached the old executable location. Clear that lookup and check the new one:
hash -r
pipx ensurepath
command -v memkernel
pipx listOpen a new terminal if ensurepath changed your profile. A message that the app directory is already on PATH needs no forced change. If the old location persists, check for an alias, function, or earlier PATH entry with type -a memkernel.
Why does memkernel wait when I run it?
Without arguments, it starts the stdio MCP server and waits for a client. Let your copilot launch it. Version 0.4.0 and later support --help and --version without starting the server. Upgrade an older pipx installation with pipx upgrade memkernel.
Can I use a project .env with other tools?
Yes. Version 0.9.0 ignores unrelated keys in a shared .env. Unknown MEMKERNEL_* keys produce warnings so you can correct misspellings. If an older version fails to start because of unrelated settings, upgrade it.
pipx installed it, but Python says “No module named memkernel”
pipx isolates the server’s dependencies from other Python environments. Install memkernel with pip, uv, or Poetry in the same project environment as your Python application. See the library installation.
Claude Code does not list the server
Put a project-scoped mcpServers entry in .mcp.json, or use the registration command. Check the executable path, approve the project server, and inspect /mcp. Hook registration in .claude/settings.json is a separate step.
The client cannot find the memkernel command
Activate the environment where you installed MemKernel before launching your MCP client. Alternatively, point the client's command field at the executable's absolute path. Confirm you installed with Python 3.11–3.13.
The first startup takes longer than expected
The default sentence-transformers model may need to be downloaded and initialized on first use. Allow the download to complete and check that the environment can access the model's hosting service.
My memories seem to be missing in a new session
Check that both sessions use the same project ID and persistent storage path. The default storage directory is relative to the working directory. Working and short-term memories can expire; durable memories can be superseded. Check filters in your recall call too.
Why does ask return passages instead of a generated answer?
The default local reasoner retrieves matching chunks without an LLM. This is expected. To use an external reasoner, configure the optional RLM Studio integration and check that it is importable in the same environment.
Which programming languages get AST-aware chunking?
Version 0.9.0 includes Python support through tree-sitter-python. Unsupported languages and unavailable parsers fall back to sliding text chunks. Retain code with an appropriate source filename, such as inventory.py, for language detection.
Does installing MemKernel index my whole repository?
MemKernel indexes the memories and code content you retain through its tools or service. Your client, agent instructions, or harness controls what is stored. Installing the package alone does not ingest a repository.
Build with us
MemKernel is open source under Apache-2.0. Bugs, reproducible examples, and improvements to integrations or documentation are welcome in the repository.
This guide describes the published MemKernel 0.9.0 package. Package metadata, configuration, tools, and release changes were checked on November 22, 2026. Kiro examples use the 0.9.0 templates with the documented hook-format adjustments. Development-branch features may not be in the published package.