记忆性的
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
memgentic_recall(query="authentication flow", limit=5)
memgentic_recall(query="auth", sources=["claude_code", "chatgpt"])
memgentic_remember(content="Project uses JWT with refresh tokens", memory_type="decision")
memgentic_search(query="PostgreSQL", content_type="decision")
memgentic_configure_session(exclude_sources=["codex_cli"])
memgentic_briefing(hours=24)
# Memgentic — Universal AI Memory Layer
Memgentic captures knowledge from all your AI tools and makes it searchable.
Every memory carries full provenance: which tool, which session, when it happened.
## When to Use
Search memory **before** doing work, not after:
- **Starting a new task** — Check for prior decisions, context, or related work.
- **Making architectural decisions** — Check if this was discussed before.
- **Debugging** — Search for related past issues and solutions.
- **User asks about history** — "what did we decide about...", "remember when...",
"how did we handle..."
- **Encountering unfamiliar code** — Check for context on why it was written that way.
- **Setting up or configuring something** — Check for user preferences and conventions.
When in doubt, search. It costs little and prevents repeated work.
## CLI Commands
### Semantic Search (primary)
```bash
# Search memories by meaning
memgentic search "database migration strategy"
# Compact output — fewer tokens, good for scanning
memgentic search "database migration strategy" --format compact
# Filter by platform
memgentic search "auth implementation" -s claude_code
memgentic search "API design" -s chatgpt
# Filter by content type
memgentic search "why we chose PostgreSQL" -t decision
memgentic search "user coding style" -t preference
```
### Store a Memory
```bash
# Save an important fact or decision
memgentic remember "We chose Qdrant over Pinecone for local-first vector storage"
# Memory type is auto-classified from content
memgentic remember "Always use UV for package management"
```
### Other Commands
```bash
# See which platforms have memories and how many
memgentic sources
# Generate standalone context file with recent activity
memgentic update-context
# Explore knowledge graph around an entity
memgentic graph "authentication"
# Check system health
memgentic doctor
```
## MCP Tools
If the Memgentic MCP server is running, these tools are available directly:
| Tool | Purpose |
|------|---------|
| `memgentic_recall` | Semantic search with source filtering |
| `memgentic_remember` | Store a new memory |
| `memgentic_search` | Full-text keyword search |
| `memgentic_recent` | Recent memories by timestamp |
| `memgentic_briefing` | Cross-agent briefing of recent activity |
| `memgentic_sources` | List platforms and memory counts |
| `memgentic_configure_session` | Set session-level source filters |
| `memgentic_stats` | Memory statistics and analytics |
| `memgentic_forget` | Archive (soft-delete) a memory |
| `memgentic_export` | Export memories as JSON |
### MCP Examples
```
memgentic_recall(query="authentication flow", limit=5)
memgentic_recall(query="auth", sources=["claude_code", "chatgpt"])
memgentic_remember(content="Project uses JWT with refresh tokens", memory_type="decision")
memgentic_search(query="PostgreSQL", content_type="decision")
memgentic_configure_session(exclude_sources=["codex_cli"])
memgentic_briefing(hours=24)
```
## Efficient Retrieval Strategy
Minimize token usage with a progressive approach:
1. **Start compact** — Use `--format compact` for an overview of what exists.
2. **Narrow down** — Add platform filter (`-s claude_code`) or type filter (`-t decision`)
when you know what you are looking for.
3. **Full detail** — Drop `--format compact` only when you need the complete memory content.
4. **Limit results** — Use `--limit` to cap the number of results returned.
```bash
# Step 1: Quick scan
memgentic search "deployment" --format compact --limit 10
# Step 2: Found relevant results, get details from a specific platform
memgentic search "deployment" -s claude_code --limit 3
```
## Memory Types
Memories are classified into types for filtering:
| Type | Contains |
|------|----------|
| `decision` | Architectural and technical decisions with rationale |
| `learning` | Things learned during development |
| `preference` | User preferences, conventions, coding style |
| `fact` | General knowledge and project context |
| `bug_fix` | Bug fixes, root causes, and solutions |
| `conversation_summary` | Summaries of complete sessions |
Filter by type to get precise results:
```bash
memgentic search "database" -t decision # Only decisions about databases
memgentic search "testing" -t preference # Only testing preferences
memgentic search "auth" -t bug_fix # Only auth-related bug fixes
```
## Cross-Platform Context
Memgentic captures from multiple AI tools. Each memory records its source platform:
| Platform | Source ID |
|----------|-----------|
| Claude Code | `claude_code` |
| Gemini CLI | `gemini_cli` |
| ChatGPT | `chatgpt` |
| Aider | `aider` |
| Codex CLI | `codex_cli` |
| Copilot CLI | `copilot_cli` |
| Claude Web/Desktop | `claude_web` |
| Antigravity | `antigravity` |
Use source filtering to scope searches:
```bash
# What did we discuss in Claude Code about this project?
memgentic search "project architecture" -s claude_code
# What did ChatGPT suggest about this topic?
memgentic search "caching strategy" -s chatgpt
# See all available sources
memgentic sources
```
## Capture Methods
Memories enter the system through:
- **auto_daemon** — File watcher captures conversations automatically in the background.
- **mcp_tool** — Stored via MCP tool calls during AI sessions.
- **cli** — Manually saved via `memgentic remember`.
- **json_import** — Bulk imported from conversation exports (ChatGPT, Claude Web).
## Setup
```bash
# Check prerequisites
memgentic doctor
# Interactive setup (model selection, configuration)
memgentic setup
# Import existing conversations from all detected AI tools
memgentic import-existing
# Start background capture daemon
memgentic daemon
# Start MCP server for AI tool integration
memgentic serve
```
---
> Source: [Chariton-kyp/Memgentic](https://github.com/Chariton-kyp/Memgentic) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
章节与文件索引
按说明文件中的顺序排列。
何时使用
MCP 工具
高效的检索策略
内存类型
跨平台环境
文件/命令 -> memgentic_recall · memgentic_remember · memgentic_search · memgentic_recent · memgentic_briefing · memgentic_sources · memgentic_configure_session · memgentic_stats
内容校验值 -> e384a38c8a4c
当前原文的自动摘译,尚未人工审校。
何时使用
在开始工作之前而不是之后搜索记忆: 开始一项新任务 - 检查之前的决策、上下文或相关工作。做出架构决策——检查之前是否讨论过这个问题。调试 — 搜索相关的过去问题和解决方案。用户询问历史 - “我们决定什么......”,“记得什么时候......”,
MCP 工具
如果 Memgentic MCP 服务器正在运行,则可以直接使用这些工具: 工具 · 目的
memgentic_recall· 带源过滤的语义搜索memgentic_remember· 存储新内存memgentic_search· 全文关键字搜索高效的检索策略
通过渐进的方法最大限度地减少代币使用:开始紧凑 — 使用
--format compact来概述现有内容。缩小范围 — 当您知道要查找的内容时,添加平台过滤器 (-s claude_code) 或类型过滤器 (-t decision)。完整的细节 — 仅当您需要完整的内存内容时才删除--format compact。内存类型
内存分为多种类型以供过滤: 类型 · 包含
decision· 具有基本原理的架构和技术决策learning· 开发过程中学到的东西preference· 用户偏好、约定、编码风格跨平台环境
Memgentic 从多个 AI 工具中进行捕获。每个内存记录其源平台: 平台 · 源 ID Claude Code ·
claude_codeGemini CLI ·gemini_cliChatGPT ·chatgpt