print.ts

Description

Source file at src/cli/print.ts containing the monster god-function. File total: 5,594 lines; primary function: 3,167 lines, ~486 branch points cyclomatic complexity, 12 levels nesting depth, 12 parameters + 16 sub-properties, 21 inner closures. Hosts the agent run loop, SIGINT handling, rate limiting, AWS auth, MCP lifecycle, plugin loading, team-lead polling loop, control message dispatch, model switching, and turn interruption recovery.

Key claims

Relations

Sources

src-20260419-be936b1b7d4c