Skip to content

Conversation

@anysphere-testuser
Copy link

Implement the <max> block to allow token limiting within a scope while including its children in the global priority calculation.

The <max> block differs from <isolate> by integrating its children into the overall prompt's priority optimization, enabling more flexible content truncation based on global relevance, rather than strict isolation. This required careful integration into the rendering and priority calculation pipelines.


Open in Cursor Open in Web

This commit introduces the Max block component, allowing users to specify token limits within a scope while still participating in global priority calculations. This provides more granular control over prompt token usage and optimization.

Co-authored-by: test <[email protected]>
@cursor
Copy link

cursor bot commented Oct 15, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants