2.0 KiB
2.0 KiB
Kimi Code → Obsidian Archivist Skill
Quick Start
1. Start a session with the scratchpad
At the start of any Kimi Code session, say:
Start a new session. Read Session Notes/Current.md, update the date and project fields, and set the goal to: "<your goal>". Append your understanding of the task to the Milestones section.
2. Log milestones during the session
Any time you want to capture a decision or progress:
Append a milestone to Session Notes/Current.md: "<milestone text>"
3. Archive at the end
Option A — Manual prompt (works with hermes-mcp):
Archive this session to my Obsidian vault.
- Read Session Notes/Current.md
- Summarize the session into a clean markdown note
- Write it to Kimi Conversations/YYYY-MM-DD-<topic>.md with YAML frontmatter
- Include: goal, key decisions, prompts used, files modified, errors/fixes, next steps
- Clear Session Notes/Current.md back to template state (keep YAML and headers, reset body)
Topic: <brief-kebab-case-topic>
Option B — Run the archive script directly (from terminal):
cd ~/hermes-mcp/scripts
./archive-kimi-session.sh hermes-mcp-oauth-fix
Or with a specific session ID:
python3 ~/hermes-mcp/scripts/kimi-session-to-obsidian.py <session-id> <topic>
How It Works
- Kimi Code stores sessions in
~/.kimi/sessions/<session-id>/ - The Python script parses
context.jsonland converts it to a markdown note - Output goes to
~/obsidian/vaults/Kimi Conversations/YYYY-MM-DD-<topic>.md - The archive includes: goal, summary, files modified, tools used, key transcript, and final outcome
Files
| File | Purpose |
|---|---|
Session Notes/Current.md |
Running scratchpad for the active session |
Kimi Conversations/YYYY-MM-DD-topic.md |
Final archived sessions |
~/hermes-mcp/scripts/kimi-session-to-obsidian.py |
Python archive converter |
~/hermes-mcp/scripts/archive-kimi-session.sh |
Bash wrapper (auto-detects latest session) |