| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Creative Engineering Cockpit for Serious AI Builders.
Instantly access a professional team for intelligent research, design, and development.
Open-source coding agent platform with terminal-native execution, multi-agent orchestration, closed-loop learning, and a production-grade research subsystem.
Our Story • Philosophy • Differentiation • Capabilities • ResearchTeam • Knowledge Ecosystem • Domain Extension • Architecture • Testing • Documentation • Contributing
In 2024, the DeepElementLab team watched the same scene repeat across dozens of engineering teams: a developer would spend an hour debugging an API error handling pattern with an AI assistant, only to start from scratch two days later when the same issue resurfaced in a new session. The assistant was stateless; the knowledge evaporated.
We asked a systems question: What if an AI coding assistant could remember, learn, and evolve?
Not in the sense of a chat history buffer, but in the way a senior engineer accumulates institutional knowledge — debugging patterns, tool sequences, remediation playbooks — and refines them over time. This is the origin of ClawCode.
ClawCode is named after the claw of a craftsman: precise, persistent, and capable of both delicate manipulation and heavy lifting. It represents our belief that AI coding tools should be engineering instruments, not just conversational toys. We built it for teams who ship production code, not just prototypes.
Today, ClawCode combines agent runtime, tool execution, workflow orchestration, and experience learning into one coherent developer system. It reimagined from the ground up with structured memory, governed autonomy, and multi-agent collaboration.
ClawCode is built on four foundational principles that guide every architectural decision:
We believe AI assistants should do, not just advise. Tools run, files change, outputs are verified. Every conversation is an engineering action with observable side effects.
Single-agent bottlenecks are a scaling anti-pattern. Role-based collaboration (/clawteam, research team) replaces the lone assistant with coordinated specialists — architecture, implementation, QA, and delivery — working toward convergent outcomes.
Sessions should not be disposable. Our three-tier experience model (Instinct → ECAP → TECAP) transforms recurring behavior into reusable, versioned artifacts. The system learns from tool traces, clusters patterns, and evolves skills under governance.
Your tools should serve your workflow, not a vendor's ecosystem. Provider-agnostic model layer, OpenAI-compatible endpoints, and extensible tool adapters ensure you own your infrastructure.
The ClawCode Loop: Idea → Plan → Execute → Verify → Review → Learn
| Typical AI Coding Assistant | ClawCode |
|---|---|
| Chat-first interaction | Terminal-native execution surface |
| Single assistant thread | Multi-role orchestration with convergence |
| Stateless sessions | Persistent memory via ECAP/TECAP |
| Generic answers | Workflow-driven outputs and artifacts |
| Fixed backend assumptions | Model/provider abstraction + custom adapters |
| No personal knowledge support | DeepNote wiki + notebook interop for personal/team knowledge |
| One-size-fits-all | 12 built-in vertical domains + extensible domain registry |
Run interactively (TUI) or non-interactively in automation contexts:
clawcode
clawcode -p "Refactor this API and add tests"
clawcode -p "Summarize git changes as release notes" -f jsonSpin up coordinated specialist roles for architecture, implementation, QA, and delivery decisions:
/clawteam "Build a REST API with auth"
/clawteam --deep_loop "Design microservice architecture"The /clawteam deep loop mode features:
Generate structured product/design artifacts from dedicated design roles (research, IXD, UI, PM, visual).
ClawCode ships with a curated catalog of 54 world-class brand design systems, ensuring generated UI work stays on-brand instead of drifting between prompts:
Featured brands include: Apple, Google (Material), Microsoft (Fluent), Airbnb, Stripe, Figma, Notion, Vercel, Linear, Spotify, Uber, Netflix, BMW, NVIDIA, SpaceX, Coinbase, HashiCorp, MongoDB, Supabase, PostHog, Sentry, Replicate, Runway, ElevenLabs, Cursor, Warp, Raycast, Cal.com, Intercom, Airtable, Miro, Sanity, Webflow, Framer, Mintlify, Cohere, Mistral AI, Together AI, xAI, MiniMax, Composio, Lovable, VoltAgent, Ollama, OpenCode, Resend, Revolut, Wise, Kraken, Zapier, Clay, ClickHouse, IBM, Pinterest, and Expo.
Each brand entry includes:
Style routing supports manual lock, auto-pick, and hybrid selection modes, with session-level traceability (/ui-style why) for explainable brand decisions.
Extended UI style support: With Free UI, featuring 50+ categories and 270+ design styles, covering nearly all major brand types.Empower AI with a deeper understanding of UI aesthetics — design any style you want with UI effects that match your brand.
Built-in tool categories include:
Real-time status overlay showing:
Architecture-level project understanding:
Read-only planning with structured task management:
Lightweight iteration-bounded agent:
ClawCode includes a production-style research subsystem for evidence-backed investigation pipelines.
| Workflow | Command | Purpose |
|---|---|---|
| deepresearch | clawcode research start "topic" -w deepresearch | Template pipeline: plan -> research -> verify -> deliver |
| peerreview | clawcode research start "topic" -w peerreview | Critical review with verification |
| lit | clawcode research start "topic" -w lit | Literature survey |
| audit | clawcode research audit <url> | Inspect URL/repo/artifact |
| compare | clawcode research start "topic" -w compare | Side-by-side comparison |
ResearchTeam is the high-rigor mode for complex topics:
clawcode research team "Quantum error correction" \
--roles literature_researcher,deep_analyst,fact_verifier \
--strategy hybrid \
--max-iters 3In interactive mode:
/research team Quantum error correction --strategy hybrid --max-iters 3
Research docs:
DeepNote is ClawCode's native knowledge-base subsystem, designed as an operational wiki + learning loop rather than a passive note dump.
Notebook interoperability for existing teams:
This enables a practical path from fragmented personal notes to a reusable team knowledge graph.
ClawCode is intentionally extensible for vertical domains and personal knowledge systems:
ClawCode is organized as composable layers:
This keeps experimentation fast while preserving engineering discipline.
cd clawcode
python -m venv .venv
.\.venv\Scripts\Activate.ps1 # Windows
pip install -e ".[dev]"Requirements: Python >= 3.12
Create .clawcode.json in your project root:
{
"providers": {
"openai": {
"api_key": "sk-...",
"disabled": false
}
},
"agents": {
"coder": {
"model": "gpt-4o",
"provider_key": "openai"
}
}
}Or use environment variables:
export CLAWCODE_OPENAI__API_KEY="sk-..."You can also enable brand style routing and DeepNote knowledge workflows in the same config:
{
"ui_style_mode": "hybrid",
"deepnote": {
"enabled": true,
"path": "~/deepnote"
},
"research": {
"enabled": true
}
}clawcode -c "/path/to/project" # Interactive TUI
clawcode -p "Refactor this API" # Non-interactiveCore development checks:
pytest
ruff check .
mypy .ClawCode ships with a comprehensive test suite spanning unit, integration, and end-to-end scenarios.
Unit Tests (core components):
| Test File | Coverage Area | Key Assertions |
|---|---|---|
| test_agent.py | Agent ReAct loop | Basic conversation, tool calling, streaming, multi-tool, error handling |
| test_claw_mode.py | Claw iteration budget | Budget consume/refund, system suffix, message conversion |
| test_plan_mode.py | Plan mode policy | Tool permission filtering, versioned bundles, stale build normalization |
| test_plugin_system.py | Plugin discovery | Path resolution, marketplace parsing, skill loading |
| test_hud_*.py (5 files) | HUD rendering | Session duration, agent entries, running tools, todo display |
| test_code_awareness.py | Code awareness | BFS outline, LLM classification fallback, file event tracking, session history |
| test_experience_store.py | Experience capsules | Save, list, load, export round-trip |
| test_learning_service.py | Autonomous cycle | Dry-run snapshots, idempotency, fault injection, recovery actions |
| test_quality_gates.py | Skill quality gates | Invalid skill detection |
ResearchTeam Tests (orchestration & convergence):
| Test File | Coverage Area | Key Assertions |
|---|---|---|
| test_research_team_e2e.py | End-to-end orchestration | Summary generation, RTECAP persistence |
| test_research_team_convergence.py | Convergence detection | Consecutive round requirements |
| test_research_team_parallel.py | Parallel executor | Multi-role concurrent execution |
| test_research_team_merge.py | Merge strategies | Union and consensus merging |
| test_research_team_roles.py | Role registry | 8+ default roles |
| test_research_team_contracts.py | Handoff contracts | Quality gate validation |
| test_research_team_learning.py | Learning integration | Capsule record and retrieve |
| test_research_team_tecap.py | TECAP service | Save and get round-trip |
| test_research_mode_smoke.py | Research smoke tests | Settings, memory storage, workflow normalization |
ClawTeam Deep Loop Tests:
| Test File | Coverage Area | Key Assertions |
|---|---|---|
| test_clawteam_deeploop_metrics.py | Metrics summarization | Gap delta, handoff series, decision counts |
| test_clawteam_deeploop_tecap.py | TECAP writeback | Role overlap preference, iteration records, convergence decisions, E2E slash-to-writeback |
E2E Integration Tests:
| Test File | Coverage Area | Key Assertions |
|---|---|---|
| test_closed_loop_e2e_smoke.py | Memory/skill nudges, session search | Nudge intervals, search tool invocation |
| test_research_team_live_llm.py | Live LLM acceptance | Optional, requires API key |
Fault Injection & Recovery Tests:
| Test File | Coverage Area | Key Assertions |
|---|---|---|
| test_learning_service.py (fault tests) | Stale lock recycling, corrupt cache recovery, busy lock runbook | Autonomous cycle resilience |
Optional live-provider acceptance tests are available under marker live_llm (skipped by default). Set CLAWCODE_RESEARCH_LIVE_TEST=1 and CLAWCODE_RESEARCH_TEAM_LIVE_TEST=1 to enable.
| 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 |
| Research Mode | docs/RESEARCH_MODE.md |
| ResearchTeam Mode | docs/RESEARCH_TEAM_MODE.md |
Issues and PRs are welcome. For larger architecture or workflow changes, open an issue first to align on scope and review criteria.
AI tooling can execute commands and modify files. Run ClawCode in controlled environments, apply least privilege to credentials, and review generated changes before merge.
GPL-3.0.
Built by DeepElementLab
| Back | FazBrowse Home | New Git URL |