一键导入
obsidian
Obsidian Vault Integration — Automatically save session logs to your Obsidian vault. Enables persistent AI agent memory across pi sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Obsidian Vault Integration — Automatically save session logs to your Obsidian vault. Enables persistent AI agent memory across pi sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Show this user guide for Pi coding agent. Use when: user asks how to use pi, pi configuration, available skills, extensions, commands, or needs help getting started.
orchestrate comprehensive repository assessment using parallel specialist analysis
assess AI tool adoption and usage patterns in the team
analyze code review participation and quality by developer
orchestrate comprehensive team assessment using parallel specialist analysis
analyze documentation contributions and patterns by developer
| name | obsidian |
| description | Obsidian Vault Integration — Automatically save session logs to your Obsidian vault. Enables persistent AI agent memory across pi sessions. |
This skill provides Obsidian vault integration for the pi agent, enabling persistent context and automatic session log saving.
The Obsidian vault path is configured as:
VAULT="/Users/ldangelo/Library/Mobile Documents/iCloud~md~obsidian/Documents/ldangelo"
Use this skill (automatically) when:
Session logs are automatically saved to the Obsidian vault at session end via the obsidian-session-saver.ts extension.
The extension:
session_shutdown eventsSessions/YYYY-MM-DD-session-id.mdAutomatic Saving Behavior:
/reload, /new, or /resume (only on actual quit)On session_shutdown event, the extension extracts:
Generates a markdown file with:
---
date: YYYY-MM-DD
project: project-name
tags: [pi-session, auto-saved]
---
# Session — YYYY-MM-DD
...
Saves to VAULT/Sessions/session-id.md
The skill includes helper scripts for manual operations:
# Search for a term across all notes
pi obsidian search "term"
# Search in specific directory
pi obsidian search "term" --dir=Projects
# Search with filters
pi obsidian search "term" --dir=Sessions --date=2024
# Get recent session logs
pi obsidian recent-sessions
# Get topics list
pi obsidian list-topics
# Get daily notes for today
pi obsidian daily-notes
# Save content to a named file in the vault
pi obsidian save "filename.md" --content="..." --dir=Projects
# Save to daily notes
pi obsidian save-daily "content" --tags=tag1,tag2
# List all topics
pi obsidian list-topics
# List recent sessions
pi obsidian list-sessions
# List daily notes
pi obsidian list-daily-notes
All four agents (pi, Claude, OpenClaw, Codex) use the same Obsidian vault for persistent memory:
| Agent | Vault Path | Session Logs |
|---|---|---|
| pi | ~/Library/Mobile Documents/iCloud~md~obsidian/Documents/ldangelo | Sessions/ |
| Claude | Same vault | Sessions/ |
| OpenClaw | Same vault | Sessions/ |
| Codex | Same vault | Sessions/ |
---
date: YYYY-MM-DD
project: project-name
tags: [pi-session, auto-saved]
---
# Session — YYYY-MM-DD
## Summary
This session log was automatically saved by the pi agent.
## Conversation Highlights
[Last user message content]
## Key Results
[Last assistant message content]
## Statistics
- Tool calls: N
- Total entries: N
- Reason: quit
## Open Items
*Review the session log and add any pending tasks here.*
## Files Modified
*Review the session log and list any files modified here.*
## Key Learnings
*Review the session log and note any important learnings here.*
PI_OBSIDIAN_VAULT - Override the default vault pathThe session saver extension is at:
~/.pi/agent/extensions/obsidian-session-saver.ts
# Session ends automatically - log saved to vault
pi obsidian save-session # Manual save if needed
# Search the vault
pi obsidian search "api design patterns"
# List topics
pi obsidian list-topics
# Get recent sessions
pi obsidian recent-sessions
session_shutdown event for reliable saving/pi-fact <fact> saves durable facts to Agent/PiMemory/MEMORY.md in the vault