Choose the model and effort per stage in lexvm generate
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Start with packages/cli/src/generate/index.ts, llm.ts, and pipeline.ts to trace how model and effort options reach each stage; then read docs/authoring/pipeline.md. Add per-stage option and environment variable handling with global fallbacks, and check the fake LLM tests for stage selection and prompt caching. Done means the acceptance criteria pass and the docs describe recommended hybrid settings without hardcoded model IDs.
由索引模型根据 Issue 内容生成。
描述
Context
The generation stages differ in what they demand. Concept and puzzle dependency chart need the strongest design judgment but few tokens; world, logic and repair stages produce most of the tokens and are checked by the verifier. Today lexvm generate uses one model for every stage. A hybrid (largest model for design, smallest capable model at high effort for writing and repair) should cut cost by an order of magnitude at similar quality, but needs per-stage configuration.
Scope
- Options
--model-design,--model-write,--model-repair(and matching--effort-*), falling back to--model/LEXVM_MODELand--effort; equivalent environment variables. - No model ids hardcoded in the repository (existing rule); docs describe tiers, not ids.
design/run.jsonrecords per stage which option slot was used and token usage, without model ids (existing provenance rule).- Docs: recommended configurations by pack length, and the note that small models default to a lower effort and should run at
highfor writing and repair.
Acceptance criteria
- Each stage uses the model and effort from its slot, verified with a fake LLM in tests.
- Missing slot options fall back to the global options; missing global model still exits 2 with guidance.
- Prompt caching still works within a stage group.
- docs/authoring/pipeline.md documents the slots and a recommended hybrid configuration.
References
- packages/cli/src/generate/index.ts
- packages/cli/src/generate/llm.ts
- packages/cli/src/generate/pipeline.ts
- docs/authoring/pipeline.md
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 28 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nullthrone/lexvm 的其他 Issue
-
area: web good first issue priority: low type: bug
难度 2/5 1-3 小时 新手友好度 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
难度 2/5 1-3 小时 新手友好度 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
难度 2/5 1-3 小时 新手友好度 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
难度 5/5 一周以上 新手友好度 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
难度 5/5 一周以上 新手友好度 38/100
nullthrone/lexvm#62 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
farion1231/cc-switch#8829 ·
维护者通常 1 天内回复
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutover未关闭doc-audit enhancement
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100