# rules library: Improve delineation of default and non-default rules \(\#39209\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9741e9ab8bcbb71ec54f974ab149897996cc2c20

Requested commit: 9741e9ab8bcbb71ec54f974ab149897996cc2c20

Commit: 9741e9ab8bcbb71ec54f974ab149897996cc2c20

Tree: a9d8c6163a9cd8e3a1593595d090243476839118

Author: Danilo Leal

Committer: GitHub

## Message

```
rules library: Improve delineation of default and non-default rules (#39209)

Closes https://github.com/zed-industries/zed/issues/39183

This PR adds UI improvements to clarify the concept of "default rules"
and how they separate from regular rules. This is mostly motivated by
the issue linked above, where it clarified that the star icon was
communicating a "favoriting" affordance, which is not correct with how
rules work in Zed. When you tag/attach a rule as default, it will always
be included in every prompt, together with the agent's system prompt and
project rules (if they exist).

Hopefully, this will make understanding better. Here's how it looks like
now?


https://github.com/user-attachments/assets/435d3af7-e8a6-4646-8f00-94a409bd5f42

Release Notes:

- Improve rules library UI to better communicate the concept of default
rules vs. regular rules.
```

## Parents

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

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