/tsk:regenerate-cloud-instancefrom tsk
Replace this cloud session with a new one that attaches to the same thread and reuses the robot name, then mark this session for archive. Invoke explicitly as /tsk:regenerate-cloud-instance, or when asked to regenerate this cloud session.
Ships in tsk. 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.
Backs the /tsk:regenerate-cloud-instance command. A cloud session keeps the plugin, hooks
and tsk binary it started with. A new session starts with the current ones. This skill
starts that new session, hands the thread and the robot name to it, and marks this session
for archive.
It runs in a cloud session only. A terminal session has no create_session tool: stop and
tell me.
Read the state of this session.
tsk thread binding
tsk actor name
tsk thread title
tsk thread binding prints the thread ID, for example cloud:01d143d5. With no
binding, tell me and stop.tsk actor name prints the robot name. With no actor registered, the name may
still be in the session title: a robot can be named in the title and not be
registered as an actor.tsk thread title prints the current title.Read this session's ID, repository and title from get_session of the
claude-code-remote MCP server, called with no session_id.
Choose the robot name in this order:
tsk actor name prints.get_session. The title has the form <mission ID>: <robot name>, or is the robot name alone. Take the text after the first : .
Take the whole title when it has no : and is not a mission ID (a mission ID
starts with M- and has no spaces). Mark the name as unregistered.Pause the thread. The new session resumes from the latest continuation state entry.
Run the /tsk:pause-thread steps. The pause pushes the ledger itself: run no ledger
command by hand. Exit 1, or a ledger: line other than ledger: pushed: report it and
stop. The new session reads the ledger from origin, so an unpushed pause is lost.
Start the new session. Call create_session of the claude-code-remote MCP server.
Leave environment_id out: the new session inherits this one. Set:
source_url to the repository URL of this session, and source_revision to its
branch.title to the current title from step 1.prompt to the text below, with the thread ID and the robot name filled in.This session replaces cloud session <this session ID>. Do these in order.
1. Run /tsk:resume-thread <thread ID>.
2. Run: tsk actor register "<robot name>" --kind robot
This registers the name, or joins the actor that has it. Do not choose a new name.
Then run: tsk ledger push "Register robot <robot name>"
3. Set the session title to "<title>" with set_session_title.
Then tell me the thread, the robot name and what is next.
Without a robot name, leave out lines 2 and 3 of the prompt and add: "Run /tsk:construct-robot after the resume."
Read the new session's ID from the result. An error: report it and stop. Do not change the title of this session.
Mark this session for archive. Call set_session_title of the claude-code-remote
MCP server with this session's ID and the title to archive- <title>, where <title>
is the title from step 1. Do not archive the session. I archive it when the new session
has resumed the thread.
Tell me the new session's ID, the thread ID, the robot name (or that there was none, or that it came from the session title and was not registered in this session) and the new title of this session. Say that this session stays open until I archive it, and that two sessions on one thread write to the same ledger, so I stop work in this one now.
SessionStart hook, which installs the latest plugin and tsk.
This is the reason to regenerate.tsk actor register of an existing name joins
that actor and constructs nothing. Registering a name that no actor has makes the actor,
so the new session registers the name whether or not the old session did.archive_session of the MCP server releases the container and makes the session read
only. Call it only when I ask.What SKILL.md sets; muted values are Claude Code's defaults
tsk@jimbarritt-claude-plugins is listed by jimbarritt/claude-plugins — review the source before installing
npx claudepluginhub jimbarritt/claude-plugins --plugin tsk12 skills in this plugin
/construct-robotConstruct a new robot. The robot chooses a name of its own in the style of the Culture ships of Iain M. Banks, registers it as a tsk actor, and sets its session title to the name. Invoke explicitly as /tsk:construct-robot, or when asked to name this session or to construct a robot./detach-threadRemove this session or code worktree's binding from its current tsk thread, without deleting the thread. Invoke explicitly as /tsk:detach-thread./pause-threadRecord a continuation state entry for the current thread before ending the session, so a later /tsk:resume-thread (by this actor or another) can pick the work back up. Invoke explicitly as /tsk:pause-thread, always run by the human themselves before /clear.Other plugins' skills for the same job