harness-step3-session-management

Preserves Claude Code session context via init.sh, tasks.json, progress.md files.

132|25|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/simbajigege/book2skills --skill harness-step3-session-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harness-step3-session-management
Source: https://github.com/simbajigege/book2skills/tree/main/skills/harness-step3-session-management
Command: npx skills add https://github.com/simbajigege/book2skills --skill harness-step3-session-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude Code sessions forget prior context between runs. This skill persists critical workspace state by creating three files at the project root: init.sh for environment health checks, tasks.json for the structured task queue, and progress.md for an append-only session log.

Core Features & Use Cases

  • init.sh: quick environment validation at session start, including startup commands and smoke tests.
  • tasks.json: structured queue with id, title, description, status, priority, verify, and optional blocked_by to guide the next steps across sessions.
  • progress.md: human-readable log that preserves history and helps new sessions resume quickly; supports cross-session continuity for multi-step work.
  • Use cases include preserving context across Claude Code sessions, onboarding team members, and coordinating long-running projects.

Quick Start

Run init.sh at the start of a session, then read tasks.json to determine the next high-priority pending task.

Frequently Asked Questions about harness-step3-session-management

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

FAQPage Schema
How do I persist Claude Code session state across multiple runs?

To persist Claude Code session state, you save workspace context to files like init.sh, tasks.json, and progress.md at the project root instead of relying on memory. This ensures immediate context restoration when resuming work.

What is the best way to manage a task queue for long-running multi-session workflows?

The best way to manage a task queue for multi-session workflows is maintaining a structured JSON file with fields like id, title, status, priority, and blocked_by. This guides the next steps across sessions without re-explaining work.

How does an append-only progress log help with resuming development sessions?

An append-only progress log in markdown format helps resuming development sessions by preserving a human-readable history of completed work. New sessions read this log to quickly restore context and continue multi-step tasks.

Do I need a SKILL.md file to enable state persistence for my project?

Yes, you need a SKILL.md file at the project root to enable state persistence. It must include YAML frontmatter with the name and description fields, while optional scripts, references, and assets are loaded on demand.

Can I perform environment health checks at the start of a Claude Code session?

You can perform environment health checks at the start of a Claude Code session by running an init.sh script. This script executes startup commands and smoke tests to validate the workspace before reading the task queue.

Why does my Claude Code agent forget prior context between runs?

Claude Code agents forget prior context between runs because sessions rely on volatile memory. Overcome this amnesia problem by persisting critical workspace state to files on disk for quick resumes.