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
Metadata
Release files for powerset-agents-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| powerset_agents_core-0.1.0.tar.gz | 9.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| powerset_agents_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.4 kB
Release files / powerset_agents_core-0.1.0.tar.gz
| Download URL | powerset_agents_core-0.1.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d0e9c025abdd5474fa11a58f6bde73dacc14ae9805688e50c40fc3fa0af11e7
|
|
BLAKE2b-256 checksum How to use checksums |
3c42b6f114b603363f20fcc7b2b0d316f31e02c6e291d4511d865aa590698380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / powerset_agents_core-0.1.0-py3-none-any.whl
| Download URL | powerset_agents_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e08cdc191b2b5889c7372924653cf4aa7330fa1b524a7d5cb4b6bcc96953ed4
|
|
BLAKE2b-256 checksum How to use checksums |
5a50deb9b7f64c0a33067c58d108b64e6d804c27ebe3daf72226157bb50388ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for powerset-agents-core 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.