Optional `description` param on `shell_command`, used as the tool call's label
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Bắt đầu trong namespace shell tools, nơi shell_command được định nghĩa: tìm schema map chứa thuộc tính command và vector required, cùng hàm summary eca.modules.tools.shell/shell-command-summary dựng header được hiển thị cho một lời gọi. Thêm một thuộc tính chuỗi description tùy chọn và giữ required là ["command"], sau đó để summary dùng nó làm header với command được giữ trong details, quay về header hiện tại khi không có. Hoàn thành nghĩa là một lời gọi mang description render label đó và một lời gọi không có nó render đúng như trước; kiểm tra các test shell tool hiện có cho các assertion của summary.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Some models send a short label with each shell call, even when the schema has no field for it. They probably learned this in training, from harnesses whose shell tool has such a field. Since #632, ECA rejects these calls with INVALID_ARGS, so each one costs a failed call and a retry turn.
#633 found that 1,861 of 2,288 rejected unknown args were a description arg (GLM, Kimi, DeepSeek). With Tencent's Hy4-flash I see the same with summary:
{"command": "grep -aiE 'album|track|...' ~/.cache/app/logs/app.log | tail -n 100",
"summary": "Grep log for album and error lines"}
→ INVALID_ARGS: unknown params: `summary`. Supported params: `command` (required), ...
The labels are good, though. For long or piped commands, "Grep log for album and error lines" reads better than today's header $ grep -aiE 'album|tra....
Proposal
- Add an optional
descriptionparam toshell_command("A short description of what this command does (5-10 words), shown to the user as the label of this call."). - When present,
eca.modules.tools.shell/shell-command-summaryuses it as the header; the command stays in the details. When missing, nothing changes. requiredstays["command"].
Other harnesses mostly call this field description and keep it optional: Claude Code, Gemini CLI and Qwen Code (optional), Crush (required), VS Code Copilot (explanation, required). OpenCode had a required description and removed it (anomalyco/opencode#32823); an optional field avoids that cost.
Quick test
Hy4-flash, ECA 0.173.2's shell_command schema and prompt, 20 tasks × 5 samples = 100 calls per schema, temperature 0.7. The second run only added the description property to the schema:
"properties": {
"command": { ... },
...
"description": { "type": "string",
"description": "Optional. A short description of what this command does (5-10 words), shown to the user as the label of this call." }
},
"required": ["command"]
| Schema | description sent |
summary sent |
|---|---|---|
| today | 3 / 100 (rejected) | 0 / 100 |
+ optional description |
99 / 100 | 0 / 100 |
Given the field, the model filled it in 99 of 100 calls ("Check Docker status and list containers", "Run Maven test suite", "Show sorted sizes of /var/log subdirectories") and never invented another name. The one call without it was npm run dev with background: "dev-server". This is a short system prompt with one tool, not a full ECA session.
Cons
More tokens, measured with Hy4's tokenizer on the calls above:
- The schema property adds ~41 tokens to every request. It never changes, so prompt caching covers it.
- Each label adds ~12 tokens to the call (median; 10–19 including the JSON key). The model generates them once, and they stay in the history after that. 50 shell calls add ~600 tokens.
- A rejected call costs more per occurrence: the 29-token
INVALID_ARGSresult, the repeated call (~26 tokens of args) and one extra round trip. But with Hy4 only 3 of 100 calls were rejected, so for this model the tokens do not pay for themselves. The main gain is the readable label.
- Ngôn ngữ chính
- Clojure
- Star
- 1k
- Fork
- 82
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của editor-code-assistant/eca
-
Models doesn't work when fetchModels: false is usedCó thể làm lại được @zikajk đã nhận 36 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
editor-code-assistant/eca#661 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
editor-code-assistant/eca#716 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add delete_file toolĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
editor-code-assistant/eca#708 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
editor-code-assistant/eca#706 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
read_file slurps and splits entire files before applying line limits, risking memory exhaustion and stale running callsCó thể đã có người làm @prudhvirajkonda8-bot đã nhận 11 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
editor-code-assistant/eca#695 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của editor-code-assistant/eca
Issue tương tự
-
unshaved-yak
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
.Needs Triage .Team/UXWest Misc/Accessibility Priority:P3 Type:New Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
metabase/metabase#88153 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nasa/Common-Metadata-Repository#2544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100