loading…
Search for a command to run...
loading…
Agent learning infrastructure that captures experience, surfaces what works, and builds reusable capabilities. MCP-native with 94.4% LongMemEval accuracy.
Agent learning infrastructure that captures experience, surfaces what works, and builds reusable capabilities. MCP-native with 94.4% LongMemEval accuracy.
A self-learning memory system for Claude Code, the Gemini CLI, and Codex CLI that enables persistent learning across task executions. Must be used with MemLayer.
MemLayer provides your AI agents with episodic memory capabilities, allowing them to:
Use these from the target project directory.
curl -fsSL https://raw.githubusercontent.com/shafty023/MemLayer-Plugin/main/install-gemini.sh | bash
This installs the Gemini plugin and configures memlayer MCP in .gemini/settings.json.
Then run /mcp auth memlayer in Gemini to complete MCP login.
By default, installer checkout ref is main (override with MEMLAYER_REPO_REF).
curl -fsSL https://raw.githubusercontent.com/shafty023/MemLayer-Plugin/main/install-claude.sh | bash
This adds the plugin marketplace, installs memory@ProcIQ, and configures the memlayer MCP server in Claude.
curl -fsSL https://raw.githubusercontent.com/shafty023/MemLayer-Plugin/main/install-codex.sh | bash
This installs the memory-usage skill into ${CODEX_HOME:-~/.codex}/skills, updates the current repo's AGENTS.md, configures MCP, and prints the codex mcp login memlayer step for you to run explicitly.
By default, installer checkout ref is main (override with MEMLAYER_REPO_REF).
Add the marketplace to Claude Code:
/plugin marketplace add shafty023/MemLayer-Plugin
Install the memory plugin:
/plugin install memory@ProcIQ
Configure the prociq MCP server with your API key (see prociq.ai for setup)
For more details on plugin installation, see the official documentation.
See the Gemini Plugin Documentation for installation and setup instructions.
See the Codex Plugin Documentation for installation and setup instructions.
MemLayer-Plugin/
├── .claude-plugin/ # Claude marketplace registration
├── codex/ # Codex CLI installer and policy template
│ ├── setup.sh
│ └── templates/
├── gemini/ # Gemini CLI installer and manifest
│ ├── manifest.json
│ └── setup.sh
└── plugins/
└── memory/ # Claude Code plugin and shared skill source
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── commands/ # CLI commands
│ ├── audit.md # /memory:audit - inspect memory state
│ ├── teach.md # /memory:teach - inject knowledge manually
│ └── forget.md # /memory:forget - remove episodes
├── hooks/ # Integration hooks
│ ├── hooks.json
│ └── scripts/
│ ├── session-start.sh
│ └── user-prompt.sh
└── skills/
└── memory-usage/
└── SKILL.md # Canonical memory system usage guide
/memory:audit [episodes|patterns|skills]Inspect the current state of the memory system. Shows statistics, recent episodes, high-confidence patterns, and skill inventory.
/memory:teach <lesson>Manually inject knowledge into the memory system without task execution.
/memory:teach When using Detox with animations, always add explicit waitFor timeouts of at least 5000ms
/memory:forget <episode-id|query>Remove specific episodes from memory. Can search by query or delete by ID.
Records of task execution containing:
Derived learnings extracted from multiple episodes:
Mature, high-confidence patterns promoted to reusable knowledge that gets surfaced when relevant tasks arise.
Persistent freeform knowledge entries that never decay (unlike episodes):
/memory:teach commandAutomatic processing that:
| Tool | Purpose |
|---|---|
prociq_log_episode |
Record task execution (async, non-blocking) |
prociq_retrieve_context |
Get relevant past experiences before a task |
prociq_search_episodes |
Search with filters (outcome, error_type, project) |
prociq_get_episode |
Retrieve full episode by ID |
prociq_search_episodes_full |
Semantic search returning full episodes |
prociq_forget_episodes |
Delete episodes permanently |
prociq_archive_episode |
Soft-delete episodes (reversible) |
| Tool | Purpose |
|---|---|
prociq_log_note |
Store persistent freeform knowledge |
prociq_update_note |
Modify existing note |
prociq_get_note |
Retrieve note by ID |
prociq_search_notes |
Search notes by content or tags |
prociq_delete_note |
Remove note from storage |
| Tool | Purpose |
|---|---|
prociq_search_patterns |
Search patterns with filters |
prociq_list_skills |
List all available skills |
prociq_get_skill_content |
Retrieve skill markdown by ID |
| Tool | Purpose |
|---|---|
prociq_get_memory_stats |
View memory health and statistics |
prociq_trigger_consolidation |
Manually run memory maintenance |
Do log:
Don't log:
| Scenario | Score |
|---|---|
| Normal success | 0.2–0.3 |
| First-time task type | 0.5–0.6 |
| Learned something new | 0.7–0.8 |
| Critical discovery/failure | 0.9–1.0 |
Always log a failure before retrying. This captures the exact error context that would otherwise be lost after a successful retry.
MIT License — see LICENSE for details.
Daniel Ochoa (@shafty023)
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"memlayer": {
"command": "npx",
"args": []
}
}
}