# Limits

**Every limit Niro applies, its default, and how to change it where you can.** Limits keep one question or one file from taking over your computer or flooding your agent.

## Computer

| Limit | Value |
| --- | --- |
| Node.js | 18 or newer |
| Free disk space before `niro start` warns | 2 GB |
| Computers | macOS and Linux, Intel and ARM. Windows: supported, details coming |

## Plan

| Limit | Value |
| --- | --- |
| Lines you can index | Set by your plan. See [Licence and plans](https://help.niroai.dev/cli/licence-and-plans/) |
| Working without reaching Niro's licence service | About a day |

## Building

| Limit | Default | Change with |
| --- | --- | --- |
| Largest source file read | 2 MB | `NIRO_LOCAL_MAX_FILE_BYTES` |
| Time to read a file over 256 KB | 20 seconds | `NIRO_LOCAL_PARSE_TIMEOUT_SECONDS` |
| How long a second build waits for the first | 120 seconds | `NIRO_LOCAL_BUILD_LOCK_WAIT` |
| Repositories inside one folder you add | 60. More is refused | none |
| Route rules per folder | 200 | none |
| Clean-up of temporary projects and missing folders | 14 days | `NIRO_LOCAL_BRANCH_INDEX_IDLE_DAYS`, `NIRO_LOCAL_MISSING_FOLDER_DAYS` |
| New worktree build attempts | 3, with waits of 2 and then 10 minutes | none |

## Answers to agents

| Limit | Default |
| --- | --- |
| Time for one tool call from an agent | 120 seconds (`NIRO_TOOL_TIMEOUT_MS`) |
| Time for one call to the engine | 30 seconds |
| Names in one batch question | 10 |
| Call chain depth | 3 by default, at most 8 |
| Blast radius and impact depth | 3 by default, from 1 to 5 |
| Exception flow depth | 3 by default, at most 5 |
| Callers per page | 300 |
| Types per page | 100 |
| Events, data stores per page | 50 |
| Routes, outbound calls per page | 20 |
| Matches for one name (`resolve_name`) | 25 |
| Source shown with an answer | the method asked about in full, up to 150 lines; 12 lines of each other method; at most 20 methods |

## `code_grep` and `get_source_code`

| Limit | Default |
| --- | --- |
| Search time before the answer is cut, with a way to continue | 1.5 seconds |
| Answer length | 20,000 characters (`NIRO_LOCAL_MAX_ANSWER_CHARS`) |
| Files per page | 50, at most 200 |
| Matches per file | 5, at most 50 |
| Search patterns in one call | 10 |
| Items in one `get_source_code` batch | 25 |
| Lines in one read | 2,000 |
| Characters per line shown | 500 |
| Largest file searched | 8 MB (`NIRO_LOCAL_SEARCH_MAX_BYTES`) |
| Largest config or text file read | 256 KB (`NIRO_LOCAL_STRICT_MAX_BYTES`) |

## Sign-in and network

| Limit | Value |
| --- | --- |
| Time to approve a sign-in code in the browser | 10 minutes, unless the service says otherwise |
| Time limit on sign-in and other account calls | **None.** On a stalled network they can wait until you press Ctrl-C |