You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: tool result truncation to prevent context overflow #46
Truncate large tool outputs before sending them back to the LLM to prevent context window overflow.
Motivation
DocsClaw's tools (readfile, webfetch, fetchdoc) can return arbitrarily large outputs. A fetchdoc call returning a 100-page document transcript will consume most or all of the context window, leaving no room for the LLM to reason or for subsequent tool calls.
DocsClaw has truncateLog() for log output but does not truncate what goes back to the LLM. Pi-mono applies configurable max-lines/max-bytes truncation to all tool results.
Activity
feat: add tool result truncation to prevent context overflow (#49)