Choose the model and effort per stage in lexvm generate
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 28m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nullthrone/lexvm
-
area: web good first issue priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
Difficulty 5/5 Over a week Newbie friendliness 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
Difficulty 5/5 Over a week Newbie friendliness 38/100
nullthrone/lexvm#62 ·
All issues in nullthrone/lexvm
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
openclaw/openclaw#182077 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
aikido high security
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markPossibly taken @eric8810 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lyswhut/lx-music-desktop#3026 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
abhigyanpatwari/GitNexus#3704 ·
Maintainers usually reply within 1 day