Command Palette

Search for a command to run...

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

agent-task-takeover

БесплатноЗапускает вложенные скриптыНе проверен

接管、理解或交接另一个 AI 编码 agent 的任务/对话(跨 agent 全局可用,CLI 与 Electron 桌面 agent 均可,不依赖任何终端复用器)。Use whenever the user asks to take over, resume, review, read, or summarize…

lawson2019от lawson2019310 установок в других каталогах

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

Agent Task Takeover

Cross-agent continuity: read another agent's conversation, reconstruct its task state, and continue the work — or package your own task so a different agent can take it over. Session stores are local files, so any agent with filesystem access can read them. Works for CLI agents (opencode, ZCode, Codex, Claude Code, Gemini CLI) and Electron desktop agents (Cursor, Trae, VS Code Copilot, Kiro, Windsurf) alike, with no dependency on any terminal multiplexer. The bundled dumpers are Python 3.8+, stdlib only.

Two directions

  • Pull (take over): the user wants you to understand or continue a task that another agent ran → follow Takeover procedure.
  • Push (hand off): the user wants the current task packaged for another agent → follow Handoff procedure.

If the user only says "look at / understand" (看看、理解), the deliverable is the state report in step 5 — stop there and do not execute the task. If it is unclear whether they want review or continuation, ask once before editing anything. When the user rejects the identified takeover target, discard the reconstructed state and restart at step 0; record the correction in the report.

Takeover procedure

  1. Discover what exists. When the source agent is unknown or you need the big picture, run python scripts/discover_stores.py [--days 14] — it lists every known agent store present on the machine (CLI and Electron), with last-modified times, and opens nothing.

  2. Identify the source agent and its store. Consult references/agent-stores.md for the known stores and their exact schemas. For an unknown agent, use the discovery recipe below.

  3. Locate the conversation. List recent sessions and match by title / keyword / working directory / time. Session titles are unreliable ("New session - "), so when no keyword was given, present the shortlist and let the user pick rather than guessing. Note the store/session modification time.

2a. Disambiguate the target before committing. Treat short names, numbers, and relative phrases as ambiguous. Import scripts/state_model.py and call its needs_confirmation(session_mtime, artifact_mtime, now, candidate_count); when it returns true, confirm the takeover object with the user instead of proceeding (python scripts/state_model.py --self-check verifies the import on your machine — it is a library, not a CLI). State the report's first line as "takeover target / newest artifact / whether they agree".

2b. Reconstruct from artifacts when no usable transcript exists. Call reconstruct_needed(session_ref, session_mtime, artifact_mtime). When it returns true — no session, no session activity, or a transcript clearly older than the newest task artifact — collect read-only evidence instead of guessing from a stale title, in this priority order: build/export logs, agent scratch scripts, validation or quality-gate reports, source files, deliverable timestamps and content fingerprints, backup snapshots. Produce a last-action timeline and identify the unfinished pipeline step: classify_pipeline(source_mtime, deliverable_mtime) returning stale means the export is missing (a failed validation gate also counts as stale). Collect evidence with python scripts/discover_stores.py --artifacts --artifact-root <root> --source-glob <glob> --deliverable-glob <glob> [--evidence-glob <glob>] [--gate-failed] (opt-in, configurable, read-only; a missing root is reported, never silently empty). See references/agent-stores.md for the full procedure.

  1. Extract efficiently. Read user messages first — they are the storyline. Then read the final assistant message: agents that compact context (opencode does) often leave a structured handoff there with ## Objective, ## Work State, ## Next Move, ## Relevant Files headers — if present, it is worth more than the whole transcript. Do not replay tool calls one by one.

    • opencode → python scripts/dump_opencode_session.py --list [--keyword X] then --id ses_... --final-assistant or --user-only --chars 800
    • JSONL (codex / claude / zcode) → python scripts/dump_jsonl_session.py <file.jsonl> --final-assistant or --user-only --chars 800
    • Gemini CLI (session-*.json) → same dump_jsonl_session.py; single-JSON format is auto-detected
    • Electron VS Code-family (cursor / trae / code / kiro / windsurf) → python scripts/dump_vscdb_chat.py --app trae --list to find chat keys and sessions, then --key <k> or --session <chatSessions/x.json> to dump
    • --last N is applied after role filtering, so --role assistant --last 1 returns the last assistant message; --final-assistant also disables truncation.
    • ZCode as the taker → prefer the built-in ReadSessionContext tool (strategy='handoff', sessionId='sess_...'); no file parsing needed.
    • Dumper output redacts common credentials by default. Do not pass --show-sensitive unless the user
Полный SKILL.md на ClawHub

Установить agent-task-takeover в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл agent-task-takeover?

接管、理解或交接另一个 AI 编码 agent 的任务/对话(跨 agent 全局可用,CLI 与 Electron 桌面 agent 均可,不依赖任何终端复用器)。Use whenever the user asks to take over, resume, review, read, or summarize another agent's conversation or task — e.g. "zcode接管opencode对话", "接管 AP Research", "take over the codex session", "opencode接管workbuddy任务", "hand off this task to another agent", "看看另一个 agent 做了什么" — and also when the user asks to prepare the current task for handoff to a different agent. Covers locating foreign session stores (opencode SQLite, ZCode/Codex/Claude/Gemini CLI transcripts, Cursor/Trae/VS Code-family state.vscdb and chatSessions), safely reading and redacting transcripts, reconstructing task state from artifacts when no usable transcript exists, verifying it on disk, and writing takeover handoffs.

Как установить скилл agent-task-takeover?

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

Скилл agent-task-takeover запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить agent-task-takeover с