claude-engineer README

The project's README from github.com/Doriandarko/claude-engineer. As one markdown file: README.md.

Claude Engineer v3 🤖

A powerful self-improving AI Assistant designed for creating and managing AI tools with Claude 3.5. This framework enables Claude to generate and manage its own tools, continuously expanding its capabilities through conversation. Available both as a CLI and a modern web interface!

History and Evolution

This project represents the third major iteration of Claude Engineer, building upon the success of Claude Engineer v2. Key improvements from previous versions include:

Description

Claude Engineer v3 is a sophisticated framework that allows Claude to expand its own capabilities through dynamic tool creation. During conversations, Claude can identify needs for new tools, design them, and implement them automatically. This self-improving architecture means the framework becomes more powerful the more you use it.

Installation

For the best possible experience install uv

macOS and Linux

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or using wget if curl is not available:
# wget -qO- https://astral.sh/uv/install.sh | sh

# Clone and setup
git clone https://github.com/Doriandarko/claude-engineer.git
cd claude-engineer
uv venv
source .venv/bin/activate

# Run web interface
uv run app.py

# Or run CLI
uv run ce3.py

Windows

# Install uv
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Clone and setup
git clone https://github.com/Doriandarko/claude-engineer.git
cd claude-engineer
uv venv
.venv\Scripts\activate


# Run web interface
uv run app.py

# Or run CLI
uv run ce3.py

Interface Options

1. Web Interface 🌐

A sleek, modern web UI with features like:

Claude Engineer v3 Web Interface

To run the web interface:

# Using uv (recommended)
uv run app.py

# Or using traditional Python
python app.py

# Then open your browser to:
http://localhost:5000

2. Command Line Interface (CLI) 💻

A powerful terminal-based interface with:

To run the CLI:

# Using uv (recommended)
uv run ce3.py

# Or using traditional Python
python ce3.py

Choose the interface that best suits your workflow:

Self-Improvement Features

Core Features

Project Structure

claude-engineer/
├── app.py             # Web interface server
├── ce3.py            # CLI interface
├── config.py         # Configuration settings
├── static/           # Web assets
│   ├── css/         # Stylesheets
│   └── js/          # JavaScript files
├── templates/        # HTML templates
├── tools/           # Tool implementations
│   ├── base.py      # Base tool class
│   └── ...         # Generated and custom tools
└── prompts/         # System prompts
    └── system_prompts.py

Features by Interface

Web Interface Features

CLI Features

Choose the interface that best matches your workflow and preferences. Both interfaces provide access to the same powerful Claude Engineer capabilities, just presented in different ways.

Key Components

Assistant Class

The core Assistant class provides:

Configuration Options

The assistant supports various configuration options through the Config class:

Requirements

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Acknowledgments

This project builds upon the foundations of Claude Engineer v2, enhancing its capabilities with self-improving tool generation and advanced token management.

Built-in Tools

Claude Engineer v3 comes with a comprehensive set of pre-built tools:

Core Tools

Development Tools

File System Tools

Web Tools

Utility Tools

Each tool is designed to be:

The tools are dynamically loaded and can be extended during runtime through the Tool Creator, allowing the assistant to continuously expand its capabilities based on user needs.

API Keys Required

  1. Anthropic API Key: Required for Claude 3.5 access
  2. E2B API Key: Required for Python code execution capabilities. Get your key at e2b.dev

Add these to your .env file:

ANTHROPIC_API_KEY=your_anthropic_key
E2B_API_KEY=your_e2b_key

Star History

Star History Chart

claude-engineer (Doriandarko/claude-engineer)

Searching Database…

这是什么?Claude Engineer 是一个能够自我改进的 AI 助手框架,基于 Claude 3.5 Sonnet 构建。它可以在对话过程中生成并管理自己的工具,随着时间推移不断扩展自身能力。它同时提供命令行(CLI)和网页界面,用于软件开发任务。
这是命令行工具、网页应用,还是两者都是?两者都是:这是一个 Python 框架,提供两种界面,一种是基于终端的 CLI,另一种是现代化的网页 UI,二者共用同一个底层 Assistant 引擎和工具系统。
我该怎么把它跑起来?建议先安装 Python 包管理器 'uv',体验会更好。然后在项目中运行网页界面或 CLI 入口之一即可。
我需要 Anthropic API 密钥吗?需要。你需要一个 Anthropic API 密钥来访问 Claude 3.5,同时还需要 Python 3.8+。如果你希望代码执行工具在沙箱中运行 Python,还需要一个 E2B API 密钥。
我需要了解哪些主要限制?通过 E2B 工具执行代码,需要在 Anthropic 之外另外申请一个单独的付费 API 密钥,因此部分内置工具需要额外注册才能使用。工具创建是自主进行的,也就是说由 Claude 决定何时以及如何创建工具,这比手动定义的工具更难预测。
除了 macOS/Linux,它在 Windows 上也能运行吗?可以。macOS/Linux 和 Windows 的安装说明是分开提供的,CLI 和网页服务器都可以通过 Python 跨平台运行。
开箱即用的内置工具有哪些?它内置了:工具创建器(Tool Creator)、UV 包管理器界面、基于 E2B 沙箱的 Python 代码执行器、基于 Ruff 的代码检查工具、文件系统工具(创建文件夹、创建/读取/编辑文件、差异编辑器)、网页工具(DuckDuckGo 搜索、网页抓取器、浏览器打开工具),以及截图工具。
自我改进功能到底是怎么工作的?在对话过程中,Claude 可以发现缺少的能力,使用内置的工具创建器为其设计一个新工具,并将该工具热加载,使其无需重启应用即可立即使用。
网页界面和 CLI 有什么区别?网页界面增加了图片上传和基于 Claude Vision 的图片分析、可视化的令牌用量进度条,以及 Tailwind 风格的 Markdown 渲染;而 CLI 提供功能丰富的终端界面,带有 ASCII 令牌用量条,并支持便于调试的直接工具交互。两者共用同一个 Assistant 引擎。
这和 Claude Engineer v2 有什么不同?V3 升级到了 Claude 3.5 Sonnet 模型,加入了 Anthropic 的令牌计数 API,可以精确追踪用量;引入了自主的、自我改进式的工具创建功能;并且不再需要单独的 'automode',因为 Claude 现在可以自行决定何时运行工具。
Size
1.3 MB
Stars
11.2K
Updated
CommitDec 12
Age
2y
Commits · 90 Days