dsh-educoder
头歌(EduCoder)作业自动化 DSH 插件:全量扫描未完成作业并一次做完。选择题靠平台在提交响应里回吐的答案键零 token 通过,只有代码题才调用模型生成→上传→评测→按报错重试。 适合需要自动化完成EduCoder平台作业的学生或开发者。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:isheng-eqi/dsh-educoder配置
写在 bundle 的 cordis.patch.yml 里,也可以在插件设置界面改:
| 键 | 默认 | 说明 |
|---|---|---|
login / password | 空 | 头歌账号。首次登录后只复用会话 cookie,密码不会出现在对话里。 |
sessionFile | ~/.educoder/session.json | 会话缓存路径,与 educoder-lab CLI 共享:那边登录过,这边直接可用。 |
provider / model | 空 | 生成答案用的模型;留空用当前会话正在用的模型。 |
maxAttempts | 3 | 每道代码题最多重试几次。 |
maxTokens | 8000 | 单次生成上限。 |
gradeTimeoutSec | 180 | 单次评测最长等待。 |
pollIntervalSec | 3 | 轮询评测结果的间隔。 |
challengeLimit | 0 | 单份作业里 0 = 一次做完所有未通过关卡。 |
homeworkLimit | 0 | 单次全量扫描最多处理几份作业;0 = 不限。 |
toolTimeoutMinutes | 45 | 工具整体超时。 |