codex-history-ingest

codex-history-ingest is a skill for Codex from saski/arnesto. It costs 108 tokens per session (1,666 once invoked), scanned A, a copy of codex-history-ingest, Unlicense.

A tool for extracting lasting technical knowledge from past Codex CLI conversations and adding it to an Obsidian wiki. 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 history, process new or changed session files, and distill durable insights into an existing wiki.
Why use it?
It turns scattered conversation logs into reusable notes instead of leaving useful decisions and lessons buried in old sessions.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to import Codex history, process new or changed session files, and distill durable insights into an existing wiki.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saski/arnesto/codex-history-ingest
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 saski/arnesto --skill codex-history-ingest
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

Made for: 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/saski/arnesto/codex-history-ingest/github.svg)](https://agentmods.dev/skills/saski/arnesto/codex-history-ingest)
Your own site
<a href="https://agentmods.dev/skills/saski/arnesto/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/saski/arnesto/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/saski/arnesto/codex-history-ingest"><img src="https://agentmods.dev/badge/skills/saski/arnesto/codex-history-ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,666 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 89% 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.00108 $0.01666
Opus 5 $0.00054 $0.00833
Sonnet 5 $0.00022 $0.00333
Haiku 4.5 $0.00011 $0.00167

Measured 9d ago against content hash 279425843105, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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

89% identical to codex-history-ingest — 47 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.

.agents/skills/codex-history-ingest/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 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

  1. Read .env to get OBSIDIAN_VAULT_PATH and CODEX_HISTORY_PATH (default to ~/.codex if unset)
  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)

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

Avoid ingesting SQLite internals unless the user explicitly asks.

Step 1: Survey and Compute Delta

Read the full file on GitHub · 204 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. 9d ago First seen · 204 lines · 108 tokens per session scan A 279425843105

Subscribe to this mod's changes

codex-history-ingest is a skill published in the GitHub repository saski/arnesto (5 stars, last pushed 3d ago), licensed Unlicense. It adds 108 tokens to every session and 1,666 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to codex-history-ingest, differing in 47 lines, and is treated as a copy.

Related

Other skills, from other repositories

atlas-absorb

A document-reading skill that finds concepts in meeting notes, plans, or pull-request descriptions and connects them to an existing knowledge graph. A knowledge graph stores concepts and their relationships.

wlsdks/ontology-atlas · 76 tokens

clinical-case-report

Structured medical case presentation for clinical rounds, conferences, and documentation. Generates SOAP-format or narrative case reports with physiologically accurate vitals, labs, and evidence-based plans. Use when the brief mentions "case report", "case presentation", "SOAP note", "clinical case", "ward rounds"…

nexu-io/open-design · 73 tokens

html-ppt-zhangzara-soft-editorial

A digital-transformation roadmap for a legacy insurer — the diagnosis, the sequenced bets, and the operating rhythm to land them. Built as a decision-grade consulting deck for client executives.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-stencil-tablet

A workplace-safety compliance review for a manufacturing regulator — findings, the evidence chain, and the corrective mandate. Built as a decision-grade policy briefing deck for regulator, plant leadership.

nexu-io/open-design · 49 tokens

pdf

A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.

agentscope-ai/QwenPaw · 95 tokens

doc-kami-parchment

Warm parchment canvas (#f5f4ed), monochrome ink-blue accent (#1B365D), one serif family, and editorial-grade typography.

nexu-io/open-design · 37 tokens