octogen  by dbpunk-labs

Open-source framework for code interpreter agents

Created 2 years ago
257 stars

Top 98.3% on SourcePulse

GitHubView on GitHub
Project Summary

Octogen is an open-source framework for building and deploying code interpreter agents, designed for developers and researchers who need to execute AI-generated code safely and efficiently. It provides a local, deployable solution that supports various LLM backends and offers features for interactive code execution and application assembly.

How It Works

Octogen utilizes a modular architecture comprising an Octogen Kernel for code execution (based on notebook kernels), an Octogen Agent for request management and task processing (using ReAct patterns), and an Octogen Terminal CLI for user interaction. Code execution is sandboxed within Docker containers, ensuring isolation and security. It supports multiple LLM integrations, including OpenAI, Azure OpenAI, and CodeLlama, allowing users to choose their preferred AI model.

Quick Start & Requirements

  • Install via pip: pip install og_up
  • Run setup: og_up (select LLM backend: OpenAI, Azure OpenAI, CodeLlama, or Octogen Agent)
  • Execute: og
  • Requirements: Python 3.10+, Docker 24.0.0+ or Podman. Running CodeLlama locally requires 8+ CPUs and 16GB RAM.
  • Development setup: git clone, cd octogen, python3 -m venv octogen_venv, source octogen_venv/bin/activate, pip install -r requirements.txt.
  • Official Docs: https://github.com/dbpunk-labs/octogen

Highlighted Details

  • Supports automatic execution of AI-generated code within Docker.
  • Enables rendering images directly in iTerm2 and Kitty terminals.
  • Allows file uploads for use in prompts via /up command.
  • Facilitates assembling code blocks into runnable applications with /run.
  • Manages prompt histories within the CLI.

Maintenance & Community

Licensing & Compatibility

  • License: Not explicitly stated in the README. Compatibility for commercial use or closed-source linking is undetermined.

Limitations & Caveats

The README does not specify the project's license, which is a critical factor for commercial adoption or integration into closed-source projects. Image rendering is limited to iTerm2 and Kitty terminals.

Health Check
Last Commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Tobi Lutke Tobi Lutke(Cofounder of Shopify), and
33 more.

opencode by anomalyco

26.5%
60k
CLI tool for AI-assisted coding in the terminal
Created 8 months ago
Updated 10 hours ago
Feedback? Help us improve.