session-control

Apply /work --resume and --fork flags to update session state files.

39|46|Updated May 29, 2026
One-click install
npx skills add https://github.com/maxwell2732/claudecode-research-harness-workflow --skill session-control-maxwell2732
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-control
Source: https://github.com/maxwell2732/claudecode-research-harness-workflow/tree/main/skills/session-control
Command: npx skills add https://github.com/maxwell2732/claudecode-research-harness-workflow --skill session-control-maxwell2732

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill manages internal workflow session state by applying /work --resume and --fork flags to update session files, ensuring traceability and reproducibility for automated sessions.

Core Features & Use Cases

  • Resume and fork session states based on flags to control /work execution
  • Update session.json and session.events.jsonl to reflect current session context
  • Audit-friendly: logs and state changes for reproducibility in complex workflows

Quick Start

Instruct the workflow to resume or fork a session by passing --resume and/or --fork to /work, then verify updates to session state files.

Frequently Asked Questions about session-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resume a workflow session from a previous state?

To resume a workflow session, pass the --resume flag to the /work command. This updates session.json and session.events.jsonl to restore the exact context and log subsequent changes for audit.

What does forking a session do in an automated workflow?

Forking a session branches the current workflow state by applying the --fork flag to /work. It creates a new execution path while preserving the original session context in session.json for reproducibility.

How do I log session state changes for audit in bash workflows?

Session state changes are logged automatically to session.events.jsonl when you resume or fork workflows. This audit-friendly event log ensures traceability for automated bash execution paths.

Can I use session control flags without external dependencies?

Yes, session control requires no external dependencies. It operates internally using bundled scripts to validate argument handling and update state files like .claude/state/session.json directly.

When do I need to manage session state for automated workflows?

You need session state management when running complex automated workflows that require traceability and reproducibility. It allows you to resume interrupted executions or branch workflows without losing prior context.

Why are my workflow session updates not saving to the state file?

Session updates fail if argument validation scripts reject the flags or if the workflow does not properly invoke /work with --resume or --fork. Verify the command syntax to ensure session.json updates correctly.