lcode-cli 0.52.0__tar.gz → 0.54.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.
Files changed (228) hide show
  1. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/workflows/ci.yml +3 -3
  2. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/workflows/docs.yml +1 -1
  3. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/workflows/release.yml +1 -1
  4. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/CHANGELOG.md +54 -1
  5. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/PKG-INFO +3 -1
  6. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/README.md +2 -0
  7. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/bench.md +3 -0
  8. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/configuration.md +3 -1
  9. lcode_cli-0.54.0/docs/public-benchmarks.md +128 -0
  10. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/quickstart.md +1 -1
  11. lcode_cli-0.54.0/docs/traces.md +183 -0
  12. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/troubleshooting.md +11 -1
  13. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/usage.md +9 -0
  14. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/mkdocs.yml +2 -0
  15. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/__init__.py +1 -1
  16. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/agent.py +60 -8
  17. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/api.py +44 -3
  18. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/cli.py +50 -7
  19. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/config.py +1 -0
  20. lcode_cli-0.54.0/src/lcode/harbor.py +74 -0
  21. lcode_cli-0.54.0/src/lcode/harbor_bench.py +395 -0
  22. lcode_cli-0.54.0/src/lcode/replay.py +653 -0
  23. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/screenshots.py +51 -14
  24. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/subagents.py +2 -1
  25. lcode_cli-0.54.0/src/lcode/traces.py +1078 -0
  26. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/update.py +71 -11
  27. lcode_cli-0.54.0/tests/test_harbor_bench.py +159 -0
  28. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_media_catalog.py +9 -0
  29. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_screenshots.py +82 -0
  30. lcode_cli-0.54.0/tests/test_traces.py +461 -0
  31. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_update.py +173 -1
  32. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/uv.lock +27 -27
  33. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.editorconfig +0 -0
  34. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/CODEOWNERS +0 -0
  35. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  36. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  37. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  38. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/ISSUE_TEMPLATE/model_request.yml +0 -0
  39. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  40. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.github/dependabot.yml +0 -0
  41. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.gitignore +0 -0
  42. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/.pre-commit-config.yaml +0 -0
  43. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/AGENTS.md +0 -0
  44. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/CODE_OF_CONDUCT.md +0 -0
  45. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/CONTRIBUTING.md +0 -0
  46. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/LICENSE +0 -0
  47. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/SECURITY.md +0 -0
  48. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/action.yml +0 -0
  49. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/agents.md +0 -0
  50. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/assets/demo.svg +0 -0
  51. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/assets/extra.css +0 -0
  52. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/assets/film-fox-and-kitten.jpg +0 -0
  53. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/assets/long-clip-tulip.jpg +0 -0
  54. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/automation.md +0 -0
  55. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/changelog.md +0 -0
  56. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/commands.md +0 -0
  57. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/contributing.md +0 -0
  58. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/editors.md +0 -0
  59. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/git.md +0 -0
  60. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/hooks.md +0 -0
  61. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/how-it-works.md +0 -0
  62. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/index.md +0 -0
  63. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/installation.md +0 -0
  64. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/lsp.md +0 -0
  65. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/mcp.md +0 -0
  66. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/memory.md +0 -0
  67. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/models.md +0 -0
  68. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/modes.md +0 -0
  69. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/sandbox.md +0 -0
  70. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/search.md +0 -0
  71. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/docs/servers.md +0 -0
  72. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/examples/README.md +0 -0
  73. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/examples/api/fix_tests.py +0 -0
  74. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/examples/commands/review.md +0 -0
  75. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/examples/skills/commit-message/SKILL.md +0 -0
  76. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/examples/skills/commit-message/scripts/staged.sh +0 -0
  77. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/install.sh +0 -0
  78. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/overrides/main.html +0 -0
  79. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/pyproject.toml +0 -0
  80. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/scripts/make_logos.py +0 -0
  81. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/scripts/record_demo.py +0 -0
  82. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/scripts/social-preview.html +0 -0
  83. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/__main__.py +0 -0
  84. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/acp.py +0 -0
  85. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/action.py +0 -0
  86. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/assistant.py +0 -0
  87. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/backends.py +0 -0
  88. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/bench.py +0 -0
  89. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/bench_backend.py +0 -0
  90. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/bench_runtime.py +0 -0
  91. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/catalog.py +0 -0
  92. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/checkpoints.py +0 -0
  93. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/checks.py +0 -0
  94. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/clipboard.py +0 -0
  95. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/cloud.py +0 -0
  96. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/codesearch.py +0 -0
  97. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/comfy.py +0 -0
  98. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/context.py +0 -0
  99. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/edits.py +0 -0
  100. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/escalate.py +0 -0
  101. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/extensions.py +0 -0
  102. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/film.py +0 -0
  103. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/frontmatter.py +0 -0
  104. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/gitflow.py +0 -0
  105. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/hardware.py +0 -0
  106. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/hooks.py +0 -0
  107. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/imageopts.py +0 -0
  108. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/jobs.py +0 -0
  109. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/limits.py +0 -0
  110. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/lsp.py +0 -0
  111. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/manual.py +0 -0
  112. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/matching.py +0 -0
  113. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/__init__.py +0 -0
  114. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/auth.py +0 -0
  115. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/catalog.py +0 -0
  116. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/catalog.toml +0 -0
  117. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/client.py +0 -0
  118. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/commands.py +0 -0
  119. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/config.py +0 -0
  120. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/http.py +0 -0
  121. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/manager.py +0 -0
  122. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/protocol.py +0 -0
  123. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/server.py +0 -0
  124. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/mcp/stdio.py +0 -0
  125. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/media.py +0 -0
  126. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/media.toml +0 -0
  127. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/media_catalog.py +0 -0
  128. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/media_cloud.py +0 -0
  129. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/memory.py +0 -0
  130. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/models.toml +0 -0
  131. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/modes.py +0 -0
  132. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/notify.py +0 -0
  133. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/ollama.py +0 -0
  134. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/permissions.py +0 -0
  135. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/planning.py +0 -0
  136. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/preview.py +0 -0
  137. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/render.py +0 -0
  138. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/repeats.py +0 -0
  139. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/repl.py +0 -0
  140. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/repoid.py +0 -0
  141. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/repomap.py +0 -0
  142. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/residency.py +0 -0
  143. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/review.py +0 -0
  144. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/sandbox.py +0 -0
  145. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/secretscan.py +0 -0
  146. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/servers/__init__.py +0 -0
  147. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/servers/encord.py +0 -0
  148. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/servers/valohai.py +0 -0
  149. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/servers/xai.py +0 -0
  150. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/sessions.py +0 -0
  151. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/steer.py +0 -0
  152. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/tools.py +0 -0
  153. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/unreachable.py +0 -0
  154. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/vision.py +0 -0
  155. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/web.py +0 -0
  156. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/__init__.py +0 -0
  157. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/flux2-klein-4b-t2i.json +0 -0
  158. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/remove-background.json +0 -0
  159. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/smooth-film.json +0 -0
  160. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/sound-stable-audio.json +0 -0
  161. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/upscale-esrgan.json +0 -0
  162. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/upscale-video-esrgan.json +0 -0
  163. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/wan21-fun-camera.json +0 -0
  164. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/wan21-vace.json +0 -0
  165. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/wan22-fun-inp-5b.json +0 -0
  166. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/wan22-ti2v-5b.json +0 -0
  167. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/src/lcode/workflows/z-image-turbo-t2i.json +0 -0
  168. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/comfy_standin.py +0 -0
  169. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/conftest.py +0 -0
  170. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/fake_lsp_server.py +0 -0
  171. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/fake_mcp_server.py +0 -0
  172. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_acp.py +0 -0
  173. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_action.py +0 -0
  174. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_agent.py +0 -0
  175. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_api.py +0 -0
  176. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_assistant.py +0 -0
  177. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_backends.py +0 -0
  178. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_bench.py +0 -0
  179. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_catalog.py +0 -0
  180. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_checkpoints.py +0 -0
  181. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_checks.py +0 -0
  182. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_cli.py +0 -0
  183. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_clipboard.py +0 -0
  184. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_cloud.py +0 -0
  185. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_codesearch.py +0 -0
  186. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_comfy.py +0 -0
  187. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_config.py +0 -0
  188. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_context.py +0 -0
  189. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_context_picker.py +0 -0
  190. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_conversations.py +0 -0
  191. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_escalate.py +0 -0
  192. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_extensions.py +0 -0
  193. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_film.py +0 -0
  194. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_gitflow.py +0 -0
  195. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_gpu_handover.py +0 -0
  196. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_hooks.py +0 -0
  197. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_image_edit.py +0 -0
  198. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_image_generate.py +0 -0
  199. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_jobs.py +0 -0
  200. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_long_clips.py +0 -0
  201. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_look.py +0 -0
  202. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_lsp.py +0 -0
  203. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_manual.py +0 -0
  204. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_matching.py +0 -0
  205. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_mcp.py +0 -0
  206. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_media_cloud.py +0 -0
  207. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_memory.py +0 -0
  208. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_model_picker.py +0 -0
  209. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_modes.py +0 -0
  210. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_permissions.py +0 -0
  211. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_plan_mode.py +0 -0
  212. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_repeats.py +0 -0
  213. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_repomap.py +0 -0
  214. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_residency.py +0 -0
  215. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_review.py +0 -0
  216. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_robustness.py +0 -0
  217. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_sandbox.py +0 -0
  218. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_secretscan.py +0 -0
  219. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_servers.py +0 -0
  220. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_sessions.py +0 -0
  221. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_steer.py +0 -0
  222. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_stuck.py +0 -0
  223. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_subagents.py +0 -0
  224. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_tools.py +0 -0
  225. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_video.py +0 -0
  226. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_vision.py +0 -0
  227. {lcode_cli-0.52.0 → lcode_cli-0.54.0}/tests/test_web.py +0 -0
  228. {lcode_cli-0.52.0 → lcode_cli-0.54.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.0
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.0
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.0
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.0
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.0
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,57 @@ All notable changes to lcode are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.54.0] - 2026-11-01
10
+
11
+ ### Added
12
+
13
+ - **Public benchmarks** (#197): `lcode bench --harbor dev` runs lcode on a slice of Terminal-Bench
14
+ 2.0 and SWE-bench Verified with Harbor, each task in a fresh container with your local model, three
15
+ attempts each. It reports pass@1, pass^3, the spread between runs and the time and tokens per
16
+ task, and saves them with the lcode version, the model, the context and the command that
17
+ reproduces them. The `held-out` slice is for confirming a change, never for tuning on it. For
18
+ `harbor run` itself, the agent is `lcode.harbor:Lcode`.
19
+
20
+ ### Fixed
21
+
22
+ - **Your Python when lcode runs with `uvx`.** `uvx` puts lcode's own temporary environment first
23
+ on `PATH`, so `python` in the model's commands and in the checks was lcode's Python, without the
24
+ project's packages, and the checks failed with "No module named pytest". lcode now takes that
25
+ environment off `PATH` when it starts, if you have a Python of your own on `PATH`. Other installs
26
+ don't change `PATH` and are left as they are.
27
+
28
+ ## [0.53.0] - 2026-10-31
29
+
30
+ ### Added
31
+
32
+ - **Run traces** (#196): each request in code mode is recorded on this machine as it runs: the
33
+ model's answers with the time to the first token, the total time and the tokens in and out;
34
+ each tool call with its result and time; the model's settings, the lcode version and the git
35
+ commit. Subagents get a lane of their own. Traces stay on this machine, are deleted after 30
36
+ days and take 200 MB at most; `lcode config set trace false` turns them off.
37
+ - **`lcode trace`** lists the traces, `lcode trace show 1` shows one as a timeline, and
38
+ `lcode trace export 1` writes a copy for a bug report with secrets, home-folder paths, user
39
+ names, and email and IP addresses masked.
40
+ - **`lcode trace replay 1`** runs a recorded request again with the recorded answers instead of a
41
+ model, in a copy of the folder at the recorded commit, and shows where the tool results now
42
+ differ. Shell commands keep their recorded results unless `--commands` runs them again. It
43
+ needs no GPU, and `lcode.replay.run` does the same in a test.
44
+
45
+ ### Fixed
46
+
47
+ - **Screenshots of web pages when the browser starts slowly.** The first start after a restart
48
+ reads the browser from disk, which took up to 12 seconds on GitHub's machines and sometimes
49
+ over the 30 seconds lcode gave it, so the shot failed with "the browser didn't answer". The
50
+ browser now gets 90 seconds to start. An error says whether it didn't start in time, quit, or
51
+ didn't answer a command, and quotes the browser's last lines.
52
+ - **What to do when Ollama in Docker doesn't answer.** lcode and `lcode doctor` suggested
53
+ installing Ollama even when it runs in a Docker container. They now name the container and give
54
+ the command to start it: `docker compose up` when Docker Compose made it, `docker start`
55
+ otherwise. A running container that doesn't answer gets `docker logs`. When there's no container
56
+ or Docker itself isn't running, the message says so.
57
+ - **The Ollama commands on macOS.** When Ollama wasn't running, or had a new version out, lcode
58
+ showed the Linux install command on a Mac. It now shows the Homebrew one.
59
+
9
60
  ## [0.52.0] - 2026-10-27
10
61
 
11
62
  ### Added
@@ -1135,7 +1186,9 @@ First public release.
1135
1186
  - `AGENTS.md` project instructions and `/init` to generate them.
1136
1187
  - One-line installer for Linux and macOS.
1137
1188
 
1138
- [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.52.0...HEAD
1189
+ [Unreleased]: https://github.com/nasser1941/lcode/compare/v0.54.0...HEAD
1190
+ [0.54.0]: https://github.com/nasser1941/lcode/compare/v0.53.0...v0.54.0
1191
+ [0.53.0]: https://github.com/nasser1941/lcode/compare/v0.52.0...v0.53.0
1139
1192
  [0.52.0]: https://github.com/nasser1941/lcode/compare/v0.51.0...v0.52.0
1140
1193
  [0.51.0]: https://github.com/nasser1941/lcode/compare/v0.50.0...v0.51.0
1141
1194
  [0.50.0]: https://github.com/nasser1941/lcode/compare/v0.49.1...v0.50.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: lcode-cli
3
- Version: 0.52.0
3
+ Version: 0.54.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,8 @@ 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 bench --harbor dev` | run lcode on a slice of Terminal-Bench 2.0 and SWE-bench Verified, with Harbor |
185
+ | `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
184
186
  | `/undo`, `/rewind` | take back the last request's file changes, or go back further |
185
187
  | `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
186
188
  | `/rename`, `/resume` | name the current session, resume a saved one |
@@ -145,6 +145,8 @@ 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 bench --harbor dev` | run lcode on a slice of Terminal-Bench 2.0 and SWE-bench Verified, with Harbor |
149
+ | `lcode trace` / `lcode trace show 1` | past requests, step by step with times and tokens; export or replay one |
148
150
  | `/undo`, `/rewind` | take back the last request's file changes, or go back further |
149
151
  | `lcode mcp catalog` / `lcode mcp add github` | ready-made MCP servers / add one |
150
152
  | `/rename`, `/resume` | name the current session, resume a saved one |
@@ -4,6 +4,9 @@
4
4
  coding on my machine?* It runs a fixed set of small coding tasks against one or more models and
5
5
  reports how many they solved, how fast they ran and how much memory they used.
6
6
 
7
+ To compare with other agents on public benchmarks (Terminal-Bench 2.0 and SWE-bench Verified),
8
+ see [Public benchmarks](public-benchmarks.md).
9
+
7
10
  ```bash
8
11
  lcode bench # the configured model
9
12
  lcode bench qwen3.6-35b qwen3.5-9b # compare models
@@ -61,6 +61,7 @@ lcode config path # print the file location
61
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) |
62
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)) |
63
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) |
64
65
 
65
66
  Besides these settings, `config.toml` can hold [hooks](hooks.md) (`[[hooks]]`) and
66
67
  [permission rules](hooks.md#permission-rules) (`[permissions]`); a repository can have its own in
@@ -115,9 +116,10 @@ Environment variables override the file, which is useful for one-off runs and CI
115
116
  | `~/.local/state/lcode/lsp-logs/` | Language servers' own output |
116
117
  | `~/.local/state/lcode/index/` | [Code search](search.md#semantic-code-search) indexes, one per repository (`lcode index`) |
117
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) |
118
120
  | `~/.local/state/lcode/limits.json` | Context sizes that ran out of GPU memory on this machine (safe to delete) |
119
121
 
120
- Sessions contain everything the model read, including file contents. Delete the folder to clear them.
122
+ Sessions and traces contain everything the model read, including file contents. Delete the folders to clear them.
121
123
 
122
124
  ## Tuning for speed and memory
123
125
 
@@ -0,0 +1,128 @@
1
+ # Public benchmarks
2
+
3
+ `lcode bench` has eight small tasks of its own, and good models solve all of them. To see progress
4
+ past that, and to compare with other agents, lcode runs on two public benchmarks that anyone can
5
+ rerun:
6
+
7
+ - [Terminal-Bench 2.0](https://www.tbench.ai/): tasks in a terminal, from fixing a git repository
8
+ to building software, recovering data or setting up servers.
9
+ - [SWE-bench Verified](https://www.swebench.com/): real bug fixes in Python projects such as Django,
10
+ SymPy and matplotlib, checked by the project's own tests.
11
+
12
+ Both run on [Harbor](https://github.com/harbor-framework/harbor). Harbor starts each task in a
13
+ fresh Docker container. lcode is installed in that container and works on the task as one request
14
+ (`lcode -p "<the task>" --yolo`), with the model on your machine. Afterwards the task's tests decide
15
+ whether it passed.
16
+
17
+ ## What you need
18
+
19
+ - **Docker**, running.
20
+ - **uv**: lcode runs Harbor with `uvx`, so there's nothing else to install.
21
+ - **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
+ - **A model server the containers can reach.** lcode in a container finds your machine by itself:
24
+ as `host.docker.internal` with Docker Desktop (macOS, Windows), or as the container's gateway on
25
+ Linux. Ollama has to listen on more than `127.0.0.1` for that:
26
+ - Ollama in Docker with its port published (`-p 11434:11434`) already does.
27
+ - Ollama installed on Linux listens only on `127.0.0.1`. Run `sudo systemctl edit ollama`, add
28
+ `Environment="OLLAMA_HOST=0.0.0.0"` under `[Service]`, and restart it. That also opens it to
29
+ your network, so keep port 11434 closed in your firewall.
30
+
31
+ ## Running it
32
+
33
+ ```bash
34
+ lcode bench --harbor dev # the dev slice with your model, 3 attempts per task
35
+ lcode bench --harbor dev qwen3.6-35b --context 64k
36
+ lcode bench --harbor dev --tasks cobol-modernization,django__django-11555 --attempts 1
37
+ lcode bench --harbor dev --list # the slice's tasks
38
+ ```
39
+
40
+ Tasks run one at a time, since they share your GPU. The context is your configured one unless you
41
+ give `--context`. A container can't see your GPU, so lcode there doesn't choose a context itself.
42
+
43
+ lcode in the container is the same version as yours: from PyPI, or a wheel built from your checkout
44
+ when you run lcode from one, so a change can be measured before it's released.
45
+
46
+ ## The slices
47
+
48
+ | Slice | Terminal-Bench 2.0 | SWE-bench Verified | For |
49
+ |---|---|---|---|
50
+ | `dev` | 15 | 10 | everyday checks of a change |
51
+ | `held-out` | 14 | 11 | confirming a change helps beyond the tasks it was tuned on |
52
+
53
+ Both were drawn once, at random and by difficulty, from the tasks a local model can try in a night:
54
+
55
+ - Terminal-Bench without its model-training tasks, and with at most 30 minutes per task: 2 easy,
56
+ 10 medium and 3 hard tasks in the dev slice.
57
+ - SWE-bench Verified's two common difficulties: five fixes estimated under 15 minutes and five of
58
+ 15 minutes to an hour.
59
+
60
+ Don't tune lcode on the held-out set: once a change is chosen because it does well there, the set
61
+ no longer tells you whether changes generalize.
62
+
63
+ ## What's reported
64
+
65
+ Two tasks, one attempt each, with qwen3.6-35b at 32K on a 12 GB laptop GPU:
66
+
67
+ ```text
68
+ $ lcode bench --harbor dev --tasks prove-plus-comm,django__django-11555 --attempts 1
69
+ …
70
+ Task Benchmark Passed Time Tokens in Tokens out
71
+ prove-plus-comm terminal-bench 1/1 0.6 min 27,827 1,494
72
+ django__django-11555 swebench-verified 0/1 19.9 min 2,370,217 38,508
73
+ pass@1 50% · pass^1 50%
74
+ ```
75
+
76
+ With three attempts, the last line also gives each run's pass rate and the spread between them.
77
+
78
+ - **pass@1**: the share of attempts that passed, averaged over the tasks. It's the number to compare
79
+ with leaderboards.
80
+ - **pass^3**: the share of tasks whose three attempts all passed. That shows how dependable lcode is,
81
+ not just how often it gets lucky.
82
+ - **runs and spread**: the pass rate of each task's first attempt, its second and its third. Single
83
+ runs of the same setup differ by several points, so differences smaller than the spread are noise.
84
+ - **Time and tokens** per attempt, from lcode's own record of the request (its
85
+ [trace](traces.md)).
86
+
87
+ Attempts whose container didn't start (a failed image download, say) count neither as passed nor
88
+ as failed. The report shows how many there were.
89
+
90
+ Everything is saved in `~/.local/state/lcode/bench/<slice>-<time>/`:
91
+
92
+ - `lcode-bench.json`: the results, with the lcode and Harbor versions, the model, the context, the
93
+ machine, the date and the command that reproduces them. `--json FILE` saves a copy.
94
+ - Harbor's own results: each attempt's log, the task's test output, and lcode's trace and session.
95
+ `uvx --from harbor harbor view <folder>` browses them.
96
+
97
+ ## With Harbor directly
98
+
99
+ `lcode.harbor:Lcode` is an ordinary Harbor agent, so every Harbor dataset and option works:
100
+
101
+ ```bash
102
+ uvx --python 3.13 --from harbor==0.25.0 --with lcode-cli harbor run \
103
+ -d terminal-bench@2.0 -a lcode.harbor:Lcode -m qwen3.6-35b --ak context=32768
104
+ ```
105
+
106
+ Its options, each given with `--ak name=value`:
107
+
108
+ | Option | What it does |
109
+ |---|---|
110
+ | `context` | the context window, e.g. `32768` |
111
+ | `host` | Ollama's address as the container sees it, e.g. `http://192.168.1.20:11434` |
112
+ | `version` | the lcode version to install (default: the one Harbor runs with) |
113
+ | `wheel` | an lcode wheel on your machine to install instead |
114
+
115
+ Other model servers work as in lcode itself: `--ae LCODE_BACKEND=openai --ae LCODE_BASE_URL=…`.
116
+
117
+ ## When Docker can't make networks
118
+
119
+ Harbor gives each task a network of its own. When Docker says *all predefined address pools have
120
+ been fully subnetted*, every address range it could use overlaps a route on your machine. A VPN that
121
+ sends all traffic through itself does that. Add `--docker-bridge`, and the tasks run on Docker's
122
+ default network instead. With Harbor directly, pass `--extra-docker-compose` with a file holding:
123
+
124
+ ```yaml
125
+ services:
126
+ main:
127
+ network_mode: bridge
128
+ ```
@@ -12,7 +12,7 @@ lcode
12
12
 
13
13
  ```text
14
14
  ╭──────────────────────────────────────────────╮
15
- │ lcode v0.52.0 — local coding agent │
15
+ │ lcode v0.54.0 — local coding agent │
16
16
  │ │
17
17
  │ model lcode-qwen3.6-35b │
18
18
  │ context 256K tokens │
@@ -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: `docker start <container>`, and make sure port 11434 is published.
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,8 @@ 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 bench --harbor dev # public benchmarks: Terminal-Bench 2.0 and SWE-bench Verified
14
+ lcode trace [action] [N] # past requests: show one step by step, export or replay it (see Run traces)
13
15
  lcode mcp [catalog|add|list] # connect MCP servers: Jira, GitHub, AWS, databases… (see MCP servers)
14
16
  lcode acp # run inside an editor over the Agent Client Protocol (see Editors)
15
17
  lcode update [--check] # update lcode, and Ollama when it runs in Docker (see Installation)
@@ -519,6 +521,9 @@ a screen and sees what you would, measured:
519
521
  - Needs: Xvfb for other desktop programs (`sudo apt install xvfb x11-apps`), and Chrome or
520
522
  Chromium for web pages. On macOS only Qt programs and web pages work, since there's no virtual
521
523
  display.
524
+ - The first web page after a restart can take a few seconds longer, while the browser loads from
525
+ disk: lcode gives it 90 seconds to start. If it doesn't start, or quits, the error says which and
526
+ quotes the browser's last lines.
522
527
 
523
528
  ## Permissions
524
529
 
@@ -766,6 +771,10 @@ model has to read a file again before editing it.
766
771
  `LCODE_HOME`, or `XDG_STATE_HOME`, moves that folder: a terminal that sets one of them (some IDEs
767
772
  and test scripts do) sees other sessions. `lcode bench` doesn't save its runs as sessions.
768
773
 
774
+ Each request is also recorded as a [run trace](traces.md): its model and tool calls with their
775
+ times and tokens. `lcode trace` lists them, and `lcode trace show 1` shows the last one step by
776
+ step.
777
+
769
778
  ## Scripting
770
779
 
771
780
  `-p` runs one request and exits, which is handy in scripts and git hooks:
@@ -104,6 +104,8 @@ nav:
104
104
  - Models & context windows: models.md
105
105
  - Other model servers: servers.md
106
106
  - Benchmarking models: bench.md
107
+ - Public benchmarks: public-benchmarks.md
108
+ - Run traces: traces.md
107
109
  - MCP servers: mcp.md
108
110
  - Sandbox: sandbox.md
109
111
  - Hooks and permission rules: hooks.md
@@ -3,7 +3,7 @@
3
3
  From a program: `from lcode import Session` (see lcode.api).
4
4
  """
5
5
 
6
- __version__ = "0.52.0"
6
+ __version__ = "0.54.0"
7
7
 
8
8
  API = ("Session", "Result", "Options", "SetupError")
9
9