lcode-cli 0.51.0__tar.gz → 0.53.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.51.0 → lcode_cli-0.53.0}/.github/workflows/ci.yml +3 -3
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/workflows/docs.yml +1 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/workflows/release.yml +1 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/CHANGELOG.md +68 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/PKG-INFO +2 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/README.md +1 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/configuration.md +7 -4
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/how-it-works.md +2 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/memory.md +31 -16
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/quickstart.md +1 -1
- lcode_cli-0.53.0/docs/traces.md +183 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/troubleshooting.md +11 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/usage.md +39 -12
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/mkdocs.yml +1 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/__init__.py +1 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/agent.py +83 -15
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/api.py +45 -3
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/cli.py +41 -8
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/config.py +6 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/memory.py +62 -8
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/repl.py +59 -27
- lcode_cli-0.53.0/src/lcode/replay.py +653 -0
- lcode_cli-0.53.0/src/lcode/repoid.py +65 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/screenshots.py +51 -14
- lcode_cli-0.53.0/src/lcode/sessions.py +230 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/subagents.py +2 -1
- lcode_cli-0.53.0/src/lcode/traces.py +1078 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/update.py +29 -10
- lcode_cli-0.53.0/tests/test_conversations.py +385 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_jobs.py +4 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_memory.py +20 -2
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_screenshots.py +82 -0
- lcode_cli-0.53.0/tests/test_traces.py +461 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_update.py +125 -1
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/uv.lock +27 -27
- lcode_cli-0.51.0/src/lcode/sessions.py +0 -124
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.editorconfig +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/CODEOWNERS +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.github/dependabot.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.gitignore +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/.pre-commit-config.yaml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/AGENTS.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/CODE_OF_CONDUCT.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/CONTRIBUTING.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/LICENSE +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/SECURITY.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/action.yml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/agents.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/assets/demo.svg +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/assets/extra.css +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/assets/long-clip-tulip.jpg +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/automation.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/bench.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/changelog.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/commands.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/contributing.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/editors.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/git.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/hooks.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/index.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/installation.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/lsp.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/mcp.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/models.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/modes.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/sandbox.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/search.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/docs/servers.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/examples/README.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/examples/api/fix_tests.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/examples/commands/review.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/examples/skills/commit-message/SKILL.md +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/install.sh +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/overrides/main.html +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/pyproject.toml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/scripts/make_logos.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/scripts/record_demo.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/scripts/social-preview.html +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/__main__.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/acp.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/action.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/assistant.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/backends.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/bench.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/bench_backend.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/bench_runtime.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/catalog.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/checkpoints.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/checks.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/clipboard.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/cloud.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/codesearch.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/comfy.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/context.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/edits.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/escalate.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/extensions.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/film.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/frontmatter.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/gitflow.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/hardware.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/hooks.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/imageopts.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/jobs.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/limits.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/lsp.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/manual.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/matching.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/__init__.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/auth.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/catalog.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/catalog.toml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/client.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/commands.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/config.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/http.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/manager.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/protocol.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/server.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/mcp/stdio.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/media.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/media.toml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/media_catalog.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/media_cloud.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/models.toml +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/modes.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/notify.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/ollama.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/permissions.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/planning.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/preview.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/render.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/repeats.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/repomap.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/residency.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/review.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/sandbox.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/secretscan.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/servers/__init__.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/servers/encord.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/servers/valohai.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/servers/xai.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/steer.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/tools.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/unreachable.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/vision.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/web.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/__init__.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/remove-background.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/smooth-film.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/wan21-vace.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/comfy_standin.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/conftest.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/fake_lsp_server.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/fake_mcp_server.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_acp.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_action.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_agent.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_api.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_assistant.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_backends.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_bench.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_catalog.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_checkpoints.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_checks.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_cli.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_clipboard.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_cloud.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_codesearch.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_comfy.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_config.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_context.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_context_picker.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_escalate.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_extensions.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_film.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_gitflow.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_gpu_handover.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_hooks.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_image_edit.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_image_generate.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_long_clips.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_look.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_lsp.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_manual.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_matching.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_mcp.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_media_catalog.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_media_cloud.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_model_picker.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_modes.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_permissions.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_plan_mode.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_repeats.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_repomap.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_residency.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_review.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_robustness.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_sandbox.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_secretscan.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_servers.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_sessions.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_steer.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_stuck.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_subagents.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_tools.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_video.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_vision.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.0}/tests/test_web.py +0 -0
- {lcode_cli-0.51.0 → lcode_cli-0.53.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.2
|
|
21
|
+
- uses: astral-sh/setup-uv@v10.3.2
|
|
22
22
|
- run: uv run --group dev ruff check .
|
|
23
23
|
- run: uv run --group dev ruff format --check .
|
|
24
24
|
- name: Shellcheck install.sh
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
35
35
|
steps:
|
|
36
36
|
- uses: actions/checkout@v7
|
|
37
|
-
- uses: astral-sh/setup-uv@v10.2
|
|
37
|
+
- uses: astral-sh/setup-uv@v10.3.2
|
|
38
38
|
with:
|
|
39
39
|
python-version: ${{ matrix.python }}
|
|
40
40
|
- run: uv run --group dev pytest
|
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
runs-on: ubuntu-latest
|
|
45
45
|
steps:
|
|
46
46
|
- uses: actions/checkout@v7
|
|
47
|
-
- uses: astral-sh/setup-uv@v10.2
|
|
47
|
+
- uses: astral-sh/setup-uv@v10.3.2
|
|
48
48
|
- run: uv build
|
|
49
49
|
- name: Check the wheel ships the model catalog
|
|
50
50
|
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.2
|
|
22
|
+
- uses: astral-sh/setup-uv@v10.3.2
|
|
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.2
|
|
25
|
+
- uses: astral-sh/setup-uv@v10.3.2
|
|
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,71 @@ All notable changes to lcode are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.53.0] - 2026-10-31
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Run traces** (#196): each request in code mode is recorded on this machine as it runs: the
|
|
14
|
+
model's answers with the time to the first token, the total time and the tokens in and out;
|
|
15
|
+
each tool call with its result and time; the model's settings, the lcode version and the git
|
|
16
|
+
commit. Subagents get a lane of their own. Traces stay on this machine, are deleted after 30
|
|
17
|
+
days and take 200 MB at most; `lcode config set trace false` turns them off.
|
|
18
|
+
- **`lcode trace`** lists the traces, `lcode trace show 1` shows one as a timeline, and
|
|
19
|
+
`lcode trace export 1` writes a copy for a bug report with secrets, home-folder paths, user
|
|
20
|
+
names, and email and IP addresses masked.
|
|
21
|
+
- **`lcode trace replay 1`** runs a recorded request again with the recorded answers instead of a
|
|
22
|
+
model, in a copy of the folder at the recorded commit, and shows where the tool results now
|
|
23
|
+
differ. Shell commands keep their recorded results unless `--commands` runs them again. It
|
|
24
|
+
needs no GPU, and `lcode.replay.run` does the same in a test.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- **Screenshots of web pages when the browser starts slowly.** The first start after a restart
|
|
29
|
+
reads the browser from disk, which took up to 12 seconds on GitHub's machines and sometimes
|
|
30
|
+
over the 30 seconds lcode gave it, so the shot failed with "the browser didn't answer". The
|
|
31
|
+
browser now gets 90 seconds to start. An error says whether it didn't start in time, quit, or
|
|
32
|
+
didn't answer a command, and quotes the browser's last lines.
|
|
33
|
+
- **What to do when Ollama in Docker doesn't answer.** lcode and `lcode doctor` suggested
|
|
34
|
+
installing Ollama even when it runs in a Docker container. They now name the container and give
|
|
35
|
+
the command to start it: `docker compose up` when Docker Compose made it, `docker start`
|
|
36
|
+
otherwise. A running container that doesn't answer gets `docker logs`. When there's no container
|
|
37
|
+
or Docker itself isn't running, the message says so.
|
|
38
|
+
- **The Ollama commands on macOS.** When Ollama wasn't running, or had a new version out, lcode
|
|
39
|
+
showed the Linux install command on a Mac. It now shows the Homebrew one.
|
|
40
|
+
|
|
41
|
+
## [0.52.0] - 2026-10-27
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- **`/resume` in two sections** (#141): *This folder* lists the conversations saved in this
|
|
46
|
+
folder and anywhere in its git repository, also from a subfolder, a worktree or another clone
|
|
47
|
+
(the same first commit). *Elsewhere* lists the 20 newest from other folders, with each one's
|
|
48
|
+
folder. They're numbered across both. Before, only sessions saved in exactly this folder were
|
|
49
|
+
listed, so starting lcode one folder up made them look lost.
|
|
50
|
+
- **The context each conversation uses**, in the list: `18.2K / 32K (57%)` against the current
|
|
51
|
+
window, in yellow when resuming it means a summary first. Sessions now save what they used,
|
|
52
|
+
and the status bar shows it right after resuming. Older sessions get an estimate, marked `~`.
|
|
53
|
+
- **Notes follow a repository that moved, was renamed or was cloned again.** A repository's
|
|
54
|
+
notes folder names its first commit (`repo.json`), and a checkout whose own folder has no notes
|
|
55
|
+
finds them by it. Notes from older versions get the file the first time lcode runs there.
|
|
56
|
+
- `lcode doctor` shows how many sessions are saved, how many for this folder, and where.
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
|
|
60
|
+
- **No memory check when a session ends, by default.** Quitting, `/clear` and summarizing no
|
|
61
|
+
longer wait for a model call asking what's worth remembering. Turn it back on with
|
|
62
|
+
`lcode config set memory_check true`. `/remember`, the model's memory tool and saved notes work
|
|
63
|
+
as before, and the conversation is always saved.
|
|
64
|
+
- `lcode -c` continues the latest conversation in this folder, else the latest in its repository,
|
|
65
|
+
and says when that takes it to another folder.
|
|
66
|
+
- `/resume` and `lcode --resume` leave out sessions from temporary folders that no longer exist,
|
|
67
|
+
such as scripted test runs; `/resume all` lists them, and everything else.
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
|
|
71
|
+
- A session file that isn't a conversation (broken JSON, a list, odd messages) no longer stops
|
|
72
|
+
`/resume` from listing the others.
|
|
73
|
+
|
|
9
74
|
## [0.51.0] - 2026-10-27
|
|
10
75
|
|
|
11
76
|
### Added
|
|
@@ -1102,7 +1167,9 @@ First public release.
|
|
|
1102
1167
|
- `AGENTS.md` project instructions and `/init` to generate them.
|
|
1103
1168
|
- One-line installer for Linux and macOS.
|
|
1104
1169
|
|
|
1105
|
-
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.
|
|
1170
|
+
[Unreleased]: https://github.com/nasser1941/lcode/compare/v0.53.0...HEAD
|
|
1171
|
+
[0.53.0]: https://github.com/nasser1941/lcode/compare/v0.52.0...v0.53.0
|
|
1172
|
+
[0.52.0]: https://github.com/nasser1941/lcode/compare/v0.51.0...v0.52.0
|
|
1106
1173
|
[0.51.0]: https://github.com/nasser1941/lcode/compare/v0.50.0...v0.51.0
|
|
1107
1174
|
[0.50.0]: https://github.com/nasser1941/lcode/compare/v0.49.1...v0.50.0
|
|
1108
1175
|
[0.49.1]: https://github.com/nasser1941/lcode/compare/v0.49.0...v0.49.1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: lcode-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.53.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/
|
|
@@ -181,6 +181,7 @@ lcode
|
|
|
181
181
|
| `lcode --model qwen3.5-9b --context 128k` | pick a model and context window for this session |
|
|
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
|
+
| `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
|
|
184
185
|
| `/undo`, `/rewind` | take back the last request's file changes, or go back further |
|
|
185
186
|
| `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
|
|
186
187
|
| `/rename`, `/resume` | name the current session, resume a saved one |
|
|
@@ -145,6 +145,7 @@ lcode
|
|
|
145
145
|
| `lcode --model qwen3.5-9b --context 128k` | pick a model and context window for this session |
|
|
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
|
+
| `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
|
|
148
149
|
| `/undo`, `/rewind` | take back the last request's file changes, or go back further |
|
|
149
150
|
| `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
|
|
150
151
|
| `/rename`, `/resume` | name the current session, resume a saved one |
|
|
@@ -42,6 +42,7 @@ lcode config path # print the file location
|
|
|
42
42
|
| `vision_model` | `auto` | The model that [looks at images](usage.md#images): `auto`, `off` or an Ollama model that can see |
|
|
43
43
|
| `mcp_tools` | `auto` | How [MCP](mcp.md#context) tool definitions reach the model: `auto`, `direct` or `search` (on demand) |
|
|
44
44
|
| `memory` | `ask` | [Notes that carry over](memory.md) to later sessions: `ask` (confirm each), `auto` or `off` |
|
|
45
|
+
| `memory_check` | `false` | When a conversation ends, [ask the model what's worth remembering](memory.md#a-check-when-a-session-ends) (a model call before you can leave) |
|
|
45
46
|
| `skills` | `all` | Which [skills](commands.md#skills) the model is offered: `all` (lcode's folders and the ones other agents share), `lcode` (only `.lcode/skills/` and `~/.config/lcode/skills/`) or `off` |
|
|
46
47
|
| `repo_map` | `true` | Give the model a ranked [map of the repository](search.md) |
|
|
47
48
|
| `embed_model` | `auto` | Embedding model for [semantic code search](search.md#semantic-code-search): `auto`, `off` or a model name |
|
|
@@ -60,6 +61,7 @@ lcode config path # print the file location
|
|
|
60
61
|
| `repeat_limit` | `3` | Identical tool calls with identical results before lcode [steps in](how-it-works.md#when-the-model-repeats-itself); `0` turns it off, along with the checks for [unreachable sites](how-it-works.md#when-a-site-cant-be-reached) and [thinking in circles](how-it-works.md#when-a-reply-goes-nowhere) |
|
|
61
62
|
| `secret_check` | `true` | Before `git commit` and `git push`, look for passwords, keys and tokens they'd add ([details](usage.md#secrets-in-commits)) |
|
|
62
63
|
| `checkpoints` | `true` | Save a checkpoint before the model changes files, so [`/undo`](usage.md#undo-and-checkpoints) can restore them |
|
|
64
|
+
| `trace` | `true` | Record each request's model calls, tool calls, times and tokens on this machine, for [`lcode trace`](traces.md) (kept 30 days) |
|
|
63
65
|
|
|
64
66
|
Besides these settings, `config.toml` can hold [hooks](hooks.md) (`[[hooks]]`) and
|
|
65
67
|
[permission rules](hooks.md#permission-rules) (`[permissions]`); a repository can have its own in
|
|
@@ -93,20 +95,20 @@ Environment variables override the file, which is useful for one-off runs and CI
|
|
|
93
95
|
| `LCODE_SANDBOX` | `sandbox` |
|
|
94
96
|
| `LCODE_MEMORY` | `memory` |
|
|
95
97
|
| `OLLAMA_API_KEY`, `BRAVE_API_KEY`, `TAVILY_API_KEY` | API key for that [search provider](usage.md#web-search) (never stored in the config file) |
|
|
96
|
-
| `LCODE_HOME` | where sessions and prompt history are stored |
|
|
98
|
+
| `LCODE_HOME` | where sessions, notes and prompt history are stored, instead of `~/.local/state/lcode` |
|
|
97
99
|
|
|
98
100
|
## Files lcode creates
|
|
99
101
|
|
|
100
102
|
| Path | Contents |
|
|
101
103
|
|---|---|
|
|
102
104
|
| `~/.config/lcode/config.toml` | Settings |
|
|
103
|
-
| `~/.local/state/lcode/sessions/` | Saved conversations (for `lcode -c`) |
|
|
105
|
+
| `~/.local/state/lcode/sessions/` | Saved conversations (for `/resume` and `lcode -c`), one JSON file each |
|
|
104
106
|
| `~/.local/state/lcode/history` | Prompt history (++up++ in the prompt) |
|
|
105
107
|
| `~/.config/lcode/mcp.json` | [MCP servers](mcp.md) (readable only by you; may contain tokens) |
|
|
106
108
|
| `~/.local/state/lcode/mcp-auth/` | Sign-in tokens for remote MCP servers (readable only by you) |
|
|
107
109
|
| `~/.local/state/lcode/mcp-logs/` | Error output of local MCP servers |
|
|
108
110
|
| `~/.local/state/lcode/checkpoints/` | Checkpoints for `/undo` (copies of your project's files; deleted after 14 days) |
|
|
109
|
-
| `~/.local/state/lcode/memory/` | [Memory](memory.md) notes: `user/` for every repository, `projects/<repository>/` for each one |
|
|
111
|
+
| `~/.local/state/lcode/memory/` | [Memory](memory.md) notes: `user/` for every repository, `projects/<repository>/` for each one (`/memory path` shows this repository's) |
|
|
110
112
|
| `~/.config/lcode/commands/`, `~/.config/lcode/skills/` | Your [commands and skills](commands.md) (a repository's go in `.lcode/`) |
|
|
111
113
|
| `~/.local/state/lcode/extensions-approved.json` | Repositories whose commands, skills and agents you approved |
|
|
112
114
|
| `~/.config/lcode/agents/` | Your [custom agents](agents.md#custom-agents) (a repository's go in `.lcode/agents/`) |
|
|
@@ -114,9 +116,10 @@ Environment variables override the file, which is useful for one-off runs and CI
|
|
|
114
116
|
| `~/.local/state/lcode/lsp-logs/` | Language servers' own output |
|
|
115
117
|
| `~/.local/state/lcode/index/` | [Code search](search.md#semantic-code-search) indexes, one per repository (`lcode index`) |
|
|
116
118
|
| `~/.local/state/lcode/outputs/` | The full text of long command output that was cut short for the model (kept a week) |
|
|
119
|
+
| `~/.local/state/lcode/traces/` | [Run traces](traces.md): each request's steps, times and tokens, one file per request (kept 30 days, 200 MB at most) |
|
|
117
120
|
| `~/.local/state/lcode/limits.json` | Context sizes that ran out of GPU memory on this machine (safe to delete) |
|
|
118
121
|
|
|
119
|
-
Sessions contain everything the model read, including file contents. Delete the
|
|
122
|
+
Sessions and traces contain everything the model read, including file contents. Delete the folders to clear them.
|
|
120
123
|
|
|
121
124
|
## Tuning for speed and memory
|
|
122
125
|
|
|
@@ -197,7 +197,8 @@ the Ollama server you configure, it only contacts the web when the model searche
|
|
|
197
197
|
| `extensions.py` | Custom commands and skills, and approving a repository's own |
|
|
198
198
|
| `frontmatter.py` | The `---` headers of notes, agents, commands and skills |
|
|
199
199
|
| `planning.py` | Plan mode: what it allows, presenting a plan and approving it |
|
|
200
|
-
| `memory.py` | Notes that carry over between sessions, and the end-of-session check |
|
|
200
|
+
| `memory.py` | Notes that carry over between sessions, and the optional end-of-session check |
|
|
201
|
+
| `sessions.py`, `repoid.py` | Saved conversations: listing them for this folder and elsewhere; which repository a folder is in, by its first commit |
|
|
201
202
|
| `sandbox.py` | The optional container for shell commands |
|
|
202
203
|
| `checkpoints.py` | Snapshots before the model changes files, for `/undo` and `/rewind` |
|
|
203
204
|
| `catalog.py`, `models.toml` | Model catalog and memory estimates |
|
|
@@ -49,29 +49,37 @@ instead ("staging credentials are in 1Password, vault Dev").
|
|
|
49
49
|
`-g` saves it for every repository. Start with `feedback:`, `reference:` or `user:` to set the
|
|
50
50
|
type (the default is `project`).
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
asks the model one short question: is anything from this session worth remembering? It happens
|
|
54
|
-
when you quit, on `/clear`, and before the conversation is compacted (the summary leaves details
|
|
55
|
-
out). The model proposes at most three notes:
|
|
52
|
+
## A check when a session ends
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
Local models rarely save notes on their own. With `memory_check` on, lcode asks the model one short
|
|
55
|
+
question when a conversation ends: is anything from it worth remembering? It happens when you
|
|
56
|
+
quit, on `/clear`, and before the conversation is summarized (the summary leaves details out). The
|
|
57
|
+
model proposes at most three notes:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
╭─ Worth remembering? ────────────────────────────────────────────────────────╮
|
|
61
|
+
│ 1 [feedback] Use pnpm, not npm (this repository) │
|
|
62
|
+
│ 2 [project] Integration tests need `docker compose up db` first (this │
|
|
63
|
+
│ repository) │
|
|
64
|
+
╰───────────────────────────────────────────────────────────────────────────────╯
|
|
65
|
+
Save them? [y]es / numbers to keep, e.g. 1,3 / [n]o: 1
|
|
66
|
+
```
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
It's off by default, because it's a model call you wait for before you can leave. Turn it on with:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
lcode config set memory_check true
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The question reuses the conversation Ollama already has in memory, so the model only writes a few
|
|
75
|
+
lines. Short sessions (one request and little work) are skipped, and Ctrl+C skips it too. The
|
|
76
|
+
conversation itself is always saved, with or without the check.
|
|
69
77
|
|
|
70
78
|
## Asking first: the `memory` setting
|
|
71
79
|
|
|
72
80
|
| `memory` | |
|
|
73
81
|
|---|---|
|
|
74
|
-
| `ask` (default) | Every note the model saves, and the end-of-session proposals, need your OK. Answer `a` once to allow the model's notes for the rest of the session. This holds in `yolo` mode too. |
|
|
82
|
+
| `ask` (default) | Every note the model saves, and the [end-of-session](#a-check-when-a-session-ends) proposals, need your OK. Answer `a` once to allow the model's notes for the rest of the session. This holds in `yolo` mode too. |
|
|
75
83
|
| `auto` | Notes are saved without asking; lcode prints each one. |
|
|
76
84
|
| `off` | No notes are loaded or saved, and the model has no `memory` tool. |
|
|
77
85
|
|
|
@@ -116,6 +124,13 @@ The dev dependencies are in a uv dependency group, which plain pytest doesn't se
|
|
|
116
124
|
|
|
117
125
|
Each folder also has a `MEMORY.md` listing its notes, for reading; lcode regenerates it, so edit
|
|
118
126
|
the notes rather than that file. A folder that isn't in a git repository gets its own notes.
|
|
127
|
+
`/memory path` shows where this repository's are.
|
|
128
|
+
|
|
129
|
+
A repository's notes follow it when you move or rename it, or clone it again: its folder has a
|
|
130
|
+
`repo.json` naming the repository's first commit, which every clone shares. Notes saved before
|
|
131
|
+
lcode 0.52 get that file the first time lcode runs in their repository. Notes of a repository
|
|
132
|
+
that moved before then are in a folder named after its old name; copy them into the new one
|
|
133
|
+
(`/memory path`) to keep them.
|
|
119
134
|
|
|
120
135
|
At the start of a session, the model gets a one-line index of the notes (description, name, date)
|
|
121
136
|
in its instructions. The index is capped at about 2,000 tokens, or 5% of a small context window;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Run traces
|
|
2
|
+
|
|
3
|
+
lcode records each request in code mode as it runs: every model call and every tool call, with
|
|
4
|
+
its times and tokens. A trace shows where a slow or failed request spent its time and went wrong,
|
|
5
|
+
it can go with a bug report, and it can be **replayed** without a model to check a change to lcode
|
|
6
|
+
against real runs.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
lcode trace # the newest 20 requests
|
|
10
|
+
lcode trace show 1 # the newest one, step by step (or just: lcode trace 1)
|
|
11
|
+
lcode trace show 1 -v # also the model's answers and the start of each result
|
|
12
|
+
lcode trace export 1 # a copy for a bug report, with secrets and personal details masked
|
|
13
|
+
lcode trace replay 1 # run it again with the recorded answers instead of a model
|
|
14
|
+
lcode trace path # the folder the traces are in
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What's recorded
|
|
18
|
+
|
|
19
|
+
- **The request** as you typed it, and what lcode added to the conversation while it ran: a
|
|
20
|
+
failed check, a note about a malformed tool call, a note you typed while it worked.
|
|
21
|
+
- **Each model call:** the answer (text, reasoning and tool calls), the time to the first token,
|
|
22
|
+
the total time, and the tokens in and out. With Ollama, also how long loading the model and
|
|
23
|
+
reading the prompt took.
|
|
24
|
+
- **Each tool call:** its arguments, the result the model got, and how long it took. A result
|
|
25
|
+
longer than 200,000 characters keeps its start and end. When lcode cut a long output for the
|
|
26
|
+
model, the result says where the full output was saved.
|
|
27
|
+
- **The setup:** the model, its context window and the model's own sampling settings
|
|
28
|
+
(temperature, top_p and so on: lcode doesn't change them), the settings that change how lcode
|
|
29
|
+
works (checks, review, `compact_at`…), the permission mode, the lcode version, the git commit
|
|
30
|
+
the folder was at, and a fingerprint of the system prompt and of the tool definitions.
|
|
31
|
+
- **Subagents:** their model and tool calls, each subagent in a lane of its own.
|
|
32
|
+
|
|
33
|
+
## Where, and for how long
|
|
34
|
+
|
|
35
|
+
Traces stay on your machine: nothing is sent anywhere. Each request is one file in
|
|
36
|
+
`~/.local/state/lcode/traces/` (under `$LCODE_HOME` when that's set), named after its session and
|
|
37
|
+
its number in it: `20261031-142233-a1b2c3-2.jsonl` is the second request of that session. A
|
|
38
|
+
file holds one JSON object per line, written as the request runs, so a request that crashed
|
|
39
|
+
still has everything up to the crash.
|
|
40
|
+
|
|
41
|
+
- Traces older than **30 days** are deleted.
|
|
42
|
+
- When all of them take more than **200 MB**, the oldest go first.
|
|
43
|
+
- One trace stops growing at **20 MB**; it still records how the request ended.
|
|
44
|
+
|
|
45
|
+
A trace holds what the session saw, like a saved session does: the contents of files the model
|
|
46
|
+
read, command output, and any secrets in them. Share one with `lcode trace export`, which masks
|
|
47
|
+
them.
|
|
48
|
+
|
|
49
|
+
**Turn traces off** with `lcode config set trace false`. `lcode bench` doesn't record its runs.
|
|
50
|
+
|
|
51
|
+
Recording takes a few milliseconds per request (2 ms for the 88-second request below): each trace
|
|
52
|
+
says how long in its last line (`trace_seconds`), and `lcode trace show` as *recording*.
|
|
53
|
+
|
|
54
|
+
## Reading a trace
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
$ lcode trace
|
|
58
|
+
# When Request Model Steps Time Status
|
|
59
|
+
1 1 min ago Use two explore agents at the same time: on… lcode-qwen3.6-35b 2 1 min 13 s success
|
|
60
|
+
2 5 min ago The tests fail. Find out why and fix the co… lcode-qwen3.6-35b 6 1 min 28 s success
|
|
61
|
+
2 trace(s), 25 KB, in ~/.local/state/lcode/traces (kept 30 days). lcode trace show 1 · export 1 · replay 1
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
$ lcode trace show 2
|
|
66
|
+
Trace 20261031-184203-3e0674-1 · 2026-10-31 18:42 · success in 1 min 28 s
|
|
67
|
+
Request: The tests fail. Find out why and fix the code (not the tests).
|
|
68
|
+
lcode-qwen3.6-35b · 256K context · thinking on · yolo mode · lcode 0.53.0 · ~/code/textstats at 958102f
|
|
69
|
+
Sampling (the model's own): top_k 20, top_p 0.95, min_p 0, temperature 0.6
|
|
70
|
+
|
|
71
|
+
1.3 s model 1 10.2K in · 206 out · first token 1 min 3 s (loading 21 s, reading 41 s) · 1 min 6 s → read_file, read_file
|
|
72
|
+
67.4 s read_file src/textstats/stats.py 13 lines 0.0 s
|
|
73
|
+
67.4 s read_file tests/test_stats.py 13 lines 0.0 s
|
|
74
|
+
67.4 s model 2 10.8K in · 50 out · first token 1.7 s · 2.4 s → bash
|
|
75
|
+
69.9 s bash python3 -m pytest -q 2>&1 36 lines 0.3 s
|
|
76
|
+
70.2 s model 3 11.2K in · 364 out · first token 1.6 s · 7.6 s → edit_file
|
|
77
|
+
77.8 s edit_file src/textstats/stats.py 8 lines 0.8 s
|
|
78
|
+
78.6 s model 4 11.7K in · 195 out · first token 1.2 s · 4.1 s → edit_file
|
|
79
|
+
82.8 s edit_file src/textstats/stats.py 8 lines 0.3 s
|
|
80
|
+
83.1 s model 5 12.0K in · 51 out · first token 1.4 s · 2.1 s → bash
|
|
81
|
+
85.2 s bash python3 -m pytest -q 2>&1 4 lines 0.2 s
|
|
82
|
+
85.4 s model 6 12.1K in · 144 out · first token 0.8 s · 3.1 s → answer
|
|
83
|
+
|
|
84
|
+
success · 6 model call(s) · 68.0K tokens in, 1.0K out · model 1 min 25 s · tools 1.6 s (6 calls) · recording 2 ms
|
|
85
|
+
Changed: src/textstats/stats.py
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Each line shows when its step started. Here the first model call waited a minute for
|
|
89
|
+
its first token: 21 seconds loading the model into memory and 41 seconds reading the prompt into
|
|
90
|
+
a fresh 256K context. After that, each step answered within two seconds. A subagent's steps
|
|
91
|
+
show its lane (`agent 1`, `agent 2`) and the task it was given.
|
|
92
|
+
|
|
93
|
+
The file itself is plain JSON lines, one per event, for scripts: `start`, `env` (the git commit
|
|
94
|
+
and sampling settings), `message`, `model`, `tool`, `check`, `escalate`, `compacted`, and `end`
|
|
95
|
+
with the totals.
|
|
96
|
+
|
|
97
|
+
## Exporting for a bug report
|
|
98
|
+
|
|
99
|
+
`lcode trace export 1` writes `lcode-trace-<id>.jsonl` in the current folder (`-o FILE` names
|
|
100
|
+
another; `-o -` prints it) with these masked:
|
|
101
|
+
|
|
102
|
+
- **secrets:** keys and tokens lcode's [secret check](usage.md#secrets-in-commits) recognizes,
|
|
103
|
+
passwords in web addresses and in `password = …` style settings, private keys, and the values
|
|
104
|
+
of your environment variables whose names say KEY, TOKEN, SECRET, PASSWORD and the like,
|
|
105
|
+
wherever they turn up;
|
|
106
|
+
- **your home folder** (shown as `~`) and other users' home folders;
|
|
107
|
+
- **names:** your user name, your full name, the name and email address in your git settings,
|
|
108
|
+
and the computer's name;
|
|
109
|
+
- **email addresses and IP addresses** (except 127.0.0.1).
|
|
110
|
+
|
|
111
|
+
It says how many of each it masked. Masking errs on the side of too much, but it can still miss
|
|
112
|
+
something, so read the file before you share it.
|
|
113
|
+
|
|
114
|
+
## Replaying a trace
|
|
115
|
+
|
|
116
|
+
`lcode trace replay` runs a recorded request again, with the recorded answers standing in for the
|
|
117
|
+
model: no GPU and no model server needed. The tools run again in a temporary copy of the folder,
|
|
118
|
+
and lcode compares each result with the recorded one. It answers "does this change to lcode still
|
|
119
|
+
behave the same on real runs?" and, when it doesn't, shows exactly where.
|
|
120
|
+
|
|
121
|
+
```text
|
|
122
|
+
$ lcode trace replay 2
|
|
123
|
+
Replaying 20261031-184203-3e0674-1 (6 model answer(s)) in ~/code/textstats at the recorded commit 958102f.
|
|
124
|
+
Shell commands get their recorded results; --commands runs them again in the copy.
|
|
125
|
+
Tool calls run again: 4, with the same result: 4. Given their recorded result: 2. Model calls: 6 recorded, 6 in the replay.
|
|
126
|
+
Status: recorded success, now success
|
|
127
|
+
No differences.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
When something differs, the replay shows where, with the recorded and the new result:
|
|
131
|
+
|
|
132
|
+
```text
|
|
133
|
+
Tool calls run again: 4, with the same result: 3. Given their recorded result: 2. Model calls: 6 recorded, 6 in the replay.
|
|
134
|
+
Status: recorded success, now success
|
|
135
|
+
1 difference(s):
|
|
136
|
+
step 1 · read_file src/textstats/stats.py
|
|
137
|
+
@@ -1,2 +1,2 @@
|
|
138
|
+
- 1 """Small text statistics."""
|
|
139
|
+
+ 1 """Small text statistics: word counts and lengths."""
|
|
140
|
+
2
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- **Where it runs:** never in your folder. In a copy of the git repository at the commit the
|
|
144
|
+
request started from (the copy doesn't have changes that weren't committed then; the replay
|
|
145
|
+
says so), or, outside git, in a copy of the folder as it is now. `--repo DIR` replays in a copy
|
|
146
|
+
of another folder, and `--keep` keeps the copy afterwards. Recorded paths into your folder point
|
|
147
|
+
into the copy, file tools can't reach anything outside it, and the copy has no git remotes.
|
|
148
|
+
- **What runs again:** reading, searching, writing and editing files, the todo list, skills, the
|
|
149
|
+
repository map, subagents and plans.
|
|
150
|
+
- **What gets its recorded result:** shell commands and the project's checks (`--commands` runs
|
|
151
|
+
them again, in the copy, as they were recorded: use it for traces whose commands you'd run
|
|
152
|
+
yourself), web searches and pages, MCP tools, language servers, code search,
|
|
153
|
+
images and screenshots, memory notes and a stronger model's advice; and whatever you answered,
|
|
154
|
+
such as a refused permission or your decision on a plan.
|
|
155
|
+
- **What's compared:** each tool call and its result, lcode's notes to the model, the checks' exit
|
|
156
|
+
codes, the number of model calls, and how the request ended. The folder's path, the names of
|
|
157
|
+
saved outputs, timings, and lines drawn to the terminal's width (pytest's `=====`) don't count.
|
|
158
|
+
Commands run with the terminal size the recorded ones had.
|
|
159
|
+
|
|
160
|
+
It exits with 0 when nothing differs and 1 when something does, so it fits in a script.
|
|
161
|
+
|
|
162
|
+
A replay doesn't repeat notes you typed while the request ran. Subagents that ran at the same time
|
|
163
|
+
replay one after another. An exported trace has its folder masked: replay it with `--repo`.
|
|
164
|
+
|
|
165
|
+
### In tests
|
|
166
|
+
|
|
167
|
+
Any trace replays in a test, without a model server:
|
|
168
|
+
|
|
169
|
+
```python
|
|
170
|
+
from pathlib import Path
|
|
171
|
+
|
|
172
|
+
from lcode import replay, traces
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def test_the_parser_fix_still_replays(tmp_path):
|
|
176
|
+
folder = tmp_path / "parser"
|
|
177
|
+
... # the files as they were when the trace was recorded
|
|
178
|
+
report = replay.run(traces.load(Path("tests/traces/parser-fix.jsonl")), folder)
|
|
179
|
+
assert report.ok, report.differences
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
`report.differences` lists each difference with its step, the call, and the recorded and new
|
|
183
|
+
result.
|
|
@@ -17,9 +17,19 @@ Ollama isn't running (or isn't installed).
|
|
|
17
17
|
|
|
18
18
|
- Linux: `sudo systemctl start ollama` (check with `systemctl status ollama`).
|
|
19
19
|
- macOS: open the Ollama app, or `brew services start ollama`.
|
|
20
|
-
- Docker:
|
|
20
|
+
- Docker: lcode looks for the Ollama container that publishes port 11434, and says how to start it: with
|
|
21
|
+
`docker compose up` when Docker Compose made it, or `docker start <container>`. If there's no such
|
|
22
|
+
container any more (for example after `docker system prune`), create it again; when its volume was removed
|
|
23
|
+
as well (`docker volume prune -a`), so were the models: download them again with `lcode setup`.
|
|
21
24
|
- Remote server: `lcode config set ollama_host http://host:11434`.
|
|
22
25
|
|
|
26
|
+
### Docker: `all predefined address pools have been fully subnetted`
|
|
27
|
+
|
|
28
|
+
Docker Compose can't create a network for the Ollama container. A VPN that routes all traffic (for example
|
|
29
|
+
with routes `0.0.0.0/1` and `128.0.0.0/1`) covers every address range Docker would use. Put the
|
|
30
|
+
container on Docker's default network instead: add `network_mode: bridge` to the Ollama service in the
|
|
31
|
+
compose file, and run `docker compose up -d` again.
|
|
32
|
+
|
|
23
33
|
### `lcode isn't set up yet` / `… is not installed yet`
|
|
24
34
|
|
|
25
35
|
Run `lcode setup` (or `lcode setup <model>`) to download a model.
|
|
@@ -10,6 +10,7 @@ lcode doctor # check the installation (include this in bug repor
|
|
|
10
10
|
lcode media [install MODEL] # image and video models: what fits here, what's installed; install one
|
|
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
|
+
lcode trace [action] [N] # past requests: show one step by step, export or replay it (see Run traces)
|
|
13
14
|
lcode mcp [catalog|add|list] # connect MCP servers: Jira, GitHub, AWS, databases… (see MCP servers)
|
|
14
15
|
lcode acp # run inside an editor over the Agent Client Protocol (see Editors)
|
|
15
16
|
lcode update [--check] # update lcode, and Ollama when it runs in Docker (see Installation)
|
|
@@ -519,6 +520,9 @@ a screen and sees what you would, measured:
|
|
|
519
520
|
- Needs: Xvfb for other desktop programs (`sudo apt install xvfb x11-apps`), and Chrome or
|
|
520
521
|
Chromium for web pages. On macOS only Qt programs and web pages work, since there's no virtual
|
|
521
522
|
display.
|
|
523
|
+
- The first web page after a restart can take a few seconds longer, while the browser loads from
|
|
524
|
+
disk: lcode gives it 90 seconds to start. If it doesn't start, or quits, the error says which and
|
|
525
|
+
quotes the browser's last lines.
|
|
522
526
|
|
|
523
527
|
## Permissions
|
|
524
528
|
|
|
@@ -712,40 +716,63 @@ Instructions that are only needed for some tasks fit better in a [command or ski
|
|
|
712
716
|
which costs no context until it's used.
|
|
713
717
|
|
|
714
718
|
What doesn't belong in `AGENTS.md` but should carry over, such as your corrections and preferences,
|
|
715
|
-
goes into lcode's [memory](memory.md): short notes the model
|
|
716
|
-
|
|
719
|
+
goes into lcode's [memory](memory.md): short notes the model or you (`/remember`) save, and that
|
|
720
|
+
every later session in the repository loads.
|
|
717
721
|
|
|
718
722
|
## Sessions
|
|
719
723
|
|
|
720
724
|
Every conversation is saved after each request to `~/.local/state/lcode/sessions/`, so you can
|
|
721
|
-
leave and pick up where you stopped.
|
|
725
|
+
leave and pick up where you stopped. Upgrading lcode keeps them, and the installed lcode and a
|
|
726
|
+
development checkout (`uv run lcode`) share them.
|
|
722
727
|
|
|
723
728
|
```text
|
|
724
729
|
❯ /rename auth refactor # name the current session
|
|
725
|
-
❯ /resume # list
|
|
730
|
+
❯ /resume # list the saved sessions and pick one
|
|
726
731
|
```
|
|
727
732
|
|
|
728
733
|
```text
|
|
729
|
-
|
|
730
|
-
# Session Last used Requests
|
|
731
|
-
1 auth refactor 2 h ago 14
|
|
734
|
+
This folder · ~/code/my-project
|
|
735
|
+
# Session Last used Requests Context
|
|
736
|
+
1 auth refactor 2 h ago 14 41.3K / 128K (32%)
|
|
732
737
|
Explain how login tokens are validated
|
|
733
|
-
2 The tests in tests/test_parser.py fail… yesterday 6
|
|
738
|
+
2 The tests in tests/test_parser.py fail… yesterday 6 ~18K / 128K (14%)
|
|
739
|
+
in tests
|
|
740
|
+
Elsewhere
|
|
741
|
+
# Session Last used Requests Context Folder
|
|
742
|
+
3 Set up the release script Oct 20 3 9.6K / 128K (8%) ~/code/tools
|
|
734
743
|
Resume which session? (number or name, Enter to cancel): 1
|
|
735
744
|
```
|
|
736
745
|
|
|
746
|
+
- **This folder** lists the sessions saved in this folder, and anywhere else in its git
|
|
747
|
+
repository: a subfolder, a worktree, or another clone of the same repository (it has the same
|
|
748
|
+
first commit). A row from another folder says where it was.
|
|
749
|
+
- **Elsewhere** lists the 20 newest sessions from other folders. Sessions from temporary folders
|
|
750
|
+
that no longer exist, such as scripted test runs, are left out. `/resume all` lists everything.
|
|
751
|
+
- **Context** is what the conversation takes of the current context window. A `~` means it's an
|
|
752
|
+
estimate, for sessions saved before lcode 0.52. After resuming, the status bar shows it right
|
|
753
|
+
away, and a yellow number means lcode summarizes the conversation before your next request.
|
|
754
|
+
|
|
737
755
|
Unnamed sessions are listed by their first request. After resuming, lcode shows your last request
|
|
738
756
|
and the start of its last answer so you know where you left off.
|
|
739
757
|
|
|
740
758
|
| From the shell | From a session | Resumes |
|
|
741
759
|
|---|---|---|
|
|
742
|
-
| `lcode -c` | | the
|
|
760
|
+
| `lcode -c` | | the latest session in this folder, else the latest under "This folder" |
|
|
743
761
|
| `lcode --resume` | `/resume` | one you pick from a list |
|
|
744
762
|
| `lcode --resume "auth refactor"` | `/resume auth refactor` | a session by name, list number, id or a unique part of its title |
|
|
745
|
-
|
|
|
763
|
+
| `lcode --resume all` | `/resume all` | one you pick from every saved session |
|
|
764
|
+
|
|
765
|
+
A session from another folder takes lcode to that folder. `/clear` starts a new conversation and
|
|
766
|
+
keeps the old one saved. Files may have changed since a session was saved, so after resuming the
|
|
767
|
+
model has to read a file again before editing it.
|
|
768
|
+
|
|
769
|
+
**Where are my sessions?** `lcode doctor` shows how many are saved and the folder they're in.
|
|
770
|
+
`LCODE_HOME`, or `XDG_STATE_HOME`, moves that folder: a terminal that sets one of them (some IDEs
|
|
771
|
+
and test scripts do) sees other sessions. `lcode bench` doesn't save its runs as sessions.
|
|
746
772
|
|
|
747
|
-
|
|
748
|
-
|
|
773
|
+
Each request is also recorded as a [run trace](traces.md): its model and tool calls with their
|
|
774
|
+
times and tokens. `lcode trace` lists them, and `lcode trace show 1` shows the last one step by
|
|
775
|
+
step.
|
|
749
776
|
|
|
750
777
|
## Scripting
|
|
751
778
|
|