pipeline-state

Manage durable pipeline state for multi-agent systems using Bash and jq.

4|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/endorphin-ai/hasbrains-agent-kit --skill pipeline-state-endorphin-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pipeline-state
Source: https://github.com/endorphin-ai/hasbrains-agent-kit/tree/main/context-engineering/skills/pipeline-state
Command: npx skills add https://github.com/endorphin-ai/hasbrains-agent-kit --skill pipeline-state-endorphin-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a durable, file-backed pipeline handoff bus for the entire squad, ensuring that per-run variables, per-phase outputs, and evidence paths are preserved across phases, facilitating efficient and accurate handoffs.

Core Features & Use Cases

  • Durable State Management: Persists per-run variables, per-phase outputs, and evidence paths in a JSON file under .ai_log/ to survive context compression.
  • Efficient Handoffs: Enables downstream agents to recover exactly what they need by lookup instead of receiving large inlined dumps.
  • Coexistence with Reports: Coexists with human-readable reports and .ai_log/ offloads without duplication of content.

Quick Start

Initialize the pipeline state for a new session with pipeline-state.sh init <session_id>, then add data to the state with pipeline-state.sh set <session_id> <field> <value> or append to lists with pipeline-state.sh append <session_id> <field> <value>.

Frequently Asked Questions about pipeline-state

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

FAQPage Schema
How do I maintain durable pipeline state for multi-agent handoffs?

Durable pipeline state is maintained by persisting per-run variables and per-phase outputs in a JSON file under `.ai_log/`, enabling downstream agents to recover required data by lookup instead of receiving inlined dumps.

What's the best way to pass state between agents without losing context?

The best way to pass state is using a file-backed handoff bus that preserves per-run variables and evidence paths, allowing agents to retrieve exactly what they need by lookup to survive context compression.

How do I initialize and update pipeline state in a multi-agent system?

Initialize pipeline state using `pipeline-state.sh init <session_id>`, then add data with `set <session_id> <field> <value>` or append to lists with `append <session_id> <field> <value>`.

Do I need jq to manage pipeline state with Bash scripts?

Yes, you need jq installed for JSON manipulation, as the pipeline state management system requires it to parse and update the file-backed state alongside Bash for script execution.

Can I use pipeline state management alongside human-readable reports?

Pipeline state management coexists with human-readable reports by offloading structured data to `.ai_log/` without duplicating content, ensuring both agents and humans access the formats they need.

Why does multi-agent handoff fail when context is compressed?

Multi-agent handoff fails because inlined state dumps are lost during context compression, a problem solved by persisting per-phase outputs and variables in a durable JSON file for reliable lookup.