lcode-cli 0.57.0__tar.gz → 0.59.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/CHANGELOG.md +40 -1
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/CONTRIBUTING.md +22 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/PKG-INFO +1 -1
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/bench.md +77 -11
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/public-benchmarks.md +28 -4
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/quickstart.md +1 -1
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/bench.py +41 -25
- lcode_cli-0.59.0/src/lcode/bench_budgets.py +454 -0
- lcode_cli-0.59.0/src/lcode/bench_dedupe.py +285 -0
- lcode_cli-0.59.0/src/lcode/bench_flaky.py +291 -0
- lcode_cli-0.59.0/src/lcode/bench_logsum.py +317 -0
- lcode_cli-0.59.0/src/lcode/bench_quotes.py +760 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/cli.py +18 -4
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/harbor_bench.py +85 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_bench.py +33 -1
- lcode_cli-0.59.0/tests/test_bench_work.py +453 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_harbor_bench.py +65 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.editorconfig +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/workflows/ci.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/workflows/docs.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.github/workflows/release.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.gitignore +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/AGENTS.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/LICENSE +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/README.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/SECURITY.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/action.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/agents.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/assets/long-clip-tulip.jpg +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/automation.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/changelog.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/commands.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/configuration.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/contributing.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/editors.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/git.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/hooks.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/how-it-works.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/index.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/installation.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/lsp.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/mcp.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/memory.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/models.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/modes.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/search.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/servers.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/traces.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/troubleshooting.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/docs/usage.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/examples/README.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/install.sh +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/mkdocs.yml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/overrides/main.html +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/pyproject.toml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/agent.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/api.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/assistant.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/catalog.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/checkpoints.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/checks.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/config.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/film.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/harbor.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/hardware.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/jobs.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/manual.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/media.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/media.toml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/media_catalog.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/media_cloud.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/memory.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/ollama.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/repl.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/replay.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/repoid.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/residency.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/screenshots.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/sessions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/subagents.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/traces.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/update.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/smooth-film.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan21-vace.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/conftest.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_action.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_api.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_assistant.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_catalog.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_checkpoints.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_checks.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_config.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_context.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_conversations.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_film.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_gpu_handover.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_jobs.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_long_clips.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_look.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_manual.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_media_catalog.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_media_cloud.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_memory.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_residency.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_review.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_sandbox.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_screenshots.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_stuck.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_traces.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_update.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_video.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_web.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/tests/test_xai.py +0 -0
- {lcode_cli-0.57.0 → lcode_cli-0.59.0}/uv.lock +0 -0
|
@@ -11,4 +11,5 @@
|
|
|
11
11
|
- [ ] `uv run pytest` and `uv run ruff check .` pass
|
|
12
12
|
- [ ] Tests cover the change
|
|
13
13
|
- [ ] Docs and `CHANGELOG.md` (*Unreleased*) are updated for user-facing changes
|
|
14
|
+
- [ ] Changes to prompts, tools or context handling: the dev slice before and after is under "How was it tested?" (`lcode bench --compare`)
|
|
14
15
|
- [ ] No secrets, tokens, personal paths or private data are included
|
|
@@ -6,6 +6,43 @@ All notable changes to lcode are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.59.0] - 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`lcode bench --compare BEFORE AFTER`** (#199) compares two `--harbor` results: the tasks whose
|
|
14
|
+
results changed, and whether pass@1 moved by more than the noise, which it estimates from how
|
|
15
|
+
much each task's attempts disagree (about 9 points on the dev slice). It exits with 1 after a
|
|
16
|
+
drop beyond the noise. Releases that change prompts, tools or context handling now go through it
|
|
17
|
+
on the dev slice: see *Releases* in the contributing guide.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **`lcode bench`'s `wide-feature` check** failed an attempt whose `budget list` printed a message
|
|
22
|
+
such as `No budgets set.` without budgets, or whose report listed the budgeted categories first.
|
|
23
|
+
The task asks for neither behavior, so both pass now. With qwen3.6-35b, this had failed two
|
|
24
|
+
attempts in three that were otherwise right.
|
|
25
|
+
|
|
26
|
+
## [0.58.0] - 2026-11-02
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- **Six longer tasks in `lcode bench`** (#199), closer to real work, after the eight quick ones:
|
|
31
|
+
a command-line tool built from a spec (`cli-tool`), a test that fails now and then (`flaky-test`),
|
|
32
|
+
a bug reported only by its symptom in a 47-file repository (`repo-bug`), a feature across modules
|
|
33
|
+
with older data files still working (`wide-feature`), a slow job made fast with the same output
|
|
34
|
+
(`fast-dedupe`), and a bug that shows only when the code runs (`runtime-bug`, until now only with
|
|
35
|
+
`--tasks`). Each check runs on data or tests the model never saw. With
|
|
36
|
+
qwen3.6-35b at 32K on a 12 GB laptop GPU, 14 of 18 attempts passed: none at `runtime-bug`, and 2
|
|
37
|
+
of 3 at `fast-dedupe`, where after lcode made room in the context the model lost track and
|
|
38
|
+
repeated itself until the loop breaker stopped it.
|
|
39
|
+
- `lcode bench --quick` runs only the eight quick tasks, once each, as `lcode bench` did before 0.57.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- In `lcode bench`, the longer tasks stop after 10 minutes and the quick ones after 5. `--timeout`
|
|
44
|
+
sets one limit for all.
|
|
45
|
+
|
|
9
46
|
## [0.57.0] - 2026-11-02
|
|
10
47
|
|
|
11
48
|
### Changed
|
|
@@ -1222,7 +1259,9 @@ First public release.
|
|
|
1222
1259
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
1223
1260
|
- One-line installer for Linux and macOS.
|
|
1224
1261
|
|
|
1225
|
-
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.
|
|
1262
|
+
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.59.0...HEAD
|
|
1263
|
+
[0.59.0]: https://github.com/nasser1941/lcode/compare/v0.58.0...v0.59.0
|
|
1264
|
+
[0.58.0]: https://github.com/nasser1941/lcode/compare/v0.57.0...v0.58.0
|
|
1226
1265
|
[0.57.0]: https://github.com/nasser1941/lcode/compare/v0.56.0...v0.57.0
|
|
1227
1266
|
[0.56.0]: https://github.com/nasser1941/lcode/compare/v0.55.0...v0.56.0
|
|
1228
1267
|
[0.55.0]: https://github.com/nasser1941/lcode/compare/v0.54.0...v0.55.0
|
|
@@ -95,6 +95,28 @@ Commit messages: short imperative summary (`Add laguna-xs-2.1 to the catalog`),
|
|
|
95
95
|
if needed. [Conventional Commits](https://www.conventionalcommits.org/) prefixes are welcome but not
|
|
96
96
|
required.
|
|
97
97
|
|
|
98
|
+
## Releases
|
|
99
|
+
|
|
100
|
+
Maintainers release from `main`:
|
|
101
|
+
|
|
102
|
+
1. **If anything since the last release changes prompts, tools or context handling**, run the dev
|
|
103
|
+
slice of the [public benchmarks](https://nasser1941.github.io/lcode/public-benchmarks/) with it
|
|
104
|
+
and compare with the last baseline, with the same model and context:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
lcode bench --harbor dev qwen3.6-35b --context 32k
|
|
108
|
+
lcode bench --compare BASELINE NEW
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Release only if pass@1 didn't drop beyond the noise (`--compare` exits with 0), and put its
|
|
112
|
+
output on the release pull request. Otherwise the pull request says there's no such change.
|
|
113
|
+
2. A release pull request bumps `__version__` in `src/lcode/__init__.py` and the banner in
|
|
114
|
+
`docs/quickstart.md`, and dates the *Unreleased* section of `CHANGELOG.md`.
|
|
115
|
+
3. Once it's merged, publish a GitHub release for the merge commit: `gh release create vX.Y.Z
|
|
116
|
+
--target <commit>`. That uploads the package to PyPI.
|
|
117
|
+
4. The [Homebrew tap](https://github.com/nasser1941/homebrew-tap) picks up the release within a
|
|
118
|
+
day.
|
|
119
|
+
|
|
98
120
|
## Code of conduct
|
|
99
121
|
|
|
100
122
|
This project follows the [Contributor Covenant](https://github.com/nasser1941/lcode/blob/main/CODE_OF_CONDUCT.md). By participating you agree to
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.59.0
|
|
4
4
|
Summary: A local-first terminal coding agent powered by open-weight models on your own GPU or Mac, via Ollama.
|
|
5
5
|
Project-URL: Homepage, https://nasser1941.github.io/lcode/
|
|
6
6
|
Project-URL: Documentation, https://nasser1941.github.io/lcode/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Benchmarking models
|
|
2
2
|
|
|
3
3
|
`lcode bench` answers the most common question about local models: *which one works best for
|
|
4
|
-
coding on my machine?* It runs a fixed set of
|
|
5
|
-
|
|
4
|
+
coding on my machine?* It runs a fixed set of coding tasks against one or more models, three times
|
|
5
|
+
each, and reports how many they solved, how fast they ran and how much memory they used.
|
|
6
6
|
|
|
7
7
|
To compare with other agents on public benchmarks (Terminal-Bench 2.0 and SWE-bench Verified),
|
|
8
8
|
see [Public benchmarks](public-benchmarks.md).
|
|
@@ -11,6 +11,7 @@ see [Public benchmarks](public-benchmarks.md).
|
|
|
11
11
|
lcode bench # the configured model
|
|
12
12
|
lcode bench qwen3.6-35b qwen3.5-9b # compare models
|
|
13
13
|
lcode bench --tasks fix-bug,rename # run some of the tasks
|
|
14
|
+
lcode bench --quick # only the eight quick tasks, once each
|
|
14
15
|
lcode bench --attempts 1 # each task once: quicker, but within the noise
|
|
15
16
|
lcode bench --json results.json # also save machine-readable results
|
|
16
17
|
lcode bench --markdown # also print a table to paste into a test report
|
|
@@ -40,7 +41,8 @@ lcode-qwen3.6-35b · 32K context · reasoning on · 8 tasks · 3 attempts each
|
|
|
40
41
|
|
|
41
42
|
At the end it prints a table comparing the models (see [results](#results-on-a-12-gb-laptop) below).
|
|
42
43
|
|
|
43
|
-
A model usually takes 4 to 12 minutes per attempt; each
|
|
44
|
+
A model usually takes 4 to 12 minutes per attempt at the quick tasks; each stops after 5 minutes,
|
|
45
|
+
and the [longer tasks](#longer-tasks) after 10 (`--timeout` sets one limit for all).
|
|
44
46
|
|
|
45
47
|
### Three attempts at each task
|
|
46
48
|
|
|
@@ -62,12 +64,10 @@ summary, a task's time is that of one attempt, on average, and *Time* is the tot
|
|
|
62
64
|
### More tasks and features
|
|
63
65
|
|
|
64
66
|
`--tasks find-concept` adds a task in a larger repository: 40 files of a small backend where the
|
|
65
|
-
model has to find a function by what it does.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
`--code-search` indexes each task's folder for [semantic search](search.md#semantic-code-search);
|
|
70
|
-
both are off in `lcode bench` by default, for the same reason.
|
|
67
|
+
model has to find a function by what it does. It's there to measure `--repo-map`, which gives the
|
|
68
|
+
model the [repository map](search.md), and `--code-search`, which indexes each task's folder for
|
|
69
|
+
[semantic search](search.md#semantic-code-search). Both are off in `lcode bench` by default, so
|
|
70
|
+
results compare across machines and versions.
|
|
71
71
|
|
|
72
72
|
### A second try, and a stronger model
|
|
73
73
|
|
|
@@ -132,6 +132,8 @@ Every task runs in a new temporary folder, with every permission granted (`yolo`
|
|
|
132
132
|
access off, and ends with an automatic check. The folders are deleted afterwards unless you pass
|
|
133
133
|
`--keep`, which also keeps each task's transcript (`lcode-bench.log`).
|
|
134
134
|
|
|
135
|
+
### Quick tasks
|
|
136
|
+
|
|
135
137
|
| Task | The model has to | Passes when |
|
|
136
138
|
|---|---|---|
|
|
137
139
|
| `fix-bug` | Find and fix a bug so the failing unit tests pass | The tests pass and the test file is unchanged |
|
|
@@ -148,6 +150,29 @@ reading and are where smaller models tend to slip. The checks are deterministic
|
|
|
148
150
|
by hard-coding: for example, `write-script` reruns the script on new data, and `rename`, `spec-fix`
|
|
149
151
|
and `feature` are checked with tests the model never saw.
|
|
150
152
|
|
|
153
|
+
### Longer tasks
|
|
154
|
+
|
|
155
|
+
Good models now get every quick task right: qwen3.6-35b passed all 24 attempts. Four longer tasks,
|
|
156
|
+
closer to real work, tell good models from great ones:
|
|
157
|
+
|
|
158
|
+
| Task | The model has to | Passes when |
|
|
159
|
+
|---|---|---|
|
|
160
|
+
| `cli-tool` | Write `logsum.py`, which summarizes web server logs, from a spec: options, text and JSON output, standard input, malformed lines, unreadable files and exit codes | 14 runs on logs it never saw give the same output and exit status as a reference implementation |
|
|
161
|
+
| `flaky-test` | Find why a test fails in about half the runs, with the same code, and fix it without changing the tests | The original tests pass under 24 hash seeds, and so does a hidden test of the order the code promises |
|
|
162
|
+
| `repo-bug` | Fix a bug reported only by its symptom (a second quote gets the first one's shipping cost) in a 47-file repository, keeping its lookups cached | Hidden tests of the report, of the same cause elsewhere and of the cache pass, and so do the repository's own tests |
|
|
163
|
+
| `wide-feature` | Add monthly budgets to an expense tracker: a new command, the report in text and JSON, and the data file, with older data files still working | Its tests pass, and a scripted session from an older data file gives the expected output |
|
|
164
|
+
| `fast-dedupe` | Make a job that merges duplicate customer records fast, from hours to seconds for 200,000 records, without changing its output | On 60,000 records it never saw, it finishes within a minute and its output is the old job's, byte for byte |
|
|
165
|
+
| `runtime-bug` | Fix a camera wall whose window grows taller with every video frame and can't be made smaller again. Reading the code suggests band-aids; running it shows the cause | A hidden test: the window keeps its size, can be made smaller, and the video fits its cell |
|
|
166
|
+
|
|
167
|
+
They're where qwen3.6-35b misses: see the [results](#results-on-a-12-gb-laptop). In an earlier run
|
|
168
|
+
of the six it lost one `fast-dedupe` attempt to lcode itself: after lcode made room in the context,
|
|
169
|
+
the model lost track and repeated itself until the loop breaker stopped it.
|
|
170
|
+
|
|
171
|
+
Each rewards what a careful developer does: reading the whole spec, running a flaky test more than
|
|
172
|
+
once, fixing the cause rather than the symptom, trying old data, and comparing the new output with
|
|
173
|
+
the old. The longer tasks stop after 10 minutes instead of 5. `--quick` leaves them out and runs the
|
|
174
|
+
quick tasks once, as `lcode bench` did before 0.57.
|
|
175
|
+
|
|
151
176
|
## What's measured
|
|
152
177
|
|
|
153
178
|
| | |
|
|
@@ -166,8 +191,49 @@ to measure a model without reasoning.
|
|
|
166
191
|
|
|
167
192
|
## Results on a 12 GB laptop
|
|
168
193
|
|
|
169
|
-
RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM, Ollama 0.
|
|
170
|
-
|
|
194
|
+
RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM, Ollama 0.40.13, 32K context, reasoning on, lcode
|
|
195
|
+
0.58.0, three attempts at each task:
|
|
196
|
+
|
|
197
|
+
| | `qwen3.6-35b` |
|
|
198
|
+
|---|---|
|
|
199
|
+
| fix-bug | ✓✓✓ 25s |
|
|
200
|
+
| find-code | ✓✓✓ 14s |
|
|
201
|
+
| write-script | ✓✓✓ 15s |
|
|
202
|
+
| rename | ✓✓✓ 25s |
|
|
203
|
+
| precise-edit | ✓✓✓ 13s |
|
|
204
|
+
| recover | ✓✓✓ 23s |
|
|
205
|
+
| spec-fix | ✗✓✓ 1m 16s |
|
|
206
|
+
| feature | ✓✓✓ 1m 40s |
|
|
207
|
+
| cli-tool | ✓✓✗ 1m 23s |
|
|
208
|
+
| flaky-test | ✓✓✓ 39s |
|
|
209
|
+
| repo-bug | ✓✓✗ 2m 53s |
|
|
210
|
+
| wide-feature | ✓✓✓ 4m 17s |
|
|
211
|
+
| fast-dedupe | ✓✓✓ 1m 25s |
|
|
212
|
+
| runtime-bug | ✗✗✗ 5m 30s |
|
|
213
|
+
| **Passed** | **36/42** |
|
|
214
|
+
| pass@1 · pass^3 | 86% · 71% |
|
|
215
|
+
| Each attempt | 12/14, 13/14, 11/14 |
|
|
216
|
+
| Time | 62m 47s |
|
|
217
|
+
| Generation | 64.0 tok/s |
|
|
218
|
+
| Prompt reading | 851 tok/s |
|
|
219
|
+
| Tool-call errors | 4 |
|
|
220
|
+
| Memory | 10.5 GB, 98% on GPU |
|
|
221
|
+
|
|
222
|
+
What it missed:
|
|
223
|
+
- one `spec-fix` attempt fixed the reported case but not all the docstring's rules;
|
|
224
|
+
- one `cli-tool` exited with 1 after skipping malformed lines, where the spec says 0;
|
|
225
|
+
- one `repo-bug` attempt went round in circles until lcode stopped it;
|
|
226
|
+
- every `runtime-bug` attempt settled for a band-aid: the window still grew, or still couldn't be
|
|
227
|
+
made smaller.
|
|
228
|
+
|
|
229
|
+
Two `wide-feature` attempts were first counted as failed. Their `budget list` printed `No budgets
|
|
230
|
+
set.` without budgets, and one listed the budgeted categories first. The task asks for neither
|
|
231
|
+
behavior, so the check now accepts both (0.59.0), and the table counts them as passed.
|
|
232
|
+
|
|
233
|
+
### Earlier: the quick tasks, one attempt each
|
|
234
|
+
|
|
235
|
+
The quick tasks with three models, Ollama 0.32.15, 32K context, reasoning on, one attempt each (lcode
|
|
236
|
+
0.3):
|
|
171
237
|
|
|
172
238
|
| | `qwen3.6-35b` | `qwen3.5-9b` | `qwen3.5-4b` |
|
|
173
239
|
|---|---|---|---|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Public benchmarks
|
|
2
2
|
|
|
3
|
-
`lcode bench` has
|
|
4
|
-
|
|
5
|
-
rerun:
|
|
3
|
+
`lcode bench` has [tasks of its own](bench.md) that say which model works best on your machine. To
|
|
4
|
+
measure lcode against published results and other agents, it also runs on two public benchmarks
|
|
5
|
+
that anyone can rerun:
|
|
6
6
|
|
|
7
7
|
- [Terminal-Bench 2.0](https://www.tbench.ai/): tasks in a terminal, from fixing a git repository
|
|
8
8
|
to building software, recovering data or setting up servers.
|
|
@@ -80,7 +80,8 @@ With three attempts, the last line also gives each run's pass rate and the sprea
|
|
|
80
80
|
- **pass^3**: the share of tasks whose three attempts all passed. That shows how dependable lcode is,
|
|
81
81
|
not just how often it gets lucky.
|
|
82
82
|
- **runs and spread**: the pass rate of each task's first attempt, its second and its third. Single
|
|
83
|
-
runs of the same setup differ by several points
|
|
83
|
+
runs of the same setup differ by several points; `--compare` ([below](#comparing-two-runs)) says
|
|
84
|
+
whether a change between two results is more than that.
|
|
84
85
|
- **Time and tokens** per attempt, from lcode's own record of the request (its
|
|
85
86
|
[trace](traces.md)). An attempt stopped at the task's time limit counts the tokens recorded
|
|
86
87
|
until then, and a reply lcode stopped counts with an estimate. `–` means no attempt of the task
|
|
@@ -97,6 +98,29 @@ Everything is saved in `~/.local/state/lcode/bench/<slice>-<time>/`:
|
|
|
97
98
|
- Harbor's own results: each attempt's log, the task's test output, and lcode's trace and session.
|
|
98
99
|
`uvx --from harbor harbor view <folder>` browses them.
|
|
99
100
|
|
|
101
|
+
## Comparing two runs
|
|
102
|
+
|
|
103
|
+
`lcode bench --compare` compares two saved results, for example the dev slice before and after a
|
|
104
|
+
change, given as their folders or their `lcode-bench.json`:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
lcode bench --compare ~/.local/state/lcode/bench/dev-20261101-161623 ~/.local/state/lcode/bench/dev-20261105-201500
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
It says which lcode, model and context each one ran, warns when they don't match, lists the tasks
|
|
111
|
+
whose results changed (`3/3 → 1/3`), and compares pass@1 over the tasks both ran: within the noise,
|
|
112
|
+
better, or a drop beyond the noise.
|
|
113
|
+
|
|
114
|
+
The noise is how far pass@1 moves between runs of the same setup, estimated from how much each
|
|
115
|
+
task's attempts disagree: a task that always passes or always fails adds nothing, one that passes
|
|
116
|
+
half the time the most. A change counts when it's more than twice the standard error of the
|
|
117
|
+
difference. On the dev slice, with three attempts per task, that's about 9 points. `--compare` exits
|
|
118
|
+
with 1 when the second result dropped beyond the noise, so a script can stop on it.
|
|
119
|
+
|
|
120
|
+
**The release rule:** a release that changes lcode's prompts, tools or context handling ships only
|
|
121
|
+
if the dev slice doesn't drop beyond the noise against the last baseline, and the comparison goes on
|
|
122
|
+
its pull request. See the [release steps](contributing.md#releases).
|
|
123
|
+
|
|
100
124
|
## Other agents on the same model
|
|
101
125
|
|
|
102
126
|
`--agent` runs Claude Code, OpenCode or Codex on the same tasks, with the same model, context
|
|
@@ -39,6 +39,7 @@ from lcode.ollama import Ollama, OllamaError
|
|
|
39
39
|
SCHEMA_VERSION = 1
|
|
40
40
|
DEFAULT_CONTEXT = 32768 # the same everywhere, so results compare across machines
|
|
41
41
|
DEFAULT_TIMEOUT = 300 # seconds per task
|
|
42
|
+
LONGER_TIMEOUT = 600 # for the longer tasks, which take a strong model up to five minutes
|
|
42
43
|
DEFAULT_ATTEMPTS = 3 # each task's attempts: one run is within the noise between runs
|
|
43
44
|
CHECK_TIMEOUT = 60
|
|
44
45
|
PROBE_WORDS = 3000 # about 4,000 tokens
|
|
@@ -65,6 +66,7 @@ class Task:
|
|
|
65
66
|
prompt: str
|
|
66
67
|
files: dict[str, str]
|
|
67
68
|
check: Callable[[Path, str], Check] # (task folder, the model's final answer) -> result
|
|
69
|
+
timeout: float = DEFAULT_TIMEOUT # seconds before it stops, unless --timeout says otherwise
|
|
68
70
|
|
|
69
71
|
|
|
70
72
|
# ----------------------------------------------------------------------------- helpers for checks
|
|
@@ -747,32 +749,41 @@ TASKS = [
|
|
|
747
749
|
|
|
748
750
|
|
|
749
751
|
def extra_tasks() -> list[Task]:
|
|
750
|
-
"""Tasks that only run when asked for with --tasks (
|
|
751
|
-
from lcode import bench_backend
|
|
752
|
+
"""Tasks that only run when asked for with --tasks (for optional features such as --code-search)."""
|
|
753
|
+
from lcode import bench_backend
|
|
754
|
+
|
|
755
|
+
return [Task("find-concept", "Find code by what it does (40 files)", *parts(bench_backend))]
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
def work_tasks() -> list[Task]:
|
|
759
|
+
"""Tasks closer to real work, after the quick ones: longer, and where good models still slip."""
|
|
760
|
+
from lcode import bench_budgets, bench_dedupe, bench_flaky, bench_logsum, bench_quotes, bench_runtime
|
|
752
761
|
|
|
753
762
|
return [
|
|
754
|
-
Task(
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
),
|
|
761
|
-
Task(
|
|
762
|
-
"runtime-bug",
|
|
763
|
-
"Fix a bug that shows only when it runs",
|
|
764
|
-
bench_runtime.PROMPT,
|
|
765
|
-
bench_runtime.FILES,
|
|
766
|
-
bench_runtime.check,
|
|
767
|
-
),
|
|
763
|
+
Task("cli-tool", "Build a tool from a spec", *parts(bench_logsum), LONGER_TIMEOUT),
|
|
764
|
+
Task("flaky-test", "Find why a test is flaky", *parts(bench_flaky), LONGER_TIMEOUT),
|
|
765
|
+
Task("repo-bug", "Fix a bug in a 47-file repo", *parts(bench_quotes), LONGER_TIMEOUT),
|
|
766
|
+
Task("wide-feature", "Add a feature across modules", *parts(bench_budgets), LONGER_TIMEOUT),
|
|
767
|
+
Task("fast-dedupe", "Make a slow job fast, same output", *parts(bench_dedupe), LONGER_TIMEOUT),
|
|
768
|
+
Task("runtime-bug", "Fix a bug that shows only when it runs", *parts(bench_runtime), LONGER_TIMEOUT),
|
|
768
769
|
]
|
|
769
770
|
|
|
770
771
|
|
|
772
|
+
def parts(module) -> tuple:
|
|
773
|
+
"""A task module's prompt, files and check."""
|
|
774
|
+
return module.PROMPT, module.FILES, module.check
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
def default_tasks() -> list[Task]:
|
|
778
|
+
"""What `lcode bench` runs: the quick tasks, then the longer ones."""
|
|
779
|
+
return [*TASKS, *work_tasks()]
|
|
780
|
+
|
|
781
|
+
|
|
771
782
|
def select_tasks(ids: str | None) -> list[Task]:
|
|
772
783
|
if not ids:
|
|
773
|
-
return
|
|
784
|
+
return default_tasks()
|
|
774
785
|
wanted = [i.strip() for i in ids.split(",") if i.strip()]
|
|
775
|
-
known = {task.id: task for task in [*
|
|
786
|
+
known = {task.id: task for task in [*default_tasks(), *extra_tasks()]}
|
|
776
787
|
unknown = [i for i in wanted if i not in known]
|
|
777
788
|
if unknown:
|
|
778
789
|
raise ValueError(f"unknown task(s) {', '.join(unknown)}; choose from {', '.join(known)}")
|
|
@@ -1082,7 +1093,7 @@ def run_model(
|
|
|
1082
1093
|
settings: Settings,
|
|
1083
1094
|
tasks: list[Task],
|
|
1084
1095
|
console: Console,
|
|
1085
|
-
timeout: float =
|
|
1096
|
+
timeout: float | None = None,
|
|
1086
1097
|
keep: bool = False,
|
|
1087
1098
|
verbose: bool = False,
|
|
1088
1099
|
session: bool = False,
|
|
@@ -1133,6 +1144,7 @@ def run_model(
|
|
|
1133
1144
|
pruned, compacted = pruned + shared.pruned, compacted + shared.compacted
|
|
1134
1145
|
shared = None
|
|
1135
1146
|
for task in tasks:
|
|
1147
|
+
limit = timeout or task.timeout # --timeout, or the task's own
|
|
1136
1148
|
log = console if verbose else Console(file=io.StringIO(), width=120, force_terminal=False)
|
|
1137
1149
|
if session and shared is None:
|
|
1138
1150
|
shared = Agent(ollama, settings, Path(tempfile.gettempdir()), console=log)
|
|
@@ -1141,10 +1153,10 @@ def run_model(
|
|
|
1141
1153
|
try:
|
|
1142
1154
|
if verbose:
|
|
1143
1155
|
console.rule(f"{task.id}: {task.title}")
|
|
1144
|
-
result = run_task(ollama, settings, task,
|
|
1156
|
+
result = run_task(ollama, settings, task, limit, log, keep, run.usage, shared, retry)
|
|
1145
1157
|
else:
|
|
1146
1158
|
with console.status(Elapsed(f" {task.id:<13} {task.title}")):
|
|
1147
|
-
result = run_task(ollama, settings, task,
|
|
1159
|
+
result = run_task(ollama, settings, task, limit, log, keep, run.usage, shared, retry)
|
|
1148
1160
|
except KeyboardInterrupt:
|
|
1149
1161
|
console.print(" [yellow]Stopped.[/]")
|
|
1150
1162
|
run.interrupted = True
|
|
@@ -1250,7 +1262,7 @@ def report(runs: list[ModelRun], hardware: Hardware, ollama_version: str, server
|
|
|
1250
1262
|
"server": server or f"Ollama {ollama_version}",
|
|
1251
1263
|
"date": dt.datetime.now().astimezone().isoformat(timespec="seconds"),
|
|
1252
1264
|
"hardware": {**asdict(hardware), "description": hardware.describe()},
|
|
1253
|
-
"tasks": [{"id": t.id, "title": t.title} for t in
|
|
1265
|
+
"tasks": [{"id": t.id, "title": t.title} for t in default_tasks()],
|
|
1254
1266
|
"runs": [run.to_json() for run in runs],
|
|
1255
1267
|
}
|
|
1256
1268
|
|
|
@@ -1280,7 +1292,11 @@ def print_tasks(console: Console) -> None:
|
|
|
1280
1292
|
table = Table(title="lcode bench tasks", title_justify="left", header_style="bold")
|
|
1281
1293
|
table.add_column("Task", style="cyan")
|
|
1282
1294
|
table.add_column("What it tests")
|
|
1283
|
-
|
|
1284
|
-
|
|
1295
|
+
table.add_column("Runs", style="dim")
|
|
1296
|
+
for tasks, when in [(TASKS, "always"), (work_tasks(), "not with --quick"), (extra_tasks(), "only with --tasks")]:
|
|
1297
|
+
for task in tasks:
|
|
1298
|
+
table.add_row(task.id, task.title, when)
|
|
1285
1299
|
console.print(table)
|
|
1286
|
-
console.print(
|
|
1300
|
+
console.print(
|
|
1301
|
+
"[dim]--quick runs the quick ones once; --tasks picks some, e.g. lcode bench --tasks fix-bug,rename[/]"
|
|
1302
|
+
)
|