-
Notifications
You must be signed in to change notification settings - Fork 0
docs: Update README with transparency statement #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,25 +1,40 @@ | ||||||
| # Claw Code (C++ Edition) 🚀 | ||||||
| # Claw Code (C++ Educational Skeleton) 🛠️🤖 | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|  | ||||||
|
|
||||||
| A clean-room, highly-performant C++20 reimplementation of the **Claw Code AI Agent Harness**. | ||||||
|
|
||||||
| Rather than being a simple chatbot that stops after a single reply, this is an **agentic loop architecture**. It integrates deeply with the Anthropic Messages API, sending explicit tool schemas to the model, and recursively executing local tools (like Bash and File I/O) on behalf of the AI until a task is completed. | ||||||
| > **Transparency Note (Read First):** \ | ||||||
| > This is **not** a port of the massive 500k LOC original Claw Code repository. This is a minimal, from-scratch skeleton project built explicitly as an exercise to explore what an agentic tool-loop looks like in C++. | ||||||
| > | ||||||
| > Furthermore, **the C++ architecture in this repository was entirely generated by Antigravity AI** (an agentic coding tool driven by advanced LLMs) under the guidance of Rayed Hasan. It was built to see if an AI could reconstruct a basic Claude-like loop in C++20. Expectations should be matched accordingly: it's a bare-bones architectural experiment, **not** a production-ready daily driver. | ||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| ## ⚡ Features | ||||||
| ## What Actually Is This? | ||||||
|
|
||||||
| It is the absolute **minimum viable architecture** (MVA) required for an AI agent. Most coding agents are built in TypeScript/Python. We wanted to see what it would take to compile a tool-use loop directly to a native C++ binary. | ||||||
|
|
||||||
| As noted by the community, this isn't magic. Under the hood, this is essentially a trivial HTTP loop that fetches tool requests and blindly shells out to system commands. | ||||||
|
|
||||||
| ### What is included: | ||||||
| - **The Agentic Loop:** A recursive runtime that sends prompts, parses `stop_reason: tool_use`, executes local tools, feeds results back, and repeats. | ||||||
| - **3 Minimal Tools:** | ||||||
| - `BashTool` (Uses `popen` to shell out. Capped at 50KB output to prevent hangs). | ||||||
|
||||||
| - `BashTool` (Uses `popen` to shell out. Capped at 50KB output to prevent hangs). | |
| - `BashTool` (Uses `popen` to shell out. Output is truncated after ~50KB to limit log size; this does not guarantee commands won't hang). |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Windows, winget install Microsoft.VisualStudio.2022.BuildTools alone typically doesn't install the C++ toolchain/workload needed to compile (MSVC, Windows SDK). The previous --override "--add Microsoft.VisualStudio.Workload.VCTools ..." (or an equivalent instruction to add the VC Tools workload) should be kept so the prerequisites are actionable.
| winget install Microsoft.VisualStudio.2022.BuildTools | |
| winget install Microsoft.VisualStudio.2022.BuildTools --override "--add Microsoft.VisualStudio.Workload.VCTools" |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inline PowerShell example escapes quotes inside a code span: $env:ANTHROPIC_API_KEY=\"sk-ant-...\". In Markdown code spans, quotes don't need escaping, so this will tell users to literally include backslashes. Update it to $env:ANTHROPIC_API_KEY="sk-ant-..." (without backslashes) and consider also documenting the macOS/Linux export ANTHROPIC_API_KEY=... form since this section is now otherwise Windows-specific.
| Export your Anthropic API Key to the environment (`$env:ANTHROPIC_API_KEY="sk-ant-..."`), and run the built `claw-cpp` executable. | |
| Export your Anthropic API Key to the environment (PowerShell on Windows: `$env:ANTHROPIC_API_KEY="sk-ant-..."`; macOS/Linux or other POSIX shells: `export ANTHROPIC_API_KEY="sk-ant-..."`), and run the built `claw-cpp` executable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The blockquote header uses
\\plus a trailing space to force a line break. In CommonMark this will render oddly (often as a literal backslash) and can break markdown linting. Consider removing the explicit backslash and just rely on the blank>line (or use a proper hard-break syntax consistently).