session

Initialize, persist memory, and manage state across Claude Code sessions.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/lane2077/claude-code-harness-zh --skill session-lane2077
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session
Source: https://github.com/lane2077/claude-code-harness-zh/tree/main/codex/.codex/skills/session
Command: npx skills add https://github.com/lane2077/claude-code-harness-zh --skill session-lane2077

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Managing Claude Code sessions requires coordinating initialization, memory persistence, and state transitions across commands and tools. This Skill provides a single unified window to initialize, remember context, and control session lifecycle for reliable project work.

Core Features & Use Cases

  • Initialization: start a new session and bootstrap the project context for consistent continuation.
  • Memory: persist learnings and context across session lifecycles.
  • State Control: resume, fork, and manage session state with guardrails and deterministic transitions.
  • Communication: enable cross-session messaging to align work across multiple sessions.

Quick Start

Initialize your project session with /harness-init, then manage and persist it across tasks using /session commands.

Frequently Asked Questions about session

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

FAQPage Schema
How do I persist Claude Code memory across different workflow sessions?

To persist Claude Code memory across workflow sessions, this Skill consolidates context retention and state management into a unified control surface. It uses file-based state stores to save learnings and project context reliably for future continuation.

How do I initialize a new Claude Code session for consistent project state?

To initialize a new Claude Code session, you run the /harness-init command to bootstrap the project context. This establishes a deterministic baseline state, ensuring consistent continuation and reliable state transitions across subsequent workflow tasks.

Can I broadcast messages between multiple Claude Code sessions to align work?

Yes, you can broadcast messages between multiple Claude Code sessions to align work. The Skill implements cross-session communication with built-in safety checks, enabling multiple active workflows to coordinate their tasks through a shared file-based state store.

What is the best way to manage Claude Code state transitions when resuming or forking sessions?

The best way to manage Claude Code state transitions is using a unified session control surface with deterministic guardrails. It allows you to safely resume or fork session states while applying robust safety checks to prevent state corruption.

Do I need specific dependencies to manage Claude Code workflow state effectively?

No specific dependencies are required to manage Claude Code workflow state effectively. The Skill operates independently using file-based state stores, applying safety checks and state transitions without relying on external libraries or frameworks.