
Openclaw History Ingest
Mine past OpenClaw sessions and MEMORY.md into an Obsidian wiki so solo builders keep durable notes instead of losing context in JSONL logs.
Install
npx skills add https://github.com/ar9av/obsidian-wiki --skill openclaw-history-ingestWhat is this skill?
- Reads OpenClaw MEMORY.md and per-session JSONL transcripts under a configurable history path (default ~/.openclaw)
- Distills durable wiki knowledge and skips operational telemetry noise
- Append mode (default) respects .manifest.json so already-ingested sources are not reprocessed
- Uses vault index.md and .manifest.json before ingest to align with existing wiki structure
- Resolvable via wiki-history-ingest router (/wiki-history-ingest openclaw) or direct invocation
Adoption & trust: 1.3k installs on skills.sh; 1.8k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Canonical shelf is Operate because the skill turns live agent session history into long-term operational knowledge you revisit while running and improving your stack. Iterate fits mining transcripts and MEMORY.md into the vault—compounding what you learned across sessions rather than one-off codegen.
Common Questions / FAQ
Is Openclaw History Ingest safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Openclaw History Ingest
# OpenClaw History Ingest — Session & Memory Mining You are extracting knowledge from the user's OpenClaw agent history and distilling it into the Obsidian wiki. OpenClaw stores both a structured long-term MEMORY.md and per-session JSONL transcripts — focus on durable knowledge, not operational telemetry. This skill can be invoked directly or via the `wiki-history-ingest` router (`/wiki-history-ingest openclaw`). ## Before You Start 1. **Resolve config** — follow the Config Resolution Protocol in `llm-wiki/SKILL.md` (walk up CWD for `.env` → `~/.obsidian-wiki/config` → prompt setup). This gives `OBSIDIAN_VAULT_PATH` and `OPENCLAW_HISTORY_PATH` (defaults to `~/.openclaw`) 2. Read `.manifest.json` at the vault root to check what has already been ingested 3. Read `index.md` at the vault root to understand what the wiki already contains ## Ingest Modes ### Append Mode (default) Check `.manifest.json` for each source file. Only process: - Files not in the manifest (new session logs, updated MEMORY.md or daily notes) - Files whose modification time is newer than `ingested_at` in the manifest Use this mode for regular syncs. ### Full Mode Process everything regardless of manifest. Use after `wiki-rebuild` or if the user explicitly asks for a full re-ingest. ## OpenClaw Data Layout OpenClaw stores all local artifacts under `~/.openclaw/`. ``` ~/.openclaw/ ├── openclaw.json # Global config ├── credentials/ # Auth tokens (skip entirely) ├── workspace/ # Agent workspace │ ├── MEMORY.md # Long-term memory (loaded every session) │ ├── DREAMS.md # Optional dream diary / summaries │ └── memory/ │ ├── YYYY-MM-DD.md # Daily notes (today + yesterday auto-loaded) │ └── ... └── agents/ └── <agentId>/ ├── agent/ │ └── models.json # Agent config (skip) └── sessions/ ├── sessions.json # Session index └── <sessionId>.jsonl # Session transcript (JSONL, append-only) ``` ### Key data sources ranked by value 1. `workspace/MEMORY.md` — highest signal; long-term durable facts the agent accumulated 2. `workspace/memory/YYYY-MM-DD.md` — daily notes; recent entries often contain active project context 3. `agents/*/sessions/<id>.jsonl` — session transcripts; rich but noisy 4. `agents/*/sessions/sessions.json` — session index for inventory and timestamps 5. `workspace/DREAMS.md` — optional summaries; ingest if present Skip `credentials/` entirely. Skip `agents/*/agent/models.json` (runtime config, not user knowledge). ## Step 1: Survey and Compute Delta Scan `OPENCLAW_HISTORY_PATH` and compare against `.manifest.json`: - `~/.openclaw/workspace/MEMORY.md` - `~/.openclaw/workspace/DREAMS.md` (if present) - `~/.openclaw/workspace/memory/*.md` - `~/.openclaw/agents/*/sessions/sessions.json` - `~/.openclaw/agents/*/sessions/*.jsonl` Classify each file: - **New** — not in manifest - **Modified** — in manifest but file is newer than `ingested_at` - **Unchanged** — already ingested and unchanged Report a concise delta summary before deep parsing. ## Step 2: Parse MEMORY.md First `MEMORY.md` is the highest-value source. It is plain markdown, human-readable and human-editable. It typically contains: - Durable facts about the user's preferences, envir