# \#challenge:claude-code

**URL:** https://forum.codecrafters.io/tag/challenge-claude-code/12.md

[Latest](https://forum.codecrafters.io/latest.md) · [Categories](https://forum.codecrafters.io/categories.md) · [Tags](https://forum.codecrafters.io/tags.md)

---

## [Continuous read tool calls](https://forum.codecrafters.io/t/continuous-read-tool-calls/16281)

<div class="topic-metadata">

**Author:** [@aargeee](https://forum.codecrafters.io/u/aargeee)\
**Replies:** 0\
**Last updated:** [September 14, 2026, 9:37pm UTC](https://forum.codecrafters.io/t/continuous-read-tool-calls/16281 "2026-09-14T21:37:47Z")

</div>

I’m stuck on Stage #FF2 My Prompt: explain what code is written in ./apple.py apple.py has simple hello world code in python The first user prompt is sent to the LLM, it responds back with a ReadFile tool call. I retu…

---

## [Getting RuntimeError: OPENROUTER\_API\_KEY is not set](https://forum.codecrafters.io/t/getting-runtimeerror-openrouter-api-key-is-not-set/16270)

<div class="topic-metadata">

**Author:** [@AkashMalasetty](https://forum.codecrafters.io/u/AkashMalasetty)\
**Replies:** 1\
**Last updated:** [September 8, 2026, 12:56pm UTC](https://forum.codecrafters.io/t/getting-runtimeerror-openrouter-api-key-is-not-set/16270 "2026-09-08T12:56:48Z")

</div>

Hey I am getting following error as soon as I run the command ./your\_program.sh -p “How many tools are available to you in this request? Number only.” Error: Traceback (most recent call last): File “”, line 203, in \_ru…

---

## [Duplicate keys in JSON response](https://forum.codecrafters.io/t/duplicate-keys-in-json-response/16221)

<div class="topic-metadata">

**Author:** [@aniruddhaniranjan](https://forum.codecrafters.io/u/aniruddhaniranjan)\
**Replies:** 3\
**Last updated:** [August 10, 2026, 12:02am UTC](https://forum.codecrafters.io/t/duplicate-keys-in-json-response/16221 "2026-08-10T00:02:35Z")

</div>

Hi, while implementing/testing the write tool, sometimes I’m getting a response from the OpenAI client with duplicate keys in the JSON. Please see below where function arguments have two keys “parameter” \[your\_program\] …

---

## [README\_old.md disappeared after first execution of ls command when implementing the bash tool #oq5](https://forum.codecrafters.io/t/readme-old-md-disappeared-after-first-execution-of-ls-command-when-implementing-the-bash-tool-oq5/16208)

<div class="topic-metadata">

**Author:** [@OnTheEasiestWay](https://forum.codecrafters.io/u/OnTheEasiestWay)\
**Replies:** 2\
**Last updated:** [July 19, 2026, 11:44pm UTC](https://forum.codecrafters.io/t/readme-old-md-disappeared-after-first-execution-of-ls-command-when-implementing-the-bash-tool-oq5/16208 "2026-07-19T23:44:05Z")

</div>

I’m stuck on Stage #OQ5 for the claude-code challenge. I’ve tried to use env::current\_dir() to get the working directory. And I found the files when using ls command, but when I tried to delete the README\_old.md, the f…

---

## [I am getting Internal Server Error on Claude Code Challenge](https://forum.codecrafters.io/t/i-am-getting-internal-server-error-on-claude-code-challenge/16201)

<div class="topic-metadata">

**Author:** [@ArrivedAditya](https://forum.codecrafters.io/u/ArrivedAditya)\
**Replies:** 4\
**Last updated:** [July 12, 2026, 3:36pm UTC](https://forum.codecrafters.io/t/i-am-getting-internal-server-error-on-claude-code-challenge/16201 "2026-07-12T15:36:42Z")

</div>

Logs: ❯ codecrafters submit Submitting changes (commit: bf5c5ed)... ⚡ This is a turbo test run. https://codecrafters.io/turbo Running tests on your code. Logs should appear shortly... \[compile\] Moved ./.codecrafters/…

---

## [ClaudeCode - Stage: Advertise the read tool: Runs locally, fails over server (API\_KEY error)](https://forum.codecrafters.io/t/claudecode-stage-advertise-the-read-tool-runs-locally-fails-over-server-api-key-error/16189)

<div class="topic-metadata">

**Author:** [@ronaldcumbal](https://forum.codecrafters.io/u/ronaldcumbal)\
**Replies:** 1\
**Last updated:** [June 30, 2026, 5:45pm UTC](https://forum.codecrafters.io/t/claudecode-stage-advertise-the-read-tool-runs-locally-fails-over-server-api-key-error/16189 "2026-06-30T17:45:11Z")

</div>

Hi, I can run this stage correctly in my local computer, but it fails the tests over the server. This is the error: \[your\_program\] Traceback (most recent call last): \[your\_program\] File “”, line 203, in \_run\_module\_…

---

## [I believe that i am hitting rate limits](https://forum.codecrafters.io/t/i-believe-that-i-am-hitting-rate-limits/16158)

<div class="topic-metadata">

**Author:** [@arjav0703](https://forum.codecrafters.io/u/arjav0703)\
**Replies:** 3\
**Last updated:** [June 4, 2026, 5:52pm UTC](https://forum.codecrafters.io/t/i-believe-that-i-am-hitting-rate-limits/16158 "2026-06-04T17:52:49Z")

</div>

I’m stuck on Stage #FF2 I’ve tried getting my own openrouter api keys and testing with it (it works fine that way) Here are my logs: \[your\_program\] entering loop with messages: \[ \[your\_program\] { \[your\_program\] …

---

## [./your\_program.sh: cannot execute: required file not found](https://forum.codecrafters.io/t/your-program-sh-cannot-execute-required-file-not-found/16059)

<div class="topic-metadata">

**Author:** [@gabrielbudke](https://forum.codecrafters.io/u/gabrielbudke)\
**Replies:** 6\
**Last updated:** [April 30, 2026, 3:18am UTC](https://forum.codecrafters.io/t/your-program-sh-cannot-execute-required-file-not-found/16059 "2026-04-30T03:18:24Z")

</div>

I’m stuck on improving my solution. I’ve tried to run it locally following the README.md file and some other answers in this forum, but i cannot run without problem. Here are my logs: ➜ ./your\_program.sh bash: ./your…

---

## [Prompt leads to deceptive answers](https://forum.codecrafters.io/t/prompt-leads-to-deceptive-answers/15974)

<div class="topic-metadata">

**Author:** [@areebkhan91](https://forum.codecrafters.io/u/areebkhan91)\
**Replies:** 2\
**Last updated:** [April 13, 2026, 10:09pm UTC](https://forum.codecrafters.io/t/prompt-leads-to-deceptive-answers/15974 "2026-04-13T22:09:06Z")

</div>

Last stage: “Implement the bash tool” The example prompt when run locally responds with “Deleted Readme\_old.md” even if the file does not exist. This is because prompt asks it to always respond with that: ./your\_progr…

---

## [Code cannot resolve "#include \<cpr/cpr.h\>" or "#include \<nlohmann/json.hpp\>"](https://forum.codecrafters.io/t/code-cannot-resolve-include-cpr-cpr-h-or-include-nlohmann-json-hpp/15991)

<div class="topic-metadata">

**Author:** [@PabloOliveiraVeizaga](https://forum.codecrafters.io/u/PabloOliveiraVeizaga)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 9:12pm UTC](https://forum.codecrafters.io/t/code-cannot-resolve-include-cpr-cpr-h-or-include-nlohmann-json-hpp/15991 "2026-04-13T21:12:29Z")

</div>

\#include \<cpr/cpr.h\> #include \<nlohmann/json.hpp\> using json = nlohmann::json; int main(int argc, char \*argv\[\]) { if (argc \< 3 || std::string(argv\[1\]) != “-p”) { std::cerr \<\< “Expected first argument to be ‘-p’” \<\< …

---

## [Opinion: Claude Code challenge should be prioritized](https://forum.codecrafters.io/t/opinion-claude-code-challenge-should-be-prioritized/15887)

<div class="topic-metadata">

**Author:** [@sayedMbo](https://forum.codecrafters.io/u/sayedMbo)\
**Replies:** 4\
**Last updated:** [March 18, 2026, 2:22pm UTC](https://forum.codecrafters.io/t/opinion-claude-code-challenge-should-be-prioritized/15887 "2026-03-18T14:22:34Z")

</div>

I was wondering whether you guys prioritize certain challenges. I know that voting from members helps, but in today’s rapidly changing landscape, I think challenges involving agents like Claude Code should be prioritized…

---

## [Build your own Claude Code | Build Failure on NIXOS](https://forum.codecrafters.io/t/build-your-own-claude-code-build-failure-on-nixos/15990)

<div class="topic-metadata">

**Author:** [@devnchill](https://forum.codecrafters.io/u/devnchill)\
**Replies:** 2\
**Last updated:** [March 17, 2026, 4:54pm UTC](https://forum.codecrafters.io/t/build-your-own-claude-code-build-failure-on-nixos/15990 "2026-03-17T16:54:29Z")

</div>

I’m stuck on Stage #YY2 . I am on nixos . I am using devshell to install python and uv . then point uv to use this python. I installed codecrafters-cli from nixpkg. Issue is when i am trying to run codecrafters submit …

---

## [Feedback about the course](https://forum.codecrafters.io/t/feedback-about-the-course/15913)

<div class="topic-metadata">

**Author:** [@DerTee](https://forum.codecrafters.io/u/DerTee)\
**Replies:** 7\
**Last updated:** [March 14, 2026, 5:50pm UTC](https://forum.codecrafters.io/t/feedback-about-the-course/15913 "2026-03-14T17:50:06Z")

</div>

I feel a bit conflicted about this course. I spent most of my time looking a Python docs (because I rarely use it) and API docs. Yes, I understood a little bit more about how those agents work and how the local executi…

---

## [Am I hitting the rate limit in the last phase?](https://forum.codecrafters.io/t/am-i-hitting-the-rate-limit-in-the-last-phase/15928)

<div class="topic-metadata">

**Author:** [@NGWi](https://forum.codecrafters.io/u/NGWi)\
**Replies:** 2\
**Last updated:** [March 9, 2026, 8:45am UTC](https://forum.codecrafters.io/t/am-i-hitting-the-rate-limit-in-the-last-phase/15928 "2026-03-09T08:45:37Z")

</div>

On the last stage, for the second test (#OZ7 (Implement the write tool)) on the third API call I keep getting: Error code: 500 - {'error': {'message': 'Internal Server Error', 'code': 500}}!) I would guess that this is…

---

## [Bash failing, no subprocess.run() error](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918)

<div class="topic-metadata">

**Author:** [@ChristoBeers](https://forum.codecrafters.io/u/ChristoBeers)\
**Replies:** 4\
**Last updated:** [February 25, 2026, 1:13pm UTC](https://forum.codecrafters.io/t/bash-failing-no-subprocess-run-error/15918 "2026-02-25T13:13:36Z")

</div>

I’m having trouble getting Bash to work in the claude code challenge step #0Q5, on python. First I tried the command suggested in the instructions: result = subprocess.run(command, capture\_output=True, text=True) but …

---

## [\#FF2 - Implement the agent loop - Imprecise instructions](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889)

<div class="topic-metadata">

**Author:** [@matthew-russo](https://forum.codecrafters.io/u/matthew-russo)\
**Replies:** 3\
**Last updated:** [February 24, 2026, 12:07pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889 "2026-02-24T12:07:18Z")

</div>

(posting this in general because it seems that the forum doesn’t currently recognize the challenge:claude-code tag. will report that separately) The instructions for #FF2 are imprecise. The previous stage “Execute the …

---

## [\#0Q5 Implement the Bash Tool - Bash commands fail to execute in testing environment](https://forum.codecrafters.io/t/0q5-implement-the-bash-tool-bash-commands-fail-to-execute-in-testing-environment/15915)

<div class="topic-metadata">

**Author:** [@frockett](https://forum.codecrafters.io/u/frockett)\
**Replies:** 4\
**Last updated:** [February 18, 2026, 7:25am UTC](https://forum.codecrafters.io/t/0q5-implement-the-bash-tool-bash-commands-fail-to-execute-in-testing-environment/15915 "2026-02-18T07:25:57Z")

</div>

I’ve implemented the Bash tool and it successfully runs locally, but when I run codecrafters test the agent always fails to delete the file required by the test. Here are logs, including debug logs of my own to verify th…

---

## [Forum doesn’t allow post in Challenges category with tag challenge:claude-code](https://forum.codecrafters.io/t/forum-doesn-t-allow-post-in-challenges-category-with-tag-challenge-claude-code/15890)

<div class="topic-metadata">

**Author:** [@matthew-russo](https://forum.codecrafters.io/u/matthew-russo)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 5:03am UTC](https://forum.codecrafters.io/t/forum-doesn-t-allow-post-in-challenges-category-with-tag-challenge-claude-code/15890 "2026-02-11T05:03:31Z")

</div>

Forum doesn’t allow post in Challenges category with tag challenge:claude-code An error occurred: You must include at least 1 Challenge tag. The tags in this group are: challenge:redis, challenge:docker, challenge:git, …

---

## [Error code 134 in Typescript](https://forum.codecrafters.io/t/error-code-134-in-typescript/15877)

<div class="topic-metadata">

**Author:** [@GaryKu0](https://forum.codecrafters.io/u/GaryKu0)\
**Replies:** 1\
**Last updated:** [February 5, 2026, 5:33pm UTC](https://forum.codecrafters.io/t/error-code-134-in-typescript/15877 "2026-02-05T17:33:55Z")

</div>

any idea how to pass the Communicate with the LLM #yy2 ? :sob: it’s always 134 error for me. (ts) but local working perfectly….. i even try brute forcing but it just 143 too…

---

## [Claude Code API Token](https://forum.codecrafters.io/t/claude-code-api-token/15870)

<div class="topic-metadata">

**Author:** [@tomasdepi](https://forum.codecrafters.io/u/tomasdepi)\
**Replies:** 4\
**Last updated:** [February 5, 2026, 2:43am UTC](https://forum.codecrafters.io/t/claude-code-api-token/15870 "2026-02-05T02:43:07Z")

</div>

Hello everyone! I’ve been trying out the new Claude-code challenge, which I was exited for, I tried to run the code locally but seems that the Openrouter service is paid and unfortunately can’t afford it right now. Is t…

---

## [New challenge: Build your own Claude Code](https://forum.codecrafters.io/t/new-challenge-build-your-own-claude-code/15865)

<div class="topic-metadata">

**Author:** [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Replies:** 0\
**Last updated:** [February 4, 2026, 6:54am UTC](https://forum.codecrafters.io/t/new-challenge-build-your-own-claude-code/15865 "2026-02-04T06:54:23Z")

</div>

Hey everyone! We’ve just released Build your own Claude Code, now live in beta. Learn about LLM APIs, tool use, how agent loops work and more. Currently available in Rust/Python/Go/TS/JS. We’ll be expanding language…
