claw-code-agent  by HarnessLab

Python agent for local code execution and interactive development

Created 1 week ago

New!

342 stars

Top 80.9% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Claw Code Agent is a pure Python reimplementation of the Claude Code agent architecture, designed for local execution with open-source LLMs. It offers engineers and power users a zero-dependency, fast-iteration environment for complex coding and agentic workflows, providing full control over models and data.

How It Works

This project leverages Python's standard library exclusively, avoiding external package dependencies. It emulates the Claude Code agent's core loop, including prompt assembly, context management, tool calling, and session persistence. The agent interacts with local LLM inference servers (like vLLM, Ollama, LiteLLM Proxy, or OpenRouter) via an OpenAI-compatible API, enabling local model execution and full data control.

Quick Start & Requirements

Highlighted Details

  • Features an extensive set of agentic capabilities, including interactive chat, token-by-token streaming, a manifest-based plugin runtime, nested agent delegation with topological batching, and robust cost/budget tracking.
  • Supports structured output via JSON schema, file history replay, and context compaction techniques for efficient prompt management.
  • Offers broad LLM backend integration, working seamlessly with Ollama, LiteLLM Proxy, OpenRouter, and vLLM, providing flexibility in model selection.
  • Includes advanced runtimes for local search, MCP transport, task/plan management, remote execution, hook/policy enforcement, and git worktree operations.

Maintenance & Community

The project is developed by the HarnessLab Team. No specific community channels (e.g., Discord, Slack) or detailed contributor information are provided in the README.

Licensing & Compatibility

The repository explicitly states "Zero external dependencies — just Python's standard library." However, no specific open-source license (e.g., MIT, Apache) is mentioned. Users should verify licensing terms for commercial use or integration into closed-source projects.

Limitations & Caveats

Several features are marked as "In Progress," including full MCP parity, slash-command parity, REPL/TUI behavior, and real remote transport. The project is a reimplementation and not affiliated with Anthropic. Using cloud-based gateways like OpenRouter requires caution due to data transmission.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
19
Issues (30d)
2
Star History
345 stars in the last 10 days

Explore Similar Projects

Feedback? Help us improve.