Problems using Tools in Agents.

Open
#1,182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
json, kotlin, ollama

Research direction

Start with TodoWriteTool.kt and TaskTool.kt, where the logged argument serializers reject the model-generated fields. Compare their declared tool schemas with the TodoWrite, Task, and assistant<|channel|>commentary calls in the issue, then reproduce the agent requests with Ollama. Done means valid model arguments deserialize into the expected argument classes and execute without missing-field or unknown-tool errors.

Written by the indexing model from the issue text.

Description

bug
What happened?

In the current version of IntelliJ:
IntelliJ IDEA 2025.3.2
Build #IU-253.30387.90, built on January 22, 2026

Some problems exists while using the ProxyAI plugin.
It appears that any of the tools are working properly as the logs that I pasted shows.
I currently use ProxyAI with a local installation of Ollama with gpt-oss:20b model.

Relevant log output or stack trace
TodoWrite Tool:

2026-02-13 12:37:58,677 [  87442]   INFO - #c.i.c.ComponentStoreImpl - Saving appFileTypeManager took 14 ms
2026-02-13 12:38:11,499 [ 100264]   INFO - STDERR - [DefaultDispatcher-worker-61] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: TodoWrite, args: {"action":"add","items":["Document goals, conventions, risky areas, review rules"]})
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - [DefaultDispatcher-worker-61] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'TodoWrite' failed to parse arguments: {"action":"add","items":["Document goals, conventions, risky areas, review rules"]}
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - kotlinx.serialization.MissingFieldException: Fields [title, todos] are required for type with serial name 'ee.carlrobert.codegpt.agent.tools.TodoWriteTool.Args', but they were missing
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args.<init>(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args$$serializer.deserialize(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TodoWriteTool$Args$$serializer.deserialize(TodoWriteTool.kt:53)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.tools.SerialToToolDescriptionKt$asToolDescriptorSerializer$1.deserialize(SerialToToolDescription.kt:208)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.tools.Tool.decodeArgs(Tool.kt:105)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.GenericAgentEnvironment.processToolCall(GenericAgentEnvironment.kt:84)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.GenericAgentEnvironment.executeTool(GenericAgentEnvironment.kt:27)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.ContextualAgentEnvironment.executeTool(ContextualAgentEnvironment.kt:81)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at ai.koog.agents.core.environment.AIAgentEnvironmentKt$executeTools$results$1$1$1.invokeSuspend(AIAgentEnvironment.kt:51)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:130)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
2026-02-13 12:38:11,502 [ 100267]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1188)
2026-02-13 12:38:11,503 [ 100268]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
2026-02-13 12:38:11,503 [ 100268]   INFO - STDERR - 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
2026-02-13 12:38:13,111 [ 101876]   INFO - #c.i.o.p.DumbServiceImpl - enter dumb mode [02_fontes]
2026-02-13 12:38:13,111 [ 101876]   INFO - #c.i.o.p.DumbServiceImpl - enter dumb mode [02_fontes]
2026-02-13 12:38:13,141 [ 101906]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Running task: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@3603a305 (reason: Push on VFS changes)
2026-02-13 12:38:13,145 [ 101910]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Running task: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@20b57732 (reason: Push on VFS changes)
2026-02-13 12:38:13,163 [ 101928]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@3603a305 (reason: Push on VFS changes)
2026-02-13 12:38:13,171 [ 101936]   INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl$MyDumbModeTask@20b57732 (reason: Push on VFS changes)
2026-02-13 12:38:13,263 [ 102028]   INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [02_fontes]
2026-02-13 12:38:13,311 [ 102076]   INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [02_fontes]
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] WARN ee.carlrobert.codegpt.agent.ProxyAIAgent - Ignoring undefined tool call: assistant<|channel|>commentary
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: assistant<|channel|>commentary, args: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]})
2026-02-13 12:38:24,741 [ 113506]   INFO - STDERR - [DefaultDispatcher-worker-5] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'assistant<|channel|>commentary' not found in the tool registry.
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - [DefaultDispatcher-worker-21] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Executing tool (name: TodoWrite, args: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]})
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - [DefaultDispatcher-worker-21] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: d599f9fd-8a18-46ed-849e-f0ce4567a892) Tool with name 'TodoWrite' failed to parse arguments: {"title":"Document ProxyAI Instructions","todos":["Describe overall goals of ProxyAI","Explain coding conventions and style guidelines","Identify risky areas in the codebase and how to mitigate them","Outline review rules and approval workflow"]}
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - kotlinx.serialization.json.internal.JsonDecodingException: Expected JsonObject, but had JsonLiteral as the serialized body of ee.carlrobert.codegpt.agent.tools.TodoWriteTool.TodoItem at element: $.0
2026-02-13 12:38:35,796 [ 124561]   INFO - STDERR - JSON input: "Describe overall goals of ProxyAI"


Task Tool:

2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - [DefaultDispatcher-worker-31] INFO ai.koog.agents.core.agent.GraphAIAgent - (agent id: e007ed90-1076-4f49-bf8b-433a7dd2dd94) Executing tool (name: Task, args: {"subagent_type":"Explore","query":"TODO"})
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - [DefaultDispatcher-worker-31] ERROR ai.koog.agents.core.agent.GraphAIAgent - (agent id: e007ed90-1076-4f49-bf8b-433a7dd2dd94) Tool with name 'Task' failed to parse arguments: {"subagent_type":"Explore","query":"TODO"}
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - kotlinx.serialization.MissingFieldException: Fields [description, prompt] are required for type with serial name 'ee.carlrobert.codegpt.agent.tools.TaskTool.Args', but they were missing
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args.<init>(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args$$serializer.deserialize(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ee.carlrobert.codegpt.agent.tools.TaskTool$Args$$serializer.deserialize(TaskTool.kt:45)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.decodeSerializableValue(TreeJsonDecoder.kt:351)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.internal.TreeJsonDecoderKt.readJson(TreeJsonDecoder.kt:25)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at kotlinx.serialization.json.Json.decodeFromJsonElement(Json.kt:170)
2026-02-13 12:53:10,383 [ 999148]   INFO - STDERR - 	at ai.koog.agents.core.tools.SerialToToolDescriptionKt$asToolDescriptorSerializer$1.deserialize(SerialToToolDescription.kt:208)
Steps to reproduce

In the Agent tab ask question to create a TodoList of actions, or execute any Tasks.

CodeGPT version

3.7.3-241.1

Operating System

Windows

Dominant language
Kotlin
Stars
1.9k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carlrobertoh/ProxyAI

All issues in carlrobertoh/ProxyAI

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.