Skip to content

deepelementlab/clawcode

Repository files navigation

Screenshot - 2026-04-01 20 09 39

ClawCode

Your creative dev tool — AI coding Swiss Army knife

Release v0.1.2 License: GPL-3.0 Documentation Wiki gitcgr

English | 简体中文

Quick StartWhy ClawCodeFeaturesDocumentationContributing


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.

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
/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

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
Agent & Team Orchestration docs/agent-team-orchestration.md
ECAP/TECAP Learning System docs/ecap-learning.md
Slash Commands Reference docs/slash-commands.md
Configuration Guide docs/clawcode-configuration.md
Performance & Testing 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

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.


Built by DeepElementLab

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages