lcode-cli 0.58.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.58.0 → lcode_cli-0.59.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/CHANGELOG.md +19 -1
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/CONTRIBUTING.md +22 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/PKG-INFO +1 -1
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/bench.md +47 -6
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/public-benchmarks.md +28 -4
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/quickstart.md +1 -1
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_budgets.py +14 -2
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/cli.py +10 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/harbor_bench.py +85 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_bench_work.py +29 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_harbor_bench.py +65 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.editorconfig +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/workflows/ci.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/workflows/docs.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.github/workflows/release.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.gitignore +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/AGENTS.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/LICENSE +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/README.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/SECURITY.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/action.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/agents.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/assets/long-clip-tulip.jpg +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/automation.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/changelog.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/commands.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/configuration.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/contributing.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/editors.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/git.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/hooks.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/how-it-works.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/index.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/installation.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/lsp.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/mcp.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/memory.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/models.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/modes.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/search.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/servers.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/traces.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/troubleshooting.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/docs/usage.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/examples/README.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/install.sh +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/mkdocs.yml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/overrides/main.html +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/pyproject.toml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/agent.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/api.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/assistant.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_dedupe.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_flaky.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_logsum.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_quotes.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/catalog.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/checkpoints.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/checks.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/config.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/film.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/harbor.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/hardware.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/jobs.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/manual.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/media.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/media.toml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/media_catalog.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/media_cloud.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/memory.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/ollama.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/repl.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/replay.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/repoid.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/residency.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/screenshots.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/sessions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/subagents.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/traces.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/update.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/smooth-film.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan21-vace.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/conftest.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_action.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_api.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_assistant.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_bench.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_catalog.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_checkpoints.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_checks.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_config.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_context.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_conversations.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_film.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_gpu_handover.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_jobs.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_long_clips.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_look.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_manual.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_media_catalog.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_media_cloud.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_memory.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_residency.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_review.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_sandbox.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_screenshots.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_stuck.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_traces.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_update.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_video.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_web.py +0 -0
- {lcode_cli-0.58.0 → lcode_cli-0.59.0}/tests/test_xai.py +0 -0
- {lcode_cli-0.58.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,23 @@ 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
|
+
|
|
9
26
|
## [0.58.0] - 2026-11-02
|
|
10
27
|
|
|
11
28
|
### Added
|
|
@@ -1242,7 +1259,8 @@ First public release.
|
|
|
1242
1259
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
1243
1260
|
- One-line installer for Linux and macOS.
|
|
1244
1261
|
|
|
1245
|
-
[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
|
|
1246
1264
|
[0.58.0]: https://github.com/nasser1941/lcode/compare/v0.57.0...v0.58.0
|
|
1247
1265
|
[0.57.0]: https://github.com/nasser1941/lcode/compare/v0.56.0...v0.57.0
|
|
1248
1266
|
[0.56.0]: https://github.com/nasser1941/lcode/compare/v0.55.0...v0.56.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/
|
|
@@ -160,13 +160,13 @@ closer to real work, tell good models from great ones:
|
|
|
160
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
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
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
|
|
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
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
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
166
|
|
|
167
|
-
qwen3.6-35b
|
|
168
|
-
`fast-dedupe`
|
|
169
|
-
|
|
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
170
|
|
|
171
171
|
Each rewards what a careful developer does: reading the whole spec, running a flaky test more than
|
|
172
172
|
once, fixing the cause rather than the symptom, trying old data, and comparing the new output with
|
|
@@ -191,8 +191,49 @@ to measure a model without reasoning.
|
|
|
191
191
|
|
|
192
192
|
## Results on a 12 GB laptop
|
|
193
193
|
|
|
194
|
-
RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM, Ollama 0.
|
|
195
|
-
|
|
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):
|
|
196
237
|
|
|
197
238
|
| | `qwen3.6-35b` | `qwen3.5-9b` | `qwen3.5-4b` |
|
|
198
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
|
|
@@ -10,6 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
import json
|
|
12
12
|
import os
|
|
13
|
+
import re
|
|
13
14
|
import subprocess
|
|
14
15
|
import sys
|
|
15
16
|
import tempfile
|
|
@@ -339,13 +340,14 @@ OCTOBER = [
|
|
|
339
340
|
"travel: €41.40 of €50.50",
|
|
340
341
|
"total: €315.29",
|
|
341
342
|
]
|
|
343
|
+
NO_BUDGETS: list[str] = [] # `budget list` without budgets: no budget lines, whatever else it says ("No budgets set.")
|
|
342
344
|
SESSION = [
|
|
343
345
|
(
|
|
344
346
|
"an old data file still reports",
|
|
345
347
|
["report", "--month", "2026-10"],
|
|
346
348
|
["food: €257.90", "fun: €15.99", "travel: €41.40", "total: €315.29"],
|
|
347
349
|
),
|
|
348
|
-
("no budgets yet", ["budget", "list"],
|
|
350
|
+
("no budgets yet", ["budget", "list"], NO_BUDGETS),
|
|
349
351
|
("budget set", ["budget", "set", "food", "300"], None),
|
|
350
352
|
("budget set", ["budget", "set", "travel", "50.5"], None),
|
|
351
353
|
("budget set replaces", ["budget", "set", "food", "250"], None),
|
|
@@ -392,6 +394,16 @@ def lines(text: str) -> list[str]:
|
|
|
392
394
|
return [line.rstrip() for line in text.strip().splitlines()]
|
|
393
395
|
|
|
394
396
|
|
|
397
|
+
def same(got: list[str], want: list[str], argv: list[str]) -> bool:
|
|
398
|
+
"""Whether a command printed what it should. The task fixes the order of `budget list` (alphabetical), not of
|
|
399
|
+
the report's categories, so those may come in any order before the total."""
|
|
400
|
+
if want is NO_BUDGETS:
|
|
401
|
+
return not any(re.match(r"\S+: €", line) for line in got)
|
|
402
|
+
if argv[0] == "report":
|
|
403
|
+
return bool(got) and got[-1] == want[-1] and sorted(got[:-1]) == sorted(want[:-1])
|
|
404
|
+
return got == want
|
|
405
|
+
|
|
406
|
+
|
|
395
407
|
def json_problem(text: str) -> str | None:
|
|
396
408
|
try:
|
|
397
409
|
categories = {c["category"]: c for c in json.loads(text)["categories"]}
|
|
@@ -427,7 +439,7 @@ def check(folder: Path, answer: str):
|
|
|
427
439
|
r = run(folder, data, argv)
|
|
428
440
|
if r.returncode != 0:
|
|
429
441
|
return Check(False, f"{what}: `{' '.join(argv)}` failed: {last_line(r.stderr)}")
|
|
430
|
-
if want is not None and lines(r.stdout)
|
|
442
|
+
if want is not None and not same(lines(r.stdout), want, argv):
|
|
431
443
|
got = " / ".join(lines(r.stdout)) or "nothing"
|
|
432
444
|
return Check(False, f"{what}: `{' '.join(argv)}` printed {got[:150]}")
|
|
433
445
|
r = run(folder, data, ["report", "--month", "2026-10", "--json"])
|
|
@@ -594,6 +594,10 @@ def cmd_config(args) -> None:
|
|
|
594
594
|
def cmd_bench(args) -> None:
|
|
595
595
|
from lcode import bench
|
|
596
596
|
|
|
597
|
+
if args.compare:
|
|
598
|
+
from lcode import harbor_bench
|
|
599
|
+
|
|
600
|
+
sys.exit(harbor_bench.compare_command(args.compare, console))
|
|
597
601
|
if args.harbor:
|
|
598
602
|
from lcode import harbor_bench
|
|
599
603
|
|
|
@@ -960,6 +964,12 @@ def build_subparsers() -> dict[str, argparse.ArgumentParser]:
|
|
|
960
964
|
p.add_argument("-v", "--verbose", action="store_true", help="show the model working, like a normal session")
|
|
961
965
|
p.add_argument("--list", action="store_true", help="list the tasks and exit")
|
|
962
966
|
p.add_argument("--quick", action="store_true", help="only the eight quick tasks, one attempt each (as before 0.57)")
|
|
967
|
+
p.add_argument(
|
|
968
|
+
"--compare",
|
|
969
|
+
nargs=2,
|
|
970
|
+
metavar=("BEFORE", "AFTER"),
|
|
971
|
+
help="compare two --harbor results (lcode-bench.json or its folder): fails if AFTER dropped beyond the noise",
|
|
972
|
+
)
|
|
963
973
|
p.add_argument(
|
|
964
974
|
"--harbor",
|
|
965
975
|
choices=["dev", "held-out"],
|
|
@@ -19,6 +19,7 @@ from __future__ import annotations
|
|
|
19
19
|
|
|
20
20
|
import datetime as dt
|
|
21
21
|
import json
|
|
22
|
+
import math
|
|
22
23
|
import os
|
|
23
24
|
import shlex
|
|
24
25
|
import statistics
|
|
@@ -489,6 +490,90 @@ def print_summary(console, summary: Summary) -> None:
|
|
|
489
490
|
console.print(f"[yellow]{summary.not_run} attempt(s) didn't run (their container didn't start, say).[/]")
|
|
490
491
|
|
|
491
492
|
|
|
493
|
+
# ----------------------------------------------------------------------------- comparing two runs (the release gate)
|
|
494
|
+
|
|
495
|
+
SAME = ("slice", "agent", "model", "context", "attempts") # results compare fairly only when these match
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
@dataclass
|
|
499
|
+
class Saved:
|
|
500
|
+
"""A saved `lcode bench --harbor` result: lcode-bench.json, or the folder it's in."""
|
|
501
|
+
|
|
502
|
+
path: Path
|
|
503
|
+
data: dict
|
|
504
|
+
passed: dict[str, list[bool]] # "benchmark/task" -> each attempt that ran, passed or not
|
|
505
|
+
|
|
506
|
+
@classmethod
|
|
507
|
+
def load(cls, path: Path) -> Saved:
|
|
508
|
+
file = path / "lcode-bench.json" if path.is_dir() else path
|
|
509
|
+
try:
|
|
510
|
+
data = json.loads(file.read_text())
|
|
511
|
+
passed = {f"{r['dataset']}/{r['task']}": [bool(p) for p in r.get("passed") or []] for r in data["results"]}
|
|
512
|
+
except (OSError, ValueError, KeyError, TypeError) as e:
|
|
513
|
+
raise ValueError(f"{file} isn't a result of lcode bench --harbor: {e}") from None
|
|
514
|
+
return cls(file, data, passed)
|
|
515
|
+
|
|
516
|
+
def describe(self) -> str:
|
|
517
|
+
d = self.data
|
|
518
|
+
context = f"{d['context'] // 1024}K" if isinstance(d.get("context"), int) else "?"
|
|
519
|
+
agent = "" if d.get("agent", "lcode") == "lcode" else f"{d.get('agent')} {d.get('agent_version') or ''} on "
|
|
520
|
+
return f"{agent}lcode {d.get('lcode', '?')} · {d.get('model', '?')} at {context} · {d.get('date', '?')[:10]}"
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
def pass_at_1(passed: list[list[bool]]) -> float:
|
|
524
|
+
return statistics.fmean(statistics.fmean(p) for p in passed)
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
def standard_error(passed: list[list[bool]]) -> float:
|
|
528
|
+
"""How much pass@1 would move between runs, from how much each task's attempts disagree: a task that always
|
|
529
|
+
passes or always fails adds nothing, one that passes half the time the most."""
|
|
530
|
+
variance = sum(statistics.fmean(p) * (1 - statistics.fmean(p)) / max(len(p) - 1, 1) for p in passed)
|
|
531
|
+
return math.sqrt(variance) / len(passed)
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
def compare(old: Saved, new: Saved) -> tuple[list[str], bool]:
|
|
535
|
+
"""Lines to print, and whether the new result is no worse than the old one beyond the noise."""
|
|
536
|
+
lines = [f"Before: {old.describe()}", f"After: {new.describe()}"]
|
|
537
|
+
for key in SAME:
|
|
538
|
+
if old.data.get(key, "lcode" if key == "agent" else None) != new.data.get(
|
|
539
|
+
key, "lcode" if key == "agent" else None
|
|
540
|
+
):
|
|
541
|
+
lines.append(f"[yellow]Not the same {key}: {old.data.get(key)} and {new.data.get(key)}.[/]")
|
|
542
|
+
both = sorted(task for task in old.passed if old.passed[task] and new.passed.get(task))
|
|
543
|
+
for task in sorted(set(old.passed) | set(new.passed)):
|
|
544
|
+
before, after = old.passed.get(task) or [], new.passed.get(task) or []
|
|
545
|
+
if task not in both:
|
|
546
|
+
lines.append(f" {task}: only {'after' if after else 'before'}, left out")
|
|
547
|
+
elif sum(before) * len(after) != sum(after) * len(before):
|
|
548
|
+
lines.append(f" {task}: {sum(before)}/{len(before)} → {sum(after)}/{len(after)}")
|
|
549
|
+
if not both:
|
|
550
|
+
return [*lines, "[red]No task ran in both, so there's nothing to compare.[/]"], False
|
|
551
|
+
a, b = pass_at_1([old.passed[t] for t in both]), pass_at_1([new.passed[t] for t in both])
|
|
552
|
+
noise = 2 * math.hypot(standard_error([old.passed[t] for t in both]), standard_error([new.passed[t] for t in both]))
|
|
553
|
+
change = f"{(b - a) * 100:+.0f} points; the noise is ±{noise * 100:.0f}"
|
|
554
|
+
if a - b > noise + 1e-9:
|
|
555
|
+
verdict = f"[red]a drop beyond the noise ({change})[/]"
|
|
556
|
+
elif b - a > noise + 1e-9:
|
|
557
|
+
verdict = f"[green]better, beyond the noise ({change})[/]"
|
|
558
|
+
else:
|
|
559
|
+
verdict = f"within the noise ({change})"
|
|
560
|
+
lines.append(f"pass@1 {a * 100:.0f}% → {b * 100:.0f}% over the {len(both)} tasks in both: {verdict}")
|
|
561
|
+
return lines, a - b <= noise + 1e-9
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
def compare_command(paths: list[str], console) -> int:
|
|
565
|
+
"""`lcode bench --compare BEFORE AFTER`: 0 when AFTER is no worse beyond the noise, 1 when it is, 2 on an error."""
|
|
566
|
+
try:
|
|
567
|
+
old, new = (Saved.load(Path(p).expanduser()) for p in paths)
|
|
568
|
+
except ValueError as e:
|
|
569
|
+
console.print(f"[red]{e}[/]")
|
|
570
|
+
return 2
|
|
571
|
+
lines, ok = compare(old, new)
|
|
572
|
+
for line in lines:
|
|
573
|
+
console.print(line)
|
|
574
|
+
return 0 if ok else 1
|
|
575
|
+
|
|
576
|
+
|
|
492
577
|
def took(seconds: float) -> str:
|
|
493
578
|
hours, minutes = divmod(round(seconds / 60), 60)
|
|
494
579
|
return f"{hours} h {minutes} min" if hours else f"{minutes} min"
|
|
@@ -345,6 +345,35 @@ def test_wide_feature_catches_a_missed_requirement(tmp_path, file, old, new, pro
|
|
|
345
345
|
assert not result.passed and problem in result.detail
|
|
346
346
|
|
|
347
347
|
|
|
348
|
+
def test_wide_feature_takes_any_message_without_budgets_and_any_order_of_categories(tmp_path):
|
|
349
|
+
files = budgets()
|
|
350
|
+
files["expenses/cli.py"] = patched(
|
|
351
|
+
files["expenses/cli.py"],
|
|
352
|
+
" for category, value in sorted(budgets.items()):\n",
|
|
353
|
+
' if not budgets:\n print("No budgets set.")\n'
|
|
354
|
+
" for category, value in sorted(budgets.items()):\n",
|
|
355
|
+
)
|
|
356
|
+
budgeted_first = "sorted(totals.items(), key=lambda item: item[0] not in budgets)"
|
|
357
|
+
files["expenses/report.py"] = patched(
|
|
358
|
+
files["expenses/report.py"],
|
|
359
|
+
"for category, spent in totals.items()]",
|
|
360
|
+
f"for category, spent in {budgeted_first}]",
|
|
361
|
+
)
|
|
362
|
+
result = check("wide-feature", setup("wide-feature", tmp_path, **files))
|
|
363
|
+
assert result.passed, result.detail
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
def test_wide_feature_wants_the_total_last(tmp_path):
|
|
367
|
+
files = budgets()
|
|
368
|
+
files["expenses/report.py"] = patched(
|
|
369
|
+
files["expenses/report.py"],
|
|
370
|
+
' lines.append(f"total: {money(sum(totals.values(), Decimal(0)))}")\n',
|
|
371
|
+
' lines.insert(0, f"total: {money(sum(totals.values(), Decimal(0)))}")\n',
|
|
372
|
+
)
|
|
373
|
+
result = check("wide-feature", setup("wide-feature", tmp_path, **files))
|
|
374
|
+
assert not result.passed # its own tests catch it, and so would the session
|
|
375
|
+
|
|
376
|
+
|
|
348
377
|
def test_wide_feature_runs_its_tests(tmp_path):
|
|
349
378
|
files = budgets()
|
|
350
379
|
files["tests/test_cli.py"] = bench_budgets.TEST_CLI # not updated for the new JSON fields
|
|
@@ -341,3 +341,68 @@ def test_lcode_bench_harbor_lists_its_slice_and_refuses_other_tasks(capsys, monk
|
|
|
341
341
|
with pytest.raises(SystemExit) as done:
|
|
342
342
|
cli.main(["bench", "--harbor", "dev", "--tasks", "fix-git"]) # in Terminal-Bench, not in the dev slice
|
|
343
343
|
assert done.value.code == 2 and "Not in the dev slice: fix-git" in " ".join(capsys.readouterr().out.split())
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
# ----------------------------------------------------------------------------- comparing two runs
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
def saved(folder: Path, passed: dict[str, list[bool]], **fields) -> Path:
|
|
350
|
+
"""A saved lcode-bench.json with these attempts, in a folder of its own like a real run's."""
|
|
351
|
+
folder.mkdir(parents=True)
|
|
352
|
+
data = {"lcode": "0.57.0", "slice": "dev", "model": "qwen3.6-35b", "context": 32768, "attempts": 3}
|
|
353
|
+
data |= fields
|
|
354
|
+
data["results"] = [{"dataset": "terminal-bench", "task": task, "passed": runs} for task, runs in passed.items()]
|
|
355
|
+
(folder / "lcode-bench.json").write_text(json.dumps(data))
|
|
356
|
+
return folder
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
def compared(tmp_path, before: dict, after: dict, **after_fields) -> tuple[int, str]:
|
|
360
|
+
console = Console(file=io.StringIO(), width=200)
|
|
361
|
+
old = saved(tmp_path / "before", before)
|
|
362
|
+
new = saved(tmp_path / "after", after, **after_fields)
|
|
363
|
+
code = harbor_bench.compare_command([str(old), str(new / "lcode-bench.json")], console)
|
|
364
|
+
return code, console.file.getvalue()
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
SOMETIMES = [True, True, False]
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
def test_compare_calls_a_small_change_noise(tmp_path):
|
|
371
|
+
before = {f"t{n}": SOMETIMES for n in range(6)}
|
|
372
|
+
code, text = compared(tmp_path, before, {**before, "t0": [True, False, False]})
|
|
373
|
+
assert code == 0 and "t0: 2/3 → 1/3" in text
|
|
374
|
+
assert "pass@1 67% → 61% over the 6 tasks in both: within the noise (-6 points; the noise is ±38)" in text
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
def test_compare_fails_a_drop_beyond_the_noise(tmp_path):
|
|
378
|
+
before = {f"t{n}": [True] * 3 for n in range(10)}
|
|
379
|
+
after = {**before, **{f"t{n}": [False] * 3 for n in range(5)}}
|
|
380
|
+
code, text = compared(tmp_path, before, after)
|
|
381
|
+
assert code == 1 and "pass@1 100% → 50%" in text and "a drop beyond the noise (-50 points" in text
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
def test_compare_says_when_its_better_and_what_differs(tmp_path):
|
|
385
|
+
before = {"t0": [False] * 3, "t1": [False] * 3, "gone": [True] * 3}
|
|
386
|
+
code, text = compared(tmp_path, before, {"t0": [True] * 3, "t1": [True] * 3, "new": [True] * 3}, context=65536)
|
|
387
|
+
assert code == 0 and "better, beyond the noise (+100 points" in text
|
|
388
|
+
assert "Not the same context: 32768 and 65536." in text
|
|
389
|
+
assert "terminal-bench/gone: only before, left out" in text and "terminal-bench/new: only after, left out" in text
|
|
390
|
+
assert "Before: lcode 0.57.0 · qwen3.6-35b at 32K" in text and "at 64K" in text
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def test_compare_needs_two_results(tmp_path):
|
|
394
|
+
console = Console(file=io.StringIO(), width=200)
|
|
395
|
+
(tmp_path / "other.json").write_text('{"schema": 1, "runs": []}')
|
|
396
|
+
code = harbor_bench.compare_command([str(tmp_path / "missing"), str(tmp_path / "other.json")], console)
|
|
397
|
+
assert code == 2 and "isn't a result of lcode bench --harbor" in console.file.getvalue()
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
def test_lcode_bench_compare_exits_with_the_verdict(tmp_path, monkeypatch):
|
|
401
|
+
from lcode import cli
|
|
402
|
+
|
|
403
|
+
monkeypatch.setattr(cli, "console", Console(file=io.StringIO(), width=200))
|
|
404
|
+
old = saved(tmp_path / "before", {"t0": [True] * 3})
|
|
405
|
+
new = saved(tmp_path / "after", {"t0": [False] * 3})
|
|
406
|
+
with pytest.raises(SystemExit) as stopped:
|
|
407
|
+
cli.main(["bench", "--compare", str(old), str(new)])
|
|
408
|
+
assert stopped.value.code == 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|