/skills:codex-cross-sessionfrom skills
Use when reaching an existing Codex session — codex queue, codex agents, remote-control start/pair, --remote, or a queued message that never arrives.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Codex sessions do not talk to each other. They share a daemon — one local app-server that owns the running threads — and a queue that holds messages until a thread picks them up. Anything you send is a letter, never a conversation: there is no reply channel back to the sender.
Facts below verified against codex-cli 0.153.0 driving a 0.148.0 on a second host; the versions do not have to match.
codex queue --thread <uuid|thread-name> --message "Mach erst die Tests grün"
# Queued message 01a06fe5-…-53c3bfdd324d for thread 01a06fe4-…-7423bb04ccc0.
The thread does not have to be running. A message for a finished thread is
accepted and parked in ~/.codex/queue_1.sqlite (table queued_items), and the
next time that thread is picked up the message is played in before whatever
prompt you pass then. Measured: queue "merke dir 99" onto a stopped thread, then
codex exec resume <id> "nenne alle Zahlen" — the run answers the queued
message first, then the new prompt with both numbers, and the queue is empty
after.
That ordering is the whole design. Use the queue for an instruction that must land before the next turn, never for a question you want answered now — nothing comes back to you, and nothing tells you it was read except the emptied queue and the thread's own transcript.
The thread id comes from thread.started in codex exec --json
(see codex-headless); a thread name works in its place.
codex agents browses the sessions on the shared local app-server daemon. It is
an interactive browser — there is no --json, so it is for you to look at,
not for a script to parse. When a script needs the id, keep the thread_id from
the run that created it.
codex remote-control start --json
# {"mode":"daemon","status":"connected","serverName":"reuben",
# "environmentId":"env_e_…","daemon":{"remoteControlEnabled":true,
# "socketPath":"~/.codex/app-server-control/app-server-control.sock",…}}
codex remote-control pair --json # {"pairingCode":"…","expiresAt":1788584345}
codex remote-control stop
start brings up the daemon and connects it; serverName defaults to the
hostname. pair mints a short-lived pairing code — it expires, so mint it
when you are about to use it.
The client side is an address, not an account:
--remote ws://host:port | wss://host:port | unix://PATH
--remote-auth-token-env <ENV_VAR> # bearer token, by env var name
This is the significant difference from Claude Code, where cross-machine reach
is keyed to the account, so a host you can ssh into gives you nothing by
itself (see claude-cross-session). Here the daemon is addressable, and ssh is
enough — including against a Codex that belongs to somebody else's login:
ssh host 'codex app-server daemon start' # prints socketPath as JSON
ssh -f -N -L /tmp/cdx.sock:/home/<user>/.codex/app-server-control/app-server-control.sock host
codex queue --remote unix:///tmp/cdx.sock --thread <id> --message "…"
Keep the local socket path short. sockaddr_un holds 108 characters, and
ssh rejects anything longer with Bad local forwarding specification — which
names the path and not the reason. A scratch directory deep under /tmp will
already be too long.
No token is involved on this path: reaching the socket at all is the
authorisation, and the ssh account's file permissions decide that.
--remote-auth-token-env belongs to the ws:///wss:// endpoints.
Measured end to end: a thread created on the second host under a different
account, a message queued into it from the first host through the tunnel, and a
codex exec resume over there answering with both numbers — the queued one and
the local one. Remember to stop the daemon (codex app-server daemon stop) and
drop the tunnel afterwards.
codex mcp-server runs Codex as an MCP server over stdio, which is how another
agent uses Codex as one of its tools rather than as a peer. That is a different
relationship from everything above and belongs in the client's MCP config.
codex-headless — creating threads with codex exec, the JSONL events, and
where the thread_id comes from.claude-cross-session — the same problem in Claude Code, solved with a live
socket mesh and real two-way messages instead of a queue.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (getty/skills) — no native marketplace selected
npx claudepluginhub p/getty-skills129 skills in this plugin
/ai-playable-gamesUse when building a game or simulation that bots or LLM agents must play — observation and order interface, agent API or MCP server, AI seats beside humans, fog of war, replays; or when an AI player cheats, stalls, misreads the state or follows text other players wrote./ai-web-scrapingUse when scraping, crawling or extracting structured data from websites, especially with an LLM — Crawl4AI, Firecrawl, Scrapy, Crawlee, Playwright, browser-use; building a dataset or RAG corpus, watching pages for changes, or a scraper that returns empty, duplicated or invented records./cedar-engineeringUse when writing, validating or debugging Cedar authorization policies — .cedar and .cedarschema files, permit/forbid, entities and hierarchies, RBAC/ABAC/ReBAC, templates, multi-tenant access, partial evaluation, Amazon Verified Permissions, migrating to or from Cedar.Other plugins' skills for the same job