codex-history-ingest

codex-history-ingest is a skill for Claude Code from Ar9av/obsidian-wiki. It costs 50 tokens per session (2,079 once invoked), scanned A, original, MIT.

A knowledge-import tool that reads past Codex CLI conversations and turns useful coding insights into pages in an Obsidian wiki. The Codex CLI is a command-line coding assistant, and Obsidian is a linked note-taking app.

In plain words
What is it for?
Use it to import Codex CLI history, extract lasting technical knowledge, and add it to an Obsidian wiki.
Why use it?
Important architecture decisions, debugging notes, and patterns can be buried in old sessions. This helps retain the reusable knowledge instead of leaving it only in conversation logs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads ~/.codex paths; mentions Codex.

Part of the obsidian-wiki plugin — 40 skills, 2 hooks shipped together

Good fit Use it to import Codex CLI history, extract lasting technical knowledge, and add it to an Obsidian wiki.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ar9av/obsidian-wiki/codex-history-ingest
About the project

obsidian-wiki is a framework that helps AI agents build and maintain an interconnected knowledge base from text-based material in an Obsidian vault. It is for people who want their agents to remember discoveries, connect related information, and answer questions with wiki-link citations. Catalogue add-ons provide the agent skills, instructions, agents, and configuration used to create and maintain these wikis.

Ar9av/obsidian-wiki · 3,691 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ar9av/obsidian-wiki --skill codex-history-ingest
Clone the repo
git clone --depth 1 https://github.com/Ar9av/obsidian-wiki

Made for: Claude Code.

Or install obsidian-wiki, the plugin that ships this one along with the rest of its 40 skills, 2 hooks.

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/ar9av/obsidian-wiki/codex-history-ingest/github.svg)](https://agentmods.dev/skills/ar9av/obsidian-wiki/codex-history-ingest)
Your own site
<a href="https://agentmods.dev/skills/ar9av/obsidian-wiki/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/ar9av/obsidian-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/ar9av/obsidian-wiki/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/ar9av/obsidian-wiki/codex-history-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,079 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. Third-party audits
  • Socket pass 13 Oct 2026
  • Snyk pass 13 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00050 $0.02079
Opus 5.5 $0.00020 $0.00832
Sonnet 5.5 $0.00010 $0.00416
Haiku 4.5 $0.00005 $0.00208

Measured yesterday against content hash 9935803c1fab, 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 yesterday.

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

Copies of this mod

3 near-identical copies found in the catalogue:

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

How it starts

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

Codex History Ingest — Conversation Mining

You are extracting knowledge from the user's past Codex sessions and distilling it into the Obsidian 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

Writing profile: Before drafting or rewriting natural-language Markdown, read and apply the Writing Profile Resolution section in llm-wiki/SKILL.md. Framework schema, provenance, safety, and operation-specific requirements take precedence. WRITING.md preferences apply only to newly drafted or rewritten natural-language Markdown; preserve source content and structured records.

  1. Resolve config — follow the Config Resolution Protocol in llm-wiki/SKILL.md (inline @name override → walk up CWD for .env → global config → prompt setup). This gives OBSIDIAN_VAULT_PATH and CODEX_HISTORY_PATH (defaults to ~/.codex)
  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 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)

Read the full file on GitHub · 251 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. yesterday Changed 9935803c1fab
  2. 24d ago Changed 37cf955d3be8
  3. 1mo ago Changed · -4 lines · -58 tokens per session 359d1b71a21d
  4. 1mo ago Changed · +6 lines 678ff446016a
  5. 2mo ago First seen · 249 lines · 108 tokens per session scan A 90254fcd1ae7

Subscribe to this mod's changes

codex-history-ingest is a skill published in the GitHub repository Ar9av/obsidian-wiki (3,691 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 2,079 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

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-ingestAr9av/obsidian-wikiSkill3.7kyesterdayMITA50Claude Code
llm-wikiTheSmuks/ai-project-templateSkill811d agoMITA31Claude Code, Codex
llmwikiatomicstrata/llm-wiki-compilerSkill2.2k7d agoMITA66Claude Code, Codex
llm-wikizosmaai/pi-llm-wikiSkill6233d agoMITA52Claude Code
link-memorygowtham0992/linkSkill2187d agoMITA0Claude Code, Codex
link-retrievegowtham0992/linkSkill2187d agoMITA42Claude Code, Codex
link-ingestgowtham0992/linkSkill2187d agoMITA44Claude Code, Codex