# Strengthen guidance for git commands in the terminal tool \(\#55787\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c60c0d5f496cb8106afdcc7eff52679328a73b8e

Requested commit: c60c0d5f496cb8106afdcc7eff52679328a73b8e

Commit: c60c0d5f496cb8106afdcc7eff52679328a73b8e

Tree: 7eb56c66d7f82b4647c4cb15f404f443a6347096

Author: Richard Feldman

Committer: GitHub

## Message

```
Strengthen guidance for git commands in the terminal tool (#55787)

Move guidance about pty-blocking commands from the `TerminalToolInput`
struct-level doc comment to the `command` field's doc comment so it's
surfaced more prominently to the model in the tool's JSON schema, and
call out `--no-pager` and `GIT_EDITOR=true` explicitly for git
operations.

In practice, the previous wording about `git --no-pager diff` was easy
for agents to overlook, leading to terminal calls that block waiting on
`less` (for `git log`/`git diff`/`git show`) or on an interactive editor
(for `git rebase`/`git commit`/`git merge`).

Unit eval change before/after wording change:

<img width="1662" height="740" alt="image"
src="https://github.com/user-attachments/assets/5f7921f3-87fa-4f88-9839-193ca4522572"
/>

Closes AI-154

Release Notes:

- Zed Agent's terminal tool now much more consistently uses `--no-pager`
and `GIT_EDITOR` with `git` commands
```

## Parents

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

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