Skip to content

[limits]

Resource limits for the agent session.

Command-execution knobs such as timeouts, output bounds, spill controls, and environment loading live under [command_run]; this section is for general numeric caps that are not tied to a single command spawn.

TypeintegerDefault100

LRU entry count for the file_read dedup cache. 0 disables dedup.

TypeintegerDefault25

Total MB of cached file contents before oldest entries evict.

TypeintegerDefault262144

Pre-read byte cap for file_read. Reads that would exceed this throw with a “use offset/limit or grep” message rather than silently truncating. Only applied when no explicit line range was requested — an explicit range means the caller has already accepted responsibility for output size. 0 = unbounded (not recommended).

TypeintegerDefault25000

Post-read token cap for file_read. Same throw policy as file_read_max_bytes. Uses a per-extension bytes-per-token ratio (JSON-family: 2, everything else: 4) to estimate tokens without round-tripping a real tokenizer call. 0 = unbounded.

TypeintegerDefault50

Maximum context lines allowed around each grep match.

TypeintegerDefault250

Maximum number of grep matches returned to the agent.

TypeintegerDefault1000

Maximum number of paths returned by file-listing tools.

TypeintegerDefault0

Maximum assistant turns allowed in a session. 0 means unlimited.