# agent: Add ability to set a default_model per profile \(\#39220\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2d84af91bf3e272770c07ddb4056618cb5e5e9a8

Requested commit: 2d84af91bf3e272770c07ddb4056618cb5e5e9a8

Commit: 2d84af91bf3e272770c07ddb4056618cb5e5e9a8

Tree: 362a72c2c646d8dfb3d78f8e3dd79e281b32d422

Author: David

Committer: GitHub

## Message

````
agent: Add ability to set a default_model per profile (#39220)

Split off from https://github.com/zed-industries/zed/pull/39175

Requires https://github.com/zed-industries/zed/pull/39219 to be merged
first

Adds support for `default_model` for profiles: 

```
      "my-profile": {
        "name": "Coding Agent",
        "tools": {},
        "enable_all_context_servers": false,
        "context_servers": {},
        "default_model": {
          "provider": "copilot_chat",
          "model": "grok-code-fast-1"
        }
      }
```

Which will then switch to the default model whenever the profile is
activated

![2025-09-30 17 09
06](https://github.com/user-attachments/assets/43f07b7b-85d9-4aff-82ce-25d6f5050d50)


Release Notes:

- Added `default_model` configuration to agent profile

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
````

## Parents

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

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