تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

clawcode

بواسطة deepelementlab

Codex
—لم يُقيَّم بعد
تقييمك

موجز

ClawCode is claude code inspired implementation in python and Rust focused on agents and experience-based evolution, and is an Open-source coding-agent CLI for Anthropic, OpenAI, Gemini, DeepSeek, GLM, Kimit, Ollama, Codex, GitHub Models, and 200+ models via OpenAI-compatible APIs.

الوصف

<p align="center">
  <!-- <img width="256" height="256" alt="ClawCode Logo" src="https://github.com/user-attachments/assets/03466089-8b3d-47f8-a454-06a8874eb727" /> -->
  <img width="1937" height="503" alt="Screenshot - 2026-04-01 20 09 39" src="./assets/ClawCode_Banner_V0.1.2-1.gif" />
</p>

<h1 align="center">ClawCode</h1>

<p align="center">
  <strong>Your creative dev tool — AI coding Swiss Army knife</strong>
</p>

<p align="center">
  <a href="https://github.com/deepelementlab/clawcode/releases">
    <img src="https://img.shields.io/static/v1?style=flat&label=release&labelColor=6A737D&color=fe7d37&message=v0.1.2" alt="Release v0.1.2" />
  </a>
  <a href="#license"><img src="https://img.shields.io/badge/license-GPL%203.0-blue.svg" alt="License: GPL-3.0" /></a>
  <a href="https://github.com/deepelementlab/clawcode/wiki"><img src="https://img.shields.io/badge/Wiki-documentation-26A5E4?style=flat&logo=github&logoColor=white" alt="Documentation Wiki"/></a>
  <a href="https://gitcgr.com/deepelementlab/clawcode">
    <img src="https://gitcgr.com/badge/nearai/clawcode.svg" alt="gitcgr" />
  </a>
</p>

<p align="center">
  <a href="README.md">English</a> |
  <a href="README.zh.md">简体中文</a>
</p>

<p align="center">
  <a href="#quick-start">Quick Start</a> •
  <a href="#why-clawcode">Why ClawCode</a> •
  <a href="#features">Features</a> •
  <a href="#docs">Documentation</a> •
  <a href="#contributing">Contributing</a>
</p>

---

<p align="center">
 <!-- <img width="1937" height="503" alt="Screenshot - 2026-04-01 20 09 39" src="https://github.com/user-attachments/assets/f8433995-74fc-41d5-a52a-18c68991e604" /> -->
</p>

**ClawCode** is an open-source coding-agent CLI for Anthropic, OpenAI, Gemini, DeepSeek, GLM, Kimi, Ollama, Codex, GitHub Models, and **200+ models** via OpenAI-compatible APIs. It goes beyond code generation — it's a self-improving engineering partner.

## Why ClawCode

| Typical AI Coding Tool | ClawCode |
|------------------------|----------|
| Suggestion-only chat | **Terminal-native execution** |
| One-shot answers | **Self-improving learning loop** |
| Single model, single thread | **14-role virtual R&D team** |
| No memory | **Persistent sessions + experience capsules** |
| Vendor lock-in | **200+ models, fully configurable** |

> **Idea → Memory → Plan → Code → Verify → Review → Learned Experience**

## Features

### ⚡ Terminal-Native Execution

Analyze, code, verify, and review — all in one surface. No IDE overhead, no context switching.

```bash
clawcode                          # Interactive TUI
clawcode -p "Refactor this API"   # Non-interactive
clawcode -p "Summarize changes" -f json  # JSON output
```

### 🧠 Self-Improving Learning

ClawCode features **ECAP** (Experience Capsule) and **TECAP** (Team Experience Capsule) — a closed-loop learning system that turns every task into reusable knowledge:

- **Instinct → Experience → Skill** evolution chain
- Automatic write-back from `/clawteam --deep_loop`
- Portable, feedback-scored, privacy-controlled capsules

### 🎨 Design Team (`/designteam`)

Spin up specialist design agents (research, IXD, UI, product, visual) and ship structured design specs — not just "chatty UI suggestions."

### 👥 Virtual R&D Team (`/clawteam`)

Orchestrate 14 professional roles in one command:

| Role | Focus |
|------|-------|
| Product Manager | Priorities, roadmap |
| System Architect | Architecture, tech choices |
| Backend / Frontend / Mobile | Implementation |
| QA / SRE | Quality, reliability |
| DevOps / Team Lead | CI/CD, decisions |

```bash
/clawteam "Build a REST API with auth"           # Auto-assign roles
/clawteam --deep_loop "Design microservice arch" # Convergent iteration
```

### 🔧 44 Built-in Tools

| Category | Examples |
|----------|----------|
| File I/O | `view`, `write`, `edit`, `patch`, `grep` |
| Shell | `bash`, `terminal`, `execute_code` |
| Browser | `browser_*` (×11 automation tools) |
| Agent | Subagent spawning with isolation |
| Integration | MCP, Sourcegraph, Desktop automation |


### 🔄 Claude Code Compatible

Migration-friendly: supports `.claude/agents/`, Claude-style tool names, plugin/skill systems, and familiar slash workflows.

## Quick Start

```bash
cd clawcode
python -m venv .venv
.\.venv\Scripts\Activate.ps1   # Windows
pip install -e ".[dev]"
clawcode -c "/path/to/project"
```

**Requirements:** Python >=3.12, one LLM provider credential.

## Documentation

| Topic | Link |
|-------|------|
| Architecture | [docs/architecture.md](docs/architecture.md) |
| Agent & Team Orchestration | [docs/agent-team-orchestration.md](docs/agent-team-orchestration.md) |
| ECAP/TECAP Learning System | [docs/ecap-learning.md](docs/ecap-learning.md) |
| Slash Commands Reference | [docs/slash-commands.md](docs/slash-commands.md) |
| Configuration Guide | [docs/clawcode-configuration.md](docs/clawcode-configuration.md) |
| Performance & Testing | [docs/clawcode-performance.md](docs/clawcode-performance.md) |

## Test Results

| Suite | Tests | Status |
|-------|-------|--------|
| Unit + Integration | 833 | ✅ |
| CLI Flags | 22 | ✅ |
| TUI Interactions | 27 | ✅ |
| Real Skills + Plugins | 53 | ✅ |

**Total:** 944 items. **935 passed, 9 skipped, 0 failed.**

## Tiered Onboarding

| Level | Time | Steps |
|-------|------|-------|
| Run it | ~5 min | Install → `clawcode -p "..."` → try `/clawteam` |
| Close the loop | ~30 min | Real task → `/clawteam --deep_loop` → inspect write-back |
| Team rollout | Repeatable | Align model → inventory skills → wire ECAP feedback |

## Contributing

```bash
pytest
ruff check .
mypy .
```

For larger design changes, open an issue first.

## Security

AI tooling may run commands and modify files. Use ClawCode in a controlled environment, review outputs, and apply least privilege.

## License

GPL-3.0 license.

---

<p align="center">
  Built by <a href="https://github.com/deepelementlab">DeepElementLab</a>
</p>

التثبيت

ثبّت المهارة من https://github.com/deepelementlab/clawcode

هذه المهارة غير منشورة في سجلّ ClawHub. الصق النص في وكيل البرمجة لديك — Claude Code أو Cursor أو Codex — وسيثبّت المهارة مباشرةً من المستودع المصدر.

افتح المستودع

الروابط