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_KEYorANTHROPIC_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):
- CLI flags
- Environment variables
cce_config.yaml- 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 fromgh 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c3550405266a82c1e9ab5d62e8a58cb71effbae8f08ac7379491a6c482d3fa
|
|
| MD5 |
0166cdeb083c19f447534c1b977a2c87
|
|
| BLAKE2b-256 |
cf70354ceab321d38eb4dbb56fe3decdbba67f6d3f5e8cf91372a7eca7c81ce6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0bbd8638b602488b3ab5ac0fdcf4c90a520613d803f6803a53deadc11dc95b8
|
|
| MD5 |
0f7875cdd979d0fee1565dec4bbb0aee
|
|
| BLAKE2b-256 |
61892a2637850da21e70f27e47804680f116f0fd5ccd7193bdd83ba71937365e
|