saoudrizwan / claude-dev

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.
https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev
MIT License
4.37k stars 415 forks source link

Claude is having trouble #227

Open samuk10 opened 1 week ago

samuk10 commented 1 week ago

Almost all requests I get this error, appears to not receiving my input

Steps to reproduce:

create new folder, start vscode setup claude dev ask for: create a todo app using html, css, js.

API Request Complete

This output appears to be a JSON representation of an API documentation in Markdown format, describing various functions associated with a tool named "Claude".

The content suggests that Claude is designed for file and directory operations on Linux-based systems. It includes functions for listing files and directories, including code definition names, as well as searching for patterns within files using regular expressions.

Several specific functions mentioned include:

  1. _lsfiles: Lists files and directories at a specified path with an optional recursive search.
  2. _list_code_definitionnames: Retrieves the top-level source code class, function, or method construct names used in a defined directory.
  3. _searchfiles: Searches a given directory for pattern occurrences across file contents using Rust regex syntax rules.
  4. _readfile: Reads and returns raw text content from an existing file, including PDF and DOCX files' automatic extraction features.
  5. _write_tofile: Overwrites content into a desired location by either overwriting the specified file if it exists or creating one when not.

Functions also include interactive communication with the user through functions like:

  1. _ask_followupquestion: Allows the user to provide further clarification on an issue or question that arose during processing.
  2. _attemptcompletion: Used for finalizing tasks, displaying results in various formats (e.g., live web browsers), and providing real-time feedback from users regarding their satisfaction with outcomes.

By examining this output you could understand how Claude handles typical file related tasks such as searching, reading, writing files in a well-structured manner while maintaining interactive communication to improve its features.

API Request Complete

Based on the provided text, I will follow the suggested steps:

Since we have completed the user's task, we will use the attempt_completion tool.

  • Attempt completion by presenting the result to the user and giving them feedback (if needed). No further action is required from me in this step, based on the provided instructions.

API Request Complete

Based on the provided code snippet, the correct action to take is:

Proceed with the next step of the task.

The code has already identified that you have completed the user's task and does not need additional information from them. Therefore, there's no need to use the attempt_completion or ask_followup_question tools. You can simply move on with whatever comes next in the task at hand.

Claude is having trouble... This may indicate a failure in his thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "let's try breaking this large file down into smaller files").

System:

Linux Kubuntu 24.04 ollama3.1 Claude dev: v1.5.27

samuk10 commented 1 week ago

I asked what was my input and this was the answer:

API Request Complete

It seems like the user wants you to perform some data processing or text manipulation. They're having trouble proceeding because they need your assistance to write out their raw input.

To better assist, I'll create a container for that raw input. Please provide it within a formatted way, preferably in the following structure:

Text content
API Request Complete

The attempt_completion tool should be used once you've completed the task, and the ask_followup_question tool should be used if you require additional information from the user. Proceed with the next step of the task since neither condition is met.

API Request Complete

Based on the provided documentation, here's how you would proceed:

Since you've completed the task, use the attempt_completion tool.

However, please note that there seems to be some mistake in the explanation regarding using ask_followup_question or proceeding with the next step. The correct usage of these tools is not described in this snippet, and we cannot assume additional context which was cut off from the original text.

So, given the current information provided:

Use attempt_completion tool.

Claude is having trouble...
This may indicate a failure in his thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "let's try breaking this large file down into smaller files").
supersaiyan2019 commented 1 week ago

I encountered the same problem...

System: Windows 11 ollama3.1/mistral-nemo

Claude dev: v1.5.31 error

hyx-fries commented 1 week ago

I also encountered the same problem. After testing, this problem will occur when using claude-3-5-sonnet-20240620. But there is no problem with using gpt-4o-2024-08-06. System: Mac Sonoma 14.5 (23F79) claude-3-5-sonnet-20240620 Claude dev: v1.5.34

lustfeind commented 1 week ago

Same problem here. Mac Sonoma 14.6 Ollama, Mistral-Nemo

simcrq commented 3 days ago

Same problem here. Mac Sonoma 14.6.1 Claude 3.5 sonnet