# Stop loading deprecated agent rules \(\#57844\) · gitcafe/zed

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

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

Visibility: public

Requested revision: aa6062edaffc2104e37f9752e8741353f8b07c4a

Requested commit: aa6062edaffc2104e37f9752e8741353f8b07c4a

Commit: aa6062edaffc2104e37f9752e8741353f8b07c4a

Tree: 8c234cea347a1b4283d7621086faf8455fe621c6

Author: MartinYe1234

Committer: GitHub

## Message

```
Stop loading deprecated agent rules (#57844)

Summary:

- Stop loading persisted default Zed Rules into native agent project
context.
- Remove legacy user-rules rendering from agent system prompt templates.
- Keep Skills and project rules file support unchanged.

Tests:

- cargo test -p agent
test_system_prompt_does_not_render_legacy_zed_rules_section --lib
- cargo test -p prompt_store test_empty_skills_sets_has_skills_false
- cargo test -p prompt_store
test_project_context_does_not_filter_by_budget

Closes AI-325
Release Notes:

- Fixed deprecated Rules being automatically included in new agent
requests.
```

## Parents

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

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