# agent: Only include tool guidance in system prompt when profile has tools enabled \(\#40413\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 37540d1ff7c0394b4b2b721c86c7c1615e7418d4

Requested commit: 37540d1ff7c0394b4b2b721c86c7c1615e7418d4

Commit: 37540d1ff7c0394b4b2b721c86c7c1615e7418d4

Tree: 189e9da4ee556a684a445ddb2156b66a9f634a02

Author: Christian Durán Carvajal

Committer: GitHub

## Message

```
agent: Only include tool guidance in system prompt when profile has tools enabled (#40413)

Was previously sending all of the tools to the LLM on the first message
of a conversation regardless of the selected agent profile. This added
extra context, and tended to create scenarios where the LLM would
attempt to use the tool and it would fail since it was not available.

To reproduce, create a new conversation where you ask the Minimal mode
which tools it has access to, or try to write to a file.

Release Notes:

- Fixed an issue in the agent where all tools would be presented as
available even when using the `Minimal` profile

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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