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.
npx agentmods add commands/mturac/everything-openai-codex/sessionsgit clone --depth 1 https://github.com/mturac/everything-openai-codexWrote 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.
[](https://agentmods.dev/commands/mturac/everything-openai-codex/sessions)<a href="https://agentmods.dev/commands/mturac/everything-openai-codex/sessions"><img src="https://agentmods.dev/badge/commands/mturac/everything-openai-codex/sessions.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.04466 |
| Opus 5 | $0.00007 | $0.02233 |
| Sonnet 5 | $0.00003 | $0.00893 |
| Haiku 4.5 | $0.00001 | $0.00447 |
Grade A, and why
sessions 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sessions Command
Manage OpenAI Codex session history - list, load, alias, and edit sessions stored in ~/.codex/session-data/ with legacy reads from ~/.codex/sessions/.
Execution Contract
- Role: session-history operator for local OpenAI Codex metadata only.
- Surface: read or update session aliases and session metadata; do not modify project source files.
- State: treat
~/.codex/session-data/,~/.codex/sessions/, and aliases as durable local state; summarize old history instead of replaying it. - Compatibility: keep legacy
~/.codex/sessions/reads while preferring~/.codex/session-data/. - Rollback: alias edits must be reversible by removing the alias entry; never delete session files.
- Validation and errors: validate requested IDs or aliases, report missing sessions without guessing, and leave files unchanged on errors.
- Verification command:
node tests/lib/session-manager.test.js && node tests/scripts/session-inspect.test.js.
Usage
/sessions [list|load|alias|info|help] [options]
Actions
List Sessions
Display all sessions with metadata, filtering, and pagination.
Use /sessions info when you need operator-surface context for a swarm: branch, worktree path, and session recency.
/sessions # List all sessions (default)
/sessions list # Same as above
/sessions list --limit 10 # Show 10 sessions
/sessions list --date 2026-02-01 # Filter by date
/sessions list --search abc # Search by session ID
Script:
node -e "
const _r = (()=>{var e=process.env.CODEX_PLUGIN_ROOT;if(e&&e.trim())return e.trim();var p=require('path'),f=require('fs'),h=require('os').homedir(),d=p.join(h,'.codex'),q=p.join('scripts','lib','utils.js');if(f.existsSync(p.join(d,q)))return d;for(var s of [['eoc'],['eoc@eoc'],['marketplaces','eoc'],['ecc'],['ecc@ecc'],['marketplaces','ecc'],['ecc','everything-openai-codex'],['eoc','everything-openai-codex'],['everything-openai-codex'],['everything-openai-codex@everything-openai-codex'],['marketplaces','everything-openai-codex']]){var l=p.join(d,'plugins',...s);if(f.existsSync(p.join(l,q)))return l}try{for(var g of ['ecc','everything-openai-codex'],['eoc','everything-openai-codex']){var b=p.join(d,'plugins','cache',g);for(var o of f.readdirSync(b,{withFileTypes:true})){if(!o.isDirectory())continue;for(var v of f.readdirSync(p.join(b,o.name),{withFileTypes:true})){if(!v.isDirectory())continue;var c=p.join(b,o.name,v.name);if(f.existsSync(p.join(c,q)))return c}}}}catch(x){}return d})();
const sm = require(_r + '/scripts/lib/session-manager');
const aa = require(_r + '/scripts/lib/session-aliases');
const path = require('path');
const result = sm.getAllSessions({ limit: 20 });
const aliases = aa.listAliases();
const aliasMap = {};
for (const a of aliases) aliasMap[a.sessionPath] = a.name;
console.log('Sessions (showing ' + result.sessions.length + ' of ' + result.total + '):');
console.log('');
console.log('ID Date Time Branch Worktree Alias');
console.log('────────────────────────────────────────────────────────────────────');
for (const s of result.sessions) {
const alias = aliasMap[s.filename] || '';
const metadata = sm.parseSessionMetadata(sm.getSessionContent(s.sessionPath));
const id = s.shortId === 'no-id' ? '(none)' : s.shortId.slice(0, 8);
const time = s.modifiedTime.toTimeString().slice(0, 5);
const branch = (metadata.branch || '-').slice(0, 12);
const worktree = metadata.worktree ? path.basename(metadata.worktree).slice(0, 18) : '-';
console.log(id.padEnd(8) + ' ' + s.date + ' ' + time + ' ' + branch.padEnd(12) + ' ' + worktree.padEnd(18) + ' ' + alias);
}
"
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.
- 2d ago First seen · 350 lines · 14 tokens per session scan A 9d38e5e6d71b
sessions is a command published in the GitHub repository mturac/everything-openai-codex (89 stars, last pushed 12d ago), licensed MIT. It adds 14 tokens to every session and 4,466 once invoked, about $0.0001 per session on Opus 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-03.
Other commands, from other repositories
teach
Hand-record a lesson into Memory Fabric (learning tier, high confidence) so it is recalled later.
lembrar
Searches .oficina/memory/ and OPENDECISIONS.md for a keyword — cross-session recall.
retro
Write this session's lessons into the project's lessons/ directory using the memory-discipline format.
add
Add knowledge entries (bug fixes, code patterns, decisions, rules) to project specs interactively or automatically.
style-skill-memory
Generate SKILL memory package from style reference for easy loading and consistent design system usage.
handoff-continue
Create a handoff document and automatically spawn a new Claude session in a Zellij pane to continue the work seamlessly.