Repository navigation
Agents: add Claude Code parameter aliasing for read/write/edit tools - #768
Merged
Merged
Conversation
Contributor
|
good call! |
Contributor
|
Contributor
|
taking over |
steipete
force-pushed
the
fix/tool-param-aliasing
branch
from
January 12, 2026 08:54
4249798 to
6711eaf
Compare
Contributor
victorarias
pushed a commit
to victorarias/clawdbot
that referenced
this pull request
Jan 13, 2026
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
Agents: add Claude Code parameter aliasing for read/write/edit tools
5 tasks
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
Agents: add Claude Code parameter aliasing for read/write/edit tools
zeekay
pushed a commit
to Dream-AI-4444/bot
that referenced
this pull request
Sep 11, 2026
zeekay
pushed a commit
to Dream-AI-4444/clawdbot
that referenced
this pull request
Sep 11, 2026
Agents: add Claude Code parameter aliasing for read/write/edit tools
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
Agents: add Claude Code parameter aliasing for read/write/edit tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Models trained on Claude Code conventions (like Claude Sonnet/Opus) sometimes use different parameter names than pi-coding-agent expects:
file_pathpathold_stringoldTextnew_stringnewTextWhen this happens, the model gets stuck in a loop trying variations of incorrect parameters until the agent times out (default 10 minutes). The model often self-reports this with messages like "抱歉,我在工具參數上卡住了" (Sorry, I got stuck on tool parameters).
This PR adds parameter aliasing to automatically translate Claude Code conventions to pi-coding-agent conventions for the
read,write, andedittools.Changes
normalizeToolParams()function to translate parameter nameswrapToolParamNormalization()wrapper for toolsTest plan
file_pathinstead ofpath)