Run lexvm generate against the Anthropic API and document duration and cost
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github-actions, typescript
- Domain
- devtools, documentation, testing
Research direction
Start with packages/cli/src/generate/llm.ts, pipeline.ts, and fenced.ts, then read docs/authoring/pipeline.md and ADR 0007. Run the three specified generations against the Anthropic API and record duration, run.json token totals, repair rounds, cost, and outcomes. Add regression tests from recorded responses and handle output-limit stops automatically; done when a run passes every gate, measured results are documented, and the smoke workflow decision is recorded.
Written by the indexing model from the issue text.
Description
Context
lexvm generate is tested only with a mocked client. "Time and cost" in docs/authoring/pipeline.md is qualitative. Long games may hit --max-tokens: a cut-off answer is only logged as a warning, and its unclosed last file block is dropped, which leaves the stage incomplete. Chat answers in the one-shot flow can be cut off the same way. The v0.3 generation workflow depends on a pipeline that has been run for real.
Scope
- Three runs with a current model: German 15 minutes, English 30 minutes, German 45 minutes. Record duration, token usage (from run.json totals), repair rounds, cost at list prices and the outcome. Name the model only in the pull request, following the provenance policy.
- Fix the defects found; add regression tests based on recorded responses (no secrets).
- Handle
max_tokensstops without manual work: request a continuation, or split large stages (for example the logic stage per file). - One-shot flow: tell users in the prompt and on the Create screen what to do when an answer is cut off.
- Replace the qualitative cost text in docs/authoring/pipeline.md with a table of measured runs.
- Decide on an optional manually triggered smoke workflow with an API key secret (a five-minute pack at low effort).
- Generated packs go through normal review; they are not merged automatically.
Acceptance criteria
- At least one run passes every gate; its pack, design/ and run.json are attached to a pull request.
- docs/authoring/pipeline.md has a table of measured duration and cost.
- An answer cut off at the output limit is completed automatically (test with a recorded response).
- The smoke workflow is added or rejected with a reason recorded here.
References
- packages/cli/src/generate/llm.ts
- packages/cli/src/generate/pipeline.ts
- packages/cli/src/generate/fenced.ts
- docs/authoring/pipeline.md (Time and cost, Troubleshooting)
- docs/adr/0007-llm-pipeline-byo-prompt-kit-and-api-generator.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