# Add zeta-cli subcommand for running zeta2 predictions \(\#41722\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1631cec15a263466d5fed166f627f95e9fbc12ec)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1631cec15a263466d5fed166f627f95e9fbc12ec

Requested commit: 1631cec15a263466d5fed166f627f95e9fbc12ec

Commit: 1631cec15a263466d5fed166f627f95e9fbc12ec

Tree: ea22818744451d3905e7b1f496df17ae72a24fa9

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Add zeta-cli subcommand for running zeta2 predictions (#41722)

This PR adds a `zeta zeta2 predict` subcommand that takes an edit
prediction example markdown file as an argument, and performs zeta2's
prediction, showing the retrieved context and the predicted edit.

* [x] Apply uncommitted diff to get repo into the right state.
* [x] Apply edits in edit history
* [x] Display predicted edits as unified diff, regardless of model
output format

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
```

## Parents

- [5e41ce17e35685de1f62662e96f6de0b9cef8749](https://git.cafe/gitcafe/zed/commit/5e41ce17e35685de1f62662e96f6de0b9cef8749?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1631cec15a263466d5fed166f627f95e9fbc12ec?format=markdown)
