whereismyai
Sprawl Guard
Sprawl Guard is a command-line tool that enforces file size and directory limits for codebases in any language supported by Tokei.
Sprawl Guard helps developers and coding agents maintain clean repository structures by counting lines in files and source files directly inside directories. It enforces explicit limits that you set to prevent giant, unnavigable files and messy flat directories. The tool uses Tokei to support every language bundled with Tokei, including Rust, TypeScript, JavaScript, Python, Go, Java, Kotlin, Swift, C, and C++. It features a ratchet mechanism that allows existing oversized files and crowded directories to shrink but not grow, separate limits for production and test code, limits on the number of direct files per directory, and byte limits on binary file sizes. Additionally, Sprawl Guard can import existing limits and exemptions from ESLint max-lines rules.
Sprawl Guard at a glance
- Best for: Software engineer
- Runs on: CLI
- Pricing: Free
- Released: November 2026
- Category: AI coding tool
- Website: kpozin.github.io
Key features
- Enforce file size limits
- Enforce directory item limits
- Support polyglot repositories
- Provide a ratchet for gradual reduction
- Set separate production and test limits
- Impose byte limits on binary files
- Import ESLint max-lines limits
Use it for
- Prevent coding agents from creating giant files
- Maintain clean directory structures in polyglot repos
- Control file and directory sizes during development
Alternatives to Sprawl Guard
- Agent Usage Guard — Stops runaway usage windows and excessive subagent fan-out.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Repo Guards — It prevents AI agents from performing destructive actions across multiple repositories.
- Stop That Shit — Enforces task boundaries to stop unnecessary AI agent actions.
- Lintsure — Runs locally with zero network calls and maps findings to major frameworks.
- Destructive Command Guard — It prevents AI agents from accidentally running commands that destroy work.
- AgentGuard — Get a security and quality assessment of AI skills in seconds without an account.
- Strata — Runs large AI models locally on consumer gaming PCs without server reliance.
- SuperPlane — Automates routine engineering backlogs while maintaining deterministic control.
- Laya Guard — Judges every tool call locally on your laptop in ~0.1s with no per-decision billing.
- Sploom — It tracks AI code provenance and intent alongside git.
- Planlock — Stops unauthorized agent calls through code enforcement instead of prompts.
All Sprawl Guard alternatives