rem-source-codex

rem-source-codex is a skill for Claude Code, Codex from openonion/connectonion. It costs 49 tokens per session (789 once invoked), scanned A, original, Apache-2.0.

A guide to finding a user's own messages in Codex CLI session files. Codex CLI is a command-line coding assistant, and these files store its recorded sessions as JSONL, a file format with one JSON object per line.

In plain words
What is it for?
Use it when extracting the user's intentions and decisions from Codex sessions for notebook pages. It explains the file locations, relevant message fields, dates, and limits of the source.
Why use it?
It distinguishes what the user actually wrote from injected instructions, assistant replies, and tool output. It also prevents large or incomplete session histories from being misread.

Skill for Claude CodeCodex

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

Good fit Use it when extracting the user's intentions and decisions from Codex sessions for notebook pages. It explains the file locations, relevant message fields, dates, and limits of the source.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openonion/connectonion/rem-source-codex
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,568 stars · on GitHub · docs.connectonion.com

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 openonion/connectonion --skill rem-source-codex
Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

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 rem-source-codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/openonion/connectonion/rem-source-codex/github.svg)](https://agentmods.dev/skills/openonion/connectonion/rem-source-codex)
Your own site
<a href="https://agentmods.dev/skills/openonion/connectonion/rem-source-codex"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/rem-source-codex/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 rem-source-codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/openonion/connectonion/rem-source-codex"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/rem-source-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 789 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 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.00049 $0.00789
Opus 5.5 $0.00020 $0.00316
Sonnet 5.5 $0.00010 $0.00158
Haiku 4.5 $0.00005 $0.00079

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

Security

Grade A, and why

rem-source-codex 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 1mo 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.

connectonion/useful_skills/rem-source-codex/SKILL.md · 70 lines

How it starts

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

Codex CLI as a source

Read with the stage Skill that loaded it (rem-extract, rem-maintain or rem-investigate): that one says what to produce, this one what is true of this source.

Where the user's words are

~/.codex/sessions/YYYY/MM/DD/rollout-<ISO>-<uuid>.jsonl, one JSONL file per session. The importer recognizes native CLI and Desktop user-input shapes; harness context, imported history, subagents and scheduled automation prompts are excluded. An input_scope may identify an older Desktop turn without client content kinds, or an explicit voice transcription with the mixed transcript omitted. Preserve those limits: transcribed wording can contain recognition errors. timestamp_scope marks legacy session-start dates. A session folder is context, not proof of the product's identity.

The store

  • Directories are dated, oldest first. cwd in the session header is the project, but the notebook's page title wins over the directory name.
  • A gap in the timeline means a machine change, not expired history.
  • Sessions can be hundreds of MB; never assume one fits.

Rules

  • A session records intent, not repository state. Write "decided to X because Y", never git SHAs, CI run counts, PR numbers or screenshot paths.
  • One session is one sitting, not one project. Same-day sessions usually continue one thread; do not open a page per session.
  • Sources: keep the few ids that carry the claim, not every id seen.
  • Pasted material is not the user's words. Summarise why a trace, log or file was pasted; do not quote it back.
  • A question is not a decision. Keep the mood ("should we use X?" vs "we're using X").
  • A bare /skill args message records that the user ran something, not a belief. Note it only when running it is itself the fact.

Message IDs

Keep supplied IDs verbatim: codex:<session>:<offset>-<h8>. The suffix is the first eight hex characters of SHA-256 of the parsed text, before redaction or truncation. Copied messages share an ID; divergent rollout messages at the same offset have different IDs. Old codex:<session>:<offset> citations stay valid; do not rewrite them or migrate stored data. Claude Code keeps claude-code:<session>:<offset>.

Read the full file on GitHub · 70 lines

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. 1mo ago Changed · +9 lines dfb64ab6e8e2
  2. 1mo ago Changed · -2 lines 64c9bffb82e3
  3. 2mo ago Changed · +2 lines 6f803b8de04c
  4. 2mo ago First seen · 61 lines · 49 tokens per session scan A 89bb2689c434

Subscribe to this mod's changes

rem-source-codex is a skill published in the GitHub repository openonion/connectonion (1,568 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 789 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-09-30.

Related

rem-source-codex compared with skills from other repositories

rem-source-codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rem-source-codexopenonion/connectonionSkill1.6kyesterdayApache-2.0A49Claude Code, Codex
memmy-projectMemTensor/memmy-agentSkill2.4kyesterdayMITA277Claude Code, Codex
computer-historyMemTensor/memmy-agentSkill2.4kyesterdayMITA42Claude Code, Codex
docxMemTensor/memmy-agentSkill2.4kyesterdayMITA40Claude Code, Codex
update-setupMemTensor/memmy-agentSkill2.4kyesterdayMITA0Claude Code, Codex
skill-creatorMemTensor/memmy-agentSkill2.4kyesterdayMITA28Claude Code, Codex
memmy-memoryMemTensor/memmy-agentSkill2.4kyesterdayMITA34Claude Code, Codex