Anshuk18

Codecrafters Claude Code Cpp — AI skill for Claude Code

AI community

A high-performance C++ implementation of an autonomous AI coding agent inspired by Claude Code, built as part of the CodeCrafters challenge.

How to install Codecrafters Claude Code Cpp

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Anshuk18/codecrafters-claude-code-cpp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codecrafters Claude Code Cpp does

A high-performance C++ implementation of an autonomous AI coding agent inspired by Claude Code, built as part of the CodeCrafters challenge. Powered by OpenRouter and equipped with file system and shell execution tools.

Alternatives in AI

  • Inference Serving — ai-research-skills vLLM, SGLang, TensorRT-LLM, llama.cpp 5.4k ★
  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
  • Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★

README

[![progress-banner](https://backend.codecrafters.io/progress/claude-code/9771251c-dddf-4b51-8159-ae4af78ad9c3)](https://app.codecrafters.io/users/Anshuk18?r=2qF)

This is a starting point for C++ solutions to the ["Build Your own Claude Code" Challenge](https://codecrafters.io/challenges/claude-code).

Claude Code is an AI coding assistant that uses Large Language Models (LLMs) to understand code and perform actions through tool calls. In this challenge, you'll build your own Claude Code from scratch by implementing an LLM-powered coding assistant.

Along the way you'll learn about HTTP RESTful APIs, OpenAI-compatible tool calling, agent loop, and how to integrate multiple tools into an AI assistant.

**Note**: If you're viewing this repo on GitHub, head over to [codecrafters.io](https://codecrafters.io) to try the challenge.

Passing the first stage

The entry point for your `claude-code` implementation is in `src/main.cpp`. Study and uncomment the relevant code, and submit to pass the first stage:

codecrafters submit

Stage 2 & beyond

Note: This section is for stages 2 and beyond.

  1. Ensure you have cmake installed locally.
  2. Run ./your_program.sh to run your program, which is implemented in src/main.cpp.
  3. Run codecrafters submit to submit your solution to CodeCrafters. Test output will be streamed to your terminal.