# ed attention categories set

> Assigns one summary entity to a category. Rules are applied at query time, so the change reclassifies existing history without rewriting events.

- Canonical URL: https://getedith.pro/docs/cli/attention/categories/set
- Updated: 2026-12-02

Assigns one summary entity to a category. Rules are applied at query time, so the
change reclassifies existing history without rewriting events.

```
ed attention categories set <entity> <category> [--name <display-name>]
  [--productivity <level>] [--sphere <work|personal|both>] [--json]
```

Use an entity ID from `ed attention summary --json`. Accepted forms are
`name:<identity name>`, `app:<bundle-id>`, and `web:<domain>` and `rule:<id>`. A `rule:` entity updates the matching scoped rule. A `name:` entity
updates every rule with that name, or copies the built-in rule of that name into
your rules.

`--productivity` and `--sphere` override the category's defaults for this entity
only. For example, `ed attention categories set name:x social --productivity
productive --sphere personal` keeps X as Social while counting it as productive,
personal time. The category can be
its ID or exact display name. `--name` sets the unified friendly name.

## Where to go next

- [`ed attention`](https://getedith.pro/docs/cli/attention)
- [`ed attention summary`](https://getedith.pro/docs/cli/attention/summary)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
