Module: SwarmSDK::Defaults::Limits

Defined in:
lib/swarm_sdk/defaults.rb

Overview

Output and content size limits

These limits prevent overwhelming context windows and ensure reasonable memory usage.

Constant Summary collapse

OUTPUT_CHARACTERS =

Maximum Bash output characters

Truncates command output to prevent overwhelming agent context. 30,000 characters balances useful information with context constraints.

30_000
READ_LINES =

Default lines to read from files

When no explicit limit is set, Read tool returns first 2000 lines. This provides substantial file content while preventing huge files from overwhelming context.

2000
LINE_CHARACTERS =

Maximum characters per line in Read output

Truncates very long lines to prevent single lines from consuming excessive context. 2000 characters per line is generous while protecting against minified files.

2000
WEB_FETCH_CHARACTERS =

Maximum WebFetch content length

Limits web content fetched from URLs. 100,000 characters provides substantial page content while preventing huge pages from overwhelming context.

100_000
GLOB_RESULTS =

Maximum Glob search results

Limits number of file paths returned by Glob tool. 1000 results provides comprehensive search while preventing overwhelming output.

1000