# \#FF2 - Implement the agent loop - Imprecise instructions

**URL:** https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889
**Category:** Bug Reports
**Tags:** challenge:claude-code
**Created:** [February 8, 2026, 10:16pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889 "2026-02-08T22:16:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![matthew-russo](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/matthew-russo/32/13655_2.png) [@matthew-russo](https://forum.codecrafters.io/u/matthew-russo)
#### Post date: [February 8, 2026, 10:16pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889/1 "2026-02-08T22:16:54Z")

</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 read tool” asked you to print the contents of the file but now that we move to the agent loop, you are _not_ supposed to print the file and instead rely on the LLM responding with the printable contents. This isn’t explained.

Additionally, its not clearly explained that you aren’t supposed to print the message content if a tool execution is present. Side note: this is unintuitive to me and I’d pretty much always want to print this in some form so the user gets feedback on what actions the LLM will be taking but that’s somewhat unrelated. As an example, for the prompt `Find the chemical expiry period in months from README.md. Respond with only a number.`, once the `read` tool sends the contents of the README.md back to the LLM, i get back a response with both a message: `Let me check the chemical.py file:` as well as a tool execution to read the chemical.py file however the test runner will fail if you print this message.

It would be helpful if it was better specified what should be printed.

---

<div class="post-metadata">

### Author: ![gamebox](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/gamebox/32/22602_2.png) [@gamebox](https://forum.codecrafters.io/u/gamebox)
#### Post date: [February 15, 2026, 9:21pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889/3 "2026-02-15T21:21:04Z")

</div>

Thank you for saying this. I just wasted quite a bit of time on that, until I actually logged the messages and saw that the extraneous text it was mad about came from a message with tool calls.

---

<div class="post-metadata">

### Author: ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)
#### Post date: [February 15, 2026, 9:53pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889/4 "2026-02-15T21:53:58Z")

</div>

Yep we’re thinking about how to handle this! Whether to relax tester requirements or to amend instructions.

Our tests run against claude code and consistently pass, so we’re leaning towards the latter.

---

<div class="post-metadata">

### Author: ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)
#### Post date: [February 24, 2026, 12:07pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889/5 "2026-02-24T12:07:18Z")

</div>

We’ve updated the instructions in [this PR](https://github.com/codecrafters-io/build-your-own-claude-code/pull/73) to clarify the expected behavior.

Let us know if anything else could be clearer or improved. @matthew-russo @gamebox @bedoyama @hulyhulyhuly

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)
#### Post date: [March 3, 2026, 12:07pm UTC](https://forum.codecrafters.io/t/ff2-implement-the-agent-loop-imprecise-instructions/15889/7 "2026-03-03T12:07:54Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
