Capability results have no size bound, so a single call can blow the context window #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One
git.diff()in sessionmt82q1ns-l8nrgereturned 360,427 charactersacross 28,513 lines:
Because no capability accepts a limit, the agent defends itself by hand-slicing
every return value —
.slice(0, 900),.slice(0, 1500),.slice(0, 2600)appear constantly through the session. That produces truncated JSON it then has
to re-fetch with a different offset, so the guard itself costs extra calls.
Wanted: bounded reads as first-class arguments:
readText(path, { offset, limit })git.diff({ maxBytes }),git.log({ fields })list({ limit })for large directoriesso agents stop hand-slicing and re-fetching.