Metadata-Version: 2.2
Name: penguin-ai
Version: 0.1.2
Summary: Penguin: A modular, extensible AI coding agent and software engineer with its own execution environment.
Author-email: Maximus Putnam <MaximusPutnam@gmail.com>
Maintainer-email: Maximus Putnam <MaximusPutnam@gmail.com>
License: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/Maximooch/penguin
Project-URL: Repository, https://github.com/Maximooch/penguin
Project-URL: Documentation, https://penguin-rho.vercel.app
Project-URL: Bug Tracker, https://github.com/Maximooch/penguin/issues
Keywords: ai,agent,ai-agent,llm,llm-agent,assistant,cognitive-architecture,code-generation,developer-tool
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: fastapi<1.0,>=0.68.0
Requires-Dist: uvicorn>=0.15.0
Requires-Dist: websockets>=10.0
Requires-Dist: jinja2>=3.0.0
Requires-Dist: tenacity>=8.0.1
Requires-Dist: pydantic>=1.8.2
Requires-Dist: python-dotenv>=0.19.0
Requires-Dist: litellm>=1.0.0
Requires-Dist: anthropic>=0.3.0
Requires-Dist: openai>=0.27.0
Requires-Dist: rich>=10.0.0
Requires-Dist: typer>=0.4.0
Requires-Dist: requests>=2.26.0
Requires-Dist: textual>=0.52.0
Requires-Dist: plotext
Requires-Dist: matplotlib
Requires-Dist: networkx
Requires-Dist: IPython
Requires-Dist: ipykernel
Requires-Dist: ipywidgets
Requires-Dist: pyyaml>=5.4.0
Requires-Dist: httpx>=0.24.0
Requires-Dist: questionary>=1.10.0
Requires-Dist: watchdog>=2.3.0
Provides-Extra: memory-lance
Requires-Dist: lancedb>=0.5.4; extra == "memory-lance"
Requires-Dist: pyarrow>=15.0.0; extra == "memory-lance"
Provides-Extra: memory-faiss
Requires-Dist: faiss-cpu>=1.7.4; extra == "memory-faiss"
Requires-Dist: numpy>=1.20.0; extra == "memory-faiss"
Provides-Extra: memory-chroma
Requires-Dist: chromadb>=0.4.22; extra == "memory-chroma"
Provides-Extra: llm-transformers
Requires-Dist: transformers>=4.38.0; extra == "llm-transformers"
Requires-Dist: torch>=2.0.0; extra == "llm-transformers"
Requires-Dist: accelerate>=0.25.0; extra == "llm-transformers"
Requires-Dist: bitsandbytes>=0.43.0; sys_platform != "darwin" and extra == "llm-transformers"
Requires-Dist: sentence-transformers>=2.3.0; extra == "llm-transformers"
Provides-Extra: llm-ollama
Requires-Dist: ollama>=0.1.7; extra == "llm-ollama"
Provides-Extra: dev
Requires-Dist: pytest>=6.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=21.0.0; extra == "dev"
Requires-Dist: isort>=5.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine>=5.0.0; extra == "dev"
Requires-Dist: wheel>=0.40.0; extra == "dev"
Requires-Dist: setuptools<77,>=76.1; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=6.0.0; extra == "test"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
Requires-Dist: pytest-cov>=4.0.0; extra == "test"

[![Penguin](https://img.shields.io/badge/🐧-Penguin-00A7E1?style=for-the-badge&logoColor=white)](https://github.com/maximooch/penguin)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://penguin-rho.vercel.app)
[![Version](https://img.shields.io/badge/version-0.1.0-orange)](https://github.com/maximooch/penguin)

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Maximooch/penguin)

## 📋 Table of Contents
- [Overview](#overview)
- [Features](#key-features)
- [Quick Start](#quick-start)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Architecture](#architecture)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgments](#acknowledgments)


## 🚀 Quick Start
```bash
# 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)

[View Roadmap →](https://github.com/maximooch/penguin/projects)

⚠️ **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+](https://www.python.org/downloads/)
- Valid API key(s) for your chosen AI model provider(s)
- [UV package manager](https://docs.astral.sh/uv/getting-started/installation/) (recommended)

## Installation

### Option 1: Recommended Setup (using UV)

1. Install UV package manager (if not already installed):
```bash
pip install uv
```

2. Clone the repository:
```bash
git clone https://github.com/maximooch/penguin.git
cd penguin
```

3. Run the UV setup script:
```bash
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

1. Clone the repository:
```bash
git clone https://github.com/maximooch/penguin.git
cd penguin
```

2. Create and activate a virtual environment:
```bash
python -m venv venv
source venv/bin/activate  
# On Windows: venv\Scripts\activate
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

4. Rename `.env.example` to `.env` and configure your environment:

    Then Edit `penguin/.env` with your API key(s)

## Usage

Start the Penguin AI assistant:
```bash
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](https://penguin-rho.vercel.app)! 


## 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
1. **Cognition System**
   - Reasoning and response generation
   - Model integration via LiteLLM
   - Context management

2. **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

3. **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

4. **Task System**
   - Project and task coordination
   - Workspace management
   - File operations

5. **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](https://penguin-rho.vercel.app).

## 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](LICENSE) file in this repository
- [GNU AGPL v3](https://www.gnu.org/licenses/agpl-3.0.en.html) official text



## Acknowledgments

Built upon insights from:
- [CodeAct](https://arxiv.org/abs/2402.01030)
- [Claude-Engineer](https://github.com/Doriandarko/claude-engineer)
- [Aider](https://github.com/paul-gauthier/aider)
- [RawDog](https://github.com/AbanteAI/rawdog)

