Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

session-crosslink

БесплатноБез исполняемых скриптовНе проверен

Use when an agent session ran outside the repo whose commits should record it — e.g. launched from a higher-level folder, a non-Entire repo, or one repo but…

entireioот entireio★ 242 звезды на GitHub

Об этом скилле

Session Crosslink

Response Format

Begin the first response to this skill invocation with the line:

Entire Session Crosslink:

followed by a blank line, then the content. Apply the header to the first response of the invocation only, not on follow-up turns and not on error / early-exit responses (no session resolved, no affected repos found, a CLI older than 0.11.5, an unrecognized plan).

STOP — Read these rules before doing ANYTHING

  1. Do NOT ask clarifying questions until the resolver/discovery steps have run. The session id and candidate repo list usually resolve from entire session current --json plus what the user said. Only ask if both come back empty.
  2. Do NOT run entire session attach --force without showing the preview table first. The whole point of this skill is preview-then-confirm. attach can amend the target repo's HEAD; previewing wrong means amending the wrong commit.
  3. Always cd into the target repo before running entire session attach. The CLI resolves the repo from cwd. Use one cd … && GIT_TERMINAL_PROMPT=0 entire session attach … per call so each invocation hits the right repo.
  4. Run every entire session attach with GIT_TERMINAL_PROMPT=0, and stop on output you don't recognize. Some agents run shell commands in a pseudo-terminal, where attach without --force asks Continue? and waits instead of printing its plan. GIT_TERMINAL_PROMPT=0 tells the CLI not to prompt. If a preview matches none of the shapes in Step 3, or attach prompts anyway, stop: answer nothing, run no --force in any repo, and show the user what attach printed.

Required CLI: entire 0.11.5+, for the resolution field of entire session current --json and for entire session attach printing its plan without changing anything until --force. The flow checks the version first. The plan shapes in Step 3 match 0.12.2 and the 0.12.3 nightly of 2026-11-05.

Flow

Run entire version first. If it reports a version older than 0.11.5, stop and ask the user to upgrade: those releases write the checkpoint as soon as attach runs, before asking anything, so the Step 3 preview would attach the session everywhere without the user's go-ahead. If you can't tell the version, ask the user before running attach.

Step 1: Resolve the session id

Try each strategy in order until one returns a session id.

Strategy A: Entire-enabled cwd.

entire session current --json

If the output is valid JSON and has a non-empty session_id, check resolution before using it. Attach acts on the session, so the session must be this agent's own:

  • caller-env or ancestry → it is this agent's session. Read session_id and agent and continue.
  • worktree or caller-ambiguous → it is a guess (the most recent session here, or one of several claimants). Continue only if the user confirms it, and label it as inferred in the Step 4 preview table.
  • other-worktree → it belongs to another worktree. Treat Strategy A as failed and fall through to B.

If the JSON parses but session_id is missing or empty, treat Strategy A as failed and fall through to B — don't proceed to attach with no session id.

With --json, a missing session prints nothing on stdout and exits non-zero. Outside a git repository, stderr only says not a git repository: fall through to B. When this agent's own session is not tracked, stderr says This command is running inside <agent> session <id>, but Entire has no session state for it. That <id> is this session's id and is exactly what entire session attach needs. If stderr instead says several sessions claim the command, do not pick one: fall through to B.

Strategy B: Entire-enabled repo the user named. If the user named a repo, or a folder of repos, cd into one of those repos that has a .entire/settings.json and rerun entire session current --json. Read the result with Strategy A's rules, including the stderr line: inside a repo, the CLI can name the calling session even when it has no state for it. The session state lives wherever the session was tracked.

Strategy C: Runtime-specific transcript directory. If neither A nor B works, the session was never recorded by Entire and you must read it from the agent runtime:

  • Claude Code: transcripts live at ~/.claude/projects/<encoded-cwd>/<session-id>.jsonl. Encoded cwd is the launch directory with / → -. The most recent .jsonl file directly in the project directory matching the agent's launch cwd is this session; skip subfolders such as <session-id>/subagents/, which hold subagent transcripts. Read the basename minus .jsonl as session_id. Set agent to claude-code.
  • Codex: check $CODEX_HOME/sessions/ or ~/.codex/sessions/. Set agent to codex.
  • Other runtimes: ask the user for the session id.

Record agent as the CLI's name for the agent, so Steps 3 and 5 can pass --agent <name> to attach. The JSON agent field and the stderr lin

Полный SKILL.md на GitHub

Установить session-crosslink в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл session-crosslink?

Use when an agent session ran outside the repo whose commits should record it — e.g. launched from a higher-level folder, a non-Entire repo, or one repo but editing another — to attach the session to each affected Entire-enabled repo's HEAD commit.

Как установить скилл session-crosslink?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл session-crosslink запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить session-crosslink с