Skip to content
Skills Library
Personal productivity · Automation

mnemoloci-sessions

/mnemoloci-sessions

Build initial knowledge from the user's existing Claude Code session history — decisions, preferences, project context, lessons, and facts about the user. Use when the user asks to read, learn from, or import their past Claude sessions/conversations into the second brain.

Repository
mnemoloci ↗
Licence
MIT
Last repository change
19.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Build initial knowledge from the user's existing Claude Code session history — decisions, preferences, project context, lessons, and facts about the user. Use when the user asks to read, learn from, or import their past Claude sessions/conversations into the second brain.

Original author description

Build initial knowledge from the user's existing Claude Code session history — decisions, preferences, project context, lessons, and facts about the user. Use when the user asks to read, learn from, or import their past Claude sessions/conversations into the second brain.

How it works

  1. 1. Import
  2. 2. Compile
  3. Extraction rules for session digests
  4. ChatGPT and claude.ai conversations
  5. OpenAI Codex sessions
  6. Personal information
Original SKILL.md headings · 83 lines, 546 words
SKILL.md preview
---
name: mnemoloci-sessions
description: Build initial knowledge from the user's existing Claude Code session history — decisions, preferences, project context, lessons, and facts about the user. Use when the user asks to read, learn from, or import their past Claude sessions/conversations into the second brain.
---

# Learn from past Claude Code sessions

## 1. Import

Run the import. It is deterministic and needs no LLM:

```
mnemoloci sessions import [--project TEXT]… [--exclude TEXT]… [--since YYYY-MM-DD] [--dry-run]
```

**Always start with `--dry-run`** and show the user the counts:
- `imported`: sessions with content;
- `memory_files`: Claude's own memory notes, already summarised;
- `pruned_sessions_from_history`: sessions only recoverable as prompt history;
- `files_to_write`.

Ask which projects to include or exclude. Transcripts can contain private matters, and the user decides. Then run it for real.

The import writes redacted Markdown digests under `raw/sessions/<project>/<date>-<id>/part-NNN.md`:
- it keeps only what the user typed and Claude's text replies;
- it drops tool output, thinking, subagents, notifications, slash-command noise and IDE context;
- secrets are replaced by `[REDACTED:…]`;
- re-running is incremental, and a growing session only rewrites its last part.

## 2. Compile

Compile the digests with the normal loop from `mnemoloci-ingest`, using `--source claude-sessions`:

```
mnemoloci compile plan --source claude-sessions --limit 10
```

Memory files (`…/memory/*.md`) sort first because they are the densest.

## Extraction rules for session digests

These replace the generic rules.

**What to extract**
- Durable knowledge only: decisions and why they were taken, technical findings that were verified, project architecture, conventions, recurring problems and their fixes, tools and services used (entities).
- Chit-chat, transient debugging, and anything later contradicted in the same session.

**Claims and confidence**
- Claims cite the digest's line numbers, like any source.
- Something Claude said but never verified is `inferred`, with confidence ≤ 0.6.
- Something the user stated or confirmed can be `extracted` with high confidence.

## ChatGPT and claude.ai conversations

The user can download their history as an export:
- **ChatGPT:** Impostazioni → Controlli dati → Esporta dati.
- **claude.ai:** Settings → Privacy → Export data.

Both arrive by email as a zip. Import it without unpacking:

```
mnemoloci import chats "<export.zip or conversations.json>" --dry-run
mnemoloci import chats "<…>" [--include TEXT]… [--exclude TEXT]… [--since YYYY-MM-DD]
```

1. Start with `--dry-run`. Show the number of conversations and messages, and ask which titles to include or exclude. These are private conversations.
2. For ChatGPT, only the branch the user saw is imported: abandoned regenerations and edits are left out, and so are tool output and hidden system messages. Secrets are redacted.
3. The digests land in `raw/chats/<chatgpt|claude-ai>/`. They are searchable at once with `sessions search`. Compile them like sessions with `--source chats`, following the same extraction rules below.

## OpenAI Codex sessions

```
mnemoloci import codex [--since YYYY-MM-DD] [--dry-run]
```

This reads `~/.codex/sessions` (or `$CODEX_HOME`). Only what the user typed and Codex's replies are kept: the automatic `<environment_context>` blocks, reasoning and tool calls are left out. Digests land in `raw/codex/`, are searchable at once, and are compiled with `--source codex-sessions`.

## Personal information

Do **not** put facts about the user or their goals into wiki pages. Collect them separately while extracting:
- profile candidates: role, skills, tools, preferences, working style;
- goal candidates: things the user says they want to achieve.

At the end of the run, show the user the list and ask which to save. Save only confirmed ones, with `mnemoloci-remember` (`profile set`, `goals add`).

Never save identifiers such as addresses, phone numbers, IDs, bank details or health data; the engine rejects the worst ones anyway.

Versions

The database has no other skills named mnemoloci-sessions.

Database snapshot: 13.11.2026 · package version 36f68cc1dcf9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100mnemoloci-inbox
    Save screenshots and images into the Mnemoloci second brain — images the user attaches in the chat (also from the phone via Claude Code Remote Control), files saved by a Telegram channel, or any image path — then transcribe and compile them. Use when the user sends a…
  • 100mnemoloci-remember
    Save and manage the user's personal profile, goals, and working-memory notes (decisions, lessons, handoffs, preferences, runbooks) in Mnemoloci. Use when the user says "remember that…" ("ricordati che…"), states a goal or preference, asks to track objectives, when an important…
  • 90loreconvo
    Vault your Claude conversations for cross-session recall. Use this skill when the user asks to "save this session", "vault this", "remember this", "what did we decide about", "load context for", "/vault save", "session history", "find past sessions", "export session", or wants…
  • 100clog
    ☕️ cafe · Search Claude Code chat history (past sessions, threads, conversations) via the `clog` CLI. Use when the user asks to find an old session, recall what was discussed about something, look up which branch or repo a chat was on, count sessions by topic, or pull message…
  • 100claude-history-ingest
    Ingest Claude Code conversation/session history into Obsidian as distilled knowledge. Use for importing or mining past Claude sessions, .claude data, project/session history, or audit logs.
  • 95search-sessions
    Search across Claude Code and OpenClaw session history, plus Obsidian vaults. Use when you need to find past conversations, query sessions by date range, filter by project, search Obsidian notes, or resume previous sessions by UUID.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.