hook-protocol

Store tasks and context durably in git worktrees across crashes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Jtapias92672/OneDrive_1_1-19-2026-2 --skill hook-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-protocol
Source: https://github.com/Jtapias92672/OneDrive_1_1-19-2026-2/tree/main/mcp-gateway/.forge/skills/hook-protocol
Command: npx skills add https://github.com/Jtapias92672/OneDrive_1_1-19-2026-2 --skill hook-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git-backed task persistence enables reliable, crash-resilient multi-agent workflows by persisting tasks, context, results, and evidence across restarts and failures.

Core Features & Use Cases

  • Hook is a git worktree-based persistent storage that stores task.json, context.json, result.json, status.json, and evidence, enabling durable coordination.
  • Survives agent crashes and restarts, with versioned history and cross-machine share via git push/pull.
  • Provides an auditable trail and structured flow for dispatch, execution, handoff, and recovery across workers.

Quick Start

Initialize a worker by reading the assigned hook from the .forge/hooks directory and start executing the task immediately.

Frequently Asked Questions about hook-protocol

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

FAQPage Schema
How does git worktree-based task persistence help multi-agent workflows survive crashes?

Git worktree-based task persistence stores task, context, result, and status data in a structured directory. This allows multi-agent workflows to recover execution state and resume operations immediately after unexpected crashes or restarts.

What is the best way to maintain an auditable history for multi-agent coordination across machines?

Maintaining an auditable history for multi-agent coordination is achieved by versioning task execution states and evidence in a git-backed hook directory. This enables structured tracking and cross-machine synchronization via standard git push and pull operations.

How do I start executing a persistent task assigned to a worker in a crash-resilient workflow?

To start executing a persistent task, initialize the worker by reading the assigned hook from the .forge/hooks directory. The stored task and context schemas provide the necessary parameters to begin processing immediately without manual state reconstruction.

Does multi-agent crash recovery require external dependencies or databases?

Multi-agent crash recovery does not require external dependencies. It uses a git worktree-based hook system to persist task and evidence schemas directly in the repository, ensuring durable coordination without external database infrastructure.

What type of data schemas are stored for persistent task tracking in multi-agent systems?

Persistent task tracking stores structured schemas including task.json, context.json, result.json, and status.json. These schemas capture the full execution lifecycle, enabling durable dispatch, execution, handoff, and recovery across distributed workers.