Tag sessions automatically with auto-tag rules
An auto-tag rule adds tags to a session without you having to think about it. For example, "every session that starts on Antigravity gets the antigravity tag" or "a session whose first message mentions deploy gets the release tag". You set rules up in Settings → Sessions → Auto-Tag Rules, or an agent sets them up for you over the local control server.
On this page
What it is
A rule is a list of conditions plus one to five tags. When every condition a rule sets is true for a session, the rule's tags are added to it. Conditions you leave as Any are not checked. A rule needs at least one condition and at least one tag, or it never runs; the rule card says so.
The conditions:
- Engine — the engine the session runs on (Claude, Antigravity, Codex, Gemini and the rest). For a session mirrored from another computer it is the engine on that computer.
- Runs on — This computer (WSL included), Cloud (a rented Cloud PC or a cloud session), Linked computer (any other linked computer) or SSH.
- Thinking level — the session's thinking level. A session with no level set counts as auto.
- Model contains — part of the model name, ignoring capital letters.
- Project — one project.
- Text contains — a phrase, ignoring capital letters, looked for in the First message of the session (whoever wrote it, including an agent's opening prompt) or in My messages (every message you write).
You can have up to 50 rules, and each can be switched on or off. Rules belong to the computer they were made on: they name that computer's own tags and projects, so they do not follow you to your linked computers.
Where to find it
Settings → Sessions, directly under Auto-Color Rules. The Settings → Tags page also has a Set up rules button that jumps there, and settings search finds it under "auto tag".
How it behaves
- When a rule is checked. Conditions about the session itself are checked when the session starts here, again once an automatic session's model has been picked, and, for a session mirrored from another computer, once its engine there is known. Text conditions are checked when a message is saved.
- Tags are ordinary tags. A rule-added tag is the same as one you add by hand: it counts toward the 10-tag limit, respects the tag's project limits, and you can remove it. A rule never creates, renames or deletes a tag.
- Nothing is added twice. A tag already on the session is left alone, and a session at 10 tags gets no more.
- Removing a tag. A tag you remove stays removed unless a later message of yours matches a My messages rule again.
- Never in the way. A rule that cannot apply is skipped quietly, and checking rules never slows a session starting or a message sending.
What rules do not do yet: they do not read the agent's replies (an Auto-reply rule can tag on those), they only apply to sessions from now on, and text conditions do not see messages of sessions mirrored from another computer. A session started or a message sent in the first moments while the app window is still loading is not checked.
Related
- session-tags.md — putting tags on a session by hand
- cli-tags.md — the tag library routes
- tag-manager.md — the tag model, project limits and the 10-tag cap
Last verified 2026-12-01