logseq-wiki: Skill for Claude Code

.skills/codex-history-ingest/SKILL.md

codex-history-ingest is a skill for Claude Code, Codex from ystreibel/logseq-wiki. It costs 107 tokens per session (1,643 once invoked), scanned A, a copy of codex-history-ingest, MIT.

A knowledge-import tool that reads your past Codex CLI conversations and turns useful findings into pages in a Logseq wiki, a personal note-taking system.

In plain words
What is it for?
Use it to review previous Codex work, recover solutions and decisions, and add those insights to an existing Logseq knowledge base.
Why use it?
It saves you from searching through old coding sessions and manually copying the parts that remain useful. It can also avoid processing session files that were already imported.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

This is ystreibel/logseq-wiki's own configuration. It tells Claude Code and Codex how to work on logseq-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything logseq-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ystreibel/logseq-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ystreibel/logseq-wiki/main/.skills/codex-history-ingest/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ystreibel/logseq-wiki

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-history-ingest

README.md
[![agentmods](https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/codex-history-ingest/github.svg)](https://agentmods.dev/skills/ystreibel/logseq-wiki/codex-history-ingest)
Your own site
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/codex-history-ingest/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-history-ingest

Your own site · 80×15
<a href="https://agentmods.dev/skills/ystreibel/logseq-wiki/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/ystreibel/logseq-wiki/codex-history-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 81% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01643
Opus 5.5 $0.00043 $0.00657
Sonnet 5.5 $0.00021 $0.00329
Haiku 4.5 $0.00011 $0.00164

Measured 2mo ago against content hash ed17925076cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-history-ingest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

81% identical to codex-history-ingest — 149 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.skills/codex-history-ingest/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex History Ingest — Conversation Mining for Logseq

REQUIRED: Invoke llm-wiki skill first for Logseq syntax and file format rules.

You are extracting knowledge from the user's past Codex sessions and distilling it into the Logseq wiki. Session logs are rich but noisy: focus on durable knowledge, not operational telemetry.

This skill can be invoked directly or via the wiki-history-ingest router (/wiki-history-ingest codex).

Before You Start

  1. Read ~/.logseq-wiki/config to get LOGSEQ_VAULT_PATH and CODEX_HISTORY_PATH (default to ~/.codex if unset)
  2. Read wiki/_manifest.json at the vault root to check what has already been ingested
  3. Read wiki/_master-index.md at the vault root to understand what the wiki already contains

Ingest Modes

Append Mode (default)

Check wiki/_manifest.json for each source file. Only process:

  • Files not in the manifest (new session rollouts, new index files)
  • 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.

Codex Data Layout

Codex stores local artifacts under ~/.codex/.

~/.codex/
├── sessions/                          # Session rollout logs by date
│   └── YYYY/MM/DD/
│       └── rollout-<timestamp>-<id>.jsonl
├── archived_sessions/                 # Archived rollout logs
├── session_index.jsonl                # Lightweight index of thread id/name/updated_at
├── history.jsonl                      # Local transcript history (if persistence enabled)
├── config.toml                        # User config (contains history settings)
└── state_*.sqlite / logs_*.sqlite     # Runtime DBs (usually skip)

Key data sources ranked by value

  1. session_index.jsonl — best inventory source for IDs, titles, and freshness
  2. sessions/**/rollout-*.jsonl — rich structured transcript events
  3. history.jsonl — useful fallback/timeline aid if enabled

Read the full file on GitHub · 210 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 210 lines · 107 tokens per session scan A ed17925076cf

Subscribe to this mod's changes

codex-history-ingest is a skill published in the GitHub repository ystreibel/logseq-wiki (5 stars, last pushed 11d ago), licensed MIT. It adds 107 tokens to every session and 1,643 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to codex-history-ingest, differing in 149 lines, and is treated as a copy.

Related

codex-history-ingest compared with skills from other repositories

codex-history-ingest next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-history-ingestystreibel/logseq-wikiSkill511d agoMITA107Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex