Claw Code is an open-source terminal coding agent developed under the HarnessLab organization on GitHub. The project provides a Python-based implementation and benchmarking harness designed to replicate and experiment with core agentic execution loops, prompt engineering frameworks, and CLI-driven interaction patterns. Operationally, Claw Code standardizes system prompt construction, tool execution boundaries, and response rendering. It structures interactions using detailed system prompts, XML tag conventions, scratchpad scratch memory, and cached system prompt sections. The codebase manages API payload limits across multimodal inputs (such as image and PDF handling), result-size bounds on tool execution, and granular UI state updates like turn completions and status indicators. Claw Code differentiates itself by providing an inspectable, cleanly modularized Python architecture ported from TypeScript agent internals. Rather than functioning purely as an opaque proprietary binary, it exposes the underlying prompt constant definitions, cyber risk safety instructions, output styles, and benchmark evaluation suites, making it useful for researchers and engineers studying agentic behavior. Claw Code is published as an open-source repository on GitHub under active community development. As a Python-centric agent and harness, it can be run locally using custom API endpoints and configured LLM providers.
Tags: ai agent, cli, code assistant, coding agent, developer tools, OpenSource