Core factory for creating self-improving BaseHeavenAgent instances that learn libraries through PayloadDiscovery
Project description
Powerset Agents Core
A factory system for creating specialized HEAVEN framework agents that systematically learn libraries through structured curricula.
Overview
Powerset Agents Core provides a standardized factory for creating library learning agents. Each agent is configured with specific learning curricula, equipped with necessary MCPs and tools, and guided by generated system prompts to learn target libraries systematically.
Key Concept: Create agents that learn libraries through PayloadDiscovery sequences, track progress in STARLOG sessions, and use hands-on tools to explore and master specific libraries.
Core Library Features
🏭 Factory System
create_library_powerset_agent(): Main factory function for creating learning agents- Configuration Models: Structured Pydantic models for agent configuration
- HEAVEN Integration: Converts configs to
HeavenAgentConfigfor framework compatibility - Dynamic System Prompts: Generates contextual prompts based on target library and curriculum
⚙️ Agent Configuration
- LibraryPowersetAgentConfig: Core configuration with library path, help command, learning sequence
- PayloadDiscoveryConfig: Curriculum configuration with path/model and usage instructions
- BasePowersetAgentConfig: Base config with MCP servers, tools, session paths, and model settings
🔧 MCP Server Setup
- STARLOG MCP: Automatic configuration for session tracking and progress management
- Waypoint MCP: Automatic configuration for curriculum navigation and waypoint traversal
- Environment Management: Proper environment variable handling for MCP server startup
🛠️ Tool Integration
- NetworkEditTool: File operations for reading, writing, and editing during learning
- BashTool: Command execution for testing code and exploring library functionality
- Tool Resolution: Maps tool names to actual tool classes automatically
Specialized Agent Implementations
🎯 MetaStack Powerset Agent
- Target Library:
pydantic_stack_core - Specialization: Building Pydantic model systems that generate structured string outputs
- Use Case: Creating composable, renderable model architectures
📚 PayloadDiscovery Powerset Agent
- Target Library:
payload_discovery - Specialization: Building learning curricula and prompt injection sequences
- Use Case: Creating systematic learning materials for other agents
Installation
[Installation instructions pending PyPI publication]
Quick Start
from powerset_agents_core import create_library_powerset_agent
from payload_discovery.core import load_payload_discovery
# Load learning sequence
pd = load_payload_discovery("/path/to/learning_sequence.json")
# Create agent configuration
agent_config = create_library_powerset_agent(
pkg_path="pydantic_stack_core",
help_command="python -c 'import pydantic_stack_core; help(pydantic_stack_core)'",
payload_discovery=pd,
name="MetaStackLearningAgent",
starlog_path="/tmp/metastack_learning_session",
description="Agent that learns the MetaStack library"
)
# Use with HEAVEN framework to create actual agent
# (Implementation depends on HEAVEN framework integration)
Architecture
BasePowersetAgentConfig
Base configuration for all powerset agents with:
- Agent identity (name, description)
- HEAVEN configuration (model, max_iterations)
- Session paths (starlog_path, workspace_path)
- Standard MCP servers (waypoint, starlog)
- Standard tools (networkedittool, bashtool)
LibraryPowersetAgentConfig
Extends BasePowersetAgentConfig for library learning with:
- Target library (pkg_path, help_command)
- Learning sequence (PayloadDiscovery)
Factory Function
create_library_powerset_agent() converts LibraryPowersetAgentConfig to HeavenAgentConfig with:
- Configured MCP servers and tools
- Generated system prompt for library learning
- Library-specific configuration embedded
Agent Behavior
- Initialize: Start STARLOG session for learning tracking
- Navigate: Use Waypoint MCP to follow PayloadDiscovery sequence
- Introspect: Use help_command to explore the target library
- Explore: Use NetworkEditTool and BashTool for hands-on learning
- Document: Create examples, tests, and documentation
- Log: Track discoveries and insights in STARLOG
- Improve: Generate new learning materials for future sessions
Dependencies
heaven-framework: BaseHeavenAgent and core frameworkstarlog-mcp: Session tracking and progress loggingpayload-discovery: Structured learning sequences and Waypoint MCPpydantic>=2.0.0: Configuration models
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file powerset_agents_core-0.1.0.tar.gz.
File metadata
- Download URL: powerset_agents_core-0.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d0e9c025abdd5474fa11a58f6bde73dacc14ae9805688e50c40fc3fa0af11e7
|
|
| MD5 |
a48fc1a804919db79538503ce22fa82e
|
|
| BLAKE2b-256 |
3c42b6f114b603363f20fcc7b2b0d316f31e02c6e291d4511d865aa590698380
|
File details
Details for the file powerset_agents_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: powerset_agents_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e08cdc191b2b5889c7372924653cf4aa7330fa1b524a7d5cb4b6bcc96953ed4
|
|
| MD5 |
237b8f05ebbc2d735f6b4e3085c300c7
|
|
| BLAKE2b-256 |
5a50deb9b7f64c0a33067c58d108b64e6d804c27ebe3daf72226157bb50388ba
|