Optional `description` param on `shell_command`, used as the tool call's label
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
Direzione di ricerca
Inizia nel namespace shell tools, dove è definito shell_command: trova la schema map che contiene la proprietà command e il vettore required, e la funzione di riepilogo eca.modules.tools.shell/shell-command-summary che costruisce l'header mostrato per una chiamata. Aggiungi una proprietà stringa description opzionale e lascia required come ["command"], poi fai in modo che il riepilogo la usi come header con il comando mantenuto nei dettagli, ricadendo sull'header attuale quando è assente. Fatto significa che una chiamata che porta description renderizza quell'etichetta e una senza di essa renderizza esattamente come prima; controlla i test esistenti degli shell tool per le asserzioni del riepilogo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Clojure
- Stelle
- 1k
- Fork
- 82
- Merge medio
- 1g 20h
- PR unite (30g)
- 22
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di editor-code-assistant/eca
-
Models doesn't work when fetchModels: false is usedForse di nuovo libera @zikajk l’ha presa 36 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
editor-code-assistant/eca#661 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
editor-code-assistant/eca#716 ·
I maintainer di solito rispondono entro 1 giorno
-
Add delete_file toolAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
editor-code-assistant/eca#708 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 55/100
editor-code-assistant/eca#706 ·
I maintainer di solito rispondono entro 1 giorno
-
read_file slurps and splits entire files before applying line limits, risking memory exhaustion and stale running callsForse già presa @prudhvirajkonda8-bot l’ha presa 11 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
editor-code-assistant/eca#695 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di editor-code-assistant/eca
Issue simili
-
unshaved-yak
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
.Needs Triage .Team/UXWest Misc/Accessibility Priority:P3 Type:New Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
metabase/metabase#88153 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
nasa/Common-Metadata-Repository#2544 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100