Skip to main content

The Conductor for Your AI Orchestra

Project description

Glee

Delegate work to save context.

Glee is an MCP Agent Runtime — a locally-running autonomous agent that LLM tools (Claude Code, Codex, Cursor) can delegate work to.

The Problem

Coding agents have limited context windows. Complex tasks bloat context, causing the model to lose focus. When the session ends, context is gone.

The Solution

Delegate work to Glee. Glee runs in its own context using another AI instance.

Claude Code (your main agent)
    ↓ glee_job.submit("refactor the auth system")
Glee Agent Runtime (separate context)
    ↓ Uses Codex/Claude API internally
    ↓ Runs autonomously with ReAct loop
    ↓ Can use tools, read files, search code
    ↓ Returns result when done
Claude Code gets result (its context stayed clean)

Delegate work. Save context.

Quick Start

# Install
uv tool install glee --python 3.13
# or: pipx install glee

# Initialize project (registers MCP server)
glee init claude

# Authenticate with AI provider (for Glee's reasoning)
glee oauth codex          # OAuth to Codex API
# or
glee auth claude <key>    # Claude API key

After restart, Claude Code can delegate work:

"Submit a job to Glee to refactor the authentication system"
→ glee_job.submit(task="refactor the auth system", context=["src/auth/"])
→ Returns job_id, Glee works autonomously
→ glee_job.wait(job_id) to get result

Features

MCP Tool Namespaces

Namespace Purpose
glee.job.* Delegate autonomous work to Glee agent
glee.review Code review from another AI perspective
glee.rag.* Cross-project knowledge base (planned)
glee.memory.* Project memory (existing)

Job API

Tool Description
glee_job.submit Submit a task, returns job_id
glee_job.get Get job status and progress
glee_job.wait Block until job completes
glee_job.result Get final result
glee_job.needs_input Check if human input needed
glee_job.provide_input Provide input to waiting job

Code Review

glee review src/api/          # Review a directory
glee review git:changes       # Review uncommitted changes

Memory System

Tool Description
glee.memory.add Add memory entry
glee.memory.search Semantic search
glee.memory.overview Project overview

Supporting Infrastructure

Component Description
agents Reusable workers (.glee/agents/*.yml)
tools Extensible capabilities (.glee/tools/)
workflows Orchestration of agents

AI Provider Setup

Glee needs an AI to power its reasoning. Configure one:

# OAuth flows (uses your existing subscription)
glee oauth codex              # Codex API (PKCE flow)
glee oauth copilot            # GitHub Copilot API (device flow)

# API keys
glee auth claude <key>        # Claude API
glee auth gemini <key>        # Gemini API

# Check status
glee auth status

Priority order: Codex API → Copilot API → Claude API → Gemini API → CLI fallback

CLI Commands

# Setup
glee init <agent>             # Initialize project
glee oauth codex              # OAuth to Codex
glee oauth copilot            # OAuth to Copilot
glee auth <provider> <key>    # Set API key
glee auth status              # Show configured providers

# Jobs
glee status                   # Show project status

# Review
glee review <target>          # Run code review
glee config set reviewer.primary codex

# Memory
glee memory overview          # Show project memory
glee memory search <query>    # Search memory

How It Works

glee init claude
    ├── Creates .glee/ directory
    ├── Creates .mcp.json (MCP server registration)
    └── Creates .claude/settings.local.json (session hooks)

claude (start in project)
    └── Reads .mcp.json
        └── Spawns `glee mcp` as MCP server
            └── Claude now has glee_job.* tools

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                        Claude Code                              │
└──────────────────────────┬──────────────────────────────────────┘
                           │ MCP Protocol
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│                     Glee MCP Server                             │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                   Glee Agent Runtime                      │   │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────────┐   │   │
│  │  │ ReAct Loop  │  │   Memory    │  │ Tool Executor   │   │   │
│  │  └─────────────┘  └─────────────┘  └─────────────────┘   │   │
│  └──────────────────────────┬───────────────────────────────┘   │
└─────────────────────────────┼───────────────────────────────────┘
                              │ AI Provider
            ┌─────────────────┼─────────────────┐
            ▼                 ▼                 ▼
     ┌────────────┐    ┌────────────┐    ┌────────────┐
     │ Codex API  │    │ Claude API │    │ CLI Fallback│
     └────────────┘    └────────────┘    └────────────┘

Configuration

# .glee/config.yml
project:
  id: 550e8400-e29b-41d4-a716-446655440000
  name: my-app

reviewers:
  primary: codex
  secondary: gemini
# ~/.glee/auth.yml
codex:
  method: oauth
  access_token: "..."
  refresh_token: "..."
  expires_at: 1736956800

claude:
  method: api_key
  api_key: "sk-ant-..."

Documentation

Development

git clone https://github.com/GleeCodeAI/Glee
cd Glee
uv sync
uv run glee --help

Glee: Delegate work, save context, get results.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glee-0.3.17.tar.gz (259.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glee-0.3.17-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

Details for the file glee-0.3.17.tar.gz.

File metadata

  • Download URL: glee-0.3.17.tar.gz
  • Upload date:
  • Size: 259.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for glee-0.3.17.tar.gz
Algorithm Hash digest
SHA256 415695b4eddd11f025dd0a12b22a207bcf3e13bc4b15ccc2cdd505beb8bb1a95
MD5 3853941f1eac0c58a6c85feca5e4ae56
BLAKE2b-256 d7af8a7c3434fdc040fa435e95de1542941a2d70bcbedb5c3523a5da67ac79ec

See more details on using hashes here.

File details

Details for the file glee-0.3.17-py3-none-any.whl.

File metadata

  • Download URL: glee-0.3.17-py3-none-any.whl
  • Upload date:
  • Size: 70.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for glee-0.3.17-py3-none-any.whl
Algorithm Hash digest
SHA256 fcaeb444b5ad3064cd65fb7963f2ac7a994624ae64994e2c7f6791d48fe89793
MD5 391afca7758e14b2f82471cc2cacb310
BLAKE2b-256 6926d1aa76276ca30402a9e265644b3a7982b161717b93e05fbd5c95469e3f1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page