|
|
|
|
|
by kretaceous
123 days ago
|
|
Re: the lcm_expand(summaryID) tool > Because expansion can recover arbitrarily large volumes of earlier conversation, this tool is restricted to sub-agents spawned via the Task tool; the main agent cannot call it directly. This restriction prevents uncontrolled context growth in the primary interaction loop. What if the lcm_expand is called for a summary that has 1000s of messages that immediately floods the sub-agent's own context window? Does lcm_expand only unroll one "layer" of the DAG and unrolls more if needed by another subagent? |
|
The reason that the volume is potentially arbitrarily large is that one sub-agent can call lcm_expand multiple times - either vertically or horizontally. But that's a process that occurs gradually as the tool is used repeatedly.
This has not been a problem in our testing, but if it were a problem it would be easy to prevent sub-agents from invoking lcm_expand once their context buffer has reached a specified threshold.