# agent2: More efficent read file tool \(\#38407\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca05ff89f434319f00c7d99a030bfd767d6edb39

Requested commit: ca05ff89f434319f00c7d99a030bfd767d6edb39

Commit: ca05ff89f434319f00c7d99a030bfd767d6edb39

Tree: 06abdc1b2c2151c72cf65d861e89d5f157111959

Author: Ben Brandt

Committer: GitHub

## Message

```
agent2: More efficent read file tool (#38407)

Before we were always reading the entire file into memory as a string.
Now we only read the range that is actually requested.

Release Notes:

- N/A
```

## Parents

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

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