Hierarchical Embodied Autonomously Validating Evolution Network Tree REPL
Project description
HEAVEN Tree REPL
Hierarchical Embodied Autonomously Validating Evolution Network Tree REPL - A modular tree navigation system with persistent state, pathway recording, and agent management capabilities.
Features
- Geometric Tree Navigation: Navigate through hierarchical structures using coordinate-based addressing (0.1.2.3)
- Live Variable Persistence: Session variables persist throughout navigation and execution
- Pathway Recording & Templates: Record navigation sequences and convert them to reusable templates
- RSI Analysis: Pattern recognition, crystallization, and optimization insights
- Agent Management: Support for both user-level and agent-level tree shells with approval workflows
- Modular Architecture: Clean separation of concerns with mixin-based design
Installation
pip install heaven-tree-repl
Quick Start
from heaven_tree_repl import TreeShell
# Create a basic tree configuration
config = {
"app_id": "my_app",
"domain": "example",
"role": "assistant",
"nodes": {
"root": {
"type": "Menu",
"prompt": "Main Menu",
"description": "Root menu",
"options": {
"1": "math_ops"
}
},
"math_ops": {
"type": "Callable",
"prompt": "Math Operations",
"description": "Perform mathematical operations",
"function_name": "_test_add",
"args_schema": {"a": "int", "b": "int"}
}
}
}
# Initialize TreeShell
shell = TreeShell(config)
# Navigate and execute
response = shell.handle_command("1") # Navigate to math_ops
response = shell.handle_command('1 {"a": 5, "b": 3}') # Execute with args
Architecture
The system is built using a modular mixin architecture:
- TreeShellBase: Core navigation and state management
- MetaOperationsMixin: Variable management and session operations
- PathwayManagementMixin: Recording, saving, and template analysis
- CommandHandlersMixin: Navigation and interaction commands
- RSIAnalysisMixin: Pattern recognition and crystallization
- ExecutionEngineMixin: Core action execution
- AgentManagementMixin: Agent and user tree repl classes
Agent Support
The system supports both user-level and agent-level interactions:
from heaven_tree_repl import UserTreeShell, AgentTreeShell
# User shell with approval capabilities
user_shell = UserTreeShell()
# Agent shell with quarantine restrictions
agent_shell = AgentTreeShell(config, session_id="agent_001",
approval_callback=user_shell._receive_agent_approval_request)
Development Roadmap
See docs/DEVELOPMENT_ROADMAP.md for the complete phased development plan:
- Phase 1: Prompt Engineering Agent Prototype (Current)
- Phase 2: General Adaptor Layer
- Phase 3: Universal Agent App Generator
- Phase 4: Game Mechanics Integration
- Phase 5: Enhanced Base Library
- Phase 6: Advanced Integrations (MCP, Full HEAVEN)
Future game mechanics specifications are in docs/future_implementations/.
Development
# Clone the repository
git clone https://github.com/yourusername/heaven-tree-repl.git
cd heaven-tree-repl
# Install in development mode
pip install -e .[dev]
# Run tests
pytest
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.# Domain chain system implemented
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 heaven_tree_repl-0.1.33.tar.gz.
File metadata
- Download URL: heaven_tree_repl-0.1.33.tar.gz
- Upload date:
- Size: 118.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aad3271f4744f1810dbe0634edc6b3574123fca411e9bb8fa0a7593398dc2cb7
|
|
| MD5 |
0f8b9423da933d4d23db81b31fc074db
|
|
| BLAKE2b-256 |
d92435e9238b98fe343f95e14d32b8646e0c6353ecbe92a7fdd1e258cd292882
|
File details
Details for the file heaven_tree_repl-0.1.33-py3-none-any.whl.
File metadata
- Download URL: heaven_tree_repl-0.1.33-py3-none-any.whl
- Upload date:
- Size: 107.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7b78db288da99547364b621c14ef9e69bb0b0daf34df6ffcfb4f4a4ff53b019
|
|
| MD5 |
8b2f9a7be321106897fc43b16c041ed8
|
|
| BLAKE2b-256 |
cccb27768b1ecf305d777f9d2bf0f7e3b8e1546ae6c168065433e9ac32926c36
|