# agent: Add terminal output head and tail options \(\#58257\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c0db923b2431f4c727ed26af365bf09fbefe6114

Requested commit: c0db923b2431f4c727ed26af365bf09fbefe6114

Commit: c0db923b2431f4c727ed26af365bf09fbefe6114

Tree: 628649e91d12831ecd2028cc741bbdf9d10b1df0

Author: Richard Feldman

Committer: GitHub

## Message

```
agent: Add terminal output head and tail options (#58257)

Adds optional terminal tool parameters that let agents receive only the
first lines, last lines, or both from a command's final output while
leaving the live terminal output visible to users. This is gated by the
terminal-tail feature flag and updates the tool descriptions to steer
agents away from piping through head, tail, or similar filters.

Closes AI-36

Release Notes:

- Let agents use the terminal tool with builtin "head/tail" so they
don't have to pipe to head/tail and lose incremental output
```

## Parents

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

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