ghostex-move-codex-session

ghostex-move-codex-session is a skill for Claude Code, Codex from maddada/Ghostex. It costs 93 tokens per session (613 once invoked), scanned A, original, MIT.

A guide for moving an existing Codex command-line session into another project folder by creating a separate fork of that session.

In plain words
What is it for?
Use it to find the current session ID, fork the session into a target folder, or use the most recent session when you do not want to copy its ID.
Why use it?
It avoids losing the conversation and session context when changing the folder where Codex works.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/maddada/ghostex/ghostex-move-codex-session
Any agent
npx skills add maddada/Ghostex --skill ghostex-move-codex-session
Clone the repo
git clone --depth 1 https://github.com/maddada/Ghostex

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 ghostex-move-codex-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/maddada/ghostex/ghostex-move-codex-session.svg)](https://agentmods.dev/skills/maddada/ghostex/ghostex-move-codex-session)
Your own site
<a href="https://agentmods.dev/skills/maddada/ghostex/ghostex-move-codex-session"><img src="https://agentmods.dev/badge/skills/maddada/ghostex/ghostex-move-codex-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00093 $0.00613
Opus 5 $0.00046 $0.00307
Sonnet 5 $0.00019 $0.00123
Haiku 4.5 $0.00009 $0.00061

Measured 3d ago against content hash 11c2c1d0adf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ghostex-move-codex-session 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 3d 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.

skills/ghostex-move-codex-session/SKILL.md · 57 lines

How it starts

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

ghostex-move-codex-session

Explain the supported Codex CLI workflow in simple numbered steps.

Steps

  1. Ask the user to run this inside the current Codex session:

    /status
    
  2. Tell the user to copy the session id shown by /status.

  3. Tell the user to open a shell and fork that session in the target folder:

    codex fork --yolo -C ~/dev/hackathon <SESSION_ID>
    

Replace ~/dev/hackathon with the requested folder when the user gave a different target.

Tell the user that --yolo is the Codex alias for bypassing approvals and sandboxing. If they do not want full access, remove --yolo.

Fallback

If the user does not want to copy the id, suggest the recent-session fallback:

codex fork --all --last --yolo -C ~/dev/hackathon

Explain that --all matters because Codex normally filters fork candidates by the current working directory.

Rules

  • Keep the answer short and procedural.
  • Prefer codex fork --yolo -C <folder-path> <SESSION_ID> as the primary command.
  • Mention that this creates a separate forked Codex session under the new working root.
  • Mention that users can remove --yolo if they do not want full-access mode.
  • Do not claim the active running TUI can be moved in place unless current Codex docs expose a real command for that.
  • If the user asks for the exact command only, give only the command and one sentence.

Read the full file on GitHub · 57 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. 3d ago First seen · 57 lines · 93 tokens per session scan A 11c2c1d0adf5

Subscribe to this mod's changes

ghostex-move-codex-session is a skill published in the GitHub repository maddada/Ghostex (714 stars, last pushed 4d ago), licensed MIT. It adds 93 tokens to every session and 613 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

test-conversion

Workflow for converting unit tests to browser tests for Project Bedrock. Invoke this when the user wants to remove complex Browser dependencies from tests.

chromium/chromium · 31 tokens

review-agentic-workflows

Review agentic workflow changes for correctness, security posture, and optimization opportunities with compile, validation, and audit evidence.

github/gh-aw · 29 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

sn-da-large-file-analysis

万行以上 Excel 数据集的高性能分析引擎。提供 openpyxl readonly 流式读取(iterrows 支持 10 万行以上)、Parquet 转换加速、内存优化、分块处理和大文件写入模式。遇到以下任一情况就主动使用本 skill:①数据行数 ≥ 10k(由 sn-da-excel-workflow 的行数评估步骤触发);②用户出现触发词:大文件 / 大数据量 / 性能优化 / 内存不足 / OOM / 百万行 / 十万行 / 流式读取 / Parquet / 分块处理 / large file / big data / streaming read / chunked processing;③直接使用…

OpenSenseNova/SenseNova-Skills · 218 tokens