lcode-cli 0.60.0__tar.gz → 0.62.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.60.0 → lcode_cli-0.62.0}/.github/workflows/ci.yml +3 -3
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/workflows/docs.yml +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/workflows/release.yml +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/CHANGELOG.md +89 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/PKG-INFO +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/automation.md +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/how-it-works.md +14 -7
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/installation.md +1 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/models.md +19 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/public-benchmarks.md +11 -5
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/quickstart.md +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/traces.md +3 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/troubleshooting.md +33 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/usage.md +42 -6
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent.py +49 -12
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_base.py +2 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_checks.py +59 -6
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_model.py +28 -3
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/api.py +6 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/catalog.py +10 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/checkpoints.py +12 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/checks.py +151 -3
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/cli.py +4 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/doctor.py +6 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/harbor_bench.py +16 -5
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/hardware.py +31 -8
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/jobs.py +70 -25
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repl.py +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/replay.py +1 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/residency.py +135 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tool_schemas.py +8 -1
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tools_base.py +1 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tools_edit.py +1 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tools_shell.py +49 -19
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/traces.py +2 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/conftest.py +1 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_catalog.py +11 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_checkpoints.py +18 -0
- lcode_cli-0.62.0/tests/test_checks.py +498 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_harbor_bench.py +13 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_jobs.py +145 -2
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_look.py +4 -2
- lcode_cli-0.62.0/tests/test_residency.py +503 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_sandbox.py +12 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_stuck.py +179 -3
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_traces.py +1 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/uv.lock +27 -27
- lcode_cli-0.60.0/tests/test_checks.py +0 -222
- lcode_cli-0.60.0/tests/test_residency.py +0 -164
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.editorconfig +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.gitignore +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/AGENTS.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/CONTRIBUTING.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/LICENSE +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/README.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/SECURITY.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/action.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/agents.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/assets/long-clip-tulip.jpg +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/bench.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/changelog.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/commands.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/configuration.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/contributing.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/editors.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/git.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/hooks.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/index.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/lsp.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/mcp.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/memory.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/modes.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/search.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/docs/servers.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/examples/README.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/install.sh +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/mkdocs.yml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/overrides/main.html +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/pyproject.toml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_context.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_prompt.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/agent_sessions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/assistant.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_budgets.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_checks.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_dedupe.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_flaky.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_logsum.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_quick.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_quotes.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/cli_args.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/clips.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/config.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/film.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/harbor.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/manual.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/media.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/media.toml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/media_catalog.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/media_cloud.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/media_video.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/memory.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/ollama.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/qt_hook.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repl_history.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repl_media.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repl_models.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repl_sessions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repoid.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/screenshots.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/screenshots_web.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/sessions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/subagents.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tool_helpers.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/trace_export.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/trace_view.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/update.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/smooth-film.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/wan21-vace.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_action.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_api.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_assistant.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_bench.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_bench_work.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_config.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_context.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_conversations.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_film.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_gpu_handover.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_long_clips.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_manual.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_media_catalog.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_media_cloud.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_memory.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_review.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_screenshots.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_update.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_video.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_web.py +0 -0
- {lcode_cli-0.60.0 → lcode_cli-0.62.0}/tests/test_xai.py +0 -0
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v7
|
|
21
|
-
- uses: astral-sh/setup-uv@v10.3.
|
|
21
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
22
22
|
- run: uv run --group dev ruff check .
|
|
23
23
|
- run: uv run --group dev ruff format --check .
|
|
24
24
|
- name: Type check
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
37
37
|
steps:
|
|
38
38
|
- uses: actions/checkout@v7
|
|
39
|
-
- uses: astral-sh/setup-uv@v10.3.
|
|
39
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
40
40
|
with:
|
|
41
41
|
python-version: ${{ matrix.python }}
|
|
42
42
|
- run: uv run --group dev pytest
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
runs-on: ubuntu-latest
|
|
47
47
|
steps:
|
|
48
48
|
- uses: actions/checkout@v7
|
|
49
|
-
- uses: astral-sh/setup-uv@v10.3.
|
|
49
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
50
50
|
- run: uv build
|
|
51
51
|
- name: Check the wheel ships the model catalog
|
|
52
52
|
run: unzip -l dist/*.whl | grep -q "lcode/models.toml"
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v7
|
|
22
|
-
- uses: astral-sh/setup-uv@v10.3.
|
|
22
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
23
23
|
- run: uv run --group docs mkdocs build --strict
|
|
24
24
|
- name: Publish the installer next to the site
|
|
25
25
|
run: cp install.sh site/install.sh
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
id-token: write # to prove to PyPI that the upload comes from this workflow
|
|
23
23
|
steps:
|
|
24
24
|
- uses: actions/checkout@v7
|
|
25
|
-
- uses: astral-sh/setup-uv@v10.3.
|
|
25
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
26
26
|
- name: Check the release tag matches the package version
|
|
27
27
|
run: |
|
|
28
28
|
version=$(sed -n 's/^__version__ = "\(.*\)"/\1/p' src/lcode/__init__.py)
|
|
@@ -6,6 +6,92 @@ All notable changes to lcode are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.62.0] - 2026-11-06
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **A test run that stops before its first test no longer counts as a failure of the model's change.**
|
|
14
|
+
pytest stopping on an error while collecting, or unittest ending in a traceback instead of `Ran N
|
|
15
|
+
tests`, says nothing about the change, yet the model was told that the project's checks fail and to fix
|
|
16
|
+
what its changes broke. On the dev slice at 32K that was 19 of the 34 automatic checks (Django's
|
|
17
|
+
`tests/` can't be discovered by unittest; two other projects stop on modules and data that aren't there).
|
|
18
|
+
The model spent 26 minutes after those notes, ran `git stash` in 5 attempts to see for itself, and in 2
|
|
19
|
+
attempts kept editing: one downloaded a 244 MB database and changed a test file the request had excluded.
|
|
20
|
+
Now lcode tells you what stopped the run, and the model's answer stands. An error that names a file the
|
|
21
|
+
request changed still goes to the model, shell commands included, and so do tests that ran and failed.
|
|
22
|
+
`checks` in `lcode -p --output json`, the task sheet and `/status` now say these checks didn't run, also
|
|
23
|
+
for a project with no tests or no test runner. The notes weren't all loss: in that same attempt, 1 of 47
|
|
24
|
+
like it over four nights, the extra work also fixed a test the model had called pre-existing.
|
|
25
|
+
- **Checks that don't finish in 10 minutes are no longer called a failure.** The model is told that they
|
|
26
|
+
don't say whether its change works, instead of to fix what it broke.
|
|
27
|
+
- **A SPARQL query it never ran** now counts like code it never ran (#242): on the dev slice, 2 of 3
|
|
28
|
+
`sparql-university` attempts on 0.61.0 wrote `solution.sparql` and said they were done without running it.
|
|
29
|
+
lcode sends the model back once, and the note names `rdflib`. SQL files stay out, because one can be a
|
|
30
|
+
migration, and asking to run that could change a real database.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **The automatic checks run in the project's root.** They ran wherever the model's last `cd` left its
|
|
35
|
+
shell, though their command is written for the root: from `tests/`, `python -m unittest discover -s tests`
|
|
36
|
+
doesn't start and `.venv/bin/python` isn't there. 3 of the 34 checks on the dev slice ran from `tests/`. A
|
|
37
|
+
command from your own `checks` setting runs in the folder you started lcode in.
|
|
38
|
+
- **A failing test run piped into `tail` counted as passing.** When the model ran the project's checks
|
|
39
|
+
itself as `pytest -q | tail`, lcode read `tail`'s exit code of 0, took the checks as passed and didn't
|
|
40
|
+
run them, and `lcode -p --output json` reported them as passed. A run whose exit code isn't the check's
|
|
41
|
+
now counts only if its output shows a test summary with nothing failing. Otherwise lcode runs the
|
|
42
|
+
checks itself.
|
|
43
|
+
- **`lcode bench --compare`** took a task with one attempt as certain, so its noise came out too small,
|
|
44
|
+
and it said nothing when a run had far fewer attempts: a real run lost 18 of its 72 attempts and
|
|
45
|
+
compared as usual. A single attempt's pass rate now comes from both runs, and `--compare` warns when
|
|
46
|
+
the two runs didn't have the same number of attempts.
|
|
47
|
+
|
|
48
|
+
## [0.61.0] - 2026-11-05
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- **Code it never ran** (#242). When a request wrote a new code file and no command since its last
|
|
53
|
+
change ran it, lcode sends the model back once, to run it or to say plainly that it's untested. A
|
|
54
|
+
syntax check, a program that isn't installed (`python3: command not found`) or a command that only
|
|
55
|
+
reads doesn't count. With `uv` installed, the note says how to run Python code in a throwaway
|
|
56
|
+
environment. On the dev slice at 32K, 5 of 6 `torch-tensor-parallelism` attempts wrote the module,
|
|
57
|
+
found no `python3` or checked only its syntax, and said they were done: each had a runtime error
|
|
58
|
+
that one run would have shown. A project with checks of its own gets those instead.
|
|
59
|
+
- **lcode says when the machine is short of RAM for the model** (#246). A model that ran well at first
|
|
60
|
+
could fall to about a third of its speed, and nothing said why: the part of the model outside GPU
|
|
61
|
+
memory and Ollama's prompt cache, which grows to 8 GB in a long session, both have to fit in RAM, and
|
|
62
|
+
lcode only compared the model with the machine's total. On Linux, with Ollama on the same machine,
|
|
63
|
+
`lcode doctor` has a `RAM` line that compares them with what's available now and, when they don't
|
|
64
|
+
fit, says what to do: close programs, use a smaller context, or pick a smaller model. `lcode setup`
|
|
65
|
+
gives the same warning on its recommendation, and a session says it once when replies fall below half
|
|
66
|
+
of their earlier speed and RAM is short.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- **After a reply that goes nowhere** (it went round in circles, filled the context before it said
|
|
71
|
+
anything, or was empty), the model's next reply runs with thinking off (with Ollama), so it acts
|
|
72
|
+
instead of starting the same deliberation over. lcode now stops the request when two replies in a row go
|
|
73
|
+
nowhere, or four in one request, instead of the second one anywhere in it. On the dev slice at 32K,
|
|
74
|
+
16 of 150 attempts were stopped this way, and all of them failed: 9 because the second chance went
|
|
75
|
+
round in circles again (all 6 `polyglot-rust-c` attempts among them), and 7 that had recovered and
|
|
76
|
+
worked on until another reply went nowhere much later (#241).
|
|
77
|
+
|
|
78
|
+
### Fixed
|
|
79
|
+
|
|
80
|
+
- **A service you ask lcode to leave running stays up after lcode exits** (#240). lcode stopped every
|
|
81
|
+
background job when the session ended, and there was no way to keep one: on the dev slice, 5 of 6
|
|
82
|
+
`pypi-server` attempts failed because the server the task asked for was gone when its tests ran. The
|
|
83
|
+
model now starts such a service with `keep=true`. It writes its output to a log in
|
|
84
|
+
`~/.local/state/lcode/jobs/` instead of to lcode, so it keeps running, and lcode says how to stop it.
|
|
85
|
+
It always asks first, and the question says that the command stays running.
|
|
86
|
+
- **A background command written with `&`** (`server &`) looked as if it had ended right away, while the
|
|
87
|
+
program kept running where lcode couldn't see or stop it, and held its port. The `&` is now ignored, and
|
|
88
|
+
the program is a background job like any other. What a background command otherwise leaves behind
|
|
89
|
+
when it ends at once (`server & echo started`) is stopped, and the model hears why (#240).
|
|
90
|
+
- **The automatic checks failed on any project whose `tests/` folder has no `__init__.py`**, with
|
|
91
|
+
`Start directory is not importable`, even when every test passed. The model was then asked to fix
|
|
92
|
+
that: in two real runs, one added a `tests/__init__.py` nobody asked for, and the other blamed the project.
|
|
93
|
+
lcode now leaves out `-t .` unless `tests/` is a package.
|
|
94
|
+
|
|
9
95
|
## [0.60.0] - 2026-11-04
|
|
10
96
|
|
|
11
97
|
### Changed
|
|
@@ -1281,7 +1367,9 @@ First public release.
|
|
|
1281
1367
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
1282
1368
|
- One-line installer for Linux and macOS.
|
|
1283
1369
|
|
|
1284
|
-
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.
|
|
1370
|
+
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.62.0...HEAD
|
|
1371
|
+
[0.62.0]: https://github.com/nasser1941/lcode/compare/v0.61.0...v0.62.0
|
|
1372
|
+
[0.61.0]: https://github.com/nasser1941/lcode/compare/v0.60.0...v0.61.0
|
|
1285
1373
|
[0.60.0]: https://github.com/nasser1941/lcode/compare/v0.59.0...v0.60.0
|
|
1286
1374
|
[0.59.0]: https://github.com/nasser1941/lcode/compare/v0.58.0...v0.59.0
|
|
1287
1375
|
[0.58.0]: https://github.com/nasser1941/lcode/compare/v0.57.0...v0.58.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.62.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/
|
|
@@ -56,7 +56,7 @@ went: `0` success, `1` an error, `3` stopped at `--max-steps`, `4` stopped becau
|
|
|
56
56
|
| `files_changed` | Files the request added (`A`), modified (`M`) or deleted (`D`), shell commands included |
|
|
57
57
|
| `usage` | Model requests and tokens; `prompt_tokens` includes tokens served from the prompt cache |
|
|
58
58
|
| `review` | What the [review](usage.md#a-review-before-the-answer) sent back to the model (`[]` when it found nothing; `null` when no review ran) |
|
|
59
|
-
| `checks` | The [checks](usage.md#checks-before-done) that ran after the change: `command`, `exit_code` (`null` when they weren't allowed to run) and `by` (`lcode`, or `model` when the model ran them itself) |
|
|
59
|
+
| `checks` | The [checks](usage.md#checks-before-done) that ran after the change: `command`, `exit_code` (`null` when they say nothing about the change: they weren't allowed to run, no test ran, or they didn't finish) and `by` (`lcode`, or `model` when the model ran them itself) |
|
|
60
60
|
| `error` | What went wrong, when `status` is `error` |
|
|
61
61
|
| `session_id` | Continue the conversation later with `lcode --resume <id>` |
|
|
62
62
|
|
|
@@ -86,12 +86,13 @@ aren't tracked.
|
|
|
86
86
|
Small models sometimes think in circles: a few paragraphs, over and over, until the context is full.
|
|
87
87
|
That takes minutes behind the spinner and ends without an answer. lcode watches the thinking as it
|
|
88
88
|
streams, and when its sentences keep repeating, it stops the model, drops that reply and asks for a
|
|
89
|
-
short one: the next tool call, or what's blocking it.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
short one: the next tool call, or what's blocking it. With Ollama, that reply runs with thinking off,
|
|
90
|
+
so the model acts instead of starting the same deliberation over. The dropped reply is saved, and the
|
|
91
|
+
message says where, so you can read what went round in circles. An empty reply, or one that filled the
|
|
92
|
+
context before it said anything, gets the same second chance. When two replies in a row go nowhere, or
|
|
93
|
+
four in one request, lcode stops it (status `loop`), offering the
|
|
94
|
+
[stronger model](usage.md#a-stronger-model-when-stuck) first when one is set. An answer the context
|
|
95
|
+
cut off midway is kept, with a warning to `/compact` or use a larger `/context`.
|
|
95
96
|
|
|
96
97
|
## Subagents
|
|
97
98
|
|
|
@@ -157,6 +158,12 @@ Nemotron (Mamba layers) keep a cache in only a few layers, which is why they can
|
|
|
157
158
|
tokens on consumer hardware. The budget is GPU memory plus spare RAM on Linux, and the GPU share
|
|
158
159
|
of unified memory on Apple Silicon. See [Models & context windows](models.md#how-memory-is-estimated).
|
|
159
160
|
|
|
161
|
+
That budget says whether a model loads, not whether it keeps its speed. An MoE model's experts stay mapped
|
|
162
|
+
from its file, and Ollama's server keeps a prompt cache of up to 8 GB in RAM. When they don't fit in the RAM
|
|
163
|
+
that's available, Linux keeps dropping the experts and reading them back from disk, at a third of the speed.
|
|
164
|
+
`lcode doctor` and `lcode setup` compare the two with what's available now, and a session says so when replies
|
|
165
|
+
slow down that far. See [RAM in a long session](models.md#ram-in-a-long-session).
|
|
166
|
+
|
|
160
167
|
Two lessons from tuning the default model on a 12 GB GPU shaped the defaults:
|
|
161
168
|
|
|
162
169
|
- **Vision projectors cost ~1 GB of VRAM** that Ollama under-counts on small GPUs, causing
|
|
@@ -202,7 +209,7 @@ the Ollama server you configure, it only contacts the web when the model searche
|
|
|
202
209
|
| `sandbox.py` | The optional container for shell commands |
|
|
203
210
|
| `checkpoints.py` | Snapshots before the model changes files, for `/undo` and `/rewind` |
|
|
204
211
|
| `catalog.py`, `models.toml` | Model catalog and memory estimates |
|
|
205
|
-
| `hardware.py` | NVIDIA / Apple Silicon detection |
|
|
212
|
+
| `hardware.py` | NVIDIA / Apple Silicon detection, and the RAM available now |
|
|
206
213
|
| `ollama.py` | Ollama HTTP client |
|
|
207
214
|
| `config.py` | Settings file and environment variables |
|
|
208
215
|
| `traces.py`, `trace_view.py`, `trace_export.py` | Recording requests; listing and showing traces; exporting them with secrets masked |
|
|
@@ -121,6 +121,7 @@ lcode doctor
|
|
|
121
121
|
✓ Ollama http://localhost:11434 · version 0.32.15
|
|
122
122
|
✓ Model qwen3.6-35b → lcode-qwen3.6-35b
|
|
123
123
|
✓ Context 256K tokens · ~28 GB needed, ~35 GB available
|
|
124
|
+
✓ RAM ~27 GB available now, ~26 GB needed in a long session: ~16 GB of the model that doesn't fit on the GPU, up to 10 GB for Ollama's server and prompt cache
|
|
124
125
|
✓ ripgrep found
|
|
125
126
|
✓ git found
|
|
126
127
|
```
|
|
@@ -247,6 +247,25 @@ The **memory available** for a model is:
|
|
|
247
247
|
lets the GPU use by default.
|
|
248
248
|
- **Linux with NVIDIA:** GPU memory plus system RAM minus ~8 GB for the OS and your apps.
|
|
249
249
|
|
|
250
|
+
### RAM in a long session
|
|
251
|
+
|
|
252
|
+
The estimate above says whether a model loads. Whether it keeps its speed depends on the RAM that's
|
|
253
|
+
available now, next to your other programs:
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
RAM needed ≈ memory − GPU memory + ~10 GB for Ollama's server and prompt cache
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
- **The part of the model that doesn't fit on the GPU.** A Mixture-of-Experts model's experts stay
|
|
260
|
+
mapped from the model's file, so they have to stay in Linux's page cache. `ollama ps` leaves them out:
|
|
261
|
+
it shows `qwen3.6-35b` at 32K as 10.5 GB, with ~12 GB more in RAM.
|
|
262
|
+
- **Ollama's prompt cache**, which grows to 8 GB in a long session, next to 1–2 GB of the server's own.
|
|
263
|
+
|
|
264
|
+
On a 12 GB GPU, `qwen3.6-35b` needs ~21 GB of RAM at 32K, ~23 GB at 128K and ~26 GB at 256K. On Linux,
|
|
265
|
+
when Ollama runs on the same machine, `lcode doctor` and `lcode setup` compare that with what's available.
|
|
266
|
+
If it's short, replies fall to about a third of their speed after a while: see
|
|
267
|
+
[Troubleshooting](troubleshooting.md#it-starts-fast-then-gets-about-three-times-slower).
|
|
268
|
+
|
|
250
269
|
## Hardware guide
|
|
251
270
|
|
|
252
271
|
What `lcode setup` recommends on common machines: the tested default when it fits, otherwise the
|
|
@@ -17,9 +17,13 @@ whether it passed.
|
|
|
17
17
|
## What you need
|
|
18
18
|
|
|
19
19
|
- **Docker**, running.
|
|
20
|
-
- **uv**: lcode runs Harbor with `uvx`, so there's nothing else to install.
|
|
20
|
+
- **uv**: lcode runs Harbor with `uvx`, so there's nothing else to install. Harbor runs from uv's
|
|
21
|
+
cache, so don't clear it during a run (`uv cache clean`): the attempts still to come can't start.
|
|
21
22
|
- **Disk space** for the tasks' images: about 20 GB for the dev slice. Each SWE-bench task has an
|
|
22
|
-
image of its own, 1–3 GB.
|
|
23
|
+
image of its own, 1–3 GB. Keep about 25 GB free beyond that while it runs: an attempt at
|
|
24
|
+
`torch-tensor-parallelism` takes about 21 GB until it ends, because the model and then the task's
|
|
25
|
+
tests each install torch with its GPU libraries. On a smaller disk, run the other tasks with
|
|
26
|
+
`--tasks` (`lcode bench --harbor dev --list` shows them).
|
|
23
27
|
- **A model server the containers can reach.** lcode in a container finds your machine by itself:
|
|
24
28
|
as `host.docker.internal` with Docker Desktop (macOS, Windows), or as the container's gateway on
|
|
25
29
|
Linux. Ollama has to listen on more than `127.0.0.1` for that:
|
|
@@ -123,9 +127,11 @@ limits, so part of a difference can come from the machine rather than from lcode
|
|
|
123
127
|
|
|
124
128
|
The noise is how far pass@1 moves between runs of the same setup, estimated from how much each
|
|
125
129
|
task's attempts disagree: a task that always passes or always fails adds nothing, one that passes
|
|
126
|
-
half the time the most.
|
|
127
|
-
|
|
128
|
-
with
|
|
130
|
+
half the time the most. One attempt can't disagree with itself, so that task's pass rate comes from
|
|
131
|
+
both runs. A change counts when it's more than twice the standard error of the difference. On the dev
|
|
132
|
+
slice, with three attempts per task, that's about 9 points. `--compare` warns when the two runs didn't
|
|
133
|
+
have the same number of attempts (a container that didn't start, say), and exits with 1 when the second
|
|
134
|
+
result dropped beyond the noise, so a script can stop on it.
|
|
129
135
|
|
|
130
136
|
**The release rule:** a release that changes lcode's prompts, tools or context handling ships only
|
|
131
137
|
if the dev slice doesn't drop beyond the noise against the last baseline, and the comparison goes on
|
|
@@ -22,7 +22,9 @@ lcode trace path # the folder the traces are in
|
|
|
22
22
|
the total time, and the tokens in and out. With Ollama, also how long loading the model and
|
|
23
23
|
reading the prompt took. The server counts a reply's tokens only when the reply ends, so for one
|
|
24
24
|
lcode stopped (it went round in circles, or you interrupted it) the trace has an estimate:
|
|
25
|
-
`estimated_in` and `estimated_out`, shown as "about".
|
|
25
|
+
`estimated_in` and `estimated_out`, shown as "about". A reply asked for without thinking has
|
|
26
|
+
`think: false`: thinking is turned off, or the reply before it
|
|
27
|
+
[went nowhere](how-it-works.md#when-a-reply-goes-nowhere).
|
|
26
28
|
- **Each tool call:** its arguments, the result the model got, and how long it took. A result
|
|
27
29
|
longer than 200,000 characters keeps its start and end. When lcode cut a long output for the
|
|
28
30
|
model, the result says where the full output was saved.
|
|
@@ -88,6 +88,39 @@ need `lcode mcp login <name>`. More in [MCP servers: Troubleshooting](mcp.md#tro
|
|
|
88
88
|
prefer the MoE models in `lcode models` on smaller GPUs.
|
|
89
89
|
- `--no-think` skips reasoning for simple requests.
|
|
90
90
|
|
|
91
|
+
### It starts fast, then gets about three times slower
|
|
92
|
+
|
|
93
|
+
The machine is short of RAM. A model that doesn't fit on the GPU keeps the rest in RAM, and Ollama's
|
|
94
|
+
server keeps a prompt cache there that grows to 8 GB in a long session. When those don't fit next to
|
|
95
|
+
your other programs, Linux drops the model from memory and keeps reading it back from disk.
|
|
96
|
+
|
|
97
|
+
Measured with `qwen3.6-35b` at 32K on an RTX 4080 Laptop GPU (12 GB) with 31 GB of RAM: generation fell
|
|
98
|
+
from about 65 to about 20 tokens/s and prompt reading from about 200 to about 55, with the GPU at 2–14%
|
|
99
|
+
and the disk reading about 1.9 GB/s. A short test right after loading doesn't show it: the slowdown
|
|
100
|
+
starts as the prompt cache fills, within about an hour.
|
|
101
|
+
|
|
102
|
+
`lcode doctor` checks this on Linux, when Ollama runs on the same machine (in Docker too):
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
! RAM ~15 GB available now, ~21 GB needed in a long session: ~11 GB of the model that doesn't
|
|
106
|
+
fit on the GPU, up to 10 GB for Ollama's server and prompt cache
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`lcode setup` gives the same warning, and a session says it once when replies fall below half of their
|
|
110
|
+
earlier speed and RAM is short. `ollama ps` doesn't show any of this: for a Mixture-of-Experts model it
|
|
111
|
+
leaves out the experts mapped from the model's file, ~12 GB for `qwen3.6-35b`.
|
|
112
|
+
|
|
113
|
+
What helps:
|
|
114
|
+
|
|
115
|
+
1. Close other programs before a long session: browsers, IDEs, containers.
|
|
116
|
+
2. Use a smaller context: `/ctx 64k` in a session or `lcode config set context 64k`. This helps most when
|
|
117
|
+
the window is large: going from 256K to 32K saves ~5 GB with `qwen3.6-35b`.
|
|
118
|
+
3. Pick a smaller model that fits on the GPU: `lcode models`.
|
|
119
|
+
4. To empty the prompt cache right away, unload the model: `ollama stop <model>`. The next request
|
|
120
|
+
reloads it, and the cache fills up again over time.
|
|
121
|
+
|
|
122
|
+
On a Mac, `lcode doctor` doesn't check this yet: see [below](#on-a-mac-a-model-that-should-fit-gets-very-slow).
|
|
123
|
+
|
|
91
124
|
### The model prints tool calls as text instead of running them
|
|
92
125
|
|
|
93
126
|
The model doesn't support Ollama's tool calling well. lcode recovers common formats, but results
|
|
@@ -224,9 +224,19 @@ runs the project's checks itself before the answer is final:
|
|
|
224
224
|
- **When they fail,** the model gets the output and keeps working, twice at most. After that its answer
|
|
225
225
|
says what still fails instead of claiming success. A failure that the change didn't cause is
|
|
226
226
|
reported, not chased, and the checks run again only if the model changes something more.
|
|
227
|
-
- **When
|
|
228
|
-
|
|
227
|
+
- **When no test ran,** lcode says so and doesn't send it to the model: no tests were collected, the
|
|
228
|
+
test runner isn't installed, or the run stopped before its first test (pytest on an error while
|
|
229
|
+
collecting, unittest with a traceback instead of `Ran N tests`). A project can be like that before
|
|
230
|
+
anything changes, and then the run says nothing about the change. If the error names a file the
|
|
231
|
+
request changed, shell commands included, it's the model's to fix, and it gets the output like any
|
|
232
|
+
other failure.
|
|
233
|
+
- **When they don't finish** in 10 minutes, lcode stops them and tells the model that they don't say
|
|
234
|
+
whether its change works. A suite that's simply this slow needs a faster command (below).
|
|
229
235
|
- **When the model already ran them** after its last change and they passed, they aren't run again.
|
|
236
|
+
A run piped into another program (`pytest -q | tail`) exits with that program's code, so it counts
|
|
237
|
+
only if its output shows a test summary with nothing failing.
|
|
238
|
+
- **Where they run:** in the project's root, wherever the model's shell went last. A command from your
|
|
239
|
+
own `checks` setting runs in the folder you started lcode in.
|
|
230
240
|
- **Permission:** they run like any other command, so in `ask` mode the first run asks (++a++ allows
|
|
231
241
|
them for the session).
|
|
232
242
|
- **Programs** using `lcode -p --output json` see the runs in the result's `checks`.
|
|
@@ -261,6 +271,18 @@ lcode sends it back once before the answer counts: run it and fix what fails, or
|
|
|
261
271
|
it's untested and why, when running it would install, deploy or delete things. Making it executable
|
|
262
272
|
or reading it doesn't count as running it. `checks = "off"` turns this off too.
|
|
263
273
|
|
|
274
|
+
**Code it never ran.** A model that writes a new module and finds no Python, or checks only its
|
|
275
|
+
syntax, tends to call it done, and the first run shows the error. When a request wrote a new code
|
|
276
|
+
file (Python, JavaScript, TypeScript, Rust, Go, C, Java and other languages that run, or a SPARQL
|
|
277
|
+
query) and no command since its last change ran it, lcode sends it back once: run it (import a module
|
|
278
|
+
and call what it wrote; run a query on its data; start a server in the background and try it) and fix
|
|
279
|
+
what fails, or say plainly that it's
|
|
280
|
+
untested and why. A command counts when it names the file or its module, or runs tests, and its
|
|
281
|
+
program was there: a syntax, lint or type check, `python3: command not found` or a command that
|
|
282
|
+
only reads doesn't count. When `uv` is installed, the note adds that `uv run --with PACKAGE python FILE` runs
|
|
283
|
+
Python code in a throwaway environment. A project with checks of its own gets those instead, and a
|
|
284
|
+
window gets the screenshot check above. `checks = "off"` turns this off too.
|
|
285
|
+
|
|
264
286
|
## A review before the answer
|
|
265
287
|
|
|
266
288
|
Models claim more than they did: half of a two-part request done, "it works now" without having
|
|
@@ -305,8 +327,8 @@ lcode config set escalate_price 3/15 # dollars per million tokens
|
|
|
305
327
|
|
|
306
328
|
**When.** lcode offers it when the [loop breaker](how-it-works.md#when-the-model-repeats-itself)
|
|
307
329
|
would stop the request, when the model's replies [go nowhere](how-it-works.md#when-a-reply-goes-nowhere)
|
|
308
|
-
twice, and when the project's [checks](#checks-before-done)
|
|
309
|
-
fixes, at most once per request. Not for a [site this machine can't reach](how-it-works.md#when-a-site-cant-be-reached):
|
|
330
|
+
twice in a row (or four times in one request), and when the project's [checks](#checks-before-done)
|
|
331
|
+
fail twice in a row after the model's fixes, at most once per request. Not for a [site this machine can't reach](how-it-works.md#when-a-site-cant-be-reached):
|
|
310
332
|
a stronger model can't reach it either. You can also ask at any time: `/escalate`, or
|
|
311
333
|
`/escalate the window still grows` to say what's wrong.
|
|
312
334
|
|
|
@@ -351,11 +373,24 @@ since last time with `bash_output`, and stops it with `bash_stop`.
|
|
|
351
373
|
```
|
|
352
374
|
|
|
353
375
|
- `/jobs` lists the background commands; `/jobs stop 1` stops one.
|
|
354
|
-
- They
|
|
376
|
+
- They stop when the session ends, except **kept** ones. When you ask for a service that stays up
|
|
377
|
+
after lcode is done ("start the docs server and leave it running"), the model adds
|
|
378
|
+
`keep: true`. A kept command writes its output to a log in `~/.local/state/lcode/jobs/`, and at
|
|
379
|
+
the end lcode says what it left running and how to stop it:
|
|
380
|
+
|
|
381
|
+
```text
|
|
382
|
+
Left job 1 running, as asked: mkdocs serve (process group 48211: `kill -- -48211` stops it; its
|
|
383
|
+
output is in ~/.local/state/lcode/jobs/20261103-141502-3fa9c1.log)
|
|
384
|
+
```
|
|
385
|
+
|
|
355
386
|
- Anything else a command starts with `&` is stopped when that command ends. Only background
|
|
356
387
|
commands keep running, so no process outlives the session unnoticed.
|
|
357
388
|
- Background commands ask for permission like any other command, and run in the
|
|
358
|
-
[sandbox](sandbox.md) when it's on.
|
|
389
|
+
[sandbox](sandbox.md) when it's on. A command in the sandbox can't be kept: the sandbox stops
|
|
390
|
+
with lcode.
|
|
391
|
+
- A kept command always asks first, and the question says that it stays running: even a command
|
|
392
|
+
that only reads, or a program you allowed for the session. Only `yolo` mode and an allow rule
|
|
393
|
+
in your settings let it through without asking. Plan mode doesn't run it.
|
|
359
394
|
|
|
360
395
|
## What's happening under the hood
|
|
361
396
|
|
|
@@ -379,6 +414,7 @@ stays loaded:
|
|
|
379
414
|
| The model that looks at images needs the memory | `Loading the vision model … to look at bug.png; qwen3.6-35b makes room and reloads afterwards`, then `◆ qwen3.6-35b was unloaded to make room…`, and the next step says `Reloading qwen3.6-35b into memory (it made room for the vision model …)` |
|
|
380
415
|
| A tool needs the GPU to itself (an MCP server with `free_gpu`) | `◆ Unloaded qwen3.6-35b so the server can use the GPU; it reloads afterwards.` |
|
|
381
416
|
| Ollama ran out of memory | `⚠` what ran out (the prompt batch, or the context next to the model), what lcode retries with, and what it remembers for next time |
|
|
417
|
+
| Replies fell below half of their earlier speed and RAM is short (once a session, on Linux) | `⚠ Replies slowed from 65 to 20 tokens a second, most likely because RAM is short: ~15 GB available now, ~21 GB needed in a long session…`, with what to do. See [Troubleshooting](troubleshooting.md#it-starts-fast-then-gets-about-three-times-slower) |
|
|
382
418
|
|
|
383
419
|
While the model loads in the background at startup, the status bar says
|
|
384
420
|
`loading the model into memory…`. Mixture-of-Experts models, such as qwen3.6-35b, run well with
|
|
@@ -42,7 +42,8 @@ from lcode.tool_helpers import ToolError, is_binary, tree
|
|
|
42
42
|
if TYPE_CHECKING:
|
|
43
43
|
pass
|
|
44
44
|
|
|
45
|
-
MAX_STALLS = 2 # replies that go round in circles or say nothing,
|
|
45
|
+
MAX_STALLS = 2 # replies in a row that go round in circles or say nothing, before lcode stops the request
|
|
46
|
+
MAX_STALLS_PER_REQUEST = 4 # such replies in one request, even with work in between
|
|
46
47
|
STALLED = {
|
|
47
48
|
"circles": "the reply went round in circles, so lcode stopped it",
|
|
48
49
|
"cut_off": "the reply filled the context before it said anything",
|
|
@@ -50,15 +51,16 @@ STALLED = {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
|
|
53
|
-
def stall_note(trouble: str) -> str:
|
|
54
|
+
def stall_note(trouble: str, thinking_off: bool = False) -> str:
|
|
54
55
|
"""What the model is told after a reply that went round in circles or ended without a word."""
|
|
55
56
|
first = {
|
|
56
57
|
"circles": "Your last reply went round in circles (the same thoughts over and over), so lcode stopped it.",
|
|
57
58
|
"cut_off": "Your last reply filled the rest of the context before you said anything.",
|
|
58
59
|
"": "Your last reply was empty.",
|
|
59
60
|
}[trouble]
|
|
61
|
+
off = ": thinking is off for this reply" if thinking_off else ""
|
|
60
62
|
return (
|
|
61
|
-
f"[lcode] {first} Don't deliberate at length now. Either make your next tool call, or, if you're stuck, "
|
|
63
|
+
f"[lcode] {first} Don't deliberate at length now{off}. Either make your next tool call, or, if you're stuck, "
|
|
62
64
|
"tell the user in a few lines what you did, what fails, and what they could do. If you were about to check "
|
|
63
65
|
"something by running it, run it now instead of reasoning about it: for a window, take a screenshot (with "
|
|
64
66
|
"actions for clicks or keys)."
|
|
@@ -280,9 +282,13 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
280
282
|
malformed = 0
|
|
281
283
|
looping = "" # the call the model kept repeating, when lcode stopped the request for it
|
|
282
284
|
blocked = None # the site that couldn't be reached, when lcode stopped the request for it
|
|
283
|
-
stalls = 0 # replies that went round in circles or ended without a word
|
|
285
|
+
stalls = 0 # replies in a row that went round in circles or ended without a word
|
|
286
|
+
stalled = 0 # such replies in this request
|
|
284
287
|
commands: list[str] = [] # shell commands run in this request
|
|
285
288
|
scripts_noted = False # the model was told about scripts it wrote and never ran
|
|
289
|
+
untested: dict[str, None] = {} # code files the model wrote in this request and hasn't run since (#242)
|
|
290
|
+
untested_noted = False # the model was told about them
|
|
291
|
+
missing: dict[str, None] = {} # programs a command in this request found missing
|
|
286
292
|
tools_used: set[str] = set() # tools called in this request
|
|
287
293
|
windows_noted = False # the model was told about windows it changed and never looked at
|
|
288
294
|
for step in range(self.max_steps):
|
|
@@ -294,7 +300,8 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
294
300
|
self.save() # a crash or a closed terminal loses at most this step
|
|
295
301
|
self.maybe_compact()
|
|
296
302
|
try:
|
|
297
|
-
reply
|
|
303
|
+
# After a reply that went nowhere, the next one runs without thinking, so the model acts.
|
|
304
|
+
reply = self.assistant_step(think=not (stalls and self.can_skip_thinking()))
|
|
298
305
|
calls = reply.get("tool_calls") or []
|
|
299
306
|
for i, call in enumerate(calls):
|
|
300
307
|
call.setdefault("id", f"call_{step}_{i}") # so a tool result can name its call
|
|
@@ -336,15 +343,22 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
336
343
|
continue
|
|
337
344
|
if not calls and (self.reply_trouble == "circles" or not (reply.get("content") or "").strip()):
|
|
338
345
|
stalls += 1
|
|
346
|
+
stalled += 1
|
|
339
347
|
dropped = self.messages.pop() # no answer, and circles would only fill the context
|
|
340
348
|
kept = self.keep_dropped(dropped)
|
|
341
|
-
if stalls < MAX_STALLS:
|
|
349
|
+
if stalls < MAX_STALLS and stalled < MAX_STALLS_PER_REQUEST:
|
|
350
|
+
# The next reply runs with thinking off: asked again with it on, the model mostly started
|
|
351
|
+
# the same deliberation over (all 6 polyglot-rust-c attempts on the dev slice, #241).
|
|
352
|
+
pause = self.settings.think and self.can_skip_thinking()
|
|
353
|
+
off = ", with thinking off" if pause else ""
|
|
342
354
|
self.console.print(
|
|
343
|
-
Text(f" ⎿ {STALLED[self.reply_trouble]}: asking for a short answer{kept}", style="yellow")
|
|
355
|
+
Text(f" ⎿ {STALLED[self.reply_trouble]}: asking for a short answer{off}{kept}", style="yellow")
|
|
344
356
|
)
|
|
345
|
-
|
|
357
|
+
note = stall_note(self.reply_trouble, thinking_off=pause)
|
|
358
|
+
self.messages.append({"role": "user", "content": note})
|
|
346
359
|
continue
|
|
347
|
-
|
|
360
|
+
times = "twice in a row" if stalls >= MAX_STALLS else f"{stalled} times in this request"
|
|
361
|
+
why = f"its replies went round in circles or ended without an answer, {times}"
|
|
348
362
|
if not escalated and self.can_escalate():
|
|
349
363
|
escalated = True
|
|
350
364
|
advice = self.ask_stronger(why)
|
|
@@ -355,12 +369,13 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
355
369
|
self.turn_status = "loop"
|
|
356
370
|
self.console.print(
|
|
357
371
|
Text(
|
|
358
|
-
"Stopped: the model's replies went round in circles or ended without an answer,
|
|
359
|
-
f"
|
|
372
|
+
f"Stopped: the model's replies went round in circles or ended without an answer, {times}"
|
|
373
|
+
f"{kept}. Try again with a smaller step, or tell it what to do differently.",
|
|
360
374
|
style="yellow",
|
|
361
375
|
)
|
|
362
376
|
)
|
|
363
377
|
return
|
|
378
|
+
stalls = 0 # it acted or answered: a later reply that goes nowhere starts the count again
|
|
364
379
|
if not calls:
|
|
365
380
|
if self.reply_trouble == "cut_off":
|
|
366
381
|
self.say(
|
|
@@ -383,6 +398,19 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
383
398
|
)
|
|
384
399
|
self.messages.append({"role": "user", "content": checks.unseen_note(unseen)})
|
|
385
400
|
continue
|
|
401
|
+
untried = [] if untested_noted else self.untested_code(untested)
|
|
402
|
+
if untried:
|
|
403
|
+
untested_noted = True
|
|
404
|
+
it = "it" if len(untried) == 1 else "them"
|
|
405
|
+
self.console.print(
|
|
406
|
+
Text(
|
|
407
|
+
f" ⎿ never ran {', '.join(untried)} after writing {it}: asking the model to",
|
|
408
|
+
style="yellow",
|
|
409
|
+
)
|
|
410
|
+
)
|
|
411
|
+
note = checks.untested_note(untried, list(missing), checks.uv_available())
|
|
412
|
+
self.messages.append({"role": "user", "content": note})
|
|
413
|
+
continue
|
|
386
414
|
check = self.project_check() if changed and not verified else None
|
|
387
415
|
if check is not None and check_rounds < checks.MAX_ROUNDS:
|
|
388
416
|
check_rounds += 1
|
|
@@ -436,6 +464,7 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
436
464
|
began = time.monotonic()
|
|
437
465
|
if self.trace is not None:
|
|
438
466
|
self.trace.tool_begin()
|
|
467
|
+
self.tools.wrote = []
|
|
439
468
|
try:
|
|
440
469
|
result = done[i] if i in done else self.run_tool(name, args)
|
|
441
470
|
except KeyboardInterrupt:
|
|
@@ -479,8 +508,16 @@ class Agent(PromptParts, Sessions, Checks, ContextWindow, ModelCalls):
|
|
|
479
508
|
if out_of_reach.stop:
|
|
480
509
|
blocked = out_of_reach
|
|
481
510
|
tools_used.add(name)
|
|
511
|
+
for rel in self.tools.wrote:
|
|
512
|
+
if self.tools.before.get(rel, "") is None and checks.is_code(rel):
|
|
513
|
+
untested[rel] = None # new in this request: it should run before the model says it works
|
|
482
514
|
if name == "bash":
|
|
483
|
-
|
|
515
|
+
command = str(args.get("command", ""))
|
|
516
|
+
commands.append(command)
|
|
517
|
+
if not result.startswith(REFUSED): # a command that wasn't allowed, or failed to start, ran nothing
|
|
518
|
+
for rel in checks.exercised(command, result, untested):
|
|
519
|
+
del untested[rel]
|
|
520
|
+
missing.update(dict.fromkeys(checks.not_found(result)))
|
|
484
521
|
if name in ("edit_file", "write_file", "apply_patch") and not result.startswith(REFUSED):
|
|
485
522
|
changed, verified = True, False
|
|
486
523
|
elif name == "bash" and changed and self.model_ran_checks(str(args.get("command", "")), result):
|
|
@@ -18,6 +18,7 @@ from lcode import (
|
|
|
18
18
|
extensions,
|
|
19
19
|
repoid,
|
|
20
20
|
repomap,
|
|
21
|
+
residency,
|
|
21
22
|
subagents,
|
|
22
23
|
traces,
|
|
23
24
|
)
|
|
@@ -34,7 +35,6 @@ from lcode.tools import Toolbox
|
|
|
34
35
|
from lcode.unreachable import NOTE_AT, Sites
|
|
35
36
|
|
|
36
37
|
if TYPE_CHECKING:
|
|
37
|
-
from lcode import residency
|
|
38
38
|
from lcode.agent import Agent
|
|
39
39
|
from lcode.agent_model import Progress
|
|
40
40
|
from lcode.hardware import Hardware
|
|
@@ -196,6 +196,7 @@ class AgentBase:
|
|
|
196
196
|
self.ctx_used = 0
|
|
197
197
|
self._repo: tuple[Path, repoid.Repo | None] | None = None # the workspace's repository, for saved sessions
|
|
198
198
|
self.last_speed = 0.0
|
|
199
|
+
self.reply_speeds = residency.SpeedWatch() # to say why, when replies get far slower (lcode.residency)
|
|
199
200
|
self.usage = {"requests": 0, "prompt_tokens": 0, "prompt_ns": 0, "output_tokens": 0, "output_ns": 0}
|
|
200
201
|
self.trace: traces.Lane | None = None # the request's trace while it's recorded (lcode.traces)
|
|
201
202
|
self.replay: ReplayServer | None = None # in a replay: the recorded results of tools and checks (lcode.replay)
|