
Session control
Switches a /work session between resume and fork, recording state in session files
Session control is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 42
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Session control
This skill handles the session side of the /work command in a Claude Code research workflow. When the command is run with a resume or fork flag, the skill changes the active session state to match, writing the outcome to a session.json file and appending entries to a session.events.jsonl log.
The skill is described as internal workflow tooling and is set so the model cannot invoke it on its own and it is not user-invocable. Its listed steps are to read the variables passed in from the workflow, run a session control shell script with the matching arguments, and then check that both session files were updated. The folder includes a reference document that explains the resume and fork behaviour in more detail.
It expects the surrounding /work workflow to supply the flags and file locations, and it is limited to reading, writing and editing files plus running shell commands. Its frontmatter states it should not be used for general user session handling, login state or application state.
When your agent uses it
Controls session resume/fork(branch) for /work based on --resume/--fork flags. Updates session.json and session.events.jsonl. Internal workflow use only. Do NOT load for: user session management, login state, app state handling.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Bash, Write, Edit(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (2 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the claudecode-research-harness-workflow plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add maxwell2732/claudecode-research-harness-workflow
/plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflowOr copy only this skill to ~/.claude/skills/session-control:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/session-control &&
cp -R "$tmp/skills/session-control" ~/.claude/skills/session-control &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/session-control inside it instead.
Copy the skill folder to ~/.agents/skills/session-control to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/session-control &&
cp -R "$tmp/skills/session-control" ~/.agents/skills/session-control &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/session-control inside it instead.
Copy the skill folder to ~/.cursor/skills/session-control to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/session-control &&
cp -R "$tmp/skills/session-control" ~/.cursor/skills/session-control &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/session-control inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/maxwell2732/claudecode-research-harness-workflow.git --path skills/session-controlOr copy the folder to ~/.gemini/skills/session-control yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/session-control:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/session-control &&
cp -R "$tmp/skills/session-control" ~/.copilot/skills/session-control &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/session-control inside it instead.
Get the folder:
git clone --depth 1 https://github.com/maxwell2732/claudecode-research-harness-workflow.gitThen copy claudecode-research-harness-workflow/skills/session-control into your agent's skills folder as session-control. Agents that support SKILL.md read one folder per skill.
What it does
- Resume and fork switching
- Changes the active session to either resume an existing one or branch into a fork based on the flag passed to /work.
- Session state file updates
- Keeps the session.json file in step with the chosen resume or fork action.
- Session event logging
- Records each session change as an entry in a session.events.jsonl log.
- Scripted execution step
- Runs a shell script with the workflow's arguments to perform the session update.
- Post-update verification
- Checks that both session.json and session.events.jsonl reflect the change after the script runs.
- Scoped internal use
- Explicitly limited to workflow session control, excluding user accounts, login and app state.
Good for
- Resume the previous research session when running /work with the resume flag
- Branch off a new session from an existing one using the fork flag
- Check that session state files were updated after a /work switch
- Review the session event log for a workflow run
Session control FAQ
When does Session control trigger?
It is tied to the /work command's --resume and --fork flags. It is marked as internal and is not meant for general session or login management.
What files does Session control change?
It updates session.json and appends to session.events.jsonl.
Does Session control need any special tools?
Its allowed tools are Read, Bash, Write and Edit.
Is Session control available for other AI clients?
The content ties it to Claude Code and the Claude Code plugin marketplace, so no other clients are confirmed.
How do I install Session control in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/session-control to use it in all your projects, or to .claude/skills/session-control in one project. Or install the claudecode-research-harness-workflow plugin, which includes it: /plugin marketplace add maxwell2732/claudecode-research-harness-workflow, then /plugin install claudecode-research-harness-workflow@claudecode-research-harness-workflow.
Does Session control run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Session control?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Session control?
The closest alternatives to Session control are Session state, Session, Ck, Scan sessions and learn and Session init.
Where this comes from
- Description: from the skill's own SKILL.md.
More from maxwell2732/claudecode-research-harness-workflow

Drives a browser via the agent-browser CLI to open pages, fill forms and capture
- Open source
- 42 GitHub stars
- Browser automation

Guides an agent through adding Clerk, Supabase Auth or Stripe to an app with a security
- Open source
- 42 GitHub stars
- Databases

Triages failing CI pipelines and guides fixes without weakening tests
- Open source
- 42 GitHub stars
- Developer tools

Scaffolds CRUD endpoints, Zod validation and tests for an entity in your codebase
- Open source
- 42 GitHub stars
- Developer tools

Guides an agent through Vercel or Netlify deployment, analytics and health checks
- Open source
- 42 GitHub stars
- Cloud and infrastructure

Builds a one-page HTML acceptance demo to decide whether to ship, wait or reject
- Open source
- 42 GitHub stars
- Developer tools



