- BrainTools - https://www.braintools.ru -

dsh-tool-fix: лечим ошибки edit, write и pwsh в DeepSeek Harness

Всем привет! Это моя первая публикация на хабре. Прошу поддержать.

В общем я увлекаюсь локальными моделями, а железо у меня не сильно мощное.
Процессор: 13th Gen Intel® Core™ i5-13400F (2.50 GHz)
ОЗУ: DDR5 6400 Mhz 2*16ГБ
Видеокарта: NVIDIA GeForce RTX 4060 Ti Eagle 8 Гб

Начал тестировать модели локально. испробовал кучу harness’ов и cli, из того что помню Continue, Cline, OpenCode, OpenCode CLI, Open Interpreter, Cherry Studio ну и DeepSeek Harness.
Последний мне понравился больше всех. Хоть и есть парочку недочетов.

В общем стал я тестировать с моделями и довольно часто начали выскакивать ошибки [1]:
edit Error: old_string was not found in ".PLAN.md"
edit Error: invalid escalation: justification is only valid together with sandbox_permissions
edit Error: cannot edit ".core_logic.py": file changed since it was read — re-read the file, then retry
edit Error: invalid arguments: old_string and new_string must differ
edit Error: cannot modify ".test.txt": file has not been read — read the file, then retry
write Error: cannot write ".shelf_ledgerdb.py": file no longer exists — re-read the file, then retry
pwsh Error: invalid arguments: missing required property "description"

В итоге я собрал при помощи того же DeepSeek Harness плагин для фикса этих ошибок. Их реально стало меньше.

Основная масса ошибок связана с тем что модели слабоваты, но иногда они проскакивают даже у DeepSeek v4 Flash.

Ссылка на плагин тут:
biomotor/dsh-tool-fix: Rewrites the edit, write and pwsh descriptions for local models, repairs drifted arguments (old_string line numbers, missing pwsh description, lone justification, Python output encoding) and shows the exact differing file lines. Execution, sandbox and approval are unchanged. [2]

Буду раз любым отзывам и советам! Спасибо!

Автор: biomotor

Источник [3]


Сайт-источник BrainTools: https://www.braintools.ru

Путь до страницы источника: https://www.braintools.ru/article/39447

URLs in this post:

[1] ошибки: http://www.braintools.ru/article/4192

[2] biomotor/dsh-tool-fix: Rewrites the edit, write and pwsh descriptions for local models, repairs drifted arguments (old_string line numbers, missing pwsh description, lone justification, Python output encoding) and shows the exact differing file lines. Execution, sandbox and approval are unchanged.: https://github.com/biomotor/dsh-tool-fix

[3] Источник: https://habr.com/ru/articles/1114444/?utm_source=habrahabr&utm_medium=rss&utm_campaign=1114444

www.BrainTools.ru

Rambler's Top100