# Rules

<figure><img src="/files/OKy58kRIsA6vGgSTWhNh" alt="" width="563"><figcaption></figcaption></figure>

\
When a TODO remains unresolved after a given period, Catana will perform an action of your choice, such as sending an email reminder to its assignee.

### Adding rules

To create a rule, click on the "Add a rule" button. Each rule you add requires two inputs:

1. The number of days after a TODO is introduced before the rule should kick in.
2. The action to perform.

{% hint style="info" %}
The number of days to wait will start at a different time depending on whether a TODO has a [trigger](/triggers/overview.md):

* For TODO items without a trigger, the timer starts at the time the TODO is introduced.
* For TODO items with a trigger, the timer starts when the TODO expires. If it has not yet expired, Catana will not perform any rules.
  {% endhint %}

For instance, you can configure an email reminder two weeks after a TODO is introduced, a second reminder two weeks later, make the TODO more visible to the team by opening an issue after a month, and finally remove the TODO from the codebase if it has not been resolved after two months.

#### :warning: Note

Adding a new rule will apply only to upcoming TODOs.

For example, if you add a new rule to remind the author two weeks after a TODO is introduced, the rule will **not take effect** for existing TODOs, even if they were added two weeks ago or earlier.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.catana.dev/configuration/rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
