Structured memory system for AI agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, and local semantic search.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install fsxmemory或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install fsxmemory⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/fsxmemory/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: fsxmemory version: 1.3.1 description: Structured memory system for AI agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, and local semantic search. author: Foresigxt repository: https://github.com/Foresigxt/foresigxt-cli-memory ---
Structured memory system for AI agents.
npm install -g @foresigxt/foresigxt-cli-memory
# Initialize vault (creates folder structure + templates)
fsxmemory init ~/memory
For isolated workspace memory (each workspace has its own vault):
# Create .env in workspace root
echo 'FSXMEMORY_PATH=/path/to/workspace/memory' > .env
# All agents in THIS workspace use this isolated vault
fsxmemory stats # Works automatically!
For shared memory across all workspaces:
# Set global environment variable (in ~/.bashrc or ~/.zshrc)
export FSXMEMORY_PATH=/path/to/shared/memory
# All agents in ALL workspaces share the same vault
Or: Use --vault flag for one-time override:
fsxmemory stats --vault /path/to/other/vault
# Types: fact, feeling, decision, lesson, commitment, preference, relationship, project, procedural, semantic, episodic
fsxmemory remember decision "Use Postgres over SQLite" --content "Need concurrent writes for multi-agent setup"
fsxmemory remember lesson "Context death is survivable" --content "Checkpoint before heavy work"
fsxmemory remember relationship "Justin Dukes" --content "Client contact at Hale Pet Door"
fsxmemory remember procedural "Deploy to Production" --content "1. Run tests 2. Build 3. Deploy"
fsxmemory remember semantic "Event Loop Concept" --content "JavaScript's concurrency model..."
fsxmemory remember episodic "First Production Deploy" --content "Deployed v2.0 today, team was nervous but it went well"
fsxmemory capture "TODO: Review PR tomorrow"
# Keyword search (fast)
fsxmemory search "client contacts"
# Semantic search (slower, more accurate)
fsxmemory vsearch "what did we decide about the database"
fsxmemory checkpoint --working-on "PR review" --focus "type guards" --blocked "waiting for CI"
fsxmemory recover --clear
# Shows: death time, last checkpoint, recent handoff
fsxmemory handoff \
--working-on "Foresigxt Memory improvements" \
--blocked "npm token" \
--next "publish to npm, create skill" \
--feeling "productive"
fsxmemory recap
# Shows: recent handoffs, active projects, pending commitments, lessons
Migrate existing vaults from OpenClaw, Obsidian, or other markdown-based systems:
# See what would be changed without modifying files
fsxmemory migrate --from openclaw --vault /path/to/vault --dry-run
# Recommended: Creates automatic backup before migration
fsxmemory migrate --from openclaw --vault /path/to/vault --backup
# The migration:
# ✅ Adds YAML frontmatter to all markdown files
# ✅ Renames directories (procedural→procedures, semantic→knowledge, episodic→episodes)
# ✅ Creates .fsxmemory.json config file
# ✅ Preserves all content and custom categories
# ✅ Creates timestamped backup for rollback
# Restore from backup if something went wrong
fsxmemory migrate --rollback --vault /path/to/vault
# Available source formats
--from openclaw # OpenClaw vault format
--from obsidian # Obsidian vault format
--from generic # Generic markdown vault
# Migration flags
--dry-run # Preview changes without modifying files
--backup # Create backup before migration (recommended)
--force # Skip confirmation prompts
--verbose # Show detailed progress
--rollback # Restore from last backup
# 1. Analyze first
fsxmemory migrate --from openclaw --vault ~/.openclaw/workspace/memory --dry-run
# 2. Run migration with backup
fsxmemory migrate --from openclaw --vault ~/.openclaw/workspace/memory --backup --verbose
# 3. Verify migration worked
fsxmemory stats --vault ~/.openclaw/workspace/memory
fsxmemory doctor --vault ~/.openclaw/workspace/memory
Migration Speed: ~53 files in 0.07 seconds ⚡
Wiki-link entity mentions in markdown files:
# Link all files
fsxmemory link --all
# Link single file
fsxmemory link memory/2024-01-15.md
Foresigxt Memory includes structured templates for consistent documentation. Location: templates/ directory.
| Template | Type | Use For | Sections | |----------|------|---------|----------| | decision.md | decision | Key choices, architecture decisions | Context, Options, Decision, Outcome | | procedure.md | procedural | How-to guides, workflows, SOPs | Purpose, Prerequisites, Steps, Pitfalls, Verification | | knowledge.md | semantic | Concepts, definitions, mental models | Definition, Key Concepts, Examples, Why It Matters | | episode.md | episodic | Events, experiences, meetings | What Happened, Context, Key Moments, Reflection | | person.md | person | Contacts, relationships | Contact, Role, Working With, Interactions | | project.md | project | Active work, initiatives | Goal, Status, Next Actions, Blockers | | lesson.md | lesson | Insights, patterns learned | Situation, Lesson, Application | | handoff.md | handoff | Session continuity | Working On, Context, Next Steps, Blockers | | daily.md | daily | Daily notes, journal | Focus, Done, Notes |
Templates are automatically selected by memory type:
fsxmemory remember decision "Title" --content "..." # → templates/decision.md
fsxmemory remember procedural "Title" --content "..." # → templates/procedure.md
fsxmemory remember semantic "Title" --content "..." # → templates/knowledge.md
fsxmemory remember episodic "Title" --content "..." # → templates/episode.md
fsxmemory remember relationship "Name" --content "..." # → templates/person.md
fsxmemory remember lesson "Title" --content "..." # → templates/lesson.md
To view template structure: Read the template file in templates/ directory before creating a memory document.
Template features:
vault/
├── .fsxmemory/ # Internal state
│ ├── last-checkpoint.json
│ └── dirty-death.flag
├── decisions/ # Key choices with reasoning
├── lessons/ # Insights and patterns
├── people/ # One file per person
├── projects/ # Active work tracking
├── procedures/ # How-to guides and workflows
├── knowledge/ # Concepts and definitions
├── episodes/ # Personal experiences
├── handoffs/ # Session continuity
├── inbox/ # Quick captures
└── templates/ # Document templates (9 types)
[[person-name]] builds your knowledge graphForesigxt Memory uses qmd for search:
...
安装 ForesigxtMemory 后,可以对 AI 说这些话来触发它
Help me get started with ForesigxtMemory
Explains what ForesigxtMemory does, walks through the setup, and runs a quick demo based on your current project
Use ForesigxtMemory to structured memory system for AI agents
Invokes ForesigxtMemory with the right parameters and returns the result directly in the conversation
What can I do with ForesigxtMemory in my documents & notes workflow?
Lists the top use cases for ForesigxtMemory, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/fsxmemory/ 目录(个人级,所有项目可用),或 .claude/skills/fsxmemory/(项目级)。重启 AI 客户端后,用 /fsxmemory 主动调用,或让 AI 根据上下文自动发现并使用。
ForesigxtMemory 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
ForesigxtMemory 可免费安装使用。请查阅仓库了解许可证信息。
Structured memory system for AI agents. Context death resilience (checkpoint/recover), structured storage, Obsidian-compatible markdown, and local semantic search.
ForesigxtMemory 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using ForesigxtMemory
Identifies repetitive steps in your workflow and sets up ForesigxtMemory to handle them automatically