Skip to content

v0.20.0

Latest

Choose a tag to compare

@LIUTod LIUTod released this 13 Nov 13:22

scream-code 0.20.0

The phase-3 capability set, fully reviewed end to end (two adversarial review passes, an independent fix-verification round, and the full gate: 8 test suites green, six package typechecks, lint within budget).

New capabilities

  • AST tools (ast_grep, ast_edit): structural search across files and trees, and preview-then-apply rewrites gated on a match count with the same write pipeline as Edit. The @ast-grep/napi engine stays external to the CLI bundle and resolves per platform.
  • DAP debugger: an eight-op Debug tool (launch/attach, breakpoints, continue, stack traces, scopes, variables, evaluate) over a shared Content-Length framing utility, driven by the debugpy stdio adapter behind the deferred tool portal. Requires pip install debugpy.
  • Exact token counting: js-tiktoken (lite entry) behind a per-alias tokenizer setting, threaded through every estimate site; run-aware sampling keeps pathological inputs bounded and the heuristic remains the fallback.
  • Provider key pools: api_key = [...] for the rotation-capable providers, session-affine KeyRing with cooldowns, and quota-429 rotation in the retry loop that does not spend the generic attempt budget.
  • Edit recovery reminders: new errors introduced by an edit become reminders that survive compaction — per-step dedupe, first-edit baseline seeding, timeout awareness, and clearing when any writer fixes the file.
  • /model diy pickers (0.20.0 line): role-based routing (read/task/judge), the compaction model, and per-subagent bindings, persisted live with clearly marked priority.

Fixes and hardening

  • Edit tool: line-range edits with anchor validation, stale-anchor recovery with rollback, and conflict re-checks on remapped windows.
  • Activity block and smooth scrolling fixed at the source (no more black bands or missed last rows).
  • LSP tools expanded to 10 operations, plus opportunistic file outlines on Read.
  • Tool portal keeps explicit tool lists exact; deferred groups survive profile re-application.
  • Review round fixes across the edit pipeline, tokenizer threading, bundling, and docs.

Verification

  • agent-core 4390 tests, ltod 1216, app 2022, node-sdk 154, memory 117, jian 222, knowledge 98, evals 102 — all green.
  • Six package typechecks clean; lint ratchet within budget.
  • Build verified: ast-grep externalized, unused tokenizer tables absent from the bundle.