Claw Code Core Features
This open-source framework offers a clean-room Python and Rust rewrite of the Claude Code architecture, featuring multi-agent orchestration, tool-calling, and terminal-native AI development with 48k+ GitHub stars.
Core Features of Claw Code
Plugin-Based Tool System
Offers 19 permission-gated tools for file I/O, shell execution, Git operations, and web scraping, each independently sandboxed with configurable access controls.
Autonomous Agent Loop
Provides a terminal-native agent that reads entire codebases, edits files, executes commands, runs tests, handles Git, and iterates autonomously until task completion.
Multi-Agent Orchestration
Supports spawning sub-agents, internally referred to as "swarms," to parallelize complex tasks, enabling decomposition into independently executable subtasks with shared memory access.
LLM API Client
Delivers a provider-agnostic API client with automatic retry, SSE streaming, OAuth authentication, and token usage tracking with cost estimation, supporting multiple LLM providers.
Session & Memory Management
Implements a multi-layer memory system with session persistence, transcript compaction, and context discovery, ensuring persistent knowledge across conversations with automatic cleanup.
Query Engine
Serves as the central intelligence, managing all LLM API calls, response streaming, caching strategies, and multi-step orchestration with provider-agnostic design and configurable turn limits.
Rust Performance Core
Features a 6-crate Rust workspace with 16 runtime modules for performance-critical paths, zero-dependency JSON parser, OAuth PKCE flow, and syntax-highlighted terminal rendering.
MCP Integration
Provides full Model Context Protocol support with 6 transport types—Stdio, SSE, HTTP, WebSocket, SDK, and ClaudeAiProxy—for connecting to external tool servers with automatic name normalization and OAuth authentication.
Slash Commands
Offers 15 interactive commands (/compact, /model, /permissions, /cost, /session) with resume support, command graph categorization, and REPL integration for comprehensive session control.
Permission System
Implements three permission modes with a per-tool policy engine, deny lists, and interactive prompting, ensuring granular access control and security across all agent operations.
Use Cases of Claw Code
- Developers: Build custom AI coding agents using Claw Code's plugin-based tool system and extensible architecture.
- Open-source contributors: Enhance the Claw Code framework by contributing to its modular Python and Rust codebase.
- Researchers: Study the clean-room reimplementation of Claude Code's architecture for AI agent development insights.
- Enterprises: Deploy self-hosted AI coding agents with Claw Code's multi-LLM provider support and permission controls.
- Students: Learn about AI agent architecture and implementation by exploring Claw Code's open-source codebase.
