Penguin: A modular, extensible AI coding agent and software engineer with its own execution environment.
Project description
📋 Table of Contents
- Overview
- Features
- Quick Start
- Prerequisites
- Installation
- Usage
- Architecture
- Contributing
- License
- Acknowledgments
🚀 Quick Start
# Clone and install Penguin
git clone https://github.com/maximooch/penguin.git
cd penguin
# Install Penguin (recommended with UV)
pip install -e .
# Set your API key
cp .env.example .env
# Edit .env with your API key
# Run Penguin
penguin # CLI interface
# OR
penguin-web # Web interface
🎯 Development Status
- ✅ Core functionality
- ✅ Basic CLI interface (penguin)
- ✅ Model integration (OpenRouter, Ollama and other open source inference engines soon))
-
🚧 Advanced features (in progress)
- 📅 Web interface (penguin-web and Link, planned)
- 📅 Plugin system (planned)
⚠️ Note: Penguin is under active development. While I strive for stability, you may encounter occasional issues. Your feedback and contributions are valuable in improving the project.
Penguin AI Assistant
Penguin is a modular, extensible AI coding assistant powered by LLMs, enabling support for multiple AI models thanks to LiteLLM. It functions as an intelligent software engineer that can assist with coding tasks while maintaining its own code execution, memory tools, and workspace environment.
Key Features
-
Multi-Model Support: Compatible with various AI models through LiteLLM integration
-
Cognitive Architecture:
- Reasoning and response generation system
- Persistent memory and context management
- Pluggable memory providers with semantic search
- Tool and action processing capabilities
- Task coordination and project management
- Performance monitoring and diagnostics
-
Development Capabilities:
- Automated task execution and project scaffolding
- Code generation with documentation
- Debugging and problem analysis
- Architectural design recommendations
- File system operations and management
- Web search integration for up-to-date information
- Interactive CLI with slash commands
- PyDoll browser tools and Chrome debugger
- Memory search across conversations
- Automatic checkpoints with branching and rollback
Prerequisites
- Python 3.10 (recommended) or Python 3.8+
- Valid API key(s) for your chosen AI model provider(s)
- UV package manager (recommended)
Installation
Option 1: Recommended Setup (using UV)
- Install UV package manager (if not already installed):
pip install uv
- Clone the repository:
git clone https://github.com/maximooch/penguin.git
cd penguin
- Run the UV setup script:
python uv_setup.py
This will:
- Create a Python 3.10 virtual environment
- Install all dependencies using UV
- Offer to launch Penguin
Option 2: Standard Setup
- Clone the repository:
git clone https://github.com/maximooch/penguin.git
cd penguin
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
# On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
-
Rename
.env.exampleto.envand configure your environment:Then Edit
penguin/.envwith your API key(s)
Usage
Start the Penguin AI assistant:
penguin # Start CLI interface
penguin-web # Start Web interface
Play around with Penguin! It's recommended to check out the User Manual, and the Docs for more in depth information to get the most out of Penguin!
To change models, go to the config.yml file and change the model field to the model you want to use.
For more information on how to use Penguin, check out the documentation!
Architecture
Penguin uses a modular architecture with these key systems:
- Core: Central coordinator between systems
- Cognition: Handles reasoning and response generation
- Memory: Manages context and knowledge persistence
- Processor: Controls tools and actions (ToolManager, Parser (ActionManager), and utils)
- Task: Coordinates projects and tasks
- Diagnostic: Monitors performance
System Design
- Core acts as coordinator between systems
- Each system has clear responsibilities
- State management through hierarchical state machines
- Event-based communication between modules
- Memory persistence across sessions
- Tool extensibility through plugin architecture
Key Components
-
Cognition System
- Reasoning and response generation
- Model integration via LiteLLM
- Context management
-
Memory System
- Short-term conversation memory
- Long-term knowledge persistence
- Embeddings and vector storage
- Pluggable providers (SQLite, file, FAISS, LanceDB, Chroma)
- Backup and restore utilities
-
Processor System
- ToolManager: Central registry and executor for available tools
- ActionExecutor: Parses and routes actions to appropriate handlers
- NotebookExecutor: Handles code execution in IPython environment
-
Task System
- Project and task coordination
- Workspace management
- File operations
-
Diagnostic System
- Performance monitoring
- Error tracking
- System health checks
Development Standards (Not implemented yet)
- Comprehensive type annotations
- Detailed docstrings
- High test coverage (90%+)
- Robust exception handling
- Extensive logging
For detailed technical documentation, visit our docs.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss proposed changes.
License
Penguin is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Key points:
- You must disclose source code when you deploy modified versions
- Changes must be shared under the same license
- Network use counts as distribution
- Include copyright and license notices
For the complete license text, see:
- LICENSE file in this repository
- GNU AGPL v3 official text
Acknowledgments
Built upon insights from:
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 penguin_ai-0.1.2.tar.gz.
File metadata
- Download URL: penguin_ai-0.1.2.tar.gz
- Upload date:
- Size: 348.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb56ef5c141fa2a404ed0cd1db05be9c6870ecce92ff5988ed1abb9324f9e5c0
|
|
| MD5 |
15c601f12d60d4afe93e9cb466048cad
|
|
| BLAKE2b-256 |
6d594570b126250395cb52d94bfa5dac3366afffe5d067a324560fa07b027f2a
|
File details
Details for the file penguin_ai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: penguin_ai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 374.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b7d23bb16acbe982fa7f3cdce8c23d76851bac28b244dd5ee366157c6630cb
|
|
| MD5 |
534cf7ccd5330d9f127ce31b9739d142
|
|
| BLAKE2b-256 |
3d4ec9824fbe619fffe69304ff6356abe2cbbd870a07110303aa37a9c66093dc
|