harness-state-management

Persist harness agent state across sessions in .harness files.

18|11|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Intense-Visions/harness-engineering --skill harness-state-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harness-state-management
Source: https://github.com/Intense-Visions/harness-engineering/tree/main/agents/skills/claude-code/harness-state-management
Command: npx skills add https://github.com/Intense-Visions/harness-engineering --skill harness-state-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Harness State Management provides a disciplined approach to persisting context, decisions, progress, and learnings across agent sessions so teams avoid context loss and rework.

Core Features & Use Cases

  • Load and restore state at session start to resume ongoing work without duplication
  • Track position, decisions, progress, and blockers across sessions for continuity
  • Save state for the next session, enabling seamless handoff and knowledge retention
  • Govern stream-scoped state handling and permission boundaries to maintain project integrity

Quick Start

Load the persisted state at the beginning of your next harness session and save progress automatically between sessions.

Frequently Asked Questions about harness-state-management

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

FAQPage Schema
How do I persist agent context and decisions across multiple sessions?

Session persistence is maintained by reading and writing to .harness state and learnings files, which track progress and decisions. You load this persisted state at the beginning of a session and save it to enable seamless handoff.

What is the best way to resume ongoing agent work without duplicating previous steps?

The best way to resume ongoing work without duplication is to load the restored harness state at session start. This automatically recovers your position, decisions, and blockers so the agent can continue exactly where the previous session ended.

How do I track milestones and blockers for an ongoing workflow between agent runs?

You can track milestones and blockers between agent runs by recording decisions and progress into the state.json file. The harness state management mechanism automatically saves these learnings to maintain project continuity and knowledge retention.

Does harness state management support stream scoping and permission boundaries for project integrity?

Yes, harness state management governs stream-scoped state handling and permission boundaries to maintain project integrity. This ensures that session handoffs and context restoration remain scoped and secure across different workflow streams.

When do I need to save state for the next session to ensure seamless handoff?

You need to save state for the next session whenever advancing milestones or recording decisions and blockers. This automatic saving between sessions enables seamless handoff and prevents the loss of accumulated agent context and learnings.