lvz-context 0.1.0

Token-efficiency engine for Lavoisier: tree-sitter skeletons, hash-anchored edits, token-efficient diffs.
Documentation

lvz-context — the token-efficiency engine (§6.1).

This crate holds the largest token levers, all usable offline and independent of any provider:

  • [skeleton] — tree-sitter file-skeleton extraction: keep signatures + types + docs, elide bodies (multi-language: Rust, Python, JavaScript, TypeScript).
  • [symbols] — recursive symbol-dependency graph; drives the skeleton-radius knob N via [symbols::skeleton_with_radius].
  • [anchor] — hash-anchored edits: address lines by a short content hash so edits don't require resending the file, and stale edits are rejected rather than misapplied.
  • [diff] — token-efficient unified diffs: emit only changed hunks, never full rewrites.
  • [tokens] / [budget] — deterministic token estimate + the §6.5 budget-fixture loop that gates skeleton-radius regressions in CI.

These are the primitives the agent uses to read less and write less; the skeleton-radius knob N (§6.5) drives [skeleton::skeletonize]'s keep_bodies set.