examples/integrations/cursor/feedback/README.md
[!CAUTION]
This example is deprecated and unmaintained. Use at your own risk.
This is very early-stage work and should be considered experimental.
In this directory we include a Rust project that uses tree-sitter to parse diff hunks into syntax trees and the Zhang–Shasha algorithm to compute tree-edit-distance metrics:
We also include an example Git hook in post-commit.example (pointing at the build directory).
This approach works best with frequent commits, giving more granular insights into which TensorZero variants lead to merged code.
To install it:
cargo install --path . from this directory.post-commit.example to your root .git/hooks for the repo you'd like to install this in.CURSORZERO_CLICKHOUSE_URL to point at the ClickHouse database you're using to store inferences from the docker compose in the parent directory.There’s plenty of room for improvement both in implementation details and the overall strategy. This example is under active development -- please expect changes!