lean-ctx-patterns 0.1.0

Deterministic shell-output compression patterns and token counting for LeanCTX | OSS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# lean-ctx-patterns

Deterministic shell-output compression patterns and token counting for the
[LeanCTX | OSS](https://github.com/yvgude/lean-ctx).

Every pattern is a pure text transform: a command line and its output go in,
and a shorter rendering of that output (or `None`) comes out. Engine policy
stays in the engine. That covers protected commands, user filter rules and
configuration, which reach this crate only through the `PatternEnv` trait.

This crate is an internal building block of `lean-ctx`. Its API follows the
engine's needs and may change between minor versions.

License: Apache-2.0