Skip to content

[Feature] Query cost/complexity guard — block expensive queries before execution #10

Description

@mosw

Add the ability to reject queries that would be too expensive or resource-intensive. Examples:

SELECT * FROM large_table without LIMIT
Cartesian joins (cross joins on large tables)
Queries touching more than N tables
Nested subqueries beyond a configured depth

This prevents an agent from accidentally running a query that locks up the database or racks up cloud costs, even if the query isn't technically "destructive."

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions