Skip to main content

System for creating numbered instruction sequences for agent consumption

Project description

Payload Discovery

A systematic agent learning framework that creates numbered instruction sequences and tracks progress through STARLOG integration.

Overview

Payload Discovery solves the problem of systematic agent learning by creating structured, sequential instruction files that agents consume in order. The system is stateless - all progress is tracked through STARLOG's debug diary, enabling agents to resume learning sessions seamlessly.

This package provides both a core library for creating instruction sequences and an MCP server for agent consumption.

Core Library Features

  • 📚 PayloadDiscovery Models: Pydantic models for creating structured instruction sequences
  • 🏗 Filesystem Rendering: Generate numbered instruction files from JSON configuration
  • Validation System: Dependency checking and sequence validation
  • 💾 JSON Serialization: Export/import instruction sequences as JSON

MCP Server Features

  • 🛠 Waypoint Navigation: MCP tools for agents to traverse instruction sequences
  • 📊 STARLOG Integration: Progress tracking through debug diary (stateless)
  • 🔄 Resume Capability: Agents can restart and continue from last completed piece
  • 🎯 Agent-Focused: Designed for autonomous agent consumption

Quick Start

Installation

[Installation instructions pending PyPI publication]

Basic Usage

from payload_discovery import PayloadDiscovery, PayloadDiscoveryPiece

# Create individual instruction pieces
piece1 = PayloadDiscoveryPiece(
    number=1,
    instruction="Analyze the codebase structure",
    context="Look for main modules and dependencies"
)

piece2 = PayloadDiscoveryPiece(
    number=2, 
    instruction="Identify entry points",
    context="Find main functions and CLI interfaces"
)

# Create a discovery sequence
discovery = PayloadDiscovery(
    title="Codebase Analysis Workflow",
    pieces=[piece1, piece2]
)

# Use the sequence
for piece in discovery.pieces:
    print(f"Step {piece.number}: {piece.instruction}")
    if piece.context:
        print(f"Context: {piece.context}")

MCP Server Usage

Start the MCP server:

payload-discovery-mcp

The server provides tools for:

  • Creating new discovery sequences
  • Loading existing sequences
  • Navigating through instruction steps
  • Saving workflow progress

Core Concepts

PayloadDiscoveryPiece

Individual instruction with:

  • number: Step number in sequence
  • instruction: What to do
  • context: Additional guidance/information

PayloadDiscovery

Collection of pieces forming a complete workflow:

  • title: Name of the workflow
  • pieces: Ordered list of instructions
  • metadata: Additional workflow information

Use Cases

  • Agent Workflows: Systematic task completion
  • Code Analysis: Structured codebase exploration
  • Quality Assurance: Step-by-step validation processes
  • Onboarding: Guided learning sequences
  • Debugging: Systematic problem-solving approaches

Integration with HEAVEN Ecosystem

Payload Discovery integrates with:

  • Waypoint: For navigation through sequences
  • STARLOG: For tracking sequence completion
  • Powerset Agents: For systematic agent workflows

Development

# Clone and install for development
git clone https://github.com/sancovp/payload-discovery
cd payload-discovery
pip install -e ".[dev]"

# Run tests
pytest

# Start development MCP server
python -m payload_discovery.mcp_server_v2

License

MIT License - see LICENSE file for details.

Part of HEAVEN Ecosystem

This library is part of the HEAVEN (Hierarchical Event-based Agent-Versatile Environment Network) ecosystem for AI agent development.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

payload_discovery-0.1.5.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

payload_discovery-0.1.5-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file payload_discovery-0.1.5.tar.gz.

File metadata

  • Download URL: payload_discovery-0.1.5.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for payload_discovery-0.1.5.tar.gz
Algorithm Hash digest
SHA256 88f831d3e37ef60d771d2751a006ce618c6d861dba70bd2de6fb27e742d42e5b
MD5 bbd85213c854454692b37b54b2a6daf1
BLAKE2b-256 3b6dbd9e5878d7f184e458c1a1f6ab2c88d922a9c10decd9ad7e0bd2e9251b4f

See more details on using hashes here.

File details

Details for the file payload_discovery-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for payload_discovery-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67c285efd3d07c478c43aa446110b0d7be263d5a78f5de300cd94ccf4a7308e6
MD5 229629fe5547f0bf8f9c8aea3ab04f82
BLAKE2b-256 5abd40b21c12d9a4458d1178ad2545502e34c4d9bf418fb01ffd64c33bed3d35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page