Skip to main content

Context-aware Code Evolution Agent - AI-powered code analysis and transformation

Project description

CCE Agent (CLI)

Context-aware Code Evolution (CCE) Agent is a CLI for running structured code analysis and change workflows locally or in remote environments (e.g., GitHub Codespaces).

This README is CLI-focused so the PyPI page shows how to install and use the tool. For architecture and internals, see the docs in this repo.

Requirements

  • Python 3.11+
  • Git
  • API keys (at least one): OPENAI_API_KEY or ANTHROPIC_API_KEY

Install

pip install cce-agent
# or (isolated)
pipx install cce-agent

Quick start (local)

# Run CCE locally in the current repo
cce run --issue-url https://github.com/owner/repo/issues/123

Configuration

The CLI reads configuration from (highest priority first):

  1. CLI flags
  2. Environment variables
  3. cce_config.yaml
  4. Built-in defaults

Common environment variables:

export OPENAI_API_KEY=...
export ANTHROPIC_API_KEY=...
export LANGSMITH_API_KEY=...   # optional

Command reference

Use --help for authoritative defaults and descriptions:

cce --help
cce run --help
cce run-deep-agents --help
cce launch codespace --help
cce report cycles --help

cce run (local)

cce run --issue-url https://github.com/owner/repo/issues/123 [OPTIONS]

Options:

  • --issue-url (required): GitHub issue URL to process
  • --target-repo: Target repository slug (owner/repo) for worktree ops when issue is in another repo
  • --target-repo-url: Target repository URL for worktree ops when issue is in another repo
  • --base-branch: Base branch for git ops (default: auto)
  • --run-mode: demo|guided|expert (default: guided)
  • --execution-mode: native|aider|hybrid (default: native)
  • --artifact-path: Directory for JSON/MD summary artifacts
  • --workspace-root: Workspace root (default: current directory)
  • --no-worktree: Run in workspace without creating a worktree
  • --enable-git-workflow: Enable branch/commit integration
  • --auto-pr / --no-auto-pr: Enable/disable automatic PR creation
  • --use-aider / --no-aider: Enable/disable Aider integration
  • --prompt-cache / --no-prompt-cache: Enable/disable prompt caching
  • --recursion-limit: ReAct (tool loop) recursion limit per execution cycle

cce run-deep-agents (local)

cce run-deep-agents --issue-url https://github.com/owner/repo/issues/123 [OPTIONS]

Options:

  • --issue-url (required)
  • --target-repo
  • --target-repo-url
  • --base-branch
  • --run-mode: demo|guided|expert
  • --execution-mode: native|aider|hybrid
  • --artifact-path
  • --workspace-root
  • --no-worktree
  • --auto-pr / --no-auto-pr
  • --read-only / --edit
  • --timeout-seconds: Deep agents timeout (default: 2400 or env override)
  • --max-cycles: Max deep agents cycles
  • --remaining-steps: Deep agents remaining_steps budget

cce launch codespace (remote)

cce launch codespace --codespace <NAME> --issue-url https://github.com/owner/repo/issues/123 [OPTIONS]

Options:

  • --codespace (required): Codespace name from gh codespace list
  • --cli-root: Path to CLI repo in Codespace (dev-only; default: use installed package)
  • --auto-install-cli: Install cce-agent in the Codespace if missing
  • --cli-version: Optional cce-agent version to install when auto-installing
  • --workspace-root: Workspace root (default: /workspaces/<repo>)
  • --stream / --no-stream: Enable/disable live output
  • --download-artifacts: Download artifacts after completion
  • --remote-artifact-path: Remote artifact path (default: /tmp/cce-artifacts)
  • --timeout: Remote execution timeout (seconds)
  • --use-deep-agents: Run deep agents workflow in Codespace
  • --deep-agents-read-only: Deep agents read-only mode
  • --deep-agents-timeout: Deep agents timeout override (seconds)
  • --deep-agents-max-cycles: Deep agents max cycles override
  • --deep-agents-remaining-steps: Deep agents remaining_steps override
  • --issue-url (required)
  • --target-repo
  • --target-repo-url
  • --base-branch
  • --run-mode: demo|guided|expert
  • --execution-mode: native|aider|hybrid
  • --artifact-path
  • --no-worktree
  • --enable-git-workflow
  • --auto-pr / --no-auto-pr
  • --use-aider / --no-aider
  • --prompt-cache / --no-prompt-cache
  • --recursion-limit

cce report cycles

cce report cycles [--output-path /path/to/report.md]

Options:

  • --output-path: Optional output path for the cycle analysis report

Examples

# Run locally with worktree + auto PR
cce run --issue-url https://github.com/owner/repo/issues/123 --enable-git-workflow --auto-pr

# Run deep agents locally
cce run-deep-agents --issue-url https://github.com/owner/repo/issues/123 --max-cycles 6

# Launch in Codespace with package-first auto-install
cce launch codespace --codespace my-cs --issue-url https://github.com/owner/repo/issues/123 --auto-install-cli

Development

pip install -e .
pip install -e ".[dev]"

License

MIT

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

cce_agent-0.1.3.tar.gz (629.2 kB view details)

Uploaded Source

Built Distribution

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

cce_agent-0.1.3-py3-none-any.whl (760.2 kB view details)

Uploaded Python 3

File details

Details for the file cce_agent-0.1.3.tar.gz.

File metadata

  • Download URL: cce_agent-0.1.3.tar.gz
  • Upload date:
  • Size: 629.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for cce_agent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 94c3550405266a82c1e9ab5d62e8a58cb71effbae8f08ac7379491a6c482d3fa
MD5 0166cdeb083c19f447534c1b977a2c87
BLAKE2b-256 cf70354ceab321d38eb4dbb56fe3decdbba67f6d3f5e8cf91372a7eca7c81ce6

See more details on using hashes here.

File details

Details for the file cce_agent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cce_agent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 760.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for cce_agent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0bbd8638b602488b3ab5ac0fdcf4c90a520613d803f6803a53deadc11dc95b8
MD5 0f7875cdd979d0fee1565dec4bbb0aee
BLAKE2b-256 61892a2637850da21e70f27e47804680f116f0fd5ccd7193bdd83ba71937365e

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