LLM failed to generate agent: No object generated: could not parse the response. #1532

Closed
opened 2026-02-16 17:31:25 -05:00 by yindo · 4 comments
Owner

Originally created by @thatguyinabeanie on GitHub (Aug 29, 2025).

Originally assigned to: @rekram1-node on GitHub.

i was trying to create an agent using opencode agent create

Here is the entirety from start to finish

console ❯ opencode agent create

┌  Create agent
│
◇  Location
│  Global
│
◇  Description
│  this agent will interface with sumologic. it will leverage the sumocli for live-tailing and will also leverage the sumologic mcp at this github samwang0723/mcp-sumologic
│
■  LLM failed to generate agent: No object generated: could not parse the response.

console ❯  
Originally created by @thatguyinabeanie on GitHub (Aug 29, 2025). Originally assigned to: @rekram1-node on GitHub. i was trying to create an agent using `opencode agent create` Here is the entirety from start to finish ```bash console ❯ opencode agent create ┌ Create agent │ ◇ Location │ Global │ ◇ Description │ this agent will interface with sumologic. it will leverage the sumocli for live-tailing and will also leverage the sumologic mcp at this github samwang0723/mcp-sumologic │ ■ LLM failed to generate agent: No object generated: could not parse the response. console ❯ ```
yindo closed this issue 2026-02-16 17:31:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2040: Very similar error with AI_NoObjectGeneratedError and "response did not match schema" when using opencode agent create
  • #2188: JSON parsing failed issues with similar "could not parse the response" error
  • #1021: Parsing failures related to tool calls section end tokens causing "No object generated" errors

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 29, 2025): This issue might be a duplicate of existing issues. Please check: - #2040: Very similar error with AI_NoObjectGeneratedError and "response did not match schema" when using opencode agent create - #2188: JSON parsing failed issues with similar "could not parse the response" error - #1021: Parsing failures related to tool calls section end tokens causing "No object generated" errors Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

We need to do 2 things:

  • better default model if you don't select one
  • better error handling & retry reprompting

I will address both of these

@rekram1-node commented on GitHub (Aug 29, 2025): We need to do 2 things: - better default model if you don't select one - better error handling & retry reprompting I will address both of these
Author
Owner

@rekram1-node commented on GitHub (Sep 7, 2025):

better default model if you don't select one

this is now addressed

@rekram1-node commented on GitHub (Sep 7, 2025): > better default model if you don't select one this is now addressed
Author
Owner

@rekram1-node commented on GitHub (Sep 7, 2025):

Now that is uses your last used model to generate instead you should get better results

@rekram1-node commented on GitHub (Sep 7, 2025): Now that is uses your last used model to generate instead you should get better results
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1532