mcpField
C
copy-link

copy-link

github.com/wkentaroAgent workflows0108 installsUpdated today
Repository

About copy-link

copy-link is a skill for retrieving and copying the current Codex or Claude Code session link. It validates the host session ID and reports when a link or clipboard copy is unavailable.

Key features

  1. 01Codex thread link construction
  2. 02Claude Code session link retrieval
  3. 03Session ID validation
  4. 04Native clipboard copying
  5. 05Remote Control settings left unchanged

Use cases

  1. 01Sharing the active Codex conversation
  2. 02Opening a Claude Code session from its link
  3. 03Copying a session URL to the clipboard

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wkentaro/agent-skills --skill copy-link

After installing, type/copy-linkin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
scripts/
claude_link.py
test_claude_link.py

Details

From the project README

Use the branch for the agent hosting this conversation:

  • Codex: run printenv CODEX_THREAD_ID in this session's shell. Build codex://threads/<returned-id>.
  • Claude Code: use the current session ID substituted here: ${CLAUDE_SESSION_ID}. If the placeholder is still literal, check printenv CLAUDE_CODE_SESSION_ID. Run python3 scripts/claude_link.py '<id>' from this skill's directory. It returns the existing Remote Control HTTPS URL when the current session log has one, or the desktop deep link otherwise. It honors CLAUDE_CONFIG_DIR. Read only the returned URL, not conversation contents.

This operation retrieves an existing link; it leaves Remote Control settings unchanged. On a helper error, report that the session link is unavailable.

Use a nonempty UUID from the current session. If unavailable, say the current session ID is unavailable and stop. Validate it before building or copying the URL; use only the current host's ID.

Copy the URL using the native clipboard tool when available. On macOS, pipe printf '%s' '<url>' to pbcopy. Confirm copying only when the clipboard command succeeds.

Respond with three short paragraphs:

  1. Copied the session link to your clipboard. On failure or when no clipboard tool is available, use Your session link is ready. Clipboard copying was unavailable.
  2. [Open this session in Codex](<url>) or [Open this session in Claude](<url>), matching the host agent.
  3. Session ID: followed by the actual ID in inline code.

Comments

Markdown supported