Kephra is a system of autonomous AI agents designed to enhance Ethereum's governance process by automating key aspects of the EIP (Ethereum Improvement Proposal) lifecycle.
Kephra transforms the Ethereum governance process through specialized AI agents that work together to identify, propose, review, and implement protocol improvements. By leveraging advanced language models and the Model Context Protocol (MCP), Kephra delivers:
- Automated EIP generation based on protocol metrics and community feedback
- Technical review and validation of proposals with extensive verification
- Protocol simulation to anticipate effects of changes on the network
Kephra consists of specialized AI agents, each with a specific role in the governance process:
- Proposer Agent: Identifies needed improvements and creates well-structured EIPs
- Reviewer Agent: Evaluates EIPs for technical correctness, standards compliance, and ecosystem impact
- Simulator/Tester Agent: Implements and tests proposed changes in a safe environment
- Consensus Agent: Aggregates reviews and test results to reach a final decision
Kephra operates autonomously using the Model Context Protocol (MCP) servers, enabling seamless integration with GitHub, Git repositories, and the filesystem.
- GitHub MCP Server: Monitors repositories for issues and interacts with pull requests
- Git MCP Server: Manages EIP repositories, allowing agents to commit changes
- Filesystem MCP Server: Provides secure access to local files for code implementation and testing
- Ethereum Validator Server: Tests and validates protocol implementations
When running in autonomous mode, Kephra:
- Monitors GitHub for issues that might need an EIP
- Analyzes protocol metrics to identify improvement opportunities
- Generates EIPs for suitable issues with complete technical specifications
- Reviews and evaluates new and existing EIPs against standards
- Implements and tests code changes required by EIPs
- Builds consensus based on reviews and test results
- Submits changes back to the appropriate repositories
- Python 3.10 or higher
- Virtual environment (recommended)
- GitHub access token for API integration
- Clone this repository:
git clone https://github.com/chaoschain/kephra.git
cd kephra
- Create and activate a virtual environment:
python -m venv kenv
source kenv/bin/activate # On Windows: kenv\Scripts\activate
- Install Python dependencies:
pip install -r requirements.txt
- Configure your settings in the
.env
file:
cp .env.example .env
# Edit the .env file with your API keys and preferences
The dashboard provides a visual interface to monitor and control Kephra:
python dashboard.py
Access the dashboard at http://localhost:8000
To run Kephra with the fully autonomous workflow:
python -m src.main --autonomous
The dashboard allows you to:
- View active EIPs being worked on
- Monitor agent activities and logs in real-time
- Start and stop the Kephra system
- View GitHub issues being analyzed
- Track protocol metrics and insights
Key settings in the .env
file include:
GITHUB_TOKEN
: Your GitHub access tokenISSUE_POLLING_INTERVAL
: How often to check for new issues (in seconds)AUTONOMOUS_MODE
: Enable/disable autonomous workflowETH_NODE_URL
: Ethereum node URL for protocol metrics
Kephra is designed as the first agent system to be deployed on ChaosChain, showcasing how autonomous AI agents can contribute to decentralized protocol development.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.