lcode-cli 0.55.0__tar.gz → 0.57.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.55.0 → lcode_cli-0.57.0}/CHANGELOG.md +24 -1
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/PKG-INFO +2 -1
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/README.md +1 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/bench.md +65 -37
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/public-benchmarks.md +34 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/quickstart.md +1 -1
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/search.md +1 -1
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/usage.md +1 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/bench.py +114 -26
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/cli.py +30 -5
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/harbor_bench.py +213 -12
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/ollama.py +7 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_bench.py +165 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_harbor_bench.py +103 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.editorconfig +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/workflows/ci.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/workflows/docs.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.github/workflows/release.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.gitignore +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/AGENTS.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/CONTRIBUTING.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/LICENSE +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/SECURITY.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/action.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/agents.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/assets/long-clip-tulip.jpg +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/automation.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/changelog.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/commands.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/configuration.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/contributing.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/editors.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/git.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/hooks.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/how-it-works.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/index.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/installation.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/lsp.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/mcp.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/memory.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/models.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/modes.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/servers.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/traces.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/docs/troubleshooting.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/examples/README.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/install.sh +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/mkdocs.yml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/overrides/main.html +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/pyproject.toml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/agent.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/api.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/assistant.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/catalog.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/checkpoints.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/checks.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/config.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/film.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/harbor.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/hardware.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/jobs.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/manual.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/media.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/media.toml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/media_catalog.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/media_cloud.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/memory.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/repl.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/replay.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/repoid.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/residency.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/screenshots.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/sessions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/subagents.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/traces.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/update.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/smooth-film.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/wan21-vace.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/conftest.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_action.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_api.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_assistant.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_catalog.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_checkpoints.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_checks.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_config.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_context.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_conversations.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_film.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_gpu_handover.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_jobs.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_long_clips.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_look.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_manual.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_media_catalog.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_media_cloud.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_memory.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_residency.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_review.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_sandbox.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_screenshots.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_stuck.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_traces.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_update.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_video.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_web.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/tests/test_xai.py +0 -0
- {lcode_cli-0.55.0 → lcode_cli-0.57.0}/uv.lock +0 -0
|
@@ -6,6 +6,27 @@ All notable changes to lcode are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.57.0] - 2026-11-02
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **`lcode bench` makes three attempts at each task** (#199), each in a new folder and conversation,
|
|
14
|
+
and reports pass@1, pass^3 and how many tasks passed in each attempt, counted as in the public
|
|
15
|
+
benchmarks. One run of each task was within the noise between runs. `--attempts 1` runs each task
|
|
16
|
+
once, as before, in a third of the time. In the summary, a task's time is per attempt, on average.
|
|
17
|
+
The JSON adds `attempts`, `summary` and each task's `attempt`. Without `--session`, `--rounds` is
|
|
18
|
+
another name for `--attempts`.
|
|
19
|
+
|
|
20
|
+
## [0.56.0] - 2026-11-02
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **Other agents on the same model** (#198): `lcode bench --harbor dev --agent claude-code`
|
|
25
|
+
(or `opencode`, `codex`) runs that agent on the same tasks, model and context as lcode, for a
|
|
26
|
+
comparison. Each is set up the way `ollama launch` sets it up, with approvals off. Their APIs can't
|
|
27
|
+
set the context window, so lcode makes a copy of the model with it set (`lcode-qwen3.6-35b-64k`),
|
|
28
|
+
which uses the model's files. `lcode-bench.json` records the agent and its version.
|
|
29
|
+
|
|
9
30
|
## [0.55.0] - 2026-11-02
|
|
10
31
|
|
|
11
32
|
### Added
|
|
@@ -1201,7 +1222,9 @@ First public release.
|
|
|
1201
1222
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
1202
1223
|
- One-line installer for Linux and macOS.
|
|
1203
1224
|
|
|
1204
|
-
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.
|
|
1225
|
+
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.57.0...HEAD
|
|
1226
|
+
[0.57.0]: https://github.com/nasser1941/lcode/compare/v0.56.0...v0.57.0
|
|
1227
|
+
[0.56.0]: https://github.com/nasser1941/lcode/compare/v0.55.0...v0.56.0
|
|
1205
1228
|
[0.55.0]: https://github.com/nasser1941/lcode/compare/v0.54.0...v0.55.0
|
|
1206
1229
|
[0.54.0]: https://github.com/nasser1941/lcode/compare/v0.53.0...v0.54.0
|
|
1207
1230
|
[0.53.0]: https://github.com/nasser1941/lcode/compare/v0.52.0...v0.53.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.57.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/
|
|
@@ -182,6 +182,7 @@ lcode
|
|
|
182
182
|
| `lcode models` / `lcode doctor` | what fits this machine / check the installation |
|
|
183
183
|
| `lcode bench qwen3.6-35b qwen3.5-9b` | compare models on small coding tasks on this machine |
|
|
184
184
|
| `lcode bench --harbor dev` | run lcode on a slice of Terminal-Bench 2.0 and SWE-bench Verified, with Harbor |
|
|
185
|
+
| `lcode bench --harbor dev --agent codex` | the same with Claude Code, OpenCode or Codex on your model, to compare |
|
|
185
186
|
| `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
|
|
186
187
|
| `/undo`, `/rewind` | take back the last request's file changes, or go back further |
|
|
187
188
|
| `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
|
|
@@ -146,6 +146,7 @@ lcode
|
|
|
146
146
|
| `lcode models` / `lcode doctor` | what fits this machine / check the installation |
|
|
147
147
|
| `lcode bench qwen3.6-35b qwen3.5-9b` | compare models on small coding tasks on this machine |
|
|
148
148
|
| `lcode bench --harbor dev` | run lcode on a slice of Terminal-Bench 2.0 and SWE-bench Verified, with Harbor |
|
|
149
|
+
| `lcode bench --harbor dev --agent codex` | the same with Claude Code, OpenCode or Codex on your model, to compare |
|
|
149
150
|
| `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
|
|
150
151
|
| `/undo`, `/rewind` | take back the last request's file changes, or go back further |
|
|
151
152
|
| `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
|
|
@@ -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 small coding tasks against one or more models
|
|
5
|
-
reports how many they solved, how fast they ran and how much memory they used.
|
|
4
|
+
coding on my machine?* It runs a fixed set of small coding tasks against one or more models, three
|
|
5
|
+
times 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 --attempts 1 # each task once: quicker, but within the noise
|
|
14
15
|
lcode bench --json results.json # also save machine-readable results
|
|
15
16
|
lcode bench --markdown # also print a table to paste into a test report
|
|
16
17
|
```
|
|
@@ -20,23 +21,43 @@ Studio: `LCODE_BACKEND=llama.cpp lcode bench`. The server keeps the model loaded
|
|
|
20
21
|
its memory use, so those columns stay empty.
|
|
21
22
|
|
|
22
23
|
```text
|
|
23
|
-
lcode bench · NVIDIA GeForce RTX 4080 Laptop GPU (12 GB VRAM), 31 GB RAM · Ollama 0.
|
|
24
|
+
lcode bench · NVIDIA GeForce RTX 4080 Laptop GPU (12 GB VRAM), 31 GB RAM · Ollama 0.40.13
|
|
24
25
|
|
|
25
|
-
lcode-qwen3.6-35b · 32K context · reasoning on · 8 tasks
|
|
26
|
-
Loaded in
|
|
26
|
+
lcode-qwen3.6-35b · 32K context · reasoning on · 8 tasks · 3 attempts each
|
|
27
|
+
Loaded in 18s · 10.4 GB, 98% on the GPU · reads prompts at 905 tok/s
|
|
28
|
+
Attempt 1 of 3
|
|
27
29
|
✓ fix-bug Fix a bug so the tests pass 22s the tests pass
|
|
28
|
-
✓ find-code Answer with file:line
|
|
29
|
-
✓ write-script Write a script from a spec
|
|
30
|
-
✓ rename Rename a function across files
|
|
30
|
+
✓ find-code Answer with file:line 8s next_wait at backoff.py:13
|
|
31
|
+
✓ write-script Write a script from a spec 12s correct output, also on data it hadn't seen
|
|
32
|
+
✓ rename Rename a function across files 22s its tests and extra checks pass
|
|
31
33
|
✓ precise-edit One-line edit in a long file 10s changed only service_087's timeout
|
|
32
|
-
✓ recover Recover from failing commands
|
|
33
|
-
✓ spec-fix Fix a function to match its spec
|
|
34
|
-
✓ feature Add a feature across files
|
|
34
|
+
✓ recover Recover from failing commands 22s used --source and dropped the invalid line
|
|
35
|
+
✓ spec-fix Fix a function to match its spec 78s follows the whole docstring
|
|
36
|
+
✓ feature Add a feature across files 86s priorities work, including old todos
|
|
37
|
+
Attempt 2 of 3
|
|
38
|
+
…
|
|
35
39
|
```
|
|
36
40
|
|
|
37
41
|
At the end it prints a table comparing the models (see [results](#results-on-a-12-gb-laptop) below).
|
|
38
42
|
|
|
39
|
-
A model usually takes 4 to 12 minutes; each task stops after 5 minutes (`--timeout`).
|
|
43
|
+
A model usually takes 4 to 12 minutes per attempt; each task stops after 5 minutes (`--timeout`).
|
|
44
|
+
|
|
45
|
+
### Three attempts at each task
|
|
46
|
+
|
|
47
|
+
Models sample their answers, so a task near the edge of a model's ability can pass in one run and
|
|
48
|
+
fail in the next. One run of each task is within that noise, so `lcode bench` makes three attempts
|
|
49
|
+
at every task, each in a new folder and conversation: every task once, then every task again. The
|
|
50
|
+
summary adds:
|
|
51
|
+
|
|
52
|
+
| | |
|
|
53
|
+
|---|---|
|
|
54
|
+
| **pass@1** | The share of attempts that passed, averaged over the tasks: the chance that one attempt works |
|
|
55
|
+
| **pass^3** | The share of tasks that passed all three attempts: the ones you can count on |
|
|
56
|
+
| **Each attempt** | How many tasks passed in each attempt. The difference between the best and the worst is the spread between runs |
|
|
57
|
+
|
|
58
|
+
They're counted as in the [public benchmarks](public-benchmarks.md). `--attempts 1` runs each task
|
|
59
|
+
once, as `lcode bench` did before 0.57, in a third of the time; `--attempts 5` gives pass^5. In the
|
|
60
|
+
summary, a task's time is that of one attempt, on average, and *Time* is the total.
|
|
40
61
|
|
|
41
62
|
### More tasks and features
|
|
42
63
|
|
|
@@ -57,8 +78,8 @@ would: no questions asked, since the flag is your OK. Comparing the two shows wh
|
|
|
57
78
|
model's advice adds to the same second chance:
|
|
58
79
|
|
|
59
80
|
```bash
|
|
60
|
-
lcode bench --tasks runtime-bug --retry --
|
|
61
|
-
lcode bench --tasks runtime-bug --retry --
|
|
81
|
+
lcode bench --tasks runtime-bug --retry --attempts 3
|
|
82
|
+
lcode bench --tasks runtime-bug --retry --attempts 3 --escalate ollama/qwen3.8-27b
|
|
62
83
|
```
|
|
63
84
|
|
|
64
85
|
The JSON report has, for each task, `first_passed` (with `--retry`, whether the first try passed)
|
|
@@ -77,7 +98,8 @@ lcode bench --context 32k --session --rounds 3
|
|
|
77
98
|
lcode bench --context 32k --session --rounds 3 --no-prune
|
|
78
99
|
```
|
|
79
100
|
|
|
80
|
-
`--
|
|
101
|
+
With `--session`, an attempt is one conversation, and `--attempts` is 1 unless you set it. `--rounds 3`
|
|
102
|
+
runs the tasks three times in it, 24 in one conversation, which fills a 32K window several
|
|
81
103
|
times over. With qwen3.6-35b on a 12 GB laptop (two runs each; runs vary a lot from one to the
|
|
82
104
|
next):
|
|
83
105
|
|
|
@@ -130,8 +152,8 @@ and `feature` are checked with tests the model never saw.
|
|
|
130
152
|
|
|
131
153
|
| | |
|
|
132
154
|
|---|---|
|
|
133
|
-
| **Passed** |
|
|
134
|
-
| **Time** | Total time for the tasks (loading the model is reported separately) |
|
|
155
|
+
| **Passed** | Attempts that solved their task within the time limit; with several, also pass@1, pass^3 and each attempt's ([above](#three-attempts-at-each-task)) |
|
|
156
|
+
| **Time** | Total time for the tasks, every attempt (loading the model is reported separately) |
|
|
135
157
|
| **Generation** | Output tokens per second, across all the model's responses |
|
|
136
158
|
| **Prompt reading** | Prompt tokens per second: how fast the model reads files and tool output. Measured per model with fresh 4,000-token prompts (the faster of two readings, since the first one after loading includes warm-up), because during the tasks Ollama serves most of each request from its prompt cache |
|
|
137
159
|
| **Tool-call errors** | Tool calls that failed (wrong arguments, editing without reading first, unmatched edits) or that the model wrote as invalid JSON |
|
|
@@ -144,7 +166,8 @@ to measure a model without reasoning.
|
|
|
144
166
|
|
|
145
167
|
## Results on a 12 GB laptop
|
|
146
168
|
|
|
147
|
-
RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM, Ollama 0.32.15, 32K context, reasoning on
|
|
169
|
+
RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM, Ollama 0.32.15, 32K context, reasoning on, one
|
|
170
|
+
attempt each (lcode 0.3):
|
|
148
171
|
|
|
149
172
|
| | `qwen3.6-35b` | `qwen3.5-9b` | `qwen3.5-4b` |
|
|
150
173
|
|---|---|---|---|
|
|
@@ -169,8 +192,8 @@ copying `read_file`'s line numbers into a data file, ignoring negative numbers,
|
|
|
169
192
|
of the spec, and running out of time.
|
|
170
193
|
|
|
171
194
|
Models sample their answers, so a task near the edge of a model's ability can pass in one run and
|
|
172
|
-
fail in the next (`qwen3.6-35b` scored 7/8 in an earlier run)
|
|
173
|
-
|
|
195
|
+
fail in the next (`qwen3.6-35b` scored 7/8 in an earlier run), which is why `lcode bench` now makes
|
|
196
|
+
three attempts at each task. Compare pass@1 and pass^3 rather than single tasks.
|
|
174
197
|
|
|
175
198
|
## Sharing results
|
|
176
199
|
|
|
@@ -192,10 +215,10 @@ existing fields keep their meaning until `schema` changes.
|
|
|
192
215
|
```json
|
|
193
216
|
{
|
|
194
217
|
"schema": 1,
|
|
195
|
-
"lcode": "0.
|
|
196
|
-
"ollama": "0.
|
|
197
|
-
"server": "Ollama 0.
|
|
198
|
-
"date": "2026-
|
|
218
|
+
"lcode": "0.57.0",
|
|
219
|
+
"ollama": "0.40.13",
|
|
220
|
+
"server": "Ollama 0.40.13",
|
|
221
|
+
"date": "2026-11-02T09:44:14+01:00",
|
|
199
222
|
"hardware": {
|
|
200
223
|
"os": "linux", "cpu": "13th Gen Intel(R) Core(TM) i9-13980HX", "ram_gib": 30.96,
|
|
201
224
|
"gpu": "NVIDIA GeForce RTX 4080 Laptop GPU", "vram_gib": 11.99, "unified": false,
|
|
@@ -209,20 +232,22 @@ existing fields keep their meaning until `schema` changes.
|
|
|
209
232
|
"context": 32768,
|
|
210
233
|
"num_batch": null,
|
|
211
234
|
"think": true,
|
|
212
|
-
"load_seconds":
|
|
213
|
-
"prompt_tps":
|
|
214
|
-
"memory_gb":
|
|
215
|
-
"gpu_percent":
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
235
|
+
"load_seconds": 17.8,
|
|
236
|
+
"prompt_tps": 904.6,
|
|
237
|
+
"memory_gb": 10.4,
|
|
238
|
+
"gpu_percent": 98,
|
|
239
|
+
"attempts": 3,
|
|
240
|
+
"passed": 24,
|
|
241
|
+
"total": 24,
|
|
242
|
+
"seconds": 756.2,
|
|
243
|
+
"generation_tps": 72.2,
|
|
244
|
+
"tool_errors": 2,
|
|
245
|
+
"summary": {"pass_at_1": 1.0, "pass^3": 1.0, "runs": [1.0, 1.0, 1.0], "spread": 0.0},
|
|
246
|
+
"usage": {"requests": 184, "prompt_tokens": 1058154, "prompt_ns": 199916607993,
|
|
247
|
+
"output_tokens": 38683, "output_ns": 535438114998},
|
|
223
248
|
"tasks": [
|
|
224
|
-
{"id": "fix-bug", "passed": true, "seconds": 21.
|
|
225
|
-
"steps": 5, "tool_errors": 0, "error": null},
|
|
249
|
+
{"id": "fix-bug", "passed": true, "seconds": 21.5, "detail": "the tests pass",
|
|
250
|
+
"steps": 5, "tool_errors": 0, "error": null, "attempt": 1},
|
|
226
251
|
…
|
|
227
252
|
],
|
|
228
253
|
"error": null,
|
|
@@ -241,6 +266,9 @@ existing fields keep their meaning until `schema` changes.
|
|
|
241
266
|
| `runs[].generation_tps` | Output tokens per second across the tasks; `null` if Ollama reported no timings |
|
|
242
267
|
| `runs[].prompt_tps` | Prompt tokens per second for a fresh 4,000-token prompt (the faster of two readings); `null` if it couldn't be measured |
|
|
243
268
|
| `runs[].usage` | Totals over the tasks as Ollama reports them. `prompt_tokens` includes tokens served from the prompt cache |
|
|
269
|
+
| `runs[].attempts` | Attempts at each task (`--attempts`) |
|
|
270
|
+
| `runs[].summary` | `pass_at_1`, `pass^3` (with the number of attempts), `runs` (each attempt's pass rate) and `spread` (the best minus the worst), counted as in the [public benchmarks](public-benchmarks.md); `null` where there's nothing to count |
|
|
271
|
+
| `runs[].tasks[]` | One entry per attempt at a task; `attempt` says which (1, 2, 3) |
|
|
244
272
|
| `runs[].tasks[].steps` | Model responses in the task |
|
|
245
273
|
| `runs[].tasks[].error` | Why the task stopped early (`timed out after 300s`, an Ollama error), otherwise `null` |
|
|
246
274
|
| `runs[].error` | Why the model didn't run at all (for example, not installed), otherwise `null` |
|
|
@@ -97,6 +97,40 @@ Everything is saved in `~/.local/state/lcode/bench/<slice>-<time>/`:
|
|
|
97
97
|
- Harbor's own results: each attempt's log, the task's test output, and lcode's trace and session.
|
|
98
98
|
`uvx --from harbor harbor view <folder>` browses them.
|
|
99
99
|
|
|
100
|
+
## Other agents on the same model
|
|
101
|
+
|
|
102
|
+
`--agent` runs Claude Code, OpenCode or Codex on the same tasks, with the same model, context
|
|
103
|
+
window and time limits, so you can compare them with lcode:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
lcode bench --harbor dev qwen3.6-35b --context 64k # lcode
|
|
107
|
+
lcode bench --harbor dev qwen3.6-35b --context 64k --agent claude-code
|
|
108
|
+
lcode bench --harbor dev qwen3.6-35b --context 64k --agent opencode
|
|
109
|
+
lcode bench --harbor dev qwen3.6-35b --context 64k --agent codex
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Harbor installs the agent in each task's container, with approvals off. lcode sets the agent up the
|
|
113
|
+
way `ollama launch` does, with the Ollama on your machine:
|
|
114
|
+
|
|
115
|
+
- **Claude Code** uses Ollama's Anthropic-compatible API, with the model for every tier (subagents
|
|
116
|
+
too) and `ollama launch claude`'s settings: no telemetry, error reports or feedback prompts. Like
|
|
117
|
+
`ollama launch claude`, it doesn't tell Claude Code the context window.
|
|
118
|
+
- **OpenCode** uses an Ollama provider on Ollama's OpenAI-compatible API. The model is marked as a
|
|
119
|
+
reasoning model, with the limits of its context window.
|
|
120
|
+
- **Codex** uses Ollama's Responses API and `ollama launch codex`'s model catalog. That catalog gives
|
|
121
|
+
local models no base instructions, so Codex runs without its own system prompt, as it does with
|
|
122
|
+
`ollama launch codex`.
|
|
123
|
+
|
|
124
|
+
These agents' APIs can't set the context window per request, and Ollama's default is small (4K on
|
|
125
|
+
GPUs under 24 GB), so lcode makes a copy of the model with the context set:
|
|
126
|
+
`lcode-qwen3.6-35b-64k` for 64K. It uses the model's files, so nothing is downloaded, and
|
|
127
|
+
`ollama rm lcode-qwen3.6-35b-64k` removes it. Ollama recommends at least 64K for these agents.
|
|
128
|
+
|
|
129
|
+
The time per task leaves out installing the agent, which Harbor does in every task's container: up to
|
|
130
|
+
three minutes for Claude Code, so its runs take longer overall. The results go to
|
|
131
|
+
`~/.local/state/lcode/bench/<slice>-<agent>-<time>/`, and `lcode-bench.json` adds the agent and its
|
|
132
|
+
version.
|
|
133
|
+
|
|
100
134
|
## With Harbor directly
|
|
101
135
|
|
|
102
136
|
`lcode.harbor:Lcode` is an ordinary Harbor agent, so every Harbor dataset and option works:
|
|
@@ -66,7 +66,7 @@ whether it is.
|
|
|
66
66
|
|
|
67
67
|
## Measured
|
|
68
68
|
|
|
69
|
-
`lcode bench qwen3.6-35b --tasks find-code,find-concept --
|
|
69
|
+
`lcode bench qwen3.6-35b --tasks find-code,find-concept --attempts 3` on a 12 GB laptop. `find-concept`
|
|
70
70
|
asks which function computes the pause before a failed upload is sent again, in a 40-file backend
|
|
71
71
|
full of look-alikes (retry policies, job requeue delays, log backoff); the right function's name and
|
|
72
72
|
docstring use none of the question's words.
|
|
@@ -11,6 +11,7 @@ lcode media [install MODEL] # image and video models: what fits here, what's in
|
|
|
11
11
|
lcode config [set|unset] # show or change settings
|
|
12
12
|
lcode bench [models] # score models on small coding tasks on this machine
|
|
13
13
|
lcode bench --harbor dev # public benchmarks: Terminal-Bench 2.0 and SWE-bench Verified
|
|
14
|
+
lcode bench --harbor dev --agent codex # the same with another agent on your model, to compare
|
|
14
15
|
lcode trace [action] [N] # past requests: show one step by step, export or replay it (see Run traces)
|
|
15
16
|
lcode mcp [catalog|add|list] # connect MCP servers: Jira, GitHub, AWS, databases… (see MCP servers)
|
|
16
17
|
lcode acp # run inside an editor over the Agent Client Protocol (see Editors)
|
|
@@ -19,6 +19,7 @@ import subprocess
|
|
|
19
19
|
import sys
|
|
20
20
|
import tempfile
|
|
21
21
|
import time
|
|
22
|
+
from collections import Counter
|
|
22
23
|
from collections.abc import Callable, Iterator
|
|
23
24
|
from contextlib import contextmanager
|
|
24
25
|
from dataclasses import asdict, dataclass, field
|
|
@@ -38,6 +39,7 @@ from lcode.ollama import Ollama, OllamaError
|
|
|
38
39
|
SCHEMA_VERSION = 1
|
|
39
40
|
DEFAULT_CONTEXT = 32768 # the same everywhere, so results compare across machines
|
|
40
41
|
DEFAULT_TIMEOUT = 300 # seconds per task
|
|
42
|
+
DEFAULT_ATTEMPTS = 3 # each task's attempts: one run is within the noise between runs
|
|
41
43
|
CHECK_TIMEOUT = 60
|
|
42
44
|
PROBE_WORDS = 3000 # about 4,000 tokens
|
|
43
45
|
PROBE_TEXT = (
|
|
@@ -792,6 +794,46 @@ class TaskResult:
|
|
|
792
794
|
errors_by_tool: dict[str, int] = field(default_factory=dict) # which tools failed, "malformed" for unreadable calls
|
|
793
795
|
first_passed: bool | None = None # with --retry: whether the first try passed (None: no retry was needed)
|
|
794
796
|
escalations: int = 0 # times the stronger model was asked (--escalate)
|
|
797
|
+
attempt: int = 1 # which of the task's attempts this was (--attempts)
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
@dataclass
|
|
801
|
+
class PassRates:
|
|
802
|
+
"""How often the tasks passed, as `lcode bench --harbor` counts it (lcode.harbor_bench.summarize)."""
|
|
803
|
+
|
|
804
|
+
tries: int # k: each task's tries, its attempts (times the rounds of a --session)
|
|
805
|
+
pass_at_1: float | None # the share of tries that passed, averaged over the tasks
|
|
806
|
+
pass_all: float | None # pass^k: the share of tasks that passed every try (of those with all k)
|
|
807
|
+
attempts: list[tuple[int, int]] # (passed, tasks run) in each attempt, in order
|
|
808
|
+
|
|
809
|
+
@property
|
|
810
|
+
def runs(self) -> list[float]:
|
|
811
|
+
"""The pass rate of each attempt that ran every task."""
|
|
812
|
+
full = max((ran for _, ran in self.attempts), default=0)
|
|
813
|
+
return [passed / ran for passed, ran in self.attempts if ran == full and ran]
|
|
814
|
+
|
|
815
|
+
@property
|
|
816
|
+
def spread(self) -> float | None:
|
|
817
|
+
runs = self.runs
|
|
818
|
+
return max(runs) - min(runs) if len(runs) > 1 else None
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
def pass_rates(results: list[TaskResult], attempts: int) -> PassRates:
|
|
822
|
+
tries: dict[str, list[bool]] = {}
|
|
823
|
+
for result in results:
|
|
824
|
+
tries.setdefault(result.id, []).append(result.passed)
|
|
825
|
+
per_attempt = Counter((result.id, result.attempt) for result in results)
|
|
826
|
+
k = max(1, attempts) * max(per_attempt.values(), default=1)
|
|
827
|
+
full = [passed for passed in tries.values() if len(passed) >= k]
|
|
828
|
+
by_attempt: dict[int, list[bool]] = {}
|
|
829
|
+
for result in results:
|
|
830
|
+
by_attempt.setdefault(result.attempt, []).append(result.passed)
|
|
831
|
+
return PassRates(
|
|
832
|
+
tries=k,
|
|
833
|
+
pass_at_1=statistics.fmean(statistics.fmean(passed) for passed in tries.values()) if tries else None,
|
|
834
|
+
pass_all=statistics.fmean(all(passed[:k]) for passed in full) if full else None,
|
|
835
|
+
attempts=[(sum(passed), len(passed)) for _, passed in sorted(by_attempt.items())],
|
|
836
|
+
)
|
|
795
837
|
|
|
796
838
|
|
|
797
839
|
@dataclass
|
|
@@ -812,6 +854,10 @@ class ModelRun:
|
|
|
812
854
|
session: bool = False # all tasks in one conversation (--session)
|
|
813
855
|
pruned: int = 0 # times old tool output was removed to make room
|
|
814
856
|
compacted: int = 0 # times the conversation was summarized
|
|
857
|
+
attempts: int = 1 # each task's attempts, each in a new folder and conversation (--attempts)
|
|
858
|
+
|
|
859
|
+
def rates(self) -> PassRates:
|
|
860
|
+
return pass_rates(self.tasks, self.attempts)
|
|
815
861
|
|
|
816
862
|
@property
|
|
817
863
|
def passed(self) -> int:
|
|
@@ -832,12 +878,19 @@ class ModelRun:
|
|
|
832
878
|
|
|
833
879
|
def to_json(self) -> dict:
|
|
834
880
|
data = asdict(self)
|
|
881
|
+
rates = self.rates()
|
|
835
882
|
data.update(
|
|
836
883
|
passed=self.passed,
|
|
837
884
|
total=len(self.tasks),
|
|
838
885
|
seconds=round(self.seconds, 1),
|
|
839
886
|
generation_tps=self.generation_tps,
|
|
840
887
|
tool_errors=self.tool_errors,
|
|
888
|
+
summary={
|
|
889
|
+
"pass_at_1": rates.pass_at_1,
|
|
890
|
+
f"pass^{rates.tries}": rates.pass_all,
|
|
891
|
+
"runs": rates.runs,
|
|
892
|
+
"spread": rates.spread,
|
|
893
|
+
},
|
|
841
894
|
)
|
|
842
895
|
return data
|
|
843
896
|
|
|
@@ -1034,12 +1087,19 @@ def run_model(
|
|
|
1034
1087
|
verbose: bool = False,
|
|
1035
1088
|
session: bool = False,
|
|
1036
1089
|
retry: bool = False,
|
|
1090
|
+
attempts: int = 1,
|
|
1037
1091
|
) -> ModelRun:
|
|
1038
|
-
|
|
1092
|
+
"""Run the tasks `attempts` times: every task once, then every task again, each time in a new folder and
|
|
1093
|
+
conversation (with `session`, each attempt is one conversation for all the tasks)."""
|
|
1094
|
+
attempts = max(1, attempts)
|
|
1095
|
+
run = ModelRun(
|
|
1096
|
+
name, settings.model, settings.context, settings.num_batch, settings.think, session=session, attempts=attempts
|
|
1097
|
+
)
|
|
1039
1098
|
shared: Agent | None = None # with --session, one conversation for all tasks
|
|
1040
1099
|
console.print(
|
|
1041
1100
|
f"\n[bold]{escape(settings.model)}[/] · {format_tokens(settings.context)} context · "
|
|
1042
1101
|
f"reasoning {'on' if settings.think else 'off'} · {len(tasks)} task{'' if len(tasks) == 1 else 's'}"
|
|
1102
|
+
+ (f" · {attempts} attempts each" if attempts > 1 else "")
|
|
1043
1103
|
)
|
|
1044
1104
|
options = {"num_ctx": settings.context, **({"num_batch": settings.num_batch} if settings.num_batch else {})}
|
|
1045
1105
|
started = time.monotonic()
|
|
@@ -1065,30 +1125,40 @@ def run_model(
|
|
|
1065
1125
|
console.print(f" [dim]Loaded in {run.load_seconds:.0f}s{where}{reads}[/]")
|
|
1066
1126
|
elif reads: # the server loads the model itself
|
|
1067
1127
|
console.print(f" [dim]{reads.removeprefix(' · ').capitalize()}[/]")
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
if
|
|
1071
|
-
|
|
1072
|
-
if shared is not None:
|
|
1073
|
-
shared.
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1128
|
+
pruned = compacted = 0 # in the conversations of the earlier attempts (--session)
|
|
1129
|
+
for attempt in range(1, attempts + 1):
|
|
1130
|
+
if attempts > 1:
|
|
1131
|
+
console.print(f" [dim]Attempt {attempt} of {attempts}[/]")
|
|
1132
|
+
if shared is not None: # with --session, each attempt is a conversation of its own
|
|
1133
|
+
pruned, compacted = pruned + shared.pruned, compacted + shared.compacted
|
|
1134
|
+
shared = None
|
|
1135
|
+
for task in tasks:
|
|
1136
|
+
log = console if verbose else Console(file=io.StringIO(), width=120, force_terminal=False)
|
|
1137
|
+
if session and shared is None:
|
|
1138
|
+
shared = Agent(ollama, settings, Path(tempfile.gettempdir()), console=log)
|
|
1139
|
+
if shared is not None:
|
|
1140
|
+
shared.console = log
|
|
1141
|
+
try:
|
|
1142
|
+
if verbose:
|
|
1143
|
+
console.rule(f"{task.id}: {task.title}")
|
|
1080
1144
|
result = run_task(ollama, settings, task, timeout, log, keep, run.usage, shared, retry)
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1145
|
+
else:
|
|
1146
|
+
with console.status(Elapsed(f" {task.id:<13} {task.title}")):
|
|
1147
|
+
result = run_task(ollama, settings, task, timeout, log, keep, run.usage, shared, retry)
|
|
1148
|
+
except KeyboardInterrupt:
|
|
1149
|
+
console.print(" [yellow]Stopped.[/]")
|
|
1150
|
+
run.interrupted = True
|
|
1151
|
+
break
|
|
1152
|
+
result.attempt = attempt
|
|
1153
|
+
run.tasks.append(result)
|
|
1154
|
+
mark = "[green]✓[/]" if result.passed else "[red]✗[/]"
|
|
1155
|
+
console.print(
|
|
1156
|
+
f" {mark} {task.id:<13} {task.title:<32} {result.seconds:>5.0f}s [dim]{escape(result.detail)}[/]"
|
|
1157
|
+
)
|
|
1158
|
+
if shared is not None:
|
|
1159
|
+
run.pruned, run.compacted = pruned + shared.pruned, compacted + shared.compacted
|
|
1160
|
+
if run.interrupted:
|
|
1084
1161
|
break
|
|
1085
|
-
run.tasks.append(result)
|
|
1086
|
-
mark = "[green]✓[/]" if result.passed else "[red]✗[/]"
|
|
1087
|
-
console.print(
|
|
1088
|
-
f" {mark} {task.id:<13} {task.title:<32} {result.seconds:>5.0f}s [dim]{escape(result.detail)}[/]"
|
|
1089
|
-
)
|
|
1090
|
-
if shared is not None:
|
|
1091
|
-
run.pruned, run.compacted = shared.pruned, shared.compacted
|
|
1092
1162
|
if run.memory_gb is None:
|
|
1093
1163
|
run.memory_gb, run.gpu_percent = memory_use(ollama, settings.model)
|
|
1094
1164
|
# lcode lowers the batch size or context if the GPU runs out of memory; report what was used.
|
|
@@ -1103,21 +1173,39 @@ def duration(seconds: float) -> str:
|
|
|
1103
1173
|
return f"{int(seconds // 60)}m {seconds % 60:02.0f}s" if seconds >= 60 else f"{seconds:.0f}s"
|
|
1104
1174
|
|
|
1105
1175
|
|
|
1176
|
+
def percent(share: float | None) -> str:
|
|
1177
|
+
return "–" if share is None else f"{share * 100:.0f}%"
|
|
1178
|
+
|
|
1179
|
+
|
|
1106
1180
|
def summary_rows(runs: list[ModelRun], tasks: list[Task]) -> list[tuple[str, list[str]]]:
|
|
1107
1181
|
rows = []
|
|
1108
|
-
for task in {t.id: t for t in tasks}.values(): #
|
|
1182
|
+
for task in {t.id: t for t in tasks}.values(): # a task that ran several times: one row, a mark each
|
|
1109
1183
|
cells = []
|
|
1110
1184
|
for run in runs:
|
|
1111
1185
|
results = [t for t in run.tasks if t.id == task.id]
|
|
1112
1186
|
marks = "".join("✓" if r.passed else "✗" for r in results)
|
|
1113
|
-
|
|
1187
|
+
each = sum(r.seconds for r in results) / len(results) if results else 0.0 # one try's time, on average
|
|
1188
|
+
cells.append(f"{marks} {duration(each)}" if results else "")
|
|
1114
1189
|
rows.append((f"{task.id}: {task.title}", cells))
|
|
1115
1190
|
|
|
1116
1191
|
def cell(run: ModelRun, value: str) -> str:
|
|
1117
1192
|
return "—" if run.error else value
|
|
1118
1193
|
|
|
1194
|
+
rows.append(
|
|
1195
|
+
("Passed", [cell(r, f"{r.passed}/{len(r.tasks)}" + (" (stopped)" if r.interrupted else "")) for r in runs])
|
|
1196
|
+
)
|
|
1197
|
+
rates = [(run, run.rates()) for run in runs]
|
|
1198
|
+
tries = max((rate.tries for _, rate in rates), default=1)
|
|
1199
|
+
if tries > 1:
|
|
1200
|
+
rows += [
|
|
1201
|
+
("pass@1", [cell(run, percent(rate.pass_at_1)) for run, rate in rates]),
|
|
1202
|
+
(f"pass^{tries}", [cell(run, percent(rate.pass_all)) for run, rate in rates]),
|
|
1203
|
+
]
|
|
1204
|
+
if any(len(rate.attempts) > 1 for _, rate in rates):
|
|
1205
|
+
rows.append(
|
|
1206
|
+
("Each attempt", [cell(run, ", ".join(f"{p}/{n}" for p, n in rate.attempts)) for run, rate in rates])
|
|
1207
|
+
)
|
|
1119
1208
|
rows += [
|
|
1120
|
-
("Passed", [cell(r, f"{r.passed}/{len(r.tasks)}" + (" (stopped)" if r.interrupted else "")) for r in runs]),
|
|
1121
1209
|
("Time", [cell(r, duration(r.seconds)) for r in runs]),
|
|
1122
1210
|
("Generation", [cell(r, f"{r.generation_tps:.1f} tok/s" if r.generation_tps else "?") for r in runs]),
|
|
1123
1211
|
("Prompt reading", [cell(r, f"{r.prompt_tps:,.0f} tok/s" if r.prompt_tps else "?") for r in runs]),
|
|
@@ -597,18 +597,27 @@ def cmd_bench(args) -> None:
|
|
|
597
597
|
if args.harbor:
|
|
598
598
|
from lcode import harbor_bench
|
|
599
599
|
|
|
600
|
+
if args.attempts is None:
|
|
601
|
+
args.attempts = harbor_bench.ATTEMPTS
|
|
600
602
|
sys.exit(harbor_bench.command(args, console))
|
|
601
603
|
if args.list:
|
|
602
604
|
bench.print_tasks(console)
|
|
603
605
|
return
|
|
606
|
+
rounds = max(1, args.rounds)
|
|
604
607
|
try:
|
|
605
608
|
cfg = config.load()
|
|
606
609
|
context = parse_context(args.context) if args.context else bench.DEFAULT_CONTEXT
|
|
607
|
-
tasks = bench.select_tasks(args.tasks) *
|
|
610
|
+
tasks = bench.select_tasks(args.tasks) * (rounds if args.session else 1)
|
|
608
611
|
except (ConfigError, ValueError) as e:
|
|
609
612
|
fail(str(e))
|
|
610
613
|
if args.timeout <= 0:
|
|
611
614
|
fail("--timeout must be a positive number of seconds")
|
|
615
|
+
if args.attempts is not None and args.attempts < 1:
|
|
616
|
+
fail("--attempts must be at least 1")
|
|
617
|
+
if args.session: # an attempt is one long conversation
|
|
618
|
+
attempts = args.attempts or 1
|
|
619
|
+
else: # --rounds is what --attempts was called before 0.57
|
|
620
|
+
attempts = args.attempts or (rounds if rounds > 1 else bench.DEFAULT_ATTEMPTS)
|
|
612
621
|
ollama = connect(cfg)
|
|
613
622
|
hw = detect()
|
|
614
623
|
version = check_ollama(ollama, hw)
|
|
@@ -663,8 +672,9 @@ def cmd_bench(args) -> None:
|
|
|
663
672
|
embed_model=cfg["embed_model"] if args.code_search else "off",
|
|
664
673
|
)
|
|
665
674
|
run = bench.run_model(
|
|
666
|
-
ollama, name, settings, tasks, console, args.timeout, args.keep, args.verbose, args.session, args.retry
|
|
667
|
-
|
|
675
|
+
ollama, name, settings, tasks, console, args.timeout, args.keep, args.verbose, args.session, args.retry,
|
|
676
|
+
attempts,
|
|
677
|
+
) # fmt: skip
|
|
668
678
|
runs.append(run)
|
|
669
679
|
if run.interrupted:
|
|
670
680
|
break
|
|
@@ -951,7 +961,18 @@ def build_subparsers() -> dict[str, argparse.ArgumentParser]:
|
|
|
951
961
|
choices=["dev", "held-out"],
|
|
952
962
|
help="public benchmarks instead: a slice of Terminal-Bench 2.0 and SWE-bench Verified, run with Harbor",
|
|
953
963
|
)
|
|
954
|
-
p.add_argument(
|
|
964
|
+
p.add_argument(
|
|
965
|
+
"--attempts",
|
|
966
|
+
type=int,
|
|
967
|
+
help="attempts per task, each in a new folder and conversation (default: 3, for pass@1 and pass^3; "
|
|
968
|
+
"with --session: 1)",
|
|
969
|
+
)
|
|
970
|
+
p.add_argument(
|
|
971
|
+
"--agent",
|
|
972
|
+
choices=["lcode", "claude-code", "opencode", "codex"],
|
|
973
|
+
default="lcode",
|
|
974
|
+
help="with --harbor: the agent to run, for a comparison on the same model (default: lcode)",
|
|
975
|
+
)
|
|
955
976
|
p.add_argument(
|
|
956
977
|
"--docker-bridge",
|
|
957
978
|
action="store_true",
|
|
@@ -963,7 +984,11 @@ def build_subparsers() -> dict[str, argparse.ArgumentParser]:
|
|
|
963
984
|
help="run all tasks in one conversation, to test a long session and its context management",
|
|
964
985
|
)
|
|
965
986
|
p.add_argument(
|
|
966
|
-
"--rounds",
|
|
987
|
+
"--rounds",
|
|
988
|
+
type=int,
|
|
989
|
+
default=1,
|
|
990
|
+
help="with --session: the tasks this many times in the conversation, for a longer session "
|
|
991
|
+
"(without --session: the same as --attempts)",
|
|
967
992
|
)
|
|
968
993
|
p.add_argument("--repo-map", action="store_true", help="give the model the repository map (off by default)")
|
|
969
994
|
p.add_argument("--code-search", action="store_true", help="index each task's folder and offer semantic code search")
|